BUG 31140
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user