Browse Source

门类管理 bug修正

master
z_yu 3 years ago
parent
commit
818de388d0
  1. 6
      src/views/category/fileNoFormat/index.vue
  2. 4
      src/views/category/listBrowsing/index.vue
  3. 4
      src/views/category/orderingRule/index.vue

6
src/views/category/fileNoFormat/index.vue

@ -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() {

4
src/views/category/listBrowsing/index.vue

@ -171,12 +171,12 @@ export default {
item.isDisplay = true
})
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() {

4
src/views/category/orderingRule/index.vue

@ -142,12 +142,12 @@ export default {
Vue.set(item, 'displayOrderBy', 'asc')
})
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() {

Loading…
Cancel
Save