BUG 31140

This commit is contained in:
aixianling
2022-10-28 11:15:37 +08:00
parent e7301e6cb9
commit 9dbe2fde3f
3 changed files with 6 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
<template slot="title">
<ai-title title="组织换届" isShowBottomBorder>
<template #rightBtn>
<el-button size="small" type="primary" @click="toAdd(selected.id)" v-if="!hasConfig&&permissions('app_apporganizationchangeconfig')">换届设置
<el-button size="small" type="primary" @click="toAdd(selected.id)" v-if="hasConfig&&permissions('app_apporganizationchangeconfig')">换届设置
</el-button>
</template>
</ai-title>

View File

@@ -1,9 +1,8 @@
<template>
<section class="history">
<ai-search-bar>
<template #left>
<el-button type="primary" icon="iconfont iconEdit" @click="$router.push({hash:'#makeup',query:{oid}})">补录</el-button>
<el-button type="primary" icon="iconfont iconEdit" v-if="hasConfig" @click="$router.push({hash:'#makeup',query:{oid}})">补录</el-button>
</template>
<template #right>
<el-input size="small" placeholder="请输入届次" v-model="search.name" clearable
@@ -29,6 +28,9 @@ export default {
instance: {},
dict: {}
},
props: {
hasConfig: Boolean
},
data() {
return {
search: {

View File

@@ -34,16 +34,6 @@ export default {
totalJob: 0,
current: 1,
size: 10,
dialogJob: false,
dialogCandidate: false,
jobForm: {
job: '',
name: '',
},
CandFrom: {
job: '',
name: '',
},
}
},
computed: {
@@ -72,9 +62,8 @@ export default {
}).then(res => {
if (res?.data) {
this.detail = res.data
this.$emit("update:hasConfig")
}
})
}).catch(() => this.detail = {}).finally(() => this.$emit("update:hasConfig", !!this.detail.id))
},
},
created() {