main
panliang 2024-05-03 19:02:38 +08:00
parent 6024c46b0b
commit 440f5816d4
2 changed files with 10 additions and 17 deletions

View File

@ -23,7 +23,7 @@
v-for="item in list" v-for="item in list"
:key="item.id" :key="item.id"
:title="item.job.name" :title="item.job.name"
:status-text="item.promotion_status_text" :status-text="statusFun(item.promotion_status, 'promotion_status', 'name')"
:status-color="statusFun(item.promotion_status, 'promotion_status', 'color')" :status-color="statusFun(item.promotion_status, 'promotion_status', 'color')"
:body="[ :body="[
{ label: '推荐人: ', value: item.invitor.name }, { label: '推荐人: ', value: item.invitor.name },
@ -47,8 +47,8 @@
v-for="item in list" v-for="item in list"
:key="item.id" :key="item.id"
:title="item.job.name" :title="item.job.name"
:status-text="item.promotion_status_text" :status-text="statusFun(item.promotion_status, 'promotion_status1', 'name')"
:status-color="statusFun(item.promotion_status, 'promotion_status', 'color')" :status-color="statusFun(item.promotion_status, 'promotion_status1', 'color')"
:body="[ :body="[
{ label: '申请人: ', value: item.employee.name }, { label: '申请人: ', value: item.employee.name },
{ label: '申请时间: ', value: item.created_format }, { label: '申请时间: ', value: item.created_format },

View File

@ -1,17 +1,10 @@
const data = { const data = {
messages:[{ messages:[
value:'system', { value:'system', name:'系统消息' },
name:'系统消息', { value:'work', name:'工作消息' },
},{ { value:'exam', name:'考试通知' },
value:'work', { value:'approval', name:'审批通知' }
name:'工作消息', ],
},{
value:'exam',
name:'考试通知',
},{
value:'approval',
name:'审批通知',
}],
// 申请状态 // 申请状态
statusExpense: [ statusExpense: [
{ value: 1, name: '待审核', color: '#f56c6c' }, { value: 1, name: '待审核', color: '#f56c6c' },
@ -64,7 +57,7 @@ const data = {
{ value: 5, name: '未通过', color: '#999999' } { value: 5, name: '未通过', color: '#999999' }
], ],
// 升职申请-推荐人 // 升职申请-推荐人
promotion_status: [ promotion_status1: [
{ value: 1, name: '待提交', color: '#f56c6c'}, { value: 1, name: '待提交', color: '#f56c6c'},
{ value: 2, name: '待推荐', color: '#f56c6c' }, { value: 2, name: '待推荐', color: '#f56c6c' },
{ value: 3, name: '审核中', color: '#f56c6c' }, { value: 3, name: '审核中', color: '#f56c6c' },