Commit 5b55bb04 authored by 徐俊's avatar 徐俊

xujun

parent 503ecf16
...@@ -624,7 +624,10 @@ export default { ...@@ -624,7 +624,10 @@ export default {
}, },
getBatchList (params) { getBatchList (params) {
return fetch('/v1/science-admin/com-batch/getBatchList', params) return fetch('/v1/science-admin/com-batch/getBatchList', params)
} },
getCurrentYearTalentBatch (params) {
return fetch('/v1/science-admin/com-batch/getCurrentYearTalentBatch', params)
},
}, },
//系统管理接口 //系统管理接口
systemManage: { systemManage: {
......
...@@ -22,9 +22,10 @@ ...@@ -22,9 +22,10 @@
</div> </div>
</div> </div>
<a-divider style="height: 1px; background-color: #e8e8e8;" /> <a-divider style="height: 1px; background-color: #e8e8e8;" />
<span class="form-description"> ※填报时间:{{ description }}</span>
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading"> <a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
<template slot="stateSwitch" slot-scope="record"> <template slot="stateSwitch" slot-scope="record">
<a-switch checked-children="启用" un-checked-children="停用" :checked="checkedState(record)" @change="switchChange($event,record)" /> <a-switch checked-children="启用" un-checked-children="停用" :checked="checkedState(record)" @change="switchChange($event, record)" />
</template> </template>
<template slot="option" slot-scope="record"> <template slot="option" slot-scope="record">
<a-button type="link" size="small" @click="recordClick(record,'view')">查看</a-button> <a-button type="link" size="small" @click="recordClick(record,'view')">查看</a-button>
...@@ -82,12 +83,23 @@ export default { ...@@ -82,12 +83,23 @@ export default {
loading: false, loading: false,
visibleView: false, visibleView: false,
visibleEdit: false, visibleEdit: false,
description: '',
}; };
}, },
created () { created () {
this.getListByPage() this.getYear()
}, },
methods: { methods: {
getYear () {
this.$api.batch.getCurrentYearTalentBatch({ type: 1 }).then(({ data = {} }) => {
if (data) {
this.isButten = data.disabled
this.description = data.description
this.searchForm.reportYear = data.year
this.getListByPage()
}
}).catch(() => { })
},
getListByPage () { getListByPage () {
this.getCount() this.getCount()
this.loading = true this.loading = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment