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" : "智慧安全", // "name" : "智慧安全", //
"appid" : "__UNI__4AA4101", "appid" : "__UNI__4AA4101",
"description" : "", "description" : "",
"versionName" : "1.5.8", "versionName" : "1.5.9",
"versionCode" : 158, "versionCode" : 159,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "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="beginexam" v-for="(item,index) in stList" :key="index" v-show="index == stIndex">
<view class="questionTitle"> <view class="questionTitle">
<text class="text">{{index + 1}}</text> <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>
<view class="radio-content"> <view class="radio-content">
<radio-group @change="radioChange" class="radio-boxs" v-if="item.type == 1"> <radio-group @change="radioChange" class="radio-boxs" v-if="item.type == 1">

View File

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

View File

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