| | |
| | | <div> |
| | | <avue-form v-model="loneTreeNewForm" :option="option" v-if="flag == 'renonly'"> |
| | | </avue-form> |
| | | <avue-form v-model="loneTreeNewForm" :option="options" @submit="submits" v-else-if="flag == 'edit'"> |
| | | <avue-form v-model="loneTreeNewForm" :option="this.options" @submit="submits" v-else-if="flag == 'edit'"> |
| | | </avue-form> |
| | | <div> |
| | | <!-- 编码规则--> |
| | |
| | | import {TreeEditSave} from '@/api/template/templateAttr' |
| | | export default { |
| | | name: "classifyTreeform.vue", |
| | | props: ['loneTreeNewForm','flag','Editclose','TreeFlag'], |
| | | props: ['loneTreeNewForm','flag','Editclose','TreeFlag','nodeClickList'], |
| | | data() { |
| | | return { |
| | | SelectFInd:"", |
| | |
| | | }, |
| | | ] |
| | | }, |
| | | options: { |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'id', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类编号", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label: '主题库/分类名称', |
| | | prop: 'name', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类名称", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"描述", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label: '存储的业务类型', |
| | | prop: 'btmtypename', |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | readonly: true, |
| | | hide:this.TreeFlag, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | focus:this.CodeFoucus, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | focus:this.Keyfouce, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | focus: this.simFouce, |
| | | readonly: true, |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | | FormList: {}, |
| | | masterSelectList:[], |
| | | KeySelectLIst:[], |
| | |
| | | btmSelectList:[] |
| | | } |
| | | }, |
| | | created() { |
| | | computed:{ |
| | | options(){ |
| | | return{ |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'id', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类编号", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label: '主题库/分类名称', |
| | | prop: 'name', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类名称", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"描述", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label: '存储的业务类型', |
| | | prop: 'btmtypename', |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | // readonly: true, |
| | | display:this.TreeFlag, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | focus:this.CodeFoucus, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | focus:this.Keyfouce, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | focus: this.simFouce, |
| | | readonly: true, |
| | | }, |
| | | |
| | | ] |
| | | |
| | | } |
| | | } |
| | | }, |
| | | watch:{ |
| | | // TreeFlag:{ |
| | | // handler(newval){ |
| | | // const falg=newval; |
| | | // this.findObject(this.) |
| | | // } |
| | | // } |
| | | nodeClickList:{ |
| | | handler(newval,oldval){ |
| | | console.log('newVal',newval,oldval) |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | }, |
| | | TreeFlag:{ |
| | | handler(newval,oldval){ |
| | | console.log('树状态',newval,oldval) |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | methods: { |
| | | submits(form,done){ |