瀏覽代碼

fix(contractReview): 修复模板列表数据处理和搜索功能

liujt 8 月之前
父節點
當前提交
ddc489b224
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/contractManage/contractReview/index.vue

+ 6 - 4
src/views/contractManage/contractReview/index.vue

@@ -17,7 +17,7 @@
         >
             <template v-slot:toolbar="{ row }">
                 <div class="filter-container">
-                    <el-button>新建</el-button>
+                    <el-button type="primary">新建</el-button>
                 <!--     <el-form
                     class="ele-form-search"
                     @keyup.enter.native="reload"
@@ -460,14 +460,15 @@
         this.defaultTemplateList = await getBpmCustomFormList({ status: 1 });
         const list  = _.groupBy(this.defaultTemplateList, 'dictType')
         this.templateList = list['5']?.map((item) => ({
+                    ...item,
                     label: item.name,
                     value: item.id
                 })) || [];
-        // console.log('templateList~~~', this.templateList);
+        console.log('templateList~~~', this.templateList);
         // this.params.dictType = this.dictList['collaborative_type'][0].value;
         // this.params.formId = this.defaultTemplateList[0]?.id;
         let makingJson =
-          JSON.parse(this.defaultTemplateList[0].formJson.makingJson) || {};
+          JSON.parse(this.templateList[0].formJson.makingJson) || {};
         this.formColumnList = makingJson.list;
         console.log(this.formColumnList);
       },
@@ -499,7 +500,8 @@
         return data;
       },
       search(e) {
-        this.reload(e);
+        this.params = e;
+        this.$refs.table.reload({ page: 1, where: e });
       },
       /* 刷新表格 */
       reload(where) {