|
|
@ -30,7 +30,7 @@ |
|
|
|
<el-table ref="rightTable" v-loading="table.right.loading" :data="table.right.data" style="min-width: 100%;" height="calc(100vh - 302px)" @selection-change="(val)=>selectionChangeHandler(val,'right')" @row-click="(row,column,e)=>clickRowHandler(row,column,e,'rightTable')"> |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<el-table-column type="index" label="序号" width="55" align="center" /> |
|
|
|
<el-table-column prop="filedCnName" label="组成字段" align="center" /> |
|
|
|
<el-table-column prop="fieldCnName" label="组成字段" align="center" /> |
|
|
|
<el-table-column prop="connector" label="组成符号" align="center" /> |
|
|
|
</el-table> |
|
|
|
<!--表单渲染--> |
|
|
@ -134,12 +134,12 @@ export default { |
|
|
|
Vue.set(item, 'categoryId', this.selectedCategory.id) |
|
|
|
}) |
|
|
|
this.$refs.cuform.title = '新增字段' |
|
|
|
this.$refs.cuform.formData.fields = this.table.left.selections |
|
|
|
Vue.set(this.$refs.cuform.formData, 'fields', JSON.parse(JSON.stringify(this.table.left.selections))) |
|
|
|
this.$refs.cuform.cuDialogVisible = true |
|
|
|
}, |
|
|
|
toEdit() { |
|
|
|
this.$refs.cuform.title = '编辑字段' |
|
|
|
this.$refs.cuform.formData.fields = this.table.right.selections |
|
|
|
Vue.set(this.$refs.cuform.formData, 'fields', JSON.parse(JSON.stringify(this.table.right.selections))) |
|
|
|
this.$refs.cuform.cuDialogVisible = true |
|
|
|
}, |
|
|
|
toDelete() { |
|
|
|