fix: 添加资料中心显示判断以及考试系统BUG修改以及数据校验同步列表刷新BUG修改以及质量和安全模块表单BUG修改以及雨量监测页面BUG修改

This commit is contained in:
kun 2024-06-29 16:23:18 +08:00
parent dddf5d9c9a
commit 67e6a0a01b
13 changed files with 119 additions and 37 deletions

View File

@ -148,7 +148,7 @@
<div <div
class="width_100" class="width_100"
@click="goto3" @click="goto3"
v-if="dataCenter1 != 1" v-if="$store.state.userInfo.systemLogoConfig.showFileCenter == 1"
:title="dataCenter" :title="dataCenter"
> >
<!-- <img src="@/assets/images/zlzx.png" width="15px" height="15px" /> --> <!-- <img src="@/assets/images/zlzx.png" width="15px" height="15px" /> -->
@ -210,7 +210,6 @@ export default {
COMPANY: COMPANY, COMPANY: COMPANY,
projectType: "", projectType: "",
loginData: "", loginData: "",
dataCenter1: 0,
seeEquipment: "", seeEquipment: "",
projectBackground: "项目后台", projectBackground: "项目后台",
enterpriseBackground: "企业后台", enterpriseBackground: "企业后台",
@ -236,7 +235,6 @@ export default {
this.projectType = PROJECT_TYPE; this.projectType = PROJECT_TYPE;
this.loginData = JSON.parse(localStorage.getItem("systemInfo")); this.loginData = JSON.parse(localStorage.getItem("systemInfo"));
this.seeEquipment = this.$store.state.userInfo.seeEquipment; this.seeEquipment = this.$store.state.userInfo.seeEquipment;
// this.getModuleList();
console.log("seeEquipment------", this.seeEquipment); console.log("seeEquipment------", this.seeEquipment);
console.log(" this.loginData===================", this.loginData); console.log(" this.loginData===================", this.loginData);
if (this.loginData.headerConfiguration != "") { if (this.loginData.headerConfiguration != "") {
@ -267,16 +265,6 @@ export default {
// console.log('',this.enterpriseBackground) // console.log('',this.enterpriseBackground)
}, },
methods: { methods: {
//
getModuleList() {
let allModuleList = this.$store.state.userInfo.menuAuthority.moduleList;
for(let i = 0;i<allModuleList.length;i++){
if(allModuleList[i].modulePath == '/companyAdmin/docManage'){ //
this.dataCenter1 = 0;
break;
}
}
},
// //
updatePw() { updatePw() {
this.$router.push({ this.$router.push({

View File

@ -52,18 +52,18 @@ export default new Vuex.Store({
// FILEURL:'http://182.90.224.237:51234/image/', // FILEURL:'http://182.90.224.237:51234/image/',
// UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地 // UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
// FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地 // FILEURL: "http://http://192.168.34.155:19111/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", //坤工作流地址(本地)
// WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地) // WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地)
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程 // UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程 // FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
// UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试 // UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试
// FILEURL: 'http://42.180.188.17:11211/image/', //测试 // FILEURL: 'http://42.180.188.17:11211/image/', //测试
BASEURL: baseUrl ? // BASEURL: baseUrl ?
baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境 // baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境
UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境 // UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
// // 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',//鞍钢测试平台工作流地址(弃用)
// WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms', //鞍钢平台工作流地址 // WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms', //鞍钢平台工作流地址

View File

@ -141,6 +141,21 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="12">
<el-col :span="6">
<el-form-item label="是否显示资料中心" prop="showFileCenter">
<el-switch
v-model="form.showFileCenter"
active-color="#13ce66"
inactive-color="#ff4949"
:active-value="1"
:inactive-value="0"
>
</el-switch>
{{ form.showFileCenter == 1 ? '是' : '否' }}
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="是否开启施工人员资质证书到期预警" prop="isOpenCertificateExpireWarn"> <el-form-item label="是否开启施工人员资质证书到期预警" prop="isOpenCertificateExpireWarn">
@ -299,6 +314,7 @@ export default {
projectBackground: '', // projectBackground: '', //
equipmentChina: '', // equipmentChina: '', //
dataCenter: '', // dataCenter: '', //
showFileCenter: 0, //
projectFront: '', // projectFront: '', //
isShowProjectFront: 0, // isShowProjectFront: 0, //
isOpenCertificateExpireWarn: 0, // isOpenCertificateExpireWarn: 0, //

View File

@ -147,6 +147,22 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="12">
<el-col :span="6">
<el-form-item label="是否显示资料中心" prop="showFileCenter">
<el-switch
v-model="form.showFileCenter"
active-color="#13ce66"
inactive-color="#ff4949"
:active-value="1"
:inactive-value="0"
@change='switchChange'
>
</el-switch>
{{ form.showFileCenter == 1 ? '是' : '否' }}
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="是否开启施工人员资质证书到期预警" prop="isOpenCertificateExpireWarn"> <el-form-item label="是否开启施工人员资质证书到期预警" prop="isOpenCertificateExpireWarn">
@ -339,6 +355,7 @@ export default {
certificateExpireWarnAheadDay: 0, // certificateExpireWarnAheadDay: 0, //
defaultApprovalCompanySn: "", // defaultApprovalCompanySn: "", //
dataCenter: '', // dataCenter: '', //
showFileCenter: 0, //
loginTimeOut:1, loginTimeOut:1,
zoomType:0, zoomType:0,

View File

@ -283,9 +283,10 @@ export default {
phoneNumber: [ phoneNumber: [
{ {
required: true, required: true,
message: "请输入", message: "请输入正确的手机号格式",
trigger: "blur", trigger: "blur",
}, pattern: /^1(3|4|5|6|7|8|9)\d{9}$/,
}
], ],
remark: [ remark: [
{ {

View File

@ -68,7 +68,7 @@
<el-button class="expintBtn" size="mini" type="primary" plain @click="editSuccess(scope.$index, scope.row)" v-if="scope.row.isEdit"> <el-button class="expintBtn" size="mini" type="primary" plain @click="editSuccess(scope.$index, scope.row)" v-if="scope.row.isEdit">
保存 保存
</el-button> </el-button>
<el-button class="expintBtn" size="mini" type="danger" @click="scope.row.isEdit = false" v-if="scope.row.isEdit"> <el-button class="expintBtn" size="mini" type="danger" @click="cancelData(scope.$index,scope.row)" v-if="scope.row.isEdit">
取消 取消
</el-button> </el-button>
</template> </template>
@ -217,6 +217,14 @@ export default {
}) })
}) })
}, },
//
cancelData(index,row){
if(row.id){
this.ruleList[index].isEdit = false;
} else {
this.ruleList.splice(index,1)
}
},
// //
getProgressListData() { getProgressListData() {
getExamPointListApi({ getExamPointListApi({

View File

@ -70,7 +70,8 @@
</el-tabs> </el-tabs>
<!-- v-loading="loading" --> <!-- v-loading="loading" -->
<el-table <el-table
ref="multipleTable" key="multipleTableValidate"
ref="multipleTableValidate"
class="tables" class="tables"
row-key="id" row-key="id"
:data="tableList" :data="tableList"
@ -234,6 +235,17 @@ export default {
// }, // },
// ]; // ];
}, },
beforeDestroy() {
// console.log(client)
if (client) {
client.unsubscribe(this.topicName + this.userId, options)
client.end()
}
client = null
console.log(client)
// client = null
// mqttX.unsubscribe(this.topicName + this.userId);
},
mounted() { mounted() {
this.userId = this.$store.state.userInfo.userId; this.userId = this.$store.state.userInfo.userId;
this.topicName = this.$store.state.userInfo.scope; this.topicName = this.$store.state.userInfo.scope;
@ -243,6 +255,7 @@ export default {
methods: { methods: {
// mqtt // mqtt
mqttMSG() { mqttMSG() {
let that = this;
// mqtt +"/#" +workerId // mqtt +"/#" +workerId
client.on("connect", (e) => { client.on("connect", (e) => {
// console.log(':', this.topicName + this.userId) // console.log(':', this.topicName + this.userId)
@ -335,6 +348,9 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.tableList = res.result.records; this.tableList = res.result.records;
// this.$set(this, 'tableList', res.result.records);
// this.tableList.length = 0;
// this.tableList.push(...res.result.records);
this.pagInfo.total = res.result.total; this.pagInfo.total = res.result.total;
if ( if (
+res.result.total > +res.result.total >
@ -348,7 +364,6 @@ export default {
this.pagInfo.pageSize = +res.result.total; this.pagInfo.pageSize = +res.result.total;
} }
} }
this.$forceUpdate();
} }
}) })
.finally(() => { .finally(() => {
@ -360,7 +375,7 @@ export default {
handleClick(val) { handleClick(val) {
// console.log(val.name); // console.log(val.name);
this.activeName = val.name; this.activeName = val.name;
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTableValidate.clearSelection();
this.pageSizeList = JSON.parse( this.pageSizeList = JSON.parse(
JSON.stringify(this.$store.state.PAGESIZRS) JSON.stringify(this.$store.state.PAGESIZRS)
); );
@ -392,6 +407,26 @@ export default {
this.getHikvisionPage(); this.getHikvisionPage();
}, },
}, },
computed: {
msgObj() { //
const { tableList, activeName } = this;
return {
tableList,
activeName,
};
},
},
// watch: {
// msgObj: {
// handler(newVal, oldVal) {
// //
// if (newVal.activeName == oldVal.activeName && JSON.stringify(newVal.tableList) != JSON.stringify(oldVal.tableList)) {
// this.getHikvisionPage();
// }
// },
// deep: true,
// },
// },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

View File

@ -110,8 +110,8 @@
</el-form> </el-form>
</div> </div>
<div class="table_wrap whiteBlock"> <div class="table_wrap whiteBlock">
<vue-scroll> <vue-scroll style="height: 580px;">
<el-table height="650" class="tables" :data="listData" lazy row-key="id" default-expand-all <el-table class="tables" :data="listData" lazy row-key="id" default-expand-all
:tree-props="{ children: 'children' }"> :tree-props="{ children: 'children' }">
<el-table-column width="200" prop="taskName" label="分部分项工程名称" style="display: flex;align-items: center;"> <el-table-column width="200" prop="taskName" label="分部分项工程名称" style="display: flex;align-items: center;">
<template slot-scope="scope"> <template slot-scope="scope">
@ -571,7 +571,6 @@ export default {
this.downUrl = this.downUrl =
this.$http.defaults.baseURL + "xmgl/progressTask/downloadTemplate"; this.$http.defaults.baseURL + "xmgl/progressTask/downloadTemplate";
this.getCrewListData(); this.getCrewListData();
this.getPositionList();
this.getHierarchyEnterpriseList(); this.getHierarchyEnterpriseList();
this.getTreeList(); this.getTreeList();
}, },
@ -618,6 +617,10 @@ export default {
}).then((result) => { }).then((result) => {
if (result.success) { if (result.success) {
this.treeList = result.result; this.treeList = result.result;
if(result.result.length > 0){
this.treeData = result.result[0]
}
this.getPositionList();
} }
}); });
}, },
@ -626,6 +629,7 @@ export default {
console.log(data); console.log(data);
this.treeData = data; this.treeData = data;
this.getProgressListData(); this.getProgressListData();
this.getPositionList();
}, },
// //
getHierarchyEnterpriseList() { getHierarchyEnterpriseList() {
@ -652,6 +656,7 @@ export default {
getPositionList() { getPositionList() {
let data = { let data = {
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
enterpriseId: this.treeData.enterpriseId
}; };
getQualityRegionListApi(data).then((res) => { getQualityRegionListApi(data).then((res) => {
console.log("res=================", res); console.log("res=================", res);
@ -1005,6 +1010,11 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.tables{
min-height: 0;
max-height: none;
height: auto;
}
.table-content { .table-content {
flex: 1; flex: 1;
} }

View File

@ -277,6 +277,7 @@ import { aiAnalyseHardWareRecordList } from "@/assets/js/api/equipmentCenter/ele
export default { export default {
data() { data() {
return { return {
COMPANY: COMPANY,
title: this.$t("message.quality.NewRootNode"), title: this.$t("message.quality.NewRootNode"),
dialogType: 1, dialogType: 1,
projectSn: "", projectSn: "",
@ -408,6 +409,11 @@ export default {
// //
editBtn(value) { editBtn(value) {
if (value.parentRegion && value.parentRegion != '0') {
this.form.parentRegion = value.parentRegion;
} else {
this.form.parentRegion = '0';
}
if (value.intendanceIds == "" || value.intendanceIds == null) { if (value.intendanceIds == "" || value.intendanceIds == null) {
this.form.intendanceIds = null; this.form.intendanceIds = null;
} else { } else {

View File

@ -3234,11 +3234,12 @@ export default {
// //
getReviewPeopleList(regionId) { getReviewPeopleList(regionId) {
this.addForm1.reviewId = ""; //
let data = { let data = {
projectSn: this.projectSn, projectSn: this.projectSn,
// enterpriseTypeId: 7, // enterpriseTypeId: 7,
// qualityRegionId: regionId[0].toString(), qualityRegionId: regionId[regionId.length - 1].toString(),
qualityRegionId: regionId.toString(), // qualityRegionId: regionId.toString(),
qualityRegionBindType: 2, qualityRegionBindType: 2,
isSupervisingRoleName: 1, isSupervisingRoleName: 1,
}; };

View File

@ -158,13 +158,11 @@ export default {
// return timer; // return timer;
}, },
refresh() { refresh() {
this.queryInfo = { this.queryInfo.deviceId = "";
deviceId: "",
};
this.time = []; this.time = [];
this.pagInfo.pageNo = 1; // this.pagInfo.pageNo = 1; //
this.pagInfo.pageSize = 10; // this.pagInfo.pageSize = 10; //
this.selectNowDate(); // this.selectNowDate();
this.getList(); this.getList();
}, },
query() { query() {

View File

@ -251,8 +251,9 @@ export default {
refresh() { refresh() {
this.pageNo = 1; this.pageNo = 1;
this.pageSize = 10; this.pageSize = 10;
this.devSn = "";
this.valueTime = []; this.valueTime = [];
this.selectNowDate(); // this.selectNowDate();
this.selectDustNoisePageList(); this.selectDustNoisePageList();
}, },
quertData() { quertData() {

View File

@ -3191,11 +3191,12 @@ export default {
// //
getReviewPeopleList(regionId) { getReviewPeopleList(regionId) {
this.addForm1.reviewId = ""; //
let data = { let data = {
projectSn: this.projectSn, projectSn: this.projectSn,
// enterpriseTypeId: 7, // enterpriseTypeId: 7,
// qualityRegionId: regionId[0].toString(), qualityRegionId: regionId[regionId.length - 1].toString(),
qualityRegionId: regionId.toString(), // qualityRegionId: regionId.toString(),
qualityRegionBindType: 2, qualityRegionBindType: 2,
isSupervisingRoleName: 1, isSupervisingRoleName: 1,
}; };