From b4c27cf4af545af1a240f56d34702d38a783062d Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期二, 12 十二月 2023 17:22:45 +0800 Subject: [PATCH] 添加分类重复验证 --- admin-web/src/views/foundation/classification/index.vue | 21 +++++---------------- 1 files changed, 5 insertions(+), 16 deletions(-) diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue index 46e7eb7..115890d 100644 --- a/admin-web/src/views/foundation/classification/index.vue +++ b/admin-web/src/views/foundation/classification/index.vue @@ -114,9 +114,9 @@ }, // 鍒椾俊鎭� columns: [ - { title: '鍒嗙被鍚嶇О', field: 'categoryName', align: 'center' }, - { title: '绫诲埆', field: 'classification', align: 'left' }, - { title: '鏄剧ず椤哄簭', field: 'orderNumber', align: 'center', width: '80px' }, + { title: '鍒嗙被鍚嶇О', field: 'categoryName', align: 'left', minWidth: 140 }, + { title: '绫诲埆', field: 'classification', align: 'center', width: 100 }, + { title: '鏄剧ず椤哄簭', field: 'orderNumber', align: 'center', width: 100 }, { field: 'states', title: '鐘舵��', @@ -149,7 +149,7 @@ // 鎿嶄綔淇℃伅 operation: { show: true, // 鏄剧ず鎿嶄綔鍒� - width: '150', // 鍒楀 + width: '160', // 鍒楀 attr: [ { title: '缂栬緫', @@ -207,14 +207,8 @@ // 宸︿晶鏍戝垵濮嬪寲 initTreeData() { getTree().then((res) => { - console.log(res, 'restree'); - console.log(this.importSetting, 'this.importSetting'); const content = res || []; - // this.treeDataList.splice(0, this.treeDataList.length) this.treeDataList = content; - // if (content.length > 0) { - // this.importSetting.fileSettings.data = {pid: content[0].id} - // } }); }, updState(row) { @@ -240,14 +234,11 @@ }) .then((res) => { this.$message.success('鍒犻櫎鎴愬姛锛�'); - this.search(); + this.refreshData(); }) .catch(() => {}); }, showAdd() { - // if (!this.editSetting.orgId) { - // this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯') - // } else { if (this.p && this.p) { this.editSetting.pid = this.p.id; } @@ -255,7 +246,6 @@ this.editSetting.info = null; this.editSetting.title = '鏂板'; this.editSetting.show = true; - // } }, showAudit(row) { this.editSetting.id = row.id; @@ -264,7 +254,6 @@ this.editSetting.show = true; }, nodeClick(param) { - console.log(param, 'param'); param = param || {}; this.p = Object.assign( {}, -- Gitblit v1.9.1