fix: BUG修改

This commit is contained in:
kun 2024-05-01 02:33:41 +08:00
parent ab87d91fd7
commit 8b4e7bdc57
3 changed files with 24 additions and 15 deletions

View File

@ -84,9 +84,10 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL ='http://101.43.164.214:45011/' //上海优益(上海建工) // 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:28888/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地 // 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://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程 // axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈 // axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头 // axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
// axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目 // axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目

View File

@ -63,8 +63,6 @@ export default new Vuex.Store({
// window.location.host + // window.location.host +
// "/upload/image", //正式环境 // "/upload/image", //正式环境
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
// WORKFLOWURL: 'http://182.90.224.237:9811/#/workspace/forms',//测试平台工作流地址
// WORKFLOWURL: 'http://182.90.224.237:9814/#/workspace/forms',//鞍钢平台工作流地址
// WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址 // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址
// WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址 // WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------

View File

@ -300,21 +300,31 @@ export default {
console.log('获取角色配置的菜单',arr); console.log('获取角色配置的菜单',arr);
// var arr2 = []; // var arr2 = [];
console.log(arr); console.log(arr);
if (arr.length > 0) { // if (arr.length > 0) {
arr.forEach(element => { // arr.forEach(element => {
if (element.authorityId) { // if (element.authorityId) {
this.dataList.push(element.authorityId); // this.dataList.push(element.authorityId);
} // }
// else{ // // else{
// arr2.push(element.moduleId) // // arr2.push(element.moduleId)
// } // // }
}); // });
} // }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.tree.setCheckedKeys(this.dataList); this.$refs.tree.setCheckedKeys(this.getRelativeKeys(res.result));
}); });
}); });
}, },
// keys
getRelativeKeys(arr) {
let keysArr = [];
arr.map((item) => {
if (!item.hasSubList) {
keysArr.push(item.authorityId);
}
});
return keysArr;
},
// //
cancleBtn() { cancleBtn() {
this.Popup.power = false; this.Popup.power = false;