类型管理新增优化

This commit is contained in:
bb_pan 2025-03-26 17:21:34 +08:00
parent 9f51c9860d
commit 5ece3f4368
2 changed files with 10 additions and 3 deletions

View File

@ -1006,6 +1006,7 @@ export default {
}, },
// - // -
handleNodeClick(data) { handleNodeClick(data) {
console.log('🚀 ~ handleNodeClick ~ data:', data)
this.queryParams.typeId = data.id this.queryParams.typeId = data.id
this.handleQuery() this.handleQuery()
}, },
@ -1253,6 +1254,8 @@ export default {
/* 树节点增加 */ /* 树节点增加 */
appendTreeNode(data) { appendTreeNode(data) {
console.log('🚀 ~ appendTreeNode ~ data:', data)
this.form.companyId = data.companyId
if (data.level === 3) { if (data.level === 3) {
this.reset() this.reset()
Object.assign(this.form, data) Object.assign(this.form, data)
@ -1269,6 +1272,7 @@ export default {
/* 树节点删除 */ /* 树节点删除 */
removeTreeNode(data) { removeTreeNode(data) {
// this.$message.success('--') // this.$message.success('--')
this.form.companyId = data.companyId
console.log(data, '删除时的数据源--') console.log(data, '删除时的数据源--')
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除数据项?')
@ -1283,6 +1287,7 @@ export default {
}, },
/* 树节点修改 */ /* 树节点修改 */
editTreeNode(data) { editTreeNode(data) {
this.form.companyId = data.companyId
console.log(data, '修改') console.log(data, '修改')
Object.assign(this.addFormParams, data) Object.assign(this.addFormParams, data)
this.addTitle = '修改' this.addTitle = '修改'
@ -1295,11 +1300,13 @@ export default {
const addParams = { const addParams = {
parentId: id, parentId: id,
typeName, typeName,
companyId: this.form.companyId,
}; };
const editParams = { const editParams = {
typeId: id, typeId: id,
typeName, typeName,
parentId, parentId,
companyId: this.form.companyId,
}; };
this.$refs["addFormParamsRef"].validate(async (valid) => { this.$refs["addFormParamsRef"].validate(async (valid) => {

View File

@ -38,15 +38,15 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://112.29.103.165:21626`, //线上环境-重庆 // target: `http://112.29.103.165:21626`, //线上环境-重庆
// target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由 // 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: `http://1.12.248.179:23028`,//线上环境-南网
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, // 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://10.40.92.81:28080`, //韩/
// target: `http://192.168.2.82: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.218:28080`, //福
// target: `http://192.168.2.118:28080`, //王 // target: `http://192.168.2.118:28080`, //王