| | |
| | | }, |
| | | // 确认 |
| | | async comfirm() { |
| | | console.log(this.codeApplyForm) |
| | | const objcodekey = Object.keys(this.codeApplyForm) |
| | | console.log(objcodekey) |
| | | const filteredObj = objcodekey.reduce((acc, key) => { |
| | | const pattern = /[\u4e00-\u9fa5]/; // 匹配中文字符的正则表达式 |
| | | const patterns = /\$/; |
| | |
| | | this.confirmLoadding = false |
| | | this.cancel() |
| | | } |
| | | }).catch(error=>{ |
| | | this.confirmLoadding = false |
| | | }) |
| | | } else { |
| | | this.confirmLoadding = false |
| | |
| | | }, |
| | | // 参照组件数据变更 |
| | | referConfigDataUpdate(data) { |
| | | const { field } = data; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | } |
| | | return item; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | const {field} = data; |
| | | this.secVOList = this.secVOList.map((item) => { |
| | | if (item.parentClassifySecOid === field) { |
| | | this.$refs.CodeApply.form[item.oid] = undefined; |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | item.readOnly = false; |
| | | item.referConfig.extraParams.parentClassifyValueOid = data.value; |
| | | } |
| | | return item; |
| | | }); |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }, |
| | | isRequired(item) { |
| | | return item.nullableFlag != "true"; |