xy 10 months ago
parent 2bc8a295b7
commit 5f3e23397a

@ -921,6 +921,9 @@ export default function formBuilder(
: h(
"el-form-item",
{
attrs: {
'data-field-id': info.id
},
props: {
prop: info.name,
label: info.label_show ? info.label : "",

@ -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 || {};
},

Loading…
Cancel
Save