flx:冲突

This commit is contained in:
”Rain“ 2024-06-05 21:05:07 +08:00
commit 65ca2580c3
4 changed files with 49 additions and 22 deletions

View File

@ -2,8 +2,8 @@
"name" : "智慧安全", //
"appid" : "__UNI__4AA4101",
"description" : "",
"versionName" : "1.5.8",
"versionCode" : 158,
"versionName" : "1.5.9",
"versionCode" : 159,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -13,7 +13,9 @@
<view class="beginexam" v-for="(item,index) in stList" :key="index" v-show="index == stIndex">
<view class="questionTitle">
<text class="text">{{index + 1}}</text>
<text class="text">{{item.questionName}}({{item.score||0}})</text>
<!-- <text class="text">{{item.questionName}}({{item.score||0}})</text> -->
<text class="text" v-html="item.questionName"></text>
<text>({{item.score||0}})</text>
</view>
<view class="radio-content">
<radio-group @change="radioChange" class="radio-boxs" v-if="item.type == 1">

View File

@ -28,20 +28,27 @@
<script>
export default {
props:['detailId','detailData'],
props:['detailId','info'],
data(){
return{
listData:[],
checkNum: 0,
dangerEngineering: {},
isDisabled: false
isDisabled: false,
userInfo:{}
}
},
mounted() {
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
},
created(){
this.initData()
this.getDEById()
this.getApply()
},
onShow() {
this.getApply()
},
methods:{
initData(){
this.sendRequest({
@ -76,13 +83,19 @@
uni.hideLoading()
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
let result = res.result
if(res.result.length>0){
if(res.result[0].acceptanceResult === null) this.isDisabled = true
if(res.result[0].acceptanceResult === 1) this.isDisabled = true
if(res.result[0].acceptanceResult === 2) this.isDisabled = false
console.log(this.info,"8888888888888888888888888888888");
if(this.userInfo.accountType != 6 || this.userInfo.userId == this.info.personLiableId){
if(res.result.length>0){
if(res.result[0].acceptanceResult === null) this.isDisabled = true
if(res.result[0].acceptanceResult === 1) this.isDisabled = true
if(res.result[0].acceptanceResult === 2) this.isDisabled = false
}else{
this.isDisabled = false
}
}else{
this.isDisabled = false
this.isDisabled = true
}
console.log(this.isDisabled,"999999999999999999999999999");
}
})
},
@ -123,17 +136,26 @@
})
},
disabledTip(){
if(this.dangerEngineering.finalAcceptanceStatus === 2){
if(this.userInfo.accountType != 6 || this.userInfo.userId == this.info.personLiableId){
if(this.dangerEngineering.finalAcceptanceStatus === 2){
uni.showToast({
title: '该项危大工程已闭合,请勿重复操作',
icon: "none",
duration: 2000
});
return;
}
if(this.isDisabled){
uni.showToast({
title: '等待验收中,请勿重复操作',
icon: "none",
duration: 2000
});
return;
}
}else{
uni.showToast({
title: '该项危大工程已闭合,请勿重复操作',
icon: "none",
duration: 2000
});
return;
}
if(this.isDisabled){
uni.showToast({
title: '等待验收中,请勿重复操作',
title: '您没有权限操作!',
icon: "none",
duration: 2000
});

View File

@ -68,7 +68,8 @@
</view>
<!-- <view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2 && !(activeIndex == 1 && detailData.engineeringState == 3) -->
<view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2 && isShowBtn && btnAuth"
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2 && isShowBtn && btnAuth
&& userInfo.accountType != 6 || userInfo.userId == detailData.personLiableId"
@click="addForm">
<uni-icons v-if="activeIndex == 5" type="camera" size="30" color="#fff"></uni-icons>
<uni-icons v-else type="plusempty" size="30" color="#fff"></uni-icons>
@ -135,7 +136,8 @@
detailId: "",
detailData:{},
isShowBtn: null,
btnAuth: true
btnAuth: true,
userInfo:{},
}
},
onReachBottom() {
@ -163,6 +165,7 @@
// this.initData()
},
mounted() {
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
},
methods:{
initData(){