Compare commits

..

No commits in common. "28a6a653871ca093cbcae4a8bca39781279c474f" and "da8f1f4c8eae67ed3174deb854449e3d428c9b9a" have entirely different histories.

9 changed files with 22 additions and 40 deletions

View File

@ -169,7 +169,17 @@
{ {
"path": "pages/eight_assignments/confined_space/gas/list", "path": "pages/eight_assignments/confined_space/gas/list",
"style": { "style": {
"navigationBarTitleText": "受限空间安全作业气体分析" "navigationBarTitleText": "受限空间安全作业气体分析",
"app-plus": {
"titleNView": {
"buttons": [{
"text": "新建",
"fontSize": "15",
"float": "right",
"width": "40px"
}]
}
}
} }
}, },
{ {

View File

@ -175,8 +175,8 @@ export default {
BOARD_INSTALL_TIME: '', BOARD_INSTALL_TIME: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_USER: '', WORK_USER: '',
WORK_LONGITUDE: '1', WORK_LONGITUDE: '',
WORK_LATITUDE: '1', WORK_LATITUDE: '',
MEDIUM: '', MEDIUM: '',
TEMPERATURE: '', TEMPERATURE: '',
PRESSURE: '', PRESSURE: '',

View File

@ -119,8 +119,8 @@ export default {
WORK_CONTENT: '', WORK_CONTENT: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '1', WORK_LONGITUDE: '',
WORK_LATITUDE: '1', WORK_LATITUDE: '',
WORK_USER: '', WORK_USER: '',
SPECIAL_WORK: '', SPECIAL_WORK: '',
RISK_IDENTIFICATION: '', RISK_IDENTIFICATION: '',

View File

@ -1,8 +1,5 @@
<template> <template>
<view class="content"> <view class="content">
<view v-if="isView !== '1'" class="flex-end padding" style="padding: 20upx;">
<u-button type="primary" text="添加" size="mini" class="bth-mini" @click="goToAdd"/>
</view>
<u-list v-if="list.length > 0"> <u-list v-if="list.length > 0">
<u-list-item v-for="(item, index) in list" :key="index"> <u-list-item v-for="(item, index) in list" :key="index">
<view class="flex-between main-title"> <view class="flex-between main-title">
@ -54,8 +51,7 @@ export default {
GAS_NAME4: '', GAS_NAME4: '',
EW_RU_TASK_ID: '', EW_RU_TASK_ID: '',
EW_RU_JOB_ID: '', EW_RU_JOB_ID: '',
list: [], list: []
isView: '0'
} }
}, },
onLoad(query) { onLoad(query) {
@ -65,7 +61,6 @@ export default {
this.GAS_NAME4 = query.GAS_NAME4; this.GAS_NAME4 = query.GAS_NAME4;
this.EW_RU_TASK_ID = query.EW_RU_TASK_ID; this.EW_RU_TASK_ID = query.EW_RU_TASK_ID;
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID; this.EW_RU_JOB_ID = query.EW_RU_JOB_ID;
this.isView = query.isView
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
@ -115,22 +110,8 @@ export default {
} }
} }
}) })
},
goToAdd() {
uni.$u.route({
url: '/pages/eight_assignments/confined_space/gas/add',
params: {
GAS_NAME1: this.GAS_NAME1,
GAS_NAME2: this.GAS_NAME2,
GAS_NAME3: this.GAS_NAME3,
GAS_NAME4: this.GAS_NAME4,
EW_RU_TASK_ID: this.EW_RU_TASK_ID,
EW_RU_JOB_ID: this.EW_RU_JOB_ID,
}
})
} }
}, },
} }
</script> </script>

View File

@ -132,8 +132,8 @@ export default {
CORP_NAME: '', CORP_NAME: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '1', WORK_LONGITUDE: '',
WORK_LATITUDE: '1', WORK_LATITUDE: '',
WORK_PLACE: '', WORK_PLACE: '',
WORK_CONTENT: '', WORK_CONTENT: '',
WORK_USER: '', WORK_USER: '',

View File

@ -50,7 +50,6 @@ export default {
let resData = await getHistoricalApprovalRecords({ let resData = await getHistoricalApprovalRecords({
EW_RU_TASK_ID: this.EW_RU_TASK_ID, EW_RU_TASK_ID: this.EW_RU_TASK_ID,
EW_RU_JOB_ID: this.EW_RU_JOB_ID, EW_RU_JOB_ID: this.EW_RU_JOB_ID,
postMethod:'application/json'
}); });
this.list = resData.list; this.list = resData.list;
}, },

View File

@ -21,7 +21,7 @@ export default {
}, },
methods: { methods: {
async fnGetData(taskId) { async fnGetData(taskId) {
let resData = await getTaskTechnologicalProcess({ID: taskId,postMethod:'application/json'}) let resData = await getTaskTechnologicalProcess({ID: taskId})
this.stepData = resData.list this.stepData = resData.list
} }
}, },

View File

@ -123,7 +123,7 @@ export default {
}, },
methods: { methods: {
async fnGetData(taskId) { async fnGetData(taskId) {
let resData = await getTaskInfo({EW_RU_TASK_ID: taskId,postMethod:'application/json'}) let resData = await getTaskInfo({EW_RU_TASK_ID: taskId})
this.form = resData.list.fromTrans this.form = resData.list.fromTrans
this.jobs = resData.list.jobs this.jobs = resData.list.jobs
this.questionnaires = resData.list.simpleQues[0] this.questionnaires = resData.list.simpleQues[0]

View File

@ -1,11 +1,10 @@
import refreshToken from "../api/refreshToken"; import refreshToken from "../api/refreshToken";
// let requestPath = 'http://192.168.0.102:8059/xgf_gwj_2.0/'; // 后台请求地址 // let requestPath = 'http://192.168.0.102:8059/xgf_gwj_2.0/'; // 后台请求地址
let requestPath = 'http://192.168.0.101:8059/xgf_gwj_2.0/'; // 后台请求地址 let requestPath = 'http://192.168.0.37:8058/xgf_gwj_2.0/'; // 后台请求地址
// let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址 // let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址 // let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
import store from '../store/index' import store from '../store/index'
import {setRefreshToken} from "../api/api";
function post(url, data) { function post(url, data) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@ -39,6 +38,7 @@ function post(url, data) {
uni.hideLoading(); uni.hideLoading();
} }
if (res.data.result === 'success') { if (res.data.result === 'success') {
refreshToken()
resolve(res.data) resolve(res.data)
} else { } else {
uni.showToast({ uni.showToast({
@ -146,11 +146,3 @@ function uploads(url, data) {
} }
export {post, upload, uploads} export {post, upload, uploads}
setInterval(async () => {
if (uni.getStorageSync('tokenTime') == null) return;
if (dayjs().diff(dayjs(uni.getStorageSync('tokenTime')), "minute") >= 0.5) {
uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss"))
await setRefreshToken();
}
}, 1000 * 60);