flx:修改危大按钮权限

This commit is contained in:
Rain_ 2026-01-09 09:38:49 +08:00
parent a8f9665bf7
commit 4b1d3d254c
2 changed files with 5 additions and 5 deletions

View File

@ -103,8 +103,7 @@
<uni-icons v-else type="plusempty" size="30" color="#fff"></uni-icons> <uni-icons v-else type="plusempty" size="30" color="#fff"></uni-icons>
<span>+</span> <span>+</span>
</view> --> </view> -->
<view class="save-box" v-if="activeIndex != 7 && activeIndex != 2 <view class="save-box" v-if="activeIndex != 7 && activeIndex != 2 && detailData.finalAcceptanceStatus !== 2 && btnAuth
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2 && isShowBtn && btnAuth
&& userInfo.accountType != 6 || userInfo.userId == detailData.personLiableId"> && userInfo.accountType != 6 || userInfo.userId == detailData.personLiableId">
<view class="save-btn" @click="addForm"> <view class="save-btn" @click="addForm">
{{activeIndex == 1 ? '新增进度记录' : activeIndex == 5 ? '新增隐患记录' : activeIndex == 6 ? '新增旁站记录' : '新增验收记录'}} {{activeIndex == 1 ? '新增进度记录' : activeIndex == 5 ? '新增隐患记录' : activeIndex == 6 ? '新增旁站记录' : '新增验收记录'}}
@ -214,8 +213,9 @@
onLoad(val) { onLoad(val) {
this.btnAuth = this.checkBtnPermission({ this.btnAuth = this.checkBtnPermission({
key: 'wdgc_add', key: 'wdgc_add',
menuPath: '/project/dangerousBigProject/parameter' menuPath: '/project/dangerousBigProject/dangerousWorkList'
}) })
console.log(1111, this.btnAuth)
this.detailId = val.id this.detailId = val.id
// if(val.) // if(val.)
// this.initData() // this.initData()
@ -237,7 +237,7 @@
// this.listData = res.result.records // this.listData = res.result.records
// } // }
this.detailData = res.result this.detailData = res.result
this.getApply(); // this.getApply();
this.checkNav({ this.checkNav({
id: 2 id: 2
}); });

View File

@ -1958,7 +1958,7 @@
taskId: this.taskId || null, // ID taskId: this.taskId || null, // ID
itemId: this.itemId || null, // ID itemId: this.itemId || null, // ID
} }
if(data2.drawingPointData) delete data2.drawingPointData;
if (this.engineeringId) data2.engineeringId = this.engineeringId if (this.engineeringId) data2.engineeringId = this.engineeringId
if (this.type) data2.type = this.type if (this.type) data2.type = this.type
console.log(data.taskId); console.log(data.taskId);