diff --git a/src/views/admin/sysconfig/SysConfig.api.ts b/src/views/admin/sysconfig/SysConfig.api.ts index 37f51a8..10141f7 100644 --- a/src/views/admin/sysconfig/SysConfig.api.ts +++ b/src/views/admin/sysconfig/SysConfig.api.ts @@ -12,6 +12,7 @@ enum Api { importExcel = '/sysconfig/sysConfig/importExcel', exportXls = '/sysconfig/sysConfig/exportXls', queryByKey = '/sysconfig/sysConfig/queryByKey', + queryByKeys = '/sysconfig/sysConfig/queryByKeys', } /** @@ -38,6 +39,13 @@ export const list = (params) => defHttp.get({ url: Api.list, params }); */ export const queryByKey = (params) => defHttp.get({ url: Api.queryByKey, params }); +/** + * 根据keys获取数据 + * @param params keys + * @returns + */ +export const queryByKeys = (params) => defHttp.get({ url: Api.queryByKeys, params }); + /** * 删除单个 * @param params diff --git a/src/views/appraisal/DirectiveAppraisal.data.ts b/src/views/appraisal/DirectiveAppraisal.data.ts index 4dd0113..6e31ade 100644 --- a/src/views/appraisal/DirectiveAppraisal.data.ts +++ b/src/views/appraisal/DirectiveAppraisal.data.ts @@ -8,7 +8,10 @@ export const columns: BasicColumn[] = [ { title: '员工', align: 'center', - dataIndex: 'optNames', + dataIndex: 'employeeNames', + customRender: ({ record }) => { + return record.employeeNames || record.employeeName; + }, }, { title: '区域名称', @@ -18,7 +21,7 @@ export const columns: BasicColumn[] = [ { title: '分类标签', align: 'center', - dataIndex: 'instructionTagName', + dataIndex: 'instructionName', }, { title: '服务类别', @@ -38,36 +41,21 @@ export const columns: BasicColumn[] = [ { title: '指令日期', align: 'center', - dataIndex: 'startTime', + dataIndex: 'servStartTime', customRender: ({ text }) => { text = !text ? '' : text.length > 10 ? text.substr(0, 10) : text; return text; }, }, - { - title: '执行状态', - align: 'center', - dataIndex: 'optStatus_dictText', - }, - { - title: '审核结果', - align: 'center', - dataIndex: 'status_dictText', - }, // { - // title: '驳回原因', - // align: "center", - // dataIndex: 'content' + // title: '执行状态', + // align: 'center', + // dataIndex: 'optStatus_dictText', // }, // { - // title: '撤回人(汉字)', - // align: "center", - // dataIndex: 'revocation' - // }, - // { - // title: '撤回时间', - // align: "center", - // dataIndex: 'revocationTime' + // title: '审核结果', + // align: 'center', + // dataIndex: 'status_dictText', // }, ]; @@ -81,7 +69,6 @@ export const superQuerySchema = { optType: { title: '执行类型 1单人 2协助 3转单', order: 29, view: 'list', type: 'string', dictCode: 'directive_order_opt_type' }, optStatus: { title: '执行状态 1正常 2未执行 3超时', order: 30, view: 'list', type: 'string', dictCode: 'directive_order_opt_status' }, optNames: { title: '实际执行人名称(多个); 主要执行人+协助人', order: 31, view: 'text', type: 'string' }, - status: { title: '审核状态 0待审核 1通过 2未通过', order: 32, view: 'list', type: 'string', dictCode: 'appraisal_status' }, content: { title: '驳回原因', order: 33, view: 'textarea', type: 'string' }, revocation: { title: '撤回人(汉字)', order: 34, view: 'text', type: 'string' }, revocationTime: { title: '撤回时间', order: 35, view: 'datetime', type: 'string' }, diff --git a/src/views/appraisal/DirectiveAppraisalList.vue b/src/views/appraisal/DirectiveAppraisalList.vue index 056103b..61c64b9 100644 --- a/src/views/appraisal/DirectiveAppraisalList.vue +++ b/src/views/appraisal/DirectiveAppraisalList.vue @@ -6,25 +6,25 @@ :wrapper-col="wrapperCol"> - + - - + - + - @@ -33,7 +33,7 @@ @@ -52,32 +52,26 @@ - + - + - - - + --> + @@ -103,12 +97,13 @@ - + +