标准/译文申请 管理员和本人可以删除 待办标记数

This commit is contained in:
baoyu
2024-04-01 11:28:23 +08:00
parent e4161f9192
commit 370082809e
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -561,7 +561,7 @@
mounted () {
this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => {
if (res.ok) {
this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data)
this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data.pendingApprovalCount)
}
})
},
@@ -185,6 +185,7 @@ export default {
this.$nextTick(() => {
this.$refs.addFormRef.clearValidate()
this.getDicTypeListCode()
this.standLbList = []
})
},
showModal (item) {
@@ -31,7 +31,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="标准类型" label-width="100px" class="add-form-item">
<div>{{ StandardApplyForEO.standTypeShow ? StandardApplyForEO.standTypeShow : '--' }}</div>
<div class="content">{{ StandardApplyForEO.standTypeShow ? StandardApplyForEO.standTypeShow : '--' }}</div>
</el-form-item>
</el-col>
</el-row>
@@ -86,7 +86,7 @@
<el-row class="formLine">
<el-col :span="24">
<el-form-item label="理由" label-width="100px" class="add-form-item reasonContent">
<div class="contentLine">{{ StandardApplyForEO.reason ? StandardApplyForEO.reason : '--' }}</div>
<div class="content">{{ StandardApplyForEO.reason ? StandardApplyForEO.reason : '--' }}</div>
</el-form-item>
</el-col>
</el-row>
@@ -104,7 +104,7 @@
</el-col>
<el-col v-show="StandardApplyForEO.status !== 'pendingApproval' && StandardApplyForEO.status !== 'Staging' && StandardApplyForEO.status !== 'pass'" :span="24" class="formLine">
<el-form-item label="驳回原因" label-width="100px" class="add-form-item">
<div class="contentLine">{{ StandardApplyForEO.refuseCause ? StandardApplyForEO.refuseCause : '--' }}</div>
<div class="content">{{ StandardApplyForEO.refuseCause ? StandardApplyForEO.refuseCause : '--' }}</div>
</el-form-item>
</el-col>
</el-row>
@@ -173,7 +173,7 @@
重新提交
</div>
<div
v-if="account === scope.row.createBy"
v-if="account === scope.row.createBy || moduleAdmin"
v-show="scope.row.status === 'refuse' || scope.row.status === 'draft'"
class="table-operate-btn"
@click="batchDelete (scope.row.id)"
@@ -228,6 +228,7 @@ export default {
},
data () {
return {
moduleAdmin: false,
applyForUnitName: '',
modalShowDepFlag: false,
choiceTitle: '', // 人员选择
@@ -422,7 +423,8 @@ export default {
this.tableLoading = false
this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => {
if (res.ok) {
this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data)
this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data.pendingApprovalCount)
this.moduleAdmin = res.data.isStandardApplyForAdministrator
}
})
})