refactor -- 使用Mybatis Plus重构流程表单模块,修改数据库表(sql脚本添加"update脚本")

This commit is contained in:
konbai
2022-03-09 02:00:58 +08:00
parent 4a19591e5e
commit f5946970ef
34 changed files with 538 additions and 1040 deletions

View File

@@ -215,7 +215,7 @@ export default {
form: {
formId: null,
formName: null,
formContent: null,
content: null,
remark: null
},
// 表单校验
@@ -277,11 +277,11 @@ export default {
const formId = that.$route.query && that.$route.query.formId;
if (formId) {
getForm(formId).then(res =>{
that.formConf = JSON.parse(res.data.formContent);
that.formConf = JSON.parse(res.data.content);
that.drawingList = that.formConf.fields;
that.form = res.data;
})
}else {
} else {
if (formConfInDB) {
that.formConf = formConfInDB
}
@@ -505,7 +505,7 @@ export default {
fields: deepClone(this.drawingList),
...this.formConf
}
this.form.formContent = JSON.stringify(this.formData);
this.form.content = JSON.stringify(this.formData);
this.formOpen = true;
this.formTitle = "添加表单";
},
@@ -514,7 +514,7 @@ export default {
this.form = {
formId: null,
formName: null,
formContent: null,
content: null,
remark: null
};
this.resetForm("form");

View File

@@ -502,7 +502,7 @@ export default {
getForm(formId).then(res =>{
this.formTitle = "表单详情";
this.formConfOpen = true;
this.formConf = JSON.parse(res.data.formContent)
this.formConf = JSON.parse(res.data.content)
})
},
/** 启动流程 */
@@ -559,7 +559,7 @@ export default {
},
handleCurrentChange(data) {
if (data) {
this.currentRow = JSON.parse(data.formContent);
this.currentRow = JSON.parse(data.content);
}
},
/** 挂起/激活流程 */

View File

@@ -108,7 +108,7 @@
<el-input v-model="form.formName" placeholder="请输入表单名称" />
</el-form-item>
<el-form-item label="表单内容">
<editor v-model="form.formContent" :min-height="192"/>
<editor v-model="form.content" :min-height="192"/>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
@@ -167,7 +167,7 @@ export default {
pageNum: 1,
pageSize: 10,
formName: null,
formContent: null,
content: null,
},
// 表单参数
form: {},
@@ -199,7 +199,7 @@ export default {
this.form = {
formId: null,
formName: null,
formContent: null,
content: null,
createTime: null,
updateTime: null,
createBy: null,
@@ -228,7 +228,7 @@ export default {
handleDetail(row){
this.formConfOpen = true;
this.formTitle = "流程表单配置详细";
this.formConf = JSON.parse(row.formContent)
this.formConf = JSON.parse(row.content)
},
/** 新增按钮操作 */
handleAdd() {