From 87f07e589fb1c8103513a5fcc8febe3b14f5535f Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 17:30:46 +0800 Subject: [PATCH] feat: 1、图片预览使用半路径 2、部门物品退回详情 --- admin-web/src/views/foundation/classification/index.vue | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue index 6913db5..46e7eb7 100644 --- a/admin-web/src/views/foundation/classification/index.vue +++ b/admin-web/src/views/foundation/classification/index.vue @@ -17,7 +17,12 @@ </el-col> </el-row> <!--娣诲姞/缂栬緫寮圭獥--> - <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="refreshData" /> + <edit + v-if="editSetting.show" + :setting="editSetting" + @close="editSetting.show = false" + @search="refreshData" + /> </el-card> </el-container> </el-container> @@ -37,11 +42,10 @@ import items from './items'; import edit from './edit'; import * as finsystenant from '@/api/baseSetting/finsystenant'; -import { getTree } from '@/api/foudation/classification'; +import {getTree} from '@/api/foudation/classification'; import myImport from '@/views/components/myImport'; -import { getBaseUrl } from '@/utils/base'; -import {getType} from '@/api/system/dict/type' -import {getDicts} from '@/api/system/dict/data' +import {getBaseUrl} from '@/utils/base'; +import {getDicts} from '@/api/system/dict/data'; export default { name: 'index', @@ -178,13 +182,13 @@ // 鑾峰彇鏈烘瀯鏍� this.initTreeData(); // 绫诲埆瀛楀吀 - getDicts('GOODS_PRICE').then(res=>{ - this.items[1].options = res.map(v=>{ - v.label=v.dict_label - v.value=v.dict_value - return v - }) - }) + getDicts('GOODS_PRICE').then((res) => { + this.items[1].options = res.map((v) => { + v.label = v.dict_label; + v.value = v.dict_value; + return v; + }); + }); }, methods: { //瀵煎叆 @@ -241,15 +245,17 @@ .catch(() => {}); }, showAdd() { - if (!this.editSetting.orgId) { - this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯') - } else { - this.editSetting.pid = this.p.id; + // if (!this.editSetting.orgId) { + // this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯') + // } else { + if (this.p && this.p) { + this.editSetting.pid = this.p.id; + } this.editSetting.id = null; this.editSetting.info = null; this.editSetting.title = '鏂板'; this.editSetting.show = true; - } + // } }, showAudit(row) { this.editSetting.id = row.id; @@ -280,14 +286,14 @@ // 鏌ヨtable鍒楄〃 search(pageNum) { if (pageNum != undefined) { - this.$refs.myTable.search({pageNum}); + this.$refs.myTable.search({ pageNum }); } else { this.$refs.myTable.search(); } }, refreshData() { - this.initTreeData() - this.search() + this.initTreeData(); + this.search(); }, fifterForm(params) { this.filterFrom = Object.assign(this.filterFrom, params); -- Gitblit v1.9.1