generated from Leo_Ding/web-template
Merge remote-tracking branch 'origin/master'
# Conflicts: # .env.dev
This commit is contained in:
commit
66f7e74b8e
@ -1,16 +1,5 @@
|
|||||||
import { SmileOutlined } from '@ant-design/icons-vue'
|
import { SmileOutlined } from '@ant-design/icons-vue'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
|
||||||
path: 'home',
|
|
||||||
name: 'home',
|
|
||||||
component: 'home/index.vue',
|
|
||||||
meta: {
|
|
||||||
icon: SmileOutlined,
|
|
||||||
title: '欢迎页',
|
|
||||||
isMenu: true,
|
|
||||||
keepAlive: true,
|
|
||||||
permission: '*',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
<a-form-item :label="'所属基地'" name="jobAreaId">
|
<a-form-item :label="'所属基地'" name="jobAreaId">
|
||||||
<div style="display: flex;justify-content: space-between;">
|
<div style="display: flex;justify-content: space-between;">
|
||||||
<a-select v-model:value="formData.jobAreaId" allowClear>
|
<a-select v-model:value="formData.jobAreaId" allowClear>
|
||||||
<a-select-option v-for="item in areaList" :value="item.code">{{ item.name }}</a-select-option>
|
<a-select-option v-for="item in areaList" :value="item.id">{{ item.name }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-button type="primary" @click="childOpen = true">新增基地</a-button>
|
<a-button type="primary" @click="childOpen = true">新增基地</a-button>
|
||||||
</div>
|
</div>
|
||||||
@ -134,11 +134,7 @@ const initData = async () => {
|
|||||||
const { success, data, total } = await apis.recruitment.getAreasList({ pageSize: 999, page: 1, })
|
const { success, data, total } = await apis.recruitment.getAreasList({ pageSize: 999, page: 1, })
|
||||||
if (config('http.code.success') === success) {
|
if (config('http.code.success') === success) {
|
||||||
hideSpining()
|
hideSpining()
|
||||||
areaList.value = data.map(item => {
|
areaList.value = data.filter(el=>el.status==='enabled').map(item => ({ code: item.id, name: item.name }))
|
||||||
if (item.status === 'enabled') {
|
|
||||||
return { code: item.id, name: item.name }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
message.error({ content: error.message })
|
message.error({ content: error.message })
|
||||||
|
|||||||
@ -55,11 +55,11 @@
|
|||||||
<div class="text-ellipsis">{{ record.introduce }}</div>
|
<div class="text-ellipsis">{{ record.introduce }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'benefits'">
|
<!-- <template v-if="column.dataIndex === 'benefits'">
|
||||||
<a-tooltip :title="record.benefits">
|
<a-tooltip :title="record.benefits">
|
||||||
<div class="text-ellipsis">{{ record.benefits }}</div>
|
<div class="text-ellipsis">{{ record.benefits }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template> -->
|
||||||
<template v-if="column.dataIndex === 'duty'">
|
<template v-if="column.dataIndex === 'duty'">
|
||||||
<a-tooltip :title="record.duty">
|
<a-tooltip :title="record.duty">
|
||||||
<div class="text-ellipsis">{{ record.duty }}</div>
|
<div class="text-ellipsis">{{ record.duty }}</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user