|
|
|
|
@ -55,9 +55,9 @@
|
|
|
|
|
:sub-form="subConfig"
|
|
|
|
|
:fields="fields"
|
|
|
|
|
:original-form="form"
|
|
|
|
|
:readable="readableFields"
|
|
|
|
|
:readable.sync="readableFields"
|
|
|
|
|
:script-content="scriptContent"
|
|
|
|
|
:writeable="writeableFields"
|
|
|
|
|
:writeable.sync="writeableFields"
|
|
|
|
|
:rules="rules"
|
|
|
|
|
:sub-rules="subRules"
|
|
|
|
|
:logs="config.logs"
|
|
|
|
|
@ -274,6 +274,8 @@ export default {
|
|
|
|
|
isShowAssign: false,
|
|
|
|
|
info: [],
|
|
|
|
|
config: {},
|
|
|
|
|
writeableFields: [],
|
|
|
|
|
readableFields: [],
|
|
|
|
|
subConfig: new Map(),
|
|
|
|
|
myStatus: new Map([
|
|
|
|
|
[-2, "会签退回"],
|
|
|
|
|
@ -557,6 +559,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.config = res;
|
|
|
|
|
this.readableFields = /\/detail/.test(this.$route.path)
|
|
|
|
|
? this.fields?.map((i) => i.id)
|
|
|
|
|
: this.config?.currentNode?.readable || [];
|
|
|
|
|
this.writeableFields = this.config?.currentNode?.writeable || [];
|
|
|
|
|
// 生成空的form表单对象
|
|
|
|
|
this.generateForm(this.form, fields);
|
|
|
|
|
// form赋值
|
|
|
|
|
@ -628,6 +634,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.config = res;
|
|
|
|
|
this.readableFields = /\/detail/.test(this.$route.path)
|
|
|
|
|
? this.fields?.map((i) => i.id)
|
|
|
|
|
: this.config?.currentNode?.readable || [];
|
|
|
|
|
this.writeableFields = this.config?.currentNode?.writeable || [];
|
|
|
|
|
this.generateForm(this.form, fields);
|
|
|
|
|
this.handleDefaultJSON();
|
|
|
|
|
this.form = Object.assign({}, this.form);
|
|
|
|
|
@ -658,6 +668,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.config = res;
|
|
|
|
|
this.readableFields = /\/detail/.test(this.$route.path)
|
|
|
|
|
? this.fields?.map((i) => i.id)
|
|
|
|
|
: this.config?.currentNode?.readable || [];
|
|
|
|
|
this.writeableFields = this.config?.currentNode?.writeable || [];
|
|
|
|
|
this.generateForm(this.form, fields);
|
|
|
|
|
this.handleDefaultJSON();
|
|
|
|
|
const { data } = res?.flow;
|
|
|
|
|
@ -828,14 +842,15 @@ export default {
|
|
|
|
|
fields() {
|
|
|
|
|
return this.config?.customModel?.fields || [];
|
|
|
|
|
},
|
|
|
|
|
readableFields() {
|
|
|
|
|
return /\/detail/.test(this.$route.path)
|
|
|
|
|
? this.fields?.map((i) => i.id)
|
|
|
|
|
: this.config?.currentNode?.readable || [];
|
|
|
|
|
},
|
|
|
|
|
writeableFields() {
|
|
|
|
|
return this.config?.currentNode?.writeable || [];
|
|
|
|
|
},
|
|
|
|
|
// 放到data中,为了修改
|
|
|
|
|
// readableFields() {
|
|
|
|
|
// return /\/detail/.test(this.$route.path)
|
|
|
|
|
// ? this.fields?.map((i) => i.id)
|
|
|
|
|
// : this.config?.currentNode?.readable || [];
|
|
|
|
|
// },
|
|
|
|
|
// writeableFields() {
|
|
|
|
|
// return this.config?.currentNode?.writeable || [];
|
|
|
|
|
// },
|
|
|
|
|
node() {
|
|
|
|
|
return this.config?.currentNode || {};
|
|
|
|
|
},
|
|
|
|
|
|