| | |
| | | <template> |
| | | <div> |
| | | <avue-form v-model="loneTreeNewForm" :option="option" v-if="flag == 'renonly'"> |
| | | <avue-form v-model="loneTreeNewForm" :option="renonlyOption" v-if="flag == 'renonly'"> |
| | | </avue-form> |
| | | <avue-form v-model="loneTreeNewForm" :option="this.options" @submit="submits" v-else-if="flag == 'edit'"> |
| | | <avue-form v-model="loneTreeNewForm" :option="this.editOption" @submit="submits" v-else-if="flag == 'edit'"> |
| | | </avue-form> |
| | | <div> |
| | | <!-- 编码规则--> |
| | |
| | | name: "哈哈", |
| | | sex: "男" |
| | | }, |
| | | option: { |
| | | renonlyOption: { |
| | | submitBtn:false, |
| | | emptyBtn:false, |
| | | columnBtn:false, |
| | |
| | | } |
| | | }, |
| | | computed:{ |
| | | options(){ |
| | | editOption(){ |
| | | return{ |
| | | column: [ |
| | | { |
| | |
| | | prop: 'btmTypeName', |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | // readonly: true, |
| | | display:this.TreeFlag, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | prop:"codeKeyAttrRepeatOidName", |
| | | labelWidth:128, |
| | | focus:this.Keyfouce, |
| | | readonly: true, |
| | | change:(data)=>{ |
| | | if(data.value === ""){ |
| | | this.loneTreeNewForm.codeKeyAttrRepeatOid = "" |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | focus: this.simFouce, |
| | | readonly: true, |
| | | change:(data)=>{ |
| | | if(data.value === ""){ |
| | | this.loneTreeNewForm.codeResembleRuleOid = "" |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: '是否参与关键属性校验', |