fix: BUG修改
This commit is contained in:
parent
df5e70fd4c
commit
1ef743dca5
@ -84,7 +84,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL ='http://101.43.164.214:45011/' //上海优益(上海建工)
|
||||
// axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
|
||||
// axios.defaults.baseURL ='http://192.168.34.221:9111/' //郭圣雄本地
|
||||
axios.defaults.baseURL ='http://192.168.34.221:9111/' //郭圣雄本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
// axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
|
||||
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
|
||||
@ -97,7 +97,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://47.93.215.234:9809/'//鞍钢正式地址(弃用)
|
||||
// axios.defaults.baseURL = 'http://42.180.188.17:9809/'//鞍钢正式地址
|
||||
// axios.defaults.baseURL = 'http://47.93.215.234:11211/'//鞍钢测试地址(弃用)
|
||||
axios.defaults.baseURL = 'http://42.180.188.17:11211/'//鞍钢测试地址
|
||||
// axios.defaults.baseURL = 'http://42.180.188.17:11211/'//鞍钢测试地址
|
||||
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:19814/'//测试地址
|
||||
|
||||
} else if (process.env.NODE_ENV == 'debug') {
|
||||
|
||||
@ -57,8 +57,8 @@ export default new Vuex.Store({
|
||||
WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地)
|
||||
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
|
||||
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
|
||||
// UPLOADURL:'http://jxj.zhgdyun.com:15551/upload/image',//测试
|
||||
// FILEURL:'http://jxj.zhgdyun.com:15551/image/',//测试
|
||||
// UPLOADURL:'http://42.180.188.17:11211/upload/image',//测试
|
||||
// FILEURL:'http://42.180.188.17:11211/image/',//测试
|
||||
|
||||
// BASEURL: baseUrl
|
||||
// ? baseUrl
|
||||
|
||||
@ -810,11 +810,34 @@ export default {
|
||||
}
|
||||
console.log(arr, 777888);
|
||||
this.$nextTick(() => {
|
||||
this.$refs.treeRef.setCheckedKeys(arr);
|
||||
this.$refs.treeRef.setCheckedKeys([]);
|
||||
arr.map((item) => {
|
||||
this.$refs.treeRef.setChecked(this.findNodeById(item),true);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
findNodeById(id) {
|
||||
function findNode(nodes, id) {
|
||||
for(let i = 0;i<nodes.length;i++){
|
||||
if (nodes[i].id === id) {
|
||||
return { node: nodes[i], hasChildren: !!nodes[i].children && nodes[i].children.length > 0 };
|
||||
}
|
||||
if (nodes[i].children && nodes[i].children.length > 0) {
|
||||
const found = findNode(nodes[i].children, id);
|
||||
if (found) return found;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
const result = findNode(this.treeDatas, id);
|
||||
if (!result.hasChildren) {
|
||||
return id;
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
},
|
||||
// configFn(item) {
|
||||
// this.companyDialog = true;
|
||||
// this.addEditForm = JSON.parse(JSON.stringify(item));
|
||||
@ -945,9 +968,9 @@ export default {
|
||||
const halfChecked = this.$refs.treeRef.getHalfCheckedNodes();
|
||||
const concatArr = checked.concat(halfChecked);
|
||||
let ids = [];
|
||||
concatArr.map(item => {
|
||||
ids.push(item.id)
|
||||
})
|
||||
concatArr.map((item) => {
|
||||
ids.push(item.id);
|
||||
});
|
||||
addOrEditUserEnterpriseApi({
|
||||
enterpriseId: ids.join(","),
|
||||
userId: this.addEditForm.userId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user