类型管理新增优化
This commit is contained in:
parent
9f51c9860d
commit
5ece3f4368
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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`, //王
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue