| | |
| | | append-to-body |
| | | @close="closeSubmitDialog" |
| | | width="70%" |
| | | top="6vh" |
| | | style="height: 115vh;" |
| | | > |
| | | <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm" |
| | |
| | | <el-form-item label="中文名称" label-width="100px"> |
| | | <el-input v-model="btmType.name" :prefix-icon="icons.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="数据库表名" label-width="100px"> |
| | | <!-- <el-form-item label="数据库表名" label-width="100px"> |
| | | <el-input v-model="btmType.tableName" :prefix-icon="icons.tableName"></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="所属领域" label-width="100px" prop="domain" class="domainSelect"> |
| | | <el-select placeholder="请选择领域" v-model="btmType.bizDomain" :prefix-icon="icons.domain"> |
| | | <el-option v-for="item in domainOption" |
| | |
| | | watch: { |
| | | btmType: { |
| | | handler(newval, oldval) { |
| | | console.log('监听', newval, oldval) |
| | | // console.log('监听', newval, oldval) |
| | | }, |
| | | deep: true, |
| | | immediate: true |
| | |
| | | }, |
| | | // 添加业务类型 |
| | | submitBtmType() { |
| | | console.log(this.btmType); |
| | | // console.log(this.btmType); |
| | | if (!this.btmType.attributes){ |
| | | this.$message.warning("还没有为业务类型选择属性"); |
| | | return; |
| | |
| | | }, |
| | | // 列表编辑保存 |
| | | cellEditSave(row,index) { |
| | | // console.log("1111111111111111111111") |
| | | this.btmType.attributes[index].name = row.name |
| | | this.btmType.attributes[index].defaultValue = row.defaultValue; |
| | | this.btmType.attributes[index].description = row.description; |