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

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 () { mounted () {
this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => { this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => {
if (res.ok) { 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.$nextTick(() => {
this.$refs.addFormRef.clearValidate() this.$refs.addFormRef.clearValidate()
this.getDicTypeListCode() this.getDicTypeListCode()
this.standLbList = []
}) })
}, },
showModal (item) { showModal (item) {
@@ -31,7 +31,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="标准类型" label-width="100px" class="add-form-item"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -86,7 +86,7 @@
<el-row class="formLine"> <el-row class="formLine">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="理由" label-width="100px" class="add-form-item reasonContent"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -104,7 +104,7 @@
</el-col> </el-col>
<el-col v-show="StandardApplyForEO.status !== 'pendingApproval' && StandardApplyForEO.status !== 'Staging' && StandardApplyForEO.status !== 'pass'" :span="24" class="formLine"> <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"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -173,7 +173,7 @@
重新提交 重新提交
</div> </div>
<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'" v-show="scope.row.status === 'refuse' || scope.row.status === 'draft'"
class="table-operate-btn" class="table-operate-btn"
@click="batchDelete (scope.row.id)" @click="batchDelete (scope.row.id)"
@@ -228,6 +228,7 @@ export default {
}, },
data () { data () {
return { return {
moduleAdmin: false,
applyForUnitName: '', applyForUnitName: '',
modalShowDepFlag: false, modalShowDepFlag: false,
choiceTitle: '', // 人员选择 choiceTitle: '', // 人员选择
@@ -422,7 +423,8 @@ export default {
this.tableLoading = false this.tableLoading = false
this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => { this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => {
if (res.ok) { 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
} }
}) })
}) })