flx:修改特殊作业时间问题 app下载命名规范问题 安全履职修改为查所有子账号

This commit is contained in:
X_Rian 2024-06-18 15:47:09 +08:00
parent cea8ecc1e6
commit e6a5c74ff3
11 changed files with 79 additions and 19 deletions

View File

@ -55,20 +55,20 @@ export default new Vuex.Store({
// 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.126:88/#/workspace/forms", //罗峰工作流地址(本地) WORKFLOWURL: "http://192.168.34.175: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 : // baseUrl :
window.location.protocol + "//" + window.location.host + "/", //正式环境 // 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',//鞍钢平台工作流地址
WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址 // WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------
// BASEURL: baseUrl // BASEURL: baseUrl
// ? baseUrl // ? baseUrl

View File

@ -221,7 +221,9 @@ export default {
let arr = [] let arr = []
arr = JSON.parse(val) arr = JSON.parse(val)
arr.forEach(element => { arr.forEach(element => {
let url = this.$http.defaults.baseURL + 'xmgl/upload/getRenameFile?fileUrl=' + element.url + '&fileName=' + element.name const fileName = element.name.substring(0,element.name.lastIndexOf("."));
let url = this.$http.defaults.baseURL + 'xmgl/upload/getRenameFile?fileUrl=' + element.url + '&fileName=' + fileName
// console.log(url, fileName);
window.location.href = url; window.location.href = url;
}); });

View File

@ -1025,6 +1025,15 @@ import {
} from "@/assets/js/api/project.js"; } from "@/assets/js/api/project.js";
import { selectUserDevAuthorityByUserIdApi } from "@/assets/js/api/configManage"; import { selectUserDevAuthorityByUserIdApi } from "@/assets/js/api/configManage";
import comboForm from "./components/comboForm/comboForm.vue"; import comboForm from "./components/comboForm/comboForm.vue";
import mqtt from "mqtt";
var client = null;
const options = {
connectTimeout: 40000,
clientId: "mqttjs_" + Math.random().toString(16).substr(2, 8),
username: "root",
password: "123456",
clean: true,
};
export default { export default {
name: "temporary", name: "temporary",
components: { components: {
@ -1171,7 +1180,38 @@ export default {
this.getProjectSetting(); this.getProjectSetting();
this.getConfig(); this.getConfig();
}, },
mounted() {
client = mqtt.connect(mqttUrl, options);
this.mqttMSG();
},
methods: { methods: {
// mqtt
mqttMSG() {
// mqtt +"/#" +workerId
client.on("connect", (e) => {
// console.log(':', this.topicName + this.userId)
client.subscribe(this.topicName + this.userId, { qos: 0 }, (error) => {
if (!error) {
// console.log('12345')
} else {
console.log("订阅失败");
}
});
});
//
client.on("message", (topic, message) => {
// console.log(message);
this.getInfoList();
});
//
// client.on("reconnect", (error) => {
// console.log(":", error);
// });
//
client.on("error", (error) => {
console.log("连接失败:", error);
});
},
// //
// onBatchDeletion(){ // onBatchDeletion(){
// if (this.multipleSelection.length == 0) { // if (this.multipleSelection.length == 0) {

View File

@ -378,7 +378,7 @@ export default {
let that = this; let that = this;
let reqeustData = { let reqeustData = {
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
enterpriseId, enterpriseId: "",
}; };
getProjectChilderSystemUserListApi(reqeustData).then((res) => { getProjectChilderSystemUserListApi(reqeustData).then((res) => {
that.personList = res.result; that.personList = res.result;

View File

@ -1093,7 +1093,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime: [
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)

View File

@ -835,7 +835,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime: [
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)

View File

@ -550,8 +550,8 @@ export default {
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [ hotWorkExecutionTime: [
res.result.hotWorkExecutionBeginTime, res.result.hotWorkExecutionBeginTime ? res.result.hotWorkExecutionBeginTime : '',
res.result.hotWorkExecutionEndTime, res.result.hotWorkExecutionEndTime ? res.result.hotWorkExecutionEndTime : '',
], ],
firemanAndCertificateNo: val.firemanAndCertificateNo, firemanAndCertificateNo: val.firemanAndCertificateNo,
}; };

View File

@ -839,7 +839,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime:[
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)

View File

@ -835,7 +835,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime:[
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)

View File

@ -826,7 +826,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime: [
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)

View File

@ -770,7 +770,10 @@ export default {
...val, ...val,
...res.result, ...res.result,
// xzGasAnalyzeList: res.result.xzGasAnalyzeList, // xzGasAnalyzeList: res.result.xzGasAnalyzeList,
hotWorkExecutionTime: [res.result.workExecutionBeginTime, res.result.workExecutionEndTime] hotWorkExecutionTime: [
res.result.workExecutionBeginTime ? res.result.workExecutionBeginTime : '',
res.result.workExecutionEndTime ? res.result.workExecutionEndTime : ''
]
}; };
if (this.workDetail.fieldWorkingEnvironment) { if (this.workDetail.fieldWorkingEnvironment) {
this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment) this.workDetail.fieldWorkingEnvironment = JSON.parse(this.workDetail.fieldWorkingEnvironment)