| | |
| | | children: 'childNodes', |
| | | }, |
| | | treeLoad: (node, resolve) => { |
| | | // console.log(node); |
| | | const params = { |
| | | 'conditionMap[dataType]': node.data.data, |
| | | 'conditionMap[parentId]': node.data.data, |
| | |
| | | // 选项表格行点击 |
| | | optionTableClick(row) { |
| | | this.optionRow = row; |
| | | console.log(row); |
| | | }, |
| | | |
| | | customOptionTableClick(row) { |
| | |
| | | |
| | | // 选项删除 |
| | | optionDeleteClickHandler(val) { |
| | | // console.log(this.optionRow); |
| | | if (val === 'dialog') { |
| | | this.customForm.itemKeyValueList.splice(this.customOptionRow.index,1); |
| | | } else { |
| | |
| | | this.$message.error('请选择一条数据进行保存'); |
| | | return; |
| | | } |
| | | // console.log(this.customAttrRow) |
| | | this.customForm.text = this.customAttrRow.id; |
| | | this.customAttrVisible = false; |
| | | }, |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | this.formList = this.formList.map(item => |
| | | item.text === this.form.text ? this.form : item |
| | | ); |
| | | console.log(this.formList); |
| | | |
| | | this.$message.success('应用成功'); |
| | | }, |
| | |
| | | return `${key}=${oids.join(',')}`; // 用 , 连接同一类型的 oid |
| | | }).join('&&'); // 最后用 && 连接不同类型 |
| | | |
| | | // console.log(resultString); |
| | | if (this.authType === 'attr') { |
| | | this.customForm.itemRight = resultString; |
| | | } else { |
| | | this.form.itemRight = resultString; |
| | | } |
| | | // this.form.itemRight = resultString; |
| | | this.authDialogClose(); |
| | | } |
| | | |