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