| | |
| | | v-if="dialogVisible" key="masterForm" |
| | | ref="FormTemplate" |
| | | v-bind="$attrs" |
| | | :selectRow="selectRow" |
| | | :TreeValue="TreeValue" |
| | | :eventList="eventList" |
| | | :rowOid="rowOid" |
| | | :selectRow="selectRow" |
| | | :status="status" |
| | | :templateOid="templateOid" |
| | | :type="type" |
| | |
| | | <el-tab-pane v-if="showCodeApply" label="码值申请" name="codeApply"> |
| | | <FormTemplate |
| | | key="codeApplyForm" ref="CodeApply" |
| | | :selectRow="selectRow" |
| | | :selfColumnConfig="selfColumnConfig" |
| | | :selfColumnType="selfColumnType" |
| | | :type="type" |
| | | :status="status" |
| | | :selectRow="selectRow" |
| | | :type="type" |
| | | data-key="codeApplyForm" |
| | | secDTOListv-bind="$attrs" |
| | | @attrList="attrListForm" |
| | |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | selectRow:{ |
| | | type:Array, |
| | | default:[] |
| | | selectRow: { |
| | | type: Array, |
| | | default: [] |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | watch: { |
| | | |
| | | }, |
| | | watch: {}, |
| | | methods: { |
| | | openDialog() { |
| | | //新增和修改共同调用(有改动 不需要在使用edit,方法没什么影响) |
| | |
| | | that.secVOList = (res.data.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | if (that.secVOList.length > 0 && that.type === "add" ||(that.type !== "add" && that.status === "amend")) { |
| | | if (that.secVOList.length > 0 && that.type === "add" || (that.type !== "add" && that.status === "amend")) { |
| | | that.showCodeApply = true; |
| | | that.activeName = "codeApply"; |
| | | |
| | |
| | | } |
| | | }, |
| | | async submit() { |
| | | if(this.status){ |
| | | if (this.status) { |
| | | // 进行表单校验 |
| | | const formValidate = await this.$refs.FormTemplate.validate(); |
| | | if (!formValidate) return; |
| | |
| | | resForm.codeRuleOid = this.codeRuleOid; |
| | | resForm.templateOid = this.templateOid; |
| | | this.$emit("submit", resForm); |
| | | }else { |
| | | } else { |
| | | // 进行表单校验 |
| | | const formValidate = await this.$refs.FormTemplate.validate(); |
| | | if (!formValidate) return; |