From 5ece3f43680f6134629720f37c1385e7534b94a8 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 26 Mar 2025 17:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=AE=A1=E7=90=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/warehouseManage/machinery/type/index.vue | 7 +++++++ sgzb-ui/vue.config.js | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sgzb-ui/src/views/warehouseManage/machinery/type/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/type/index.vue index 5f28936f..662a6b9b 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/type/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/type/index.vue @@ -1006,6 +1006,7 @@ export default { }, // 节点单击事件 - 左侧树 handleNodeClick(data) { + console.log('🚀 ~ handleNodeClick ~ data:', data) this.queryParams.typeId = data.id this.handleQuery() }, @@ -1253,6 +1254,8 @@ export default { /* 树节点增加 */ appendTreeNode(data) { + console.log('🚀 ~ appendTreeNode ~ data:', data) + this.form.companyId = data.companyId if (data.level === 3) { this.reset() Object.assign(this.form, data) @@ -1269,6 +1272,7 @@ export default { /* 树节点删除 */ removeTreeNode(data) { // this.$message.success('删除--') + this.form.companyId = data.companyId console.log(data, '删除时的数据源--') this.$modal .confirm('是否确认删除数据项?') @@ -1283,6 +1287,7 @@ export default { }, /* 树节点修改 */ editTreeNode(data) { + this.form.companyId = data.companyId console.log(data, '修改') Object.assign(this.addFormParams, data) this.addTitle = '修改' @@ -1295,11 +1300,13 @@ export default { const addParams = { parentId: id, typeName, + companyId: this.form.companyId, }; const editParams = { typeId: id, typeName, parentId, + companyId: this.form.companyId, }; this.$refs["addFormParamsRef"].validate(async (valid) => { diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index 9702ee15..47ca0371 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -38,15 +38,15 @@ module.exports = { [process.env.VUE_APP_BASE_API]: { // target: `http://112.29.103.165:21626`, //线上环境-重庆 // target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由 - // target: `http://192.168.0.14:21624`, //测试环境 + target: `http://192.168.0.56:28080`, //测试环境 // target: `http://1.12.248.179:23028`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://z.csgmall.com.cn`, - target: `http://192.168.2.131:28080`, //超 + // target: `http://192.168.2.131:28080`, //超 // target: `http://10.40.92.81:28080`, //韩/ // target: `http://192.168.2.82:28080`,//旭/ - // target: `http://192.168.2.248:28080`, //帅 + // target: `http://192.168.0.96:28080`, //帅 // target: `http://192.168.2.218:28080`, //福 // target: `http://192.168.2.118:28080`, //王