| | |
| | | } |
| | | }, |
| | | 'injectOption.classifyInvokeAttr': function(newVal) { |
| | | console.log('newVal',newVal) |
| | | if (newVal === "name") { |
| | | this.injectOption.classifyInvokeAttrName='分类名称' |
| | | } else if (newVal === "id") { |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | formAttr(row, column) { |
| | | console.log(row,column) |
| | | }, |
| | | //新增搜索 |
| | | AddFindHandler(){ |
| | | if(this.SelectValue == 'id'){ |
| | |
| | | }, |
| | | //参照配置子组件 |
| | | echoReferConfig(val){ |
| | | console.log('val--',val) |
| | | this.referObject=val |
| | | this.$set(this.CurrentCell,'referConfig',JSON.stringify(val)) |
| | | |
| | |
| | | this.$message.warning('请选择模板属性') |
| | | } else { |
| | | this.attrVisible = true; |
| | | console.log(this.attrSelectList) |
| | | } |
| | | }, |
| | | //属性分组提交 |
| | | attrHandle() { |
| | | console.log(this.attrSelectList) |
| | | this.attrSelectList.forEach(item=>{ |
| | | item.attributeGroup=this.attrModel |
| | | }) |
| | |
| | | //业务类型选择 |
| | | businessSelect(selection, row) { |
| | | this.busineSelectList = selection; |
| | | console.log(selection) |
| | | }, |
| | | // 从业务类型中选择数据弹窗 |
| | | busineHandle() { |
| | |
| | | selectHandle(selection, row) { |
| | | this.attrOid = row.oid; |
| | | this.attrRow = row; |
| | | console.log(row) |
| | | }, |
| | | //表格选择 |
| | | selectionChange(list) { |
| | |
| | | referConfig:'', |
| | | } |
| | | } |
| | | console.log('--',this.referConfigOption) |
| | | // this.$refs.referConfigFormDialog.onloadAttrData(); |
| | | }else if(column.property == 'classifyInvokeText'){ |
| | | this.injectVisible=true; |
| | | this.injectOption.classifyInvokeAttr=this.CurrentCell.classifyInvokeAttr; |
| | | this.injectOption.classifyInvokeAttrName=this.CurrentCell.classifyInvokeAttrName; |
| | | this.injectOption.classifyInvokeEditFlag=this.CurrentCell.classifyInvokeEditFlag; |
| | | if(this.CurrentCell.classifyInvokeLevel == 'min'){ |
| | | this.injectOption.classifyInvokeLevel='min' |
| | | }else { |
| | | this.injectOption.classifyInvokeLevel='max' |
| | | this.injectOption.classifyNumber=this.CurrentCell.classifyInvokeLevel; |
| | | } |
| | | }else if(column.property == 'componentRule'){ |
| | | if(this.CurrentCell){ |
| | | this.CurrentCell.componentRule=this.componentRuleText; |
| | |
| | | 'conditionMap[oid_notequal]': this.CurrentCell.oid, |
| | | limit:-1 |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.CascadeData = res.data.data; |
| | | }) |
| | | this.CascadeVisible=true; |
| | |
| | | }, |
| | | //验证规则检查 |
| | | rulesExamine() { |
| | | console.log(this.RulesForm.expressionText) |
| | | const regex = new RegExp(this.rulesData.ruleRowBds); |
| | | if(regex.test(this.RulesForm.TestContent)){ |
| | | this.$message.success('校验成功') |
| | |
| | | "层级设置": this.injectOption.classifyInvokeLevel=='max'?this.injectOption.classifyNumber :'min', |
| | | "是否可修改": this.injectOption.classifyInvokeEditFlag |
| | | } |
| | | //单元格编辑赋值一遍 |
| | | // noinspection JSCheckFunctionSignatures |
| | | if(this.CurrentCell){ |
| | | //如果是指定层赋值为数字 |
| | | if(this.injectOption.classifyInvokeLevel!== 'min'){ |
| | | this.CurrentCell.classifyInvokeLevel=this.injectOption.classifyNumber |
| | | }else { |
| | | this.CurrentCell.classifyInvokeLevel='min' |
| | | } |
| | | //其余正常赋值 |
| | | this.CurrentCell.classifyInvokeAttr=this.injectOption.classifyInvokeAttr, |
| | | this.CurrentCell.classifyInvokeAttrName=this.injectOption.classifyInvokeAttrName, |
| | | this.CurrentCell.classifyInvokeEditFlag=this.injectOption.classifyInvokeEditFlag, |
| | | // this.$set(this.CurrentCell, 'classifyInvokeText', data) |
| | | this.CurrentCell.classifyInvokeText = data; |
| | | this.injectHandleReset() |
| | | }else { |
| | | //勾选操作 |
| | | for (const key in this.injectOption) { |
| | | this.attrSelectList[0][key] = this.injectOption[key]; |
| | |
| | | this.$set(this.attrSelectList[0],'classifyInvokeText',data) |
| | | } |
| | | this.injectHandleReset() |
| | | } |
| | | |
| | | if(this.injectOption.classifyInvokeLevel !== 'min'){ |
| | | this.injectOption.classifyInvokeLevel=this.injectOption.classifyNumber; |
| | | }else { |