Browse Source

门类管理 bug修改

master
z_yu 3 years ago
parent
commit
6543171055
  1. 3
      src/views/category/index.vue
  2. 2
      src/views/category/sortDialog.vue

3
src/views/category/index.vue

@ -149,6 +149,9 @@ export default {
this.crud.selectionChangeHandler([val]) this.crud.selectionChangeHandler([val])
this.$refs.eform.pid = val.id this.$refs.eform.pid = val.id
this.selectedCategory = val this.selectedCategory = val
if (val.isType === 1 || val.isType === 2) {
this.changeActiveTab(0)
}
} }
}, },
updateKeyChildren(data) { updateKeyChildren(data) {

2
src/views/category/sortDialog.vue

@ -7,7 +7,7 @@
<i class="drag-tip">提示请通过拖动鼠标来调整当前顺序</i> <i class="drag-tip">提示请通过拖动鼠标来调整当前顺序</i>
<el-table :data="sortTableData" class="category-sort" style="width: 100%;max-height: 70vh;" row-key="id"> <el-table :data="sortTableData" class="category-sort" style="width: 100%;max-height: 70vh;" row-key="id">
<el-table-column type="index" label="序号" width="100" align="center" /> <el-table-column type="index" label="序号" width="100" align="center" />
<el-table-column prop="dicName" label="门类名称" />
<el-table-column prop="cnName" label="门类名称" />
</el-table> </el-table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click.native="handleSort">保存</el-button> <el-button type="primary" @click.native="handleSort">保存</el-button>

Loading…
Cancel
Save