flx:修复危大

This commit is contained in:
Rain_ 2026-01-07 18:08:10 +08:00
parent 8227a9787e
commit a8f9665bf7
10 changed files with 37526 additions and 37505 deletions

View File

@ -72,7 +72,7 @@ export default {
}, },
onLoad() { onLoad() {
this.initSOSPolyfill() // this.initSOSPolyfill()
}, },
onUnload() { onUnload() {

View File

@ -45,16 +45,16 @@
}, },
created() { created() {
this.initData() this.initData()
this.getDEById() // this.getDEById()
this.getApply() // this.getApply()
}, },
onShow() { onShow() {
this.getApply() // this.getApply()
}, },
methods: { methods: {
initData() { initData() {
this.sendRequest({ this.sendRequest({
url: 'xmgl/bigDangerControlItem/selectControlItemList', url: 'xmgl/bigDangerChooseControlItem/selectControlItemList',
method: 'post', method: 'post',
data: { data: {
engineeringId: this.detailId, engineeringId: this.detailId,
@ -127,7 +127,7 @@
} }
console.log(data) console.log(data)
this.sendRequest({ this.sendRequest({
url: 'xmgl/bigDangerControlItem/edit', url: 'xmgl/bigDangerChooseControlItem/edit',
method: 'post', method: 'post',
data: data, data: data,
success: res => { success: res => {

View File

@ -18,9 +18,9 @@
:class="{'wkg-box':detailData.recordStatus == 1 || detailData.recordStatus == 4,'zs-box':detailData.recordStatus == 2,'wg-box':detailData.recordStatus == 3}"> :class="{'wkg-box':detailData.recordStatus == 1 || detailData.recordStatus == 4,'zs-box':detailData.recordStatus == 2,'wg-box':detailData.recordStatus == 3}">
{{ recordStatusUp(detailData.recordStatus) }} {{ recordStatusUp(detailData.recordStatus) }}
</view> </view>
<view class="state-box" <view class="state-box" v-if="detailData.securityStatus"
:class="{'wg-box':detailData.recordStatus == 2,'xgz-box':detailData.recordStatus == 3}"> :class="{'wg-box':detailData.securityStatus == 2,'xgz-box':detailData.securityStatus == 1}">
{{ recordStatusUp(detailData.recordStatus) }} {{ detailData.securityStatus == 1 ? '需关注' : '安全可控' }}
</view> </view>
</view> </view>
</view> </view>
@ -139,7 +139,7 @@
return { return {
statusBarHeight: 0, statusBarHeight: 0,
isShow: true, isShow: true,
componentName: "control", componentName: "",
navList: [{ navList: [{
id: 2, id: 2,
name: "工程资料" name: "工程资料"
@ -168,7 +168,7 @@
name: "管控要点" name: "管控要点"
}, },
], ],
activeIndex: 7, activeIndex: "",
detailId: "", detailId: "",
detailData: {}, detailData: {},
isShowBtn: null, isShowBtn: null,
@ -237,7 +237,10 @@
// this.listData = res.result.records // this.listData = res.result.records
// } // }
this.detailData = res.result this.detailData = res.result
this.getApply() this.getApply();
this.checkNav({
id: 2
});
} }
}) })
}, },
@ -308,7 +311,7 @@
} }
uni.navigateTo({ uni.navigateTo({
// url:'../safeManage/addExamine?type=1&engineeringId='+this.detailId + '&moduleType=safeCheck' // url:'../safeManage/addExamine?type=1&engineeringId='+this.detailId + '&moduleType=safeCheck'
url: '../safeSame/addIssue?type=1&engineeringId=' + this.detailId + '&moduleType=safeCheck' url: '../safeSame/addIssue?type=11&engineeringId=' + this.detailId + '&moduleType=safeCheck'
}) })
} else if (this.activeIndex == 6) { } else if (this.activeIndex == 6) {
uni.navigateTo({ uni.navigateTo({

View File

@ -3,14 +3,14 @@
<view class="fixedheader"> <view class="fixedheader">
<headers :showBack="true" :themeType="true"> <headers :showBack="true" :themeType="true">
<view class="headerName"> <view class="headerName">
隐患工单派发 危大工程
</view> </view>
</headers> </headers>
</view> </view>
<view class="search-box" :style="{paddingTop: mobileTopHeight + 44 + 'px'}"> <view class="search-box" :style="{paddingTop: mobileTopHeight + 44 + 'px'}">
<view class="uni-form-item"> <view class="uni-form-item">
<u-search class="uni-input" placeholder="请输入名称" :show-action="false" <u-search class="uni-input" placeholder="请输入名称" :show-action="false"
v-model="projectTypeName"></u-search> v-model="projectTypeName" @change="loadData"></u-search>
<view @click="dropdownBtnChange('')" class="search-btn"> <view @click="dropdownBtnChange('')" class="search-btn">
<image src="/static/riskPoint/screenIcon.png" mode=""></image> <image src="/static/riskPoint/screenIcon.png" mode=""></image>
</view> </view>
@ -30,9 +30,9 @@
:class="{'wkg-box':item.recordStatus == 1 || item.recordStatus == 4,'zs-box':item.recordStatus == 2,'wg-box':item.recordStatus == 3}"> :class="{'wkg-box':item.recordStatus == 1 || item.recordStatus == 4,'zs-box':item.recordStatus == 2,'wg-box':item.recordStatus == 3}">
{{ recordStatusUp(item.recordStatus) }} {{ recordStatusUp(item.recordStatus) }}
</view> </view>
<view class="state-box" <view class="state-box" v-if="item.securityStatus"
:class="{'wg-box':item.recordStatus == 2,'xgz-box':item.recordStatus == 3}"> :class="{'wg-box':item.securityStatus == 2,'xgz-box':item.securityStatus == 1}">
{{ recordStatusUp(item.recordStatus) }} {{ item.securityStatus == 1 ? '需关注' : '安全可控' }}
</view> </view>
</view> </view>
</view> </view>
@ -87,7 +87,7 @@
<view>安全情况</view> <view>安全情况</view>
<view> <view>
<view @click="onRiskLevelClick(item.id, 3)" <view @click="onRiskLevelClick(item.id, 3)"
:class="{'active': policeCameraInfo.riskLevel === item.id}" :class="{'active': policeCameraInfo.securityStatus === item.id}"
v-for="item in riskLevelList" :key="item.id">{{item.name}}</view> v-for="item in riskLevelList" :key="item.id">{{item.name}}</view>
</view> </view>
</view> </view>
@ -183,7 +183,7 @@
policeCameraInfo: { policeCameraInfo: {
effectiveTimeEnd_begin: "", effectiveTimeEnd_begin: "",
effectiveTimeBegin_end: "", effectiveTimeBegin_end: "",
riskLevel: "", securityStatus: "",
projectClassify: "", projectClassify: "",
recordStatus: "", recordStatus: "",
}, },
@ -295,6 +295,7 @@
safeControlDutyIdList: this.searchInfo.systemUserIds, safeControlDutyIdList: this.searchInfo.systemUserIds,
projectClassify: this.policeCameraInfo.projectClassify, projectClassify: this.policeCameraInfo.projectClassify,
recordStatus: this.policeCameraInfo.recordStatus, recordStatus: this.policeCameraInfo.recordStatus,
securityStatus: this.policeCameraInfo.securityStatus,
} }
this.sendRequest({ this.sendRequest({
url: 'xmgl/bigDangerRecord/page', url: 'xmgl/bigDangerRecord/page',
@ -352,7 +353,7 @@
const obj = { const obj = {
1: 'projectClassify', 1: 'projectClassify',
2: 'recordStatus', 2: 'recordStatus',
3: 'riskLevel', 3: 'securityStatus',
} }
if (this.policeCameraInfo[obj[type]] == rowId) { if (this.policeCameraInfo[obj[type]] == rowId) {
this.policeCameraInfo[obj[type]] = ""; this.policeCameraInfo[obj[type]] = "";
@ -442,7 +443,7 @@
this.policeCameraInfo = { this.policeCameraInfo = {
effectiveTimeEnd_begin: "", effectiveTimeEnd_begin: "",
effectiveTimeBegin_end: "", effectiveTimeBegin_end: "",
riskLevel: "", securityStatus: "",
projectClassify: "", projectClassify: "",
recordStatus: "", recordStatus: "",
}; };

View File

@ -355,7 +355,7 @@
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
projectSn: "", projectSn: "",
status: 2, // status: 2,
search: '', // search: '', //
}, },
teach: true, teach: true,
@ -987,7 +987,7 @@
data: { data: {
...that.condition, ...that.condition,
recordType: this.recordType, recordType: this.recordType,
type: 1, type: 11,
// type: 10, // type: 10,
engineeringId: this.engineeringId, engineeringId: this.engineeringId,
}, },

View File

@ -21,10 +21,8 @@
listData: [], listData: [],
} }
}, },
onLoad() { created() {
console.log("==============safeLis,detailIdt==============="); this.initData();
console.log(this.detailId);
console.log("==============safeList,detailId===============");
}, },
methods:{ methods:{
initData() { initData() {
@ -37,7 +35,7 @@
pageNo: 1, pageNo: 1,
pageSize: -1, pageSize: -1,
recordType: 2, recordType: 2,
type: -1, type: 11,
}, },
success: res => { success: res => {
uni.hideLoading() uni.hideLoading()

View File

@ -128,7 +128,7 @@
<view class="name"><text class="star" v-if="item.isRequired == 1">*</text>{{item.displayFieldName <view class="name"><text class="star" v-if="item.isRequired == 1">*</text>{{item.displayFieldName
? item.displayFieldName ? item.displayFieldName
: item.originalFieldName}}</view> : item.originalFieldName}}</view>
<dateTimePiccker :placeholder="'请选择'" :disabled="item.defaultDataType ? true : false" <dateTimePiccker :placeholder="'请选择'" :disabled="(item.defaultDataType && type != 11) ? true : false"
:start="startTime" fields="second" :default-value="form.inspectTime" :start="startTime" fields="second" :default-value="form.inspectTime"
@change="bindPickerChange($event,'startTime')" class="dateTimePiccker"> @change="bindPickerChange($event,'startTime')" class="dateTimePiccker">
</dateTimePiccker> </dateTimePiccker>
@ -635,7 +635,26 @@
this.form.itemId = option.itemId this.form.itemId = option.itemId
console.log(dateformat(new Date()), 777888) console.log(dateformat(new Date()), 777888)
if (option.engineeringId) this.engineeringId = option.engineeringId if (option.engineeringId) this.engineeringId = option.engineeringId
if (option.type) this.type = Number(option.type) if (option.type){
this.type = Number(option.type);
if(this.type == 11) {
this.startTime = "2022-01-01";
this.startTime2 = "2022-01-01";
}
}
if (option.url) {
let data = JSON.parse(option.url);
console.log(1155555, data);
if(option.moduleType == 'type2'){
this.typeCheck = 'type2';
this.checkedTab = 'type2';
this.form.recordType = 2;
}
this.imgFileList.push({
name: data.fileInfo.originalFilename,
url: data.imageUrl
})
}
this.getSecurityDangerFieldPage(); this.getSecurityDangerFieldPage();
this.getDicProjectTypeList(); this.getDicProjectTypeList();
this.getXzSecurityDangerReviewVerifyList(); this.getXzSecurityDangerReviewVerifyList();
@ -684,7 +703,7 @@
onSubmitType(type) { onSubmitType(type) {
if (type == 1) { if (type == 1) {
const dataId = this.constructionAreasList.join(','); const dataId = this.constructionAreasList.join(',');
if(dataId != this.form.regionDrawId) { if (dataId != this.form.regionDrawId) {
this.form.drawingPointData = []; this.form.drawingPointData = [];
} }
this.form.regionDrawId = dataId; this.form.regionDrawId = dataId;

BIN
static/icon-operator.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/icon-yes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

File diff suppressed because it is too large Load Diff