增加国外院士管理
This commit is contained in:
parent
7fbf8d7c72
commit
6af861ac09
|
|
@ -125,6 +125,16 @@ watch(
|
|||
}
|
||||
)
|
||||
|
||||
const formatKind = (kind) => {
|
||||
if (kind == 1) {
|
||||
return "院士"
|
||||
} else if (kind == 2) {
|
||||
return "研究员"
|
||||
} else if (kind == 3) {
|
||||
return "国外院士"
|
||||
}
|
||||
}
|
||||
|
||||
// 重置
|
||||
const handleResetSearch = () => {
|
||||
initSearchInfo()
|
||||
|
|
@ -187,7 +197,7 @@ const handleMultiDelete = () => {
|
|||
}
|
||||
// 删除
|
||||
const handleRowDelete = (ID) => {
|
||||
ElMessageBox.confirm('此操作将删除' + (route.params.kind == '1' ? '院士' : '研究员') + ', 是否继续?', '请确认', {
|
||||
ElMessageBox.confirm('此操作将删除' + formatKind(route.params.kind) + ', 是否继续?', '请确认', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
|
|
@ -210,12 +220,12 @@ const elEditRef = ref(null)
|
|||
const editTitle = ref('')
|
||||
// 添加
|
||||
const handleAdd = () => {
|
||||
editTitle.value = '添加' + (route.params.kind == '1' ? '院士' : '研究员')
|
||||
editTitle.value = '添加' + formatKind(route.params.kind)
|
||||
elEditRef.value.openPage({ id: 0, kind: parseInt(route.params.kind) })
|
||||
}
|
||||
// 修改
|
||||
const handleRowEdit = async (ID) => {
|
||||
editTitle.value = '修改' + (route.params.kind == '1' ? '院士' : '研究员') + '-ID:' + ID
|
||||
editTitle.value = '修改' + formatKind(route.params.kind) + '-ID:' + ID
|
||||
elEditRef.value.openPage({ ID: ID, kind: parseInt(route.params.kind) })
|
||||
}
|
||||
// 保存后
|
||||
|
|
@ -225,7 +235,7 @@ const handlerFormSave = () => {
|
|||
|
||||
const selectArticleTitle = ref('')
|
||||
const handleSelProject = (row) => {
|
||||
selectArticleTitle.value = '关联' + (route.params.kind == '1' ? '院士' : '研究员') + '项目' + '-ID:' + row.ID
|
||||
selectArticleTitle.value = '关联' + formatKind(route.params.kind) + '项目' + '-ID:' + row.ID
|
||||
let articleIds = []
|
||||
if (row.projects != '') {
|
||||
articleIds = JSON.parse(row.projects)
|
||||
|
|
@ -234,7 +244,7 @@ const handleSelProject = (row) => {
|
|||
elSelectArticleRef.value.openPage(params, articleIds)
|
||||
}
|
||||
const handleSelLecture = (row) => {
|
||||
selectArticleTitle.value = '关联' + (route.params.kind == '1' ? '院士' : '研究员') + '讲座' + '-ID:' + row.ID
|
||||
selectArticleTitle.value = '关联' + formatKind(route.params.kind) + '讲座' + '-ID:' + row.ID
|
||||
let articleIds = []
|
||||
if (row.lectures != '') {
|
||||
articleIds = JSON.parse(row.lectures)
|
||||
|
|
|
|||
Loading…
Reference in New Issue