From 35738d1b2c095b2eca0211efdc4fa59507189e6f Mon Sep 17 00:00:00 2001 From: zhy <luhan1008611> Date: 星期一, 30 十月 2023 09:33:34 +0800 Subject: [PATCH] feat: 基础信息 --- admin-web/src/views/foundation/classification/index.vue | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue index 026e52c..3d942fa 100644 --- a/admin-web/src/views/foundation/classification/index.vue +++ b/admin-web/src/views/foundation/classification/index.vue @@ -38,8 +38,7 @@ import edit from './edit' import * as finsystenant from '@/api/baseSetting/finsystenant' import myImport from '@/views/components/myImport' -import {updStatus} from "@/api/baseSetting/finsystenant"; -import {getBaseUrl, getUploadUrl} from '@/utils/base'; +import {getBaseUrl} from '@/utils/base'; export default { name: "index", @@ -55,7 +54,7 @@ tenantId: null, userName: null, userPhone: null, - status: 1 + states: 1 }, // 瀵煎叆 importSetting: { @@ -85,7 +84,7 @@ table: { showIndex: true, // 鏄惁鏄剧ず搴忓彿 expand: false, // 鏄惁鏄剧ず璇︽儏鏁版嵁 - url: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/select/list', // 璇锋眰鍦板潃 + url: SettingIplatform.apiBaseURL + '/pc/base/category/list', // 璇锋眰鍦板潃 // 宸ュ叿鏉� tools: { columnsCtrl: {// 鍒楁帶鍒舵寜閽� @@ -106,9 +105,9 @@ }, // 鍒椾俊鎭� columns: [ - {title: '鍒嗙被鍚嶇О', field: 'category_Name', align: 'center'}, + {title: '鍒嗙被鍚嶇О', field: 'categoryName', align: 'center'}, {title: '绫诲埆', field: 'classification', align: 'left'}, - {title: '鏄剧ず椤哄簭', field: 'order_Number', align: 'center', width: '80px'}, + {title: '鏄剧ず椤哄簭', field: 'orderNumber', align: 'center', width: '80px'}, { field: 'states', title: '鐘舵��', @@ -116,7 +115,7 @@ width: 100, switch: row => { const result = {} - if (row.status == 1) { + if (row.states == 1) { Object.assign(result, { value: true, // 寮� label: '鏄�', // 寮�鐨勬弿杩� @@ -200,13 +199,13 @@ }, updState(row) { let vm = this - let text = row.status == 0 ? "鍚敤" : "绂佺敤"; - vm.$modal.confirm('纭瑕�' + text + '"' + row.name + '"鍚楋紵').then(function () { + let text = row.states == 0 ? "鍚敤" : "绂佺敤"; + vm.$modal.confirm('纭瑕�' + text + '"' + row.categoryName + '"鍚楋紵').then(function () { let params = Object.assign({}, row) - params.status = row.status == 1 ? 0 : 1 + params.states = row.states == 1 ? 0 : 1 finsystenant.edit(params).then(res => { if (res) { - row.status = row.status === 1 ? 0 : 1 + row.states = row.states === 1 ? 0 : 1 vm.$modal.msgSuccess(text + "鎴愬姛"); vm.search() } @@ -215,7 +214,7 @@ }, del(row) { this.$modal - .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.name + '"鐨勬満鏋勫悧锛�') + .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.categoryName + '"鐨勬満鏋勫悧锛�') .then(function () { finsystenant.del({id: row.id}).then((res) => { }); -- Gitblit v1.9.1