| | |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 存储的业务类型--> |
| | | <el-dialog :visible.sync="BtmdialogVisible" title="为【相似项查询规则】选取值" append-to-body> |
| | | <el-dialog :visible.sync="BtmdialogVisible" title="为【业务类型】选取值" append-to-body> |
| | | <template> |
| | | <el-select v-model="SelectValue" placeholder="请选择" style="width: 135px !important;"> |
| | | <el-option |
| | |
| | | import {TreeEditSave} from '@/api/template/templateAttr' |
| | | export default { |
| | | name: "classifyTreeform.vue", |
| | | props: ['loneTreeNewForm','flag','Editclose'], |
| | | props: ['loneTreeNewForm','flag','Editclose','TreeFlag'], |
| | | data() { |
| | | return { |
| | | SelectFInd:"", |
| | |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'btmtypeid', |
| | | prop: 'id', |
| | | labelWidth:135, |
| | | readonly: true, |
| | | disabled: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类编号", |
| | |
| | | { |
| | | label: '主题库/分类名称', |
| | | prop: 'name', |
| | | readonly: true, |
| | | disabled: true, |
| | | labelWidth:135, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | label:"描述", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label: '存储的业务类型', |
| | | prop: 'btmtypename', |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'btmtypeid', |
| | | prop: 'id', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | prop: 'btmtypename', |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | readonly: true, |
| | | hide:this.TreeFlag, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | focus:this.CodeFoucus |
| | | focus:this.CodeFoucus, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | focus:this.Keyfouce |
| | | focus:this.Keyfouce, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | focus: this.simFouce |
| | | focus: this.simFouce, |
| | | readonly: true, |
| | | }, |
| | | |
| | | ] |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | watch:{ |
| | | // TreeFlag:{ |
| | | // handler(newval){ |
| | | // const falg=newval; |
| | | // this.findObject(this.) |
| | | // } |
| | | // } |
| | | }, |
| | | methods: { |
| | | submits(form,done){ |
| | |
| | | this.MasterdialogVisible=false; |
| | | this.masterSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'coderuleoidName',this.masterName) |
| | | this.$set(this.loneTreeNewForm,'coderuleOid',this.masterOid) |
| | | this.$set(this.loneTreeNewForm,'coderuleoid',this.masterOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | console.log(this.loneTreeNewForm) |
| | | // console.log(this.loneTreeNewForm) |
| | | } |
| | | }, |
| | | //编码多选 |
| | |
| | | this.masterSelectList=row; |
| | | this.masterName=row[0].name; |
| | | this.masterOid=row[0].oid; |
| | | console.log('oid',this.oid) |
| | | // console.log('oid',this.oid) |
| | | }, |
| | | //编码接口 |
| | | MasterdefaultRend(masterParameter){ |
| | |
| | | this.masterData=res.data.records; |
| | | }) |
| | | }, |
| | | // 关键属性失焦 |
| | | //关键属性失焦 |
| | | Keyfouce(){ |
| | | this.KeydialogVisible=true; |
| | | this.KeydefaultRend() |
| | |
| | | }else { |
| | | this.KeydialogVisible=false; |
| | | this.KeySelectLIst=[] |
| | | this.$set(this.loneTreeNewForm,'codeResembleRuleOidName',this.simName) |
| | | this.$set(this.loneTreeNewForm,'codeResembleRuleOid',this.simOid) |
| | | this.$set(this.loneTreeNewForm,'codekeyattrrepeatoidName',this.KeyName) |
| | | this.$set(this.loneTreeNewForm,'codekeyattrrepeatoid',this.KeyOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | console.log(this.loneTreeNewForm) |
| | | } |
| | | }, |
| | | //关键属性查询 |
| | |
| | | this.KeyData=res.data.records; |
| | | }) |
| | | }, |
| | | // 关键多选 |
| | | //关键多选 |
| | | KeySelect(row){ |
| | | this.KeySelectLIst=row; |
| | | this.KeyName=row[0].name; |
| | | this.KeyOid=row[0].oid; |
| | | }, |
| | | // 相似项失焦 |
| | | //相似项失焦 |
| | | simFouce(){ |
| | | this.SimidialogVisible=true; |
| | | this.simdefaultRend() |
| | |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | // 相似项多选 |
| | | //相似项多选 |
| | | simSelect(row){ |
| | | this.simSelectList=row; |
| | | this.simName=row[0].name; |
| | |
| | | this.BtmdialogVisible=true; |
| | | this.btmdefaultRend() |
| | | }, |
| | | // 业务类型确定 |
| | | //业务类型确定 |
| | | btmHandlerClick(){ |
| | | if(this.btmSelectList.length>1){ |
| | | this.$message.warning('只能选择一条数据') |
| | | }else if(this.btmSelectList.length<=0){ |
| | | this.$message.warning('请选择一条数据') |
| | | }else { |
| | | this.SimidialogVisible=false; |
| | | this.simSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'btmtypename',this.btmName) |
| | | this.$set(this.loneTreeNewForm,'btmtypeoid',this.btmOid) |
| | | this.BtmdialogVisible=false; |
| | | this.btmSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'btmtypename',this.btmName ||this.btmOid) |
| | | this.$set(this.loneTreeNewForm,'btmtypeid',this.btmOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | } |
| | | }, |
| | |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | // 业务类型多选 |
| | | //业务类型多选 |
| | | btmSelect(row){ |
| | | this.btmSelectList=row; |
| | | this.btmName=row[0].name; |
| | |
| | | //业务类型接口 |
| | | btmdefaultRend(masterParameter){ |
| | | referDataGrid({valueField:'id',isMuti:'false',...masterParameter}).then(res=>{ |
| | | console.log(res) |
| | | // console.log(res) |
| | | this.BtmData=res.data.data.records |
| | | }) |
| | | } |