zzy před 2 roky
rodič
revize
8cb4290325

+ 8 - 2
src/views/Origion.vue

@@ -1,7 +1,10 @@
 <template>
   <div class="h100">
     <Header/>
-    <router-view/>
+    <div class="origion_content">
+      <router-view/>
+    </div>
+
   </div>
 </template>
 
@@ -16,5 +19,8 @@ export default {
 </script>
 
 <style scoped lang="scss">
-
+.origion_content{
+  width: 100%;
+  height: 88%;
+}
 </style>

+ 339 - 79
src/views/matters_guidance/detail_info/DetailInfo.vue

@@ -19,13 +19,50 @@
      <el-divider></el-divider>
      <div class="detail_content">
        <span class="little_title">事项信息</span>
-       <el-form ref="form" :model="form" class="form_content" :disabled="IsDisabled" label-width="120px">
+       <el-col span="24">
+       <el-form ref="form" :model="form" class="form_content" :disabled="IsDisabled" label-width="140px">
+         <el-col span="12">
          <el-form-item label="基本编码:">
            <el-input v-model="form.code"></el-input>
          </el-form-item>
+         </el-col>
+         <el-col span="12">
+         <el-form-item label="统一社会信用代码:">
+           <el-input v-model="form.social_code"></el-input>
+         </el-form-item>
+         </el-col>
+         <el-col span="12">
+         <el-form-item label="层级:">
+           <el-select v-model="form.level" style="width:100%"
+                       placeholder="请选择层级">
+             <el-option
+                 v-for="item in levelList"
+                 :key="item.value"
+                 :label="item.label"
+                 :value="item.value">
+             </el-option>
+           </el-select>
+         </el-form-item>
+         </el-col>
+         <el-col span="12">
          <el-form-item label="事项名称:">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
+         </el-col>
+         <el-col span="12">
+         <el-form-item label="事项类型:">
+           <el-select v-model="form.type" style="width:100%"
+                       placeholder="请选择层级">
+             <el-option
+                 v-for="item in typeList"
+                 :key="item.value"
+                 :label="item.label"
+                 :value="item.value">
+             </el-option>
+           </el-select>
+         </el-form-item>
+         </el-col>
+         <el-col span="12">
 <!--         <el-form-item label="业务情形:">-->
 <!--           <el-input v-model="form.situation"></el-input>-->
 <!--         </el-form-item>-->
@@ -40,6 +77,8 @@
              </el-option>
            </el-select>
          </el-form-item>
+         </el-col>
+         <el-col span="12">
          <el-form-item label="配合部门:">
            <el-select
                v-model="form.department" style="width:100%"
@@ -56,7 +95,9 @@
              </el-option>
            </el-select>
          </el-form-item>
+         </el-col>
        </el-form>
+       </el-col>
        <div>
          <span class="little_title">情形信息</span>
 
@@ -64,62 +105,121 @@
            <template>
              <el-table
                  :data="delectedArr"
-                 style="width: 100%"
+                 height="280"
+                 style="width: 100%;"
              >
+               <el-table-column
+                   prop="name"
+                   label="序号"
+                   width="50">
+                 <template  slot-scope="scope">
+                   <span>{{scope.$index + 1}}</span>
+                 </template>
+               </el-table-column>
+               <el-table-column
+                   prop="name"
+                   label="业务情形编码"
+                   width="200">
+                 <template  slot-scope="scope">
+                   <span><el-input :disabled="type =='view'" type="text" v-model="scope.row.QX_CODE"/></span>
+                 </template>
+               </el-table-column>
                <el-table-column
                    prop="name"
                    label="情形名称"
-                   width="400">
+                   width="380">
                  <template  slot-scope="scope">
-                     <span  v-if="!scope.row.isEdit">{{scope.row.SITUATION}}</span>
-                   <span v-else><el-input type="text" v-model="scope.row.SITUATION"/></span>
+                   <span><el-input :disabled="type =='view'"  type="text" v-model="scope.row.SITUATION"/></span>
                  </template>
                </el-table-column>
                <el-table-column
                    prop="name"
-                   label="实施编码"
-                   width="400">
+                   label="是否网办"
+                   width="100">
                  <template   slot-scope="scope">
-                   <span  v-if="!scope.row.isEdit">{{scope.row.MATTER_BASE_CODE}}</span>
-                   <span v-else><el-input type="text" v-model="scope.row.MATTER_BASE_CODE"/></span>
+                   <el-select :disabled="type =='view'" v-model="scope.row.WB" style="width:100%"
+                               placeholder="请选择">
+                     <el-option
+                         v-for="item in TruthList"
+                         :key="item.value"
+                         :label="item.label"
+                         :value="item.value">
+                     </el-option>
+                   </el-select>
                  </template>
                </el-table-column>
-
                <el-table-column
                    prop="name"
-                   label="情形编码"
-                   width="400">
-                 <template slot-scope="scope">
-                   <span  v-if="!scope.row.isEdit">{{scope.row.ATTRIBUTE_CODE}}</span>
-                   <span v-else><el-input type="text" v-model="scope.row.ATTRIBUTE_CODE"/></span>
+                   label="是否好办"
+                   width="100">
+                 <template   slot-scope="scope">
+                   <el-select :disabled="type =='view'" v-model="scope.row.HB" style="width:100%"
+                              placeholder="请选择">
+                     <el-option
+                         v-for="item in TruthList"
+                         :key="item.value"
+                         :label="item.label"
+                         :value="item.value">
+                     </el-option>
+                   </el-select>
                  </template>
                </el-table-column>
-
                <el-table-column
-                   label="指南"
-                   width="250">
-                 <template slot-scope="scope">
-                   <el-button v-if="!scope.row.isEdit" class="dialog_button" type="text" size="small" @click="viewDialog(scope.row)">预览</el-button>
-                   <el-button v-if="!scope.row.isEdit" class="dialog_button" :disabled="IsDisabled" type="text" size="small">编辑</el-button>
-
-                   <el-upload v-if="scope.row.isEdit" style="display: inline-block;margin-left:8px"
-                              class="upload-demo"
-                              :limit="1"
-                              ref="upload"
-                              action="http://10.81.66.9:9250/ywtb/ywtbMatterGuideList_upload_returnList"                              :onError="uploadError"
-                              :onSuccess="uploadSuccess"
-                              :beforeUpload="beforeAvatarUpload"
-                              :file-list="fileList">
-                     <el-button class="role_button" role_button_code="df9dcabf-872c-486c-a7a7-a82b8d3d5f55" :disabled="IsDisabled"  type="primary">点击上传</el-button>
-                   </el-upload>
-
+                   prop="name"
+                   label="是否快办"
+                   width="100">
+                 <template   slot-scope="scope">
+                   <el-select :disabled="type =='view'" v-model="scope.row.KB" style="width:100%"
+                              placeholder="请选择">
+                     <el-option
+                         v-for="item in TruthList"
+                         :key="item.value"
+                         :label="item.label"
+                         :value="item.value">
+                     </el-option>
+                   </el-select>
                  </template>
                </el-table-column>
+               <el-table-column
+                   prop="name"
+                   label="是否全程网办"
+                   width="100">
+                 <template   slot-scope="scope">
+                   <el-select :disabled="type =='view'" v-model="scope.row.QCWB" style="width:100%"
+                              placeholder="请选择">
+                     <el-option
+                         v-for="item in TruthList"
+                         :key="item.value"
+                         :label="item.label"
+                         :value="item.value">
+                     </el-option>
+                   </el-select>
+                 </template>
+               </el-table-column>
+               <el-table-column
+                   prop="name"
+                   label="责任单位"
+                   width="480">
+                 <template   slot-scope="scope">
+                     <el-select :disabled="type =='view'" v-model="scope.row.UNIT_NAME" style="width:100%"    filterable   multiple
+                                allow-create placeholder="请选择责任单位">
+                       <el-option
+                           v-for="item in responsibleSituationUintList"
+                           :key="item.UNIT_NAME"
+                           :label="item.UNIT_NAME"
+                           :value="item.UNIT_NAME">
+                       </el-option>
+                     </el-select>
+                 </template>
+               </el-table-column>
+
+
                <el-table-column
 
                    label="操作">
                  <template slot-scope="scope">
-                   <el-button class="dialog_button" :disabled="IsDisabled" @click="handleClick(scope.row)" type="text" size="small">{{!scope.row.isEdit?'编辑':'保存'}}</el-button>
+                   <el-button class="dialog_button"  @click="handleClick(scope.row,'view')" type="text" size="small">预览</el-button>
+                   <el-button class="dialog_button" :disabled="IsDisabled" @click="handleClick(scope.row,'edit')" type="text" size="small">编辑</el-button>
                    <el-button class="dialog_button" :disabled="IsDisabled" type="text" size="small" @click="del(scope.row)">删除</el-button>
                  </template>
                </el-table-column>
@@ -342,7 +442,7 @@
 
       <div slot="footer" class="dialog-footer">
         <el-button @click="dialogFormVisible = false">取 消</el-button>
-        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
+        <el-button type="primary" @click="saveSingleAttribute">确 定</el-button>
       </div>
     </el-dialog>
   </div>
@@ -361,17 +461,86 @@ export default {
       base_code:'',
       form: {
         code: '',
+        social_code:'',
+        level:'',
         name: '',
+        type:'',
         unit: [],
         department: [],
       },
       detailData:{},
       delectedArr:[],
+      levelList:[
+        {
+          label:'国家级',
+          value:'1'
+        },
+        {
+          label:'省级',
+          value:'2'
+        },
+        {
+          label:'地市级',
+          value:'3'
+        },
+        {
+          label:'区县级',
+          value:'4'
+        },
+        {
+          label:'乡镇级',
+          value:'5'
+        },
+        {
+          label:'村居级',
+          value:'6'
+        },
+        {
+          label:'分级管理',
+          value:'7'
+        },
+      ],
+      typeList:[
+        {
+          label:'行政许可',
+          value:'行政许可'
+        },
+        {
+          label:'行政确认',
+          value:'行政确认'
+        },
+        {
+          label:'行政奖励',
+          value:'行政奖励'
+        },
+        {
+          label:'行政征收',
+          value:'行政征收'
+        },
+        {
+          label:'其他权利',
+          value:'其他权利'
+        },
+        {
+          label:'公共服务',
+          value:'公共服务'
+        },
+      ],
+      TruthList:[
+        {
+          label:'是',
+          value:'1'
+        },
+        {
+          label:' 否',
+          value:'0'
+        },
+      ],
+      responsibleSituationUintList:[],
       responsibleUintList:[],
       operationUintList:[],
       showList:false,
       fileList:[],
-      guideList:[],
       //模态框参数
       dialogFormWidth:'60%',
       dialogFormTop:'10vh',
@@ -401,12 +570,12 @@ export default {
           title:'实施主体编码',
           content:''
         },
-        {
-          id:'5',
-          code:'ywblxbm',
-          title:'业务办理项编码',
-          content:''
-        },
+        // {
+        //   id:'5',
+        //   code:'ywblxbm',
+        //   title:'业务办理项编码',
+        //   content:''
+        // },
         {
           id:'6',
           code:'tbfw',
@@ -892,6 +1061,7 @@ export default {
         },
       ],
       showEdit:false,
+      inuse_uuid:''
     }
   },
   mounted() {
@@ -899,24 +1069,30 @@ export default {
     this.type = this.$route.query.detailType;
     this.base_code = this.$route.query.base_code;
     this.getResponsibleUnit();
-    this.getSituationInfo();
+
   },
   methods:{
-    viewDialog(item){
-      let showRemind = true;
-      for(let i=0;i<this.guideList.length;i++){
-        if(this.guideList[i].YWBLXBM==item.ATTRIBUTE_CODE){
-          this.fillDialogDetail(this.guideList[i]);
-          this.dialogFormVisible = true;
-          this.chooseStep('1');
-          this.showEdit = true;
-          showRemind = false;
-          break;
+    saveSingleAttribute(){
+      for(let i=0;i<this.delectedArr.length;i++){
+        if(this.inuse_uuid ==this.delectedArr[i].INUSE_UUID){
+          this.delectedArr[i] = this.setDialogInfo(this.delectedArr[i]);
         }
       }
-      if(showRemind){
-        console.log('')
+
+      this.dialogFormVisible = false
+    },
+    setDialogInfo(obj){
+      for(let j =0;j<this.globalList.length;j++){
+        for(let i =0;i<this[this.globalList[j].name].length;i++){
+          obj[this[this.globalList[j].name][i].code.toUpperCase()] = this[this.globalList[j].name][i].content;
+        }
       }
+      return obj;
+    },
+    viewDialog(item){
+          this.fillDialogDetail(item);
+          this.dialogFormVisible = true;
+          this.chooseStep('1');
     },
     fillDialogDetail(dataArr){
       for(let index in dataArr){
@@ -948,21 +1124,23 @@ export default {
         }
       }).then(response => {
         let dataArr = response.data.msg[0].Rows[0];
-        this.delectedArr = dataArr.ATTRIBUTE_LIST;
-        for(let i=0;i<this.delectedArr.length;i++){
-          this.delectedArr.isEdit = false
+        this.detailData = dataArr;
+        for(let i=0;i<dataArr.ATTRIBUTE_LIST.length;i++){
+          dataArr.ATTRIBUTE_LIST[i].INUSE_UUID = this.uuid();
+          dataArr.ATTRIBUTE_LIST[i].UNIT_NAME =  dataArr.ATTRIBUTE_LIST[i].UNIT_NAME.split('、') ;
         }
-        this.guideList = dataArr.GUIDE_LIST;
+        this.delectedArr = dataArr.ATTRIBUTE_LIST;
+        this.showType();
       })
     },
     showType(){
       if(this.type =='view'){
         this.IsDisabled = true;
-        this.detailData = JSON.parse(this.$route.query.detailData);
+        //this.detailData = JSON.parse(this.$route.query.detailData);
         this.setBasicInfo();
       }else if(this.type =='edit'){
         this.IsDisabled = false;
-        this.detailData = JSON.parse(this.$route.query.detailData);
+        //this.detailData = JSON.parse(this.$route.query.detailData);
         this.setBasicInfo();
       }else if(this.type =='add'){
         this.IsDisabled = false;
@@ -992,43 +1170,113 @@ export default {
       }).then(response => {
         let dataArr = response.data.msg[0].Rows;
         this.operationUintList = dataArr;
-        this.showType();
+        this.getSituationUnit();
+
+      })
+    },
+
+    getSituationUnit(){
+      this.$request({
+        url:'ywtb/selectYwtbMatteraAllUnitName',
+        method:'post',
+        data:{
+          "TYPE":'0'
+        }
+      }).then(response => {
+        let dataArr = response.data.msg[0].Rows;
+        this.responsibleSituationUintList = dataArr;
+        if(this.type =='view'||this.type =='edit'){
+          this.getSituationInfo();
+        }else{
+          this.detailData = [];
+          this.delectedArr = [];
+          this.showType();
+        }
+
+
       })
     },
     setBasicInfo(){
+      this.form.social_code= this.detailData.ATTRIBUTE_LIST[0].ATTRIBUTE_CODE.substring(0,18) ;
+      this.form.level=this.detailData.ATTRIBUTE_LIST[0].ATTRIBUTE_CODE.substring(18,19) ;
       this.form.code= this.detailData.BASE_CODE ;
       this.form.name=this.detailData.NAME ;
-      this.form.unit=this.detailData.UNIT_NAME ;
+      this.form.unit=this.detailData.RESPONSIBLE_DEPARTMENT ;
+      this.form.type = this.detailData.TYPE ;
       this.form.department=this.detailData.COOPERATION_DEPARTMENT.split('、') ;
     },
     onSubmit() {
-     // console.log('submit!');
+      for(let i=0;i<this.delectedArr.length;i++){
+        this.delectedArr[i].UNIT_NAME = this.delectedArr[i].UNIT_NAME.join('、') ;
+        this.delectedArr[i].MATTER_BASE_CODE =  this.form.social_code +this.form.level + this.form.code;
+        this.delectedArr[i].ATTRIBUTE_CODE = this.form.social_code +this.form.level + this.form.code +this.delectedArr[i].QX_CODE;
+        this.delectedArr[i].YWBLXBM =this.form.social_code +this.form.level + this.form.code +this.delectedArr[i].QX_CODE;
+      }
+      this.$request({
+        url:'ywtb/editYwtbMatter',
+        method:'post',
+        data:{
+          "NAME":this.form.name,
+          "TYPE":this.form.type,
+          "BASE_CODE":this.form.code,
+          "RESPONSIBLE_DEPARTMENT":this.form.unit,
+          "COOPERATION_DEPARTMENT":this.form.department.join('、'),
+          "UNIT_CODE":'',
+          "ORGANIZATION":'1',
+          "ATTRIBUTE_LIST":this.delectedArr
+        }
+      }).then(response => {
+        if(response.data.msg[0].success =='true'){
+          MessageBox.alert('保存成功', '提示', {
+            confirmButtonText: '确定'
+          });
+          this.$router.push({
+            name:'mainBody',
+          })
+        }else{
+          this.loading=false;
+          MessageBox.alert('保存失败', '提示', {
+            confirmButtonText: '确定'
+          });
+        }
+      })
+
     },
     onBack(){
       this.$router.push({
         name:'mainBody',
       })
     },
-    handleClick(ite){
+    handleClick(ite,type){
       //this.$refs.upload.submit();
-      ite.isEdit = !ite.isEdit
+      if(type=='view'){
+        this.showEdit = true;
+        // if(ite.QX_CODE ==''){
+        //   MessageBox.alert('请先输入情形编码', '提示', {
+        //     confirmButtonText: '确定'
+        //   });
+        // }
+        this.viewDialog(ite)
+      }else{
+        this.inuse_uuid = ite.INUSE_UUID;
+        this.showEdit = false;
+        this.viewDialog(ite)
+      }
     },
     del(item){
       this.delectedArr.splice(this.delectedArr.indexOf(item),1);
-      for(let i=0;i<this.guideList.length;i++){
-        if(item.ATTRIBUTE_CODE ==this.guideList[i].YWBLXBM){
-          this.guideList.splice(i,1);
-          break;
-        }
-      }
      // console.log(item)
     },
     add() {
       this.delectedArr.push({
+        INUSE_UUID :this.uuid(),
+        QX_CODE:'',
         SITUATION: '',
-        MATTER_BASE_CODE: '',
-        ATTRIBUTE_CODE: '',
-        isEdit:true,
+        WB: '',
+        KB: '',
+        HB: '',
+        QCWB: '',
+        UNIT_NAME: '',
       })
     },
     uploadError (response, file, fileList) {
@@ -1042,7 +1290,6 @@ export default {
         MessageBox.alert('读取指南信息成功', '提示', {
           confirmButtonText: '确定'
         });
-        this.guideList.push(response.msg[0].Rows[0]);
 
       }else{
         this.loading=false;
@@ -1071,6 +1318,19 @@ export default {
       }
       return extension || extension2  && isLt2M
     },
+    uuid() {
+      let s = [];
+      let hexDigits = "0123456789abcdef";
+      for (let i = 0; i < 36; i++) {
+        s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
+      }
+      s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010
+      s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
+      s[8] = s[13] = s[18] = s[23] = "-";
+
+      let uuid = s.join("");
+      return uuid;
+    }
   }
 }
 </script>
@@ -1114,12 +1374,12 @@ export default {
       }
       .form_content{
         padding-top: 20px;
-        width:60%
+        width:93%
       }
       .table-area{
         padding-top: 20px;
-        max-height: 300px;
-        overflow: auto;
+        max-height: 320px;
+        overflow: hidden;
         width: 90%;
         padding-left: 3%;
       }

+ 95 - 5
src/views/matters_guidance/mian_body/MainBody.vue

@@ -1,4 +1,7 @@
 <template>
+  <div  v-loading="loading"  element-loading-text="数据加载中"  class="right_content_info"
+        element-loading-spinner="el-icon-loading"
+        element-loading-background="rgba(3, 30, 57, 0.8)">
   <div id="mainBody">
     <div class="left">
         <span class="singleButton top_button">
@@ -15,7 +18,7 @@
       <div class="right_content">
         <el-form :inline="true" :model="form" class="demo-form-inline">
           <el-row :gutter="20">
-            <el-col :span="21">
+            <el-col :span="20">
               <div class="grid-content bg-purple">
               <el-form-item label="事项名称">
                 <el-input v-model="form.name" placeholder="" clearable></el-input>
@@ -36,9 +39,21 @@
             </div>
             </el-col>
 
-            <el-col :span="2"><div class="grid-content bg-purple">
+            <el-col :span="4"><div class="grid-content bg-purple">
               <el-form-item>
                 <el-button type="primary" class="role_button" role_button_code="8f55b710-6f34-4722-9666-582f8f04ad01" @click="onSubmitSearch">查询</el-button>
+                <el-button class="role_button" role_button_code="8f55b710-6f34-4722-9666-582f8f04ad01" type="primary" @click="downloadModel()">导入模板</el-button>
+                <el-upload  style="display: inline-block;margin-left:8px"
+                           class="upload-demo"
+                           action="http://10.81.66.9:9250/ywtb/ywtbMatter_upload"
+                           :show-file-list="showList"
+                           :onError="uploadError"
+                           :onSuccess="uploadSuccess"
+                           :beforeUpload="beforeAvatarUpload"
+                           :file-list="fileList">
+                  <el-button class="role_button" role_button_code="df9dcabf-872c-486c-a7a7-a82b8d3d5f55"   type="primary">点击上传</el-button>
+                </el-upload>
+
               </el-form-item>
             </div></el-col>
           </el-row>
@@ -73,9 +88,9 @@
           </el-table-column>
           <el-table-column prop="TYPE" label="事项类型" width="150">
           </el-table-column>
-          <el-table-column prop="UNIT_NAME" label="责任部门" width="350">
+          <el-table-column prop="UNIT_NAME" label="责任部门" width="200">
           </el-table-column>
-          <el-table-column prop="COOPERATION_DEPARTMENT" label="配合部门"  width="200">
+          <el-table-column prop="COOPERATION_DEPARTMENT" label="配合部门"  width="350">
             <template slot-scope="scope">
               <span v-if="scope.row.hasChildren">{{scope.row.COOPERATION_DEPARTMENT}}</span>
               <span class="guide_button" v-if="!scope.row.hasChildren" :class="[scope.row.COOPERATION_DEPARTMENT == '0'?'show_disable':'']"
@@ -305,6 +320,7 @@
       </div>
     </el-dialog>
   </div>
+  </div>
 </template>
 
 <script>
@@ -318,6 +334,8 @@ export default {
   name: "MainBody",
   data(){
     return{
+      fileList:[],
+      showList:false,
       showEdit:true,
       total_unit:'住建委',
       totalItem:0,
@@ -945,6 +963,7 @@ export default {
       close:false,
       dialog_item_title:'',
       dialog_situation_title:'',
+      loading:false,
     }
   },
   computed:{
@@ -992,6 +1011,55 @@ export default {
     // this.autoChange();
   },
   methods:{
+    uploadError (response, file, fileList) {
+      this.loading=false;
+      console.log('上传失败,请重试!',response, file, fileList)
+    },
+    uploadSuccess (response, file, fileList) {
+      console.log('上传文件', response,file, fileList)
+      if(response.msg[0].success =='true'){
+        this.loading=false;
+        MessageBox.alert('上传整改计划成功', '提示', {
+          confirmButtonText: '确定'
+        });
+      }else{
+        this.loading=false;
+        MessageBox.alert(response.msg[0].error, '提示', {
+          confirmButtonText: '确定'
+        });
+      }
+    },
+    // 上传前对文件的大小的判断
+    beforeAvatarUpload (file) {
+      this.loading=true;
+      const extension = file.name.split('.')[1] === 'xls'
+      const extension2 = file.name.split('.')[1] === 'xlsx'
+      const isLt2M = file.size / 1024 / 1024 < 10
+      if (!extension && !extension2) {
+        this.loading=false;
+        MessageBox.alert('上传模板只能是 xls、xlsx 格式!', '提示', {
+          confirmButtonText: '确定'
+        });
+      }
+      if (!isLt2M) {
+        this.loading=false;
+        MessageBox.alert('上传模板大小不能超过 10MB!', '提示', {
+          confirmButtonText: '确定'
+        });
+      }
+      return extension || extension2  && isLt2M
+    },
+    downloadModel(){
+      let url ='http://10.81.69.64/files/ywtb/事项与指南导入模板.xlsx';
+      const a = document.createElement('a')
+      a.href = url;
+      a.style.display="none";
+      //测试链接console.log(a.href)
+      a.download = '证照模板'  // 下载文件的名字
+      document.body.appendChild(a)
+      a.click();
+      document.body.removeChild(a);
+    },
     onSubmitSearch(){
       this.paginations.currentPage = 1;
       this.onSubmit();
@@ -1206,7 +1274,24 @@ export default {
             confirmButtonText: '确定'
           });
         } else {
-         // console.log('删除方法')
+          this.$request({
+            url:'/ywtb/removeYwtbMatter',
+            method:'post',
+            data:{
+              "BASE_CODE":selection[0].BASE_CODE
+            }
+          }).then(response => {
+            if(response.data.msg[0].success =='true'){
+              MessageBox.alert('删除成功', '提示', {
+                confirmButtonText: '确定'
+              });
+              this.onSubmit();
+            }else{
+              MessageBox.alert('删除失败', '提示', {
+                confirmButtonText: '确定'
+              });
+            }
+          })
         }
       }
     },
@@ -1338,6 +1423,7 @@ export default {
     background: url("../../../assets/imgs/带手指高.png") no-repeat;
   }
   background-size: 100% !important;
+
   .left{
     width:2%;
     padding-left: 0.55%;
@@ -1627,4 +1713,8 @@ export default {
 .show_disable{
   color: #87898a;
 }
+.right_content_info{
+  width: 100%;
+  height: 100%;
+}
 </style>