fix: BUG修改

This commit is contained in:
kun 2024-04-13 22:51:12 +08:00
parent ca99c8283d
commit 9e1c45c6c6
10 changed files with 109 additions and 43 deletions

View File

@ -84,7 +84,7 @@ 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://182.90.224.237:51234' //郭圣雄远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈 // axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
@ -92,7 +92,7 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目 // axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目
// axios.defaults.baseURL = 'http://125.88.207.86:8088/'//中建四局线上(最新)地址 // axios.defaults.baseURL = 'http://125.88.207.86:8088/'//中建四局线上(最新)地址
// axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址 // axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:15551/'//测试地址 axios.defaults.baseURL = 'http://jxj.zhgdyun.com:15551/'//测试地址
} else if (process.env.NODE_ENV == 'debug') { } else if (process.env.NODE_ENV == 'debug') {

View File

@ -389,7 +389,7 @@ export default {
let routeUrl = ""; let routeUrl = "";
let type = this.$store.state.userInfo.accountType; let type = this.$store.state.userInfo.accountType;
// this.$store.commit("setProjectSn", value.projectSn); // this.$store.commit("setProjectSn", value.projectSn);
if (type == 5 || type == 6) { if (type == 5 || type == 6 || type == 10) {
window.open("/equipmentCenter.html#/equipmentCenterIndx", "_self"); window.open("/equipmentCenter.html#/equipmentCenterIndx", "_self");
window._paq.push(["trackEvent", "点击", "设备中台", "进入设备中台"]); window._paq.push(["trackEvent", "点击", "设备中台", "进入设备中台"]);
} else { } else {

View File

@ -141,6 +141,9 @@ export default {
}, },
created() { created() {
this.getGroupTreeData(); this.getGroupTreeData();
if(this.$store.state.projectSn){
this.selectedProjectSn = this.$store.state.projectSn
}
}, },
mounted() {}, mounted() {},
methods: { methods: {
@ -169,7 +172,7 @@ export default {
this.selectProject(item); this.selectProject(item);
}); });
} else { } else {
if (!this.selectedProjectSn || !this.$store.state.projectSn) { if (!this.selectedProjectSn || !this.$store.state.currentProDetail) {
// //
this.selectedProjectSn = obj.sn; this.selectedProjectSn = obj.sn;
// projectSn // projectSn
@ -182,7 +185,7 @@ export default {
// //
setTreeActive(){ setTreeActive(){
this.$nextTick(() => { this.$nextTick(() => {
let activeSn = this.selectedProjectSn || this.$store.state.projectSn let activeSn = this.$store.state.projectSn || this.selectedProjectSn
if(activeSn){ if(activeSn){
this.$refs.tree.setCurrentKey(activeSn); this.$refs.tree.setCurrentKey(activeSn);
} }

View File

@ -48,22 +48,22 @@ export default new Vuex.Store({
PAGESIZRS: [10, 20, 30, 50], PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL:' http://101.43.164.214:11111/upload/image/',// 百色 // UPLOADURL:' http://101.43.164.214:11111/upload/image/',// 百色
// FILEURL:' http://101.43.164.214:11111/image/',// 百色 // FILEURL:' http://101.43.164.214:11111/image/',// 百色
UPLOADURL:'http://192.168.34.221:9111/upload/image/',// 郭圣雄 // UPLOADURL:'http://192.168.34.221:9111/upload/image/',// 郭圣雄
FILEURL:'http://192.168.34.221:9111/image/',//郭圣雄 // FILEURL:'http://192.168.34.221:9111/image/',//郭圣雄
WORKFLOWURL: 'http://192.168.34.138:88/#/workspace/forms',//测试工作流地址(本地) // WORKFLOWURL: 'http://192.168.34.138:88/#/workspace/forms',//测试工作流地址(本地)
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试 // UPLOADURL:'http://jxj.zhgdyun.com:15551/upload/image',//测试
// FILEURL:'http://10.0.1.43:6023/image/',//测试 // FILEURL:'http://jxj.zhgdyun.com:15551/image/',//测试
// BASEURL: baseUrl BASEURL: baseUrl
// ? baseUrl ? baseUrl
// : window.location.protocol + "//" + window.location.host + "/", //正式环境 : window.location.protocol + "//" + window.location.host + "/", //正式环境
// UPLOADURL: UPLOADURL:
// window.location.protocol + window.location.protocol +
// "//" + "//" +
// 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://jxj.zhgdyun.com:9811/#/workspace/forms',//正式工作流地址 WORKFLOWURL: 'http://jxj.zhgdyun.com:9811/#/workspace/forms',//正式工作流地址
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------
// BASEURL: baseUrl // BASEURL: baseUrl
// ? baseUrl // ? baseUrl

View File

@ -71,7 +71,7 @@
<script> <script>
import vhead from "@/components/header"; import vhead from "@/components/header";
import { getProjectDetail } from "@/assets/js/api/baseInfo.js"; import { getProjectDetail } from "@/assets/js/api/baseInfo.js";
import { getProjectModuleList,getAllModuleApi } from "@/assets/js/api/jxjadmin.js"; import { getProjectModuleList,getAllModuleApi, getNewUserAllModulePageApi } from "@/assets/js/api/jxjadmin.js";
export default { export default {
name: "projectIndex", name: "projectIndex",
components: { vhead }, components: { vhead },
@ -325,22 +325,66 @@ var arr = this.$store.state.userInfo.menuAuthority.moduleList
}); });
}, },
getAllModule(half){ getAllModule(half){
getAllModuleApi({moduleType:2, styleType: this.$store.state.userInfo.styleType}).then(res => { // getAllModuleApi({moduleType:2, styleType: this.$store.state.userInfo.styleType}).then(res => {
if (res.success) { // if (res.success) {
var all = res.result // var all = res.result
// console.log(res) // // console.log(res)
all.forEach((element,index) => { // all.forEach((element,index) => {
all[index].operation=false // all[index].operation=false
half.forEach(element2 => { // half.forEach(element2 => {
if(element2.moduleId==element.moduleId){ // if(element2.moduleId==element.moduleId){
all[index].operation=true // all[index].operation=true
all[index].menuList=element2.menuList // all[index].menuList=element2.menuList
} // }
}); // });
}); // });
this.list=all // this.list=all
} // }
}) // })
//
if(this.$store.state.userInfo.accountType == 10){
getNewUserAllModulePageApi({
projectSn: this.$store.state.projectSn,
userId: this.$store.state.userInfo.userId,
moduleType: 2,
}).then((res) => {
if (res.success) {
var all = res.result.moduleList;
console.log("all", all);
all.forEach((element, index) => {
all[index].operation = false;
res.result.menuList.forEach((element2) => {
console.log(element2,77888)
if (element2.moduleId == element.moduleId) {
all[index].operation = true;
}
});
});
console.log("all111", all);
this.list = all;
}
});
} else {
getAllModuleApi({
moduleType: 2,
styleType: this.$store.state.userInfo.styleType,
}).then((res) => {
if (res.success) {
var all = res.result;
console.log("all", all);
all.forEach((element, index) => {
all[index].operation = false;
half.forEach((element2) => {
if (element2.moduleId == element.moduleId) {
all[index].operation = true;
all[index].menuList = element2.menuList;
}
});
});
this.list = all;
}
});
}
}, },
itemClick(item) { itemClick(item) {
console.log(item) console.log(item)

View File

@ -636,7 +636,7 @@ export default {
display: none; display: none;
} }
// //
/deep/.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{ /deep/.el-select-dropdown__item.hover,.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
background-color: #DEE7FF; background-color: #DEE7FF;
} }
// .vertical-radio-group .el-radio { // .vertical-radio-group .el-radio {

View File

@ -41,7 +41,7 @@
ref="refName" ref="refName"
> >
<img <img
v-if="iconType == 1 && item.moduleIcon" v-if="iconType == 1 && item.moduleIcon "
:src=" :src="
require('../../assets/images/menu/' + require('../../assets/images/menu/' +
item.moduleIcon + item.moduleIcon +
@ -337,11 +337,13 @@ export default {
}, },
// //
getAllModule(half) { getAllModule(half) {
console.log(666)
// //
if(this.$store.state.userInfo.accountType == 10){ if(this.$store.state.userInfo.accountType == 10){
getNewUserAllModulePageApi({ getNewUserAllModulePageApi({
projectSn: this.projectSn, projectSn: this.projectSn,
userId: this.$store.state.userInfo.userId userId: this.$store.state.userInfo.userId,
moduleType: 2,
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
var all = res.result.moduleList; var all = res.result.moduleList;
@ -349,6 +351,7 @@ export default {
all.forEach((element, index) => { all.forEach((element, index) => {
all[index].operation = false; all[index].operation = false;
res.result.menuList.forEach((element2) => { res.result.menuList.forEach((element2) => {
console.log(element2,77888)
if (element2.moduleId == element.moduleId) { if (element2.moduleId == element.moduleId) {
all[index].operation = true; all[index].operation = true;
} }

View File

@ -396,11 +396,13 @@ export default {
phone: "", phone: "",
email: "", email: "",
status: 0, status: 0,
parentId: "", parentId: obj.id,
} }
this.selectVal = obj.deptName;
this.groupDialogVisible = true; this.groupDialogVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addEditForm.clearValidate(); this.$refs.addEditForm.clearValidate();
this.$refs.groupTree.setCurrentKey(this.addEditForm.parentId);
}); });
}, },
edit(obj) { edit(obj) {
@ -447,6 +449,7 @@ export default {
if (result.success) { if (result.success) {
this.$message.success(result.message); this.$message.success(result.message);
this.getTableList(); this.getTableList();
this.getList();
} }
}); });
}) })
@ -466,6 +469,7 @@ export default {
if (result.success) { if (result.success) {
this.$message.success(result.message); this.$message.success(result.message);
this.getTableList(); this.getTableList();
this.getList();
this.groupDialogVisible = false; this.groupDialogVisible = false;
} }
}); });
@ -475,6 +479,7 @@ export default {
if (result.success) { if (result.success) {
this.$message.success(result.message); this.$message.success(result.message);
this.getTableList(); this.getTableList();
this.getList();
this.groupDialogVisible = false; this.groupDialogVisible = false;
} }
}); });
@ -608,4 +613,8 @@ export default {
padding-left: 22px; padding-left: 22px;
line-height: 15px; line-height: 15px;
} }
//
/deep/.el-select-dropdown__item.hover,.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
background-color: transparent;
}
</style> </style>

View File

@ -10,7 +10,7 @@
<el-table <el-table
class="tables" class="tables"
:data="tableList" :data="tableList"
height="calc(100% - 100px)" height="calc(100% - 50px)"
> >
<el-table-column <el-table-column
width="50" width="50"

View File

@ -98,11 +98,18 @@ export default {
if (all.length == 0) { if (all.length == 0) {
this.workSpaceShow = false; this.workSpaceShow = false;
return; return;
} else {
this.workSpaceShow = false;
all.forEach((element, index) => {
if (element.moduleName == "工作台") {
this.workSpaceShow = true;
}
});
} }
console.log("all", res.result); console.log("all", res.result);
all.forEach((element, index) => { all.forEach((element, index) => {
all[index].operation = false; all[index].operation = false;
if (element.moduleName == "工作流") { if (element.moduleName == "工作") {
element.menuList.forEach((element2) => { element.menuList.forEach((element2) => {
all[index].operation = true; all[index].operation = true;
responseMenuList.push({ responseMenuList.push({