From 786c543590b010ecdcbd38062d2fd79523f6227e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 25 十二月 2024 11:22:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/cnas' into cnas
---
src/components/view/a8-periodic-document-review-records.vue | 34 ++++++++++++++++++++++++++++------
1 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/src/components/view/a8-periodic-document-review-records.vue b/src/components/view/a8-periodic-document-review-records.vue
index 6c89fda..99c45b6 100644
--- a/src/components/view/a8-periodic-document-review-records.vue
+++ b/src/components/view/a8-periodic-document-review-records.vue
@@ -12,7 +12,7 @@
<el-button size="medium" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower" style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button>
</el-col> -->
</el-row>
- <el-tabs type="border-card" v-model="activeName" style="height: 100%;">
+ <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick">
<el-tab-pane label="濉啓" name="濉啓" style="height: 100%;">
<div class="search">
<div class="search_thing">
@@ -32,15 +32,15 @@
<el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
</div>
<div class="btns">
- <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
+ <el-button size="medium" type="primary" @click="openAdd" v-if="addPower&&!currentInfo.ratifyUserName">鏂板</el-button>
<el-upload :action="action" :multiple="false"
:show-file-list="false"
accept='.doc,.docx' :headers="headers" :on-change="beforeUpload"
- :on-error="onError" ref='upload' v-if="upPower" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
+ :on-error="onError" ref='upload' v-if="upPower&&!currentInfo.ratifyUserName" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
<el-button type="primary" size="medium">瀵煎叆</el-button></el-upload>
</div>
</div>
- <div class="table">
+ <div class="table" v-if="activeName=='濉啓'">
<ValueTable ref="ValueTable" :url="$api.manageRecordIntervals.pageManageRecordIntervals"
:delUrl="$api.manageRecordIntervals.delManageRecordIntervals"
:componentData="componentData" :upUrl="$api.manageRecordIssueRecycle.doManageRecordIssueRecycle" :key="upIndex"/>
@@ -64,7 +64,7 @@
<el-button size="small" type="primary" @click="refreshTable(1)">鏌� 璇�</el-button>
</div>
</div>
- <div class="table">
+ <div class="table" v-if="activeName=='鍘嗗彶璁板綍'">
<ValueTable ref="ValueTable0" :url="$api.manageRecordIntervals.pageManageRecordIntervalsTotal"
:componentData="componentData0" :key="upIndex"/>
</div>
@@ -161,7 +161,7 @@
},
data() {
return {
- activeName:'濉啓',
+ activeName:'鍘嗗彶璁板綍',
title0:'鏂板',
addPower:true,
outPower:true,
@@ -189,12 +189,18 @@
font: '鍒犻櫎',
type: 'text',
method: 'doDiy',
+ disabFun:(row, index) => {
+ return !this.addPower||!!this.currentInfo.ratifyUserName
+ }
}, {
id: 'handleEdit',
font: '淇敼',
type: 'text',
method: 'handleEdit',
field:[],
+ disabFun:(row, index) => {
+ return !this.addPower||!!this.currentInfo.ratifyUserName
+ }
}],
tagField: {
// documentType:{
@@ -293,6 +299,17 @@
},
action() {
return this.javaApi +this.$api.manageRecordIntervals.exportInManageRecordIntervals
+ }
+ },
+ watch: {
+ 'activeName' (val1, val2) {
+ if(val1=='濉啓'){
+ this.componentData.do.forEach((item)=>{
+ item.disabFun = (row, index) => {
+ return !this.addPower||!!this.currentInfo.ratifyUserName
+ }
+ })
+ }
}
},
mounted() {
@@ -541,6 +558,11 @@
this.title0 = '鎵瑰噯'
this.commonFun(row)
},
+ tabClick(e){
+ if(e.index==0){
+ this.currentInfo = this.$refs['ValueTable0'].tableData[0]
+ }
+ }
}
}
</script>
--
Gitblit v1.9.3