| | |
| | | <el-input v-model="TreeAddform.codeKeyAttrRepeatOidName" autocomplete="off" style="width: 585px" |
| | | @focus="Keyfouce"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="是否参与关键属性校验:" label-width="170px"> |
| | | <el-switch |
| | | v-model="TreeAddform.codeKeyAttrValue" |
| | | active-text="是" |
| | | inactive-text="否" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | @change="switchChange"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="相似查询规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.codeResembleRuleOidName" autocomplete="off" style="width: 585px" |
| | | @focus="simFouce"></el-input> |
| | |
| | | //编码规则 |
| | | codeRuleOidName: "", |
| | | //存储的业务类型 |
| | | btmTypeName: "" |
| | | btmTypeName: "", |
| | | codeKeyAttrValue:true, |
| | | isParticipateCheck:1 |
| | | }, |
| | | rules: { |
| | | id: [ |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | // switch |
| | | switchChange(){ |
| | | this.TreeAddform.isParticipateCheck = this.TreeAddform.codeKeyAttrValue === true ? 1 : 0; |
| | | // console.log(this.TreeAddform.isParticipateCheck) |
| | | }, |
| | | //存储的业务类型关闭 |
| | | BtmEscHandler() { |
| | | this.SelectFInd = ''; |
| | |
| | | }, |
| | | //树节点取消事件 |
| | | TreeEscHandler() { |
| | | this.TreeAddform = {}; |
| | | for (let key in this.TreeAddform) { |
| | | if (key !== 'codeKeyAttrValue' && key !== 'isParticipateCheck') { |
| | | this.TreeAddform[key] = ""; |
| | | } |
| | | } |
| | | this.TreeAddform.codeKeyAttrValue = true; |
| | | this.TreeAddform.isParticipateCheck = 1; |
| | | this.TreeAddFormVisible = false; |
| | | // 关闭弹窗清空校验 |
| | | this.$refs.myForm.clearValidate(); |
| | |
| | | }); |
| | | Object.keys(this.TreeAddform).forEach(key => { |
| | | this.TreeAddform[key] = ""; |
| | | this.TreeAddform.codeKeyAttrValue = true; |
| | | this.TreeAddform.isParticipateCheck = 1; |
| | | }); |
| | | this.getAttr(); |
| | | this.TreeAddFormVisible = false; |
| | |
| | | this.crudOid = '' |
| | | } |
| | | this.TreeList = res3.data.data; |
| | | if(this.TreeList.isParticipateCheck === null || this.TreeList.isParticipateCheck === undefined ||this.TreeList.isParticipateCheck === ""){ |
| | | this.$set(this.TreeList,"isParticipateCheck",1) |
| | | return |
| | | } |
| | | } catch (error) { |
| | | this.$message.error(error); |
| | | } |