From 697d7906c6c286aba23319b270a1416463329e3a Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Fri, 3 May 2024 19:30:46 +0800 Subject: [PATCH] status --- src/pages/work/detail.vue | 1 - src/pages/work/list.vue | 4 ++-- src/utils/status.js | 12 ++---------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/pages/work/detail.vue b/src/pages/work/detail.vue index 0170a0b..bb9800f 100644 --- a/src/pages/work/detail.vue +++ b/src/pages/work/detail.vue @@ -23,7 +23,6 @@ import CuNavbar from '@/components/cu-navbar/index' import BaseData from '../audits/base-data.vue' import { onLoad } from '@dcloudio/uni-app' -// import commone from './commone.vue' import { ref } from 'vue' import { http } from '@/utils/request' diff --git a/src/pages/work/list.vue b/src/pages/work/list.vue index 73c8373..9a72c86 100644 --- a/src/pages/work/list.vue +++ b/src/pages/work/list.vue @@ -47,8 +47,8 @@ v-for="item in list" :key="item.id" :title="item.job.name" - :status-text="statusFun(item.promotion_status, 'promotion_status1', 'name')" - :status-color="statusFun(item.promotion_status, 'promotion_status1', 'color')" + :status-text="statusFun(item.promotion_status, 'promotion_status', 'name')" + :status-color="statusFun(item.promotion_status, 'promotion_status', 'color')" :body="[ { label: '申请人: ', value: item.employee.name }, { label: '申请时间: ', value: item.created_format }, diff --git a/src/utils/status.js b/src/utils/status.js index cf5d679..601717b 100644 --- a/src/utils/status.js +++ b/src/utils/status.js @@ -48,17 +48,9 @@ const data = { name: '未完成', color: '#999999' }], - // 升职申请-申请人 + // 升职申请 promotion_status: [ - { value: 1, name: '待提交', color: '#f56c6c'}, - { value: 2, name: '待推荐', color: '#f56c6c' }, - { value: 3, name: '审核中', color: '#f56c6c' }, - { value: 4, name: '已通过', color: '#3c9cff' }, - { value: 5, name: '未通过', color: '#999999' } - ], - // 升职申请-推荐人 - promotion_status1: [ - { value: 1, name: '待提交', color: '#f56c6c'}, + { value: 1, name: '待补充', color: '#f56c6c'}, { value: 2, name: '待推荐', color: '#f56c6c' }, { value: 3, name: '审核中', color: '#f56c6c' }, { value: 4, name: '已通过', color: '#3c9cff' },