From 50448af5dcc7c3c7a8994576c911e42f77835ab0 Mon Sep 17 00:00:00 2001 From: renguanyu111 <80379958+renguanyu111@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B2=97=E4=BD=8D=E7=BB=A9?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- .env.staging | 5 +- src/api/duty/gwDingXing.js | 50 + src/api/duty/oldGwDingXing.js | 91 ++ src/api/duty/projectNew.js | 188 ++++ src/api/honer.js | 16 + src/router/index.js | 96 +- .../gwQualitativeIndicators.vue | 91 +- .../qualitativeIndicators.vue | 415 +++++--- .../qualitativeIndicatorsBase.vue | 463 +++++++++ src/views/basicInfo/gwProject copy.vue | 899 ++++++++++++++++++ src/views/basicInfo/gwProject.vue | 276 ++++-- src/views/basicInfo/project.vue | 61 +- src/views/basicInfo/projectBase.vue | 6 +- src/views/echarts/table.vue | 4 +- src/views/honor/index.vue | 91 +- src/views/hr/personnel.vue | 4 +- 17 files changed, 2378 insertions(+), 380 deletions(-) create mode 100644 src/api/duty/gwDingXing.js create mode 100644 src/api/duty/oldGwDingXing.js create mode 100644 src/api/duty/projectNew.js create mode 100644 src/views/assessmentProgram/qualitativeIndicatorsBase.vue create mode 100644 src/views/basicInfo/gwProject copy.vue diff --git a/.env.production b/.env.production index 12dd067..385721d 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ ENV = 'production' # base api VUE_APP_BASE_API = 'http://ginadmin.hxgk.group/api' VUE_APP_BASE_API1 = 'http://ginadmin.hxgk.group/hrapi' - +VUE_APP_BASE_API2 = 'http://ginadmin.hxgk.group/fileapi' diff --git a/.env.staging b/.env.staging index 72fb432..f44b823 100644 --- a/.env.staging +++ b/.env.staging @@ -4,6 +4,7 @@ NODE_ENV = production ENV = 'staging' # base api -VUE_APP_BASE_API = '172.0.0.1:8888/api' -VUE_APP_BASE_API1 = '172.0.0.1:8888/hrapi' +VUE_APP_BASE_API = 'http://kpi.hxgk.net/api' +VUE_APP_BASE_API1 = 'http://kpi.hxgk.net/hrapi' +VUE_APP_BASE_API2 = 'http://kpi.hxgk.net/fileapi' diff --git a/src/api/duty/gwDingXing.js b/src/api/duty/gwDingXing.js new file mode 100644 index 0000000..311d546 --- /dev/null +++ b/src/api/duty/gwDingXing.js @@ -0,0 +1,50 @@ +import request from '@/utils/requestFile' +// 获取岗位方案内容列表 +export function get_post_scheme(data) { + return request({ + url: '/postpc/get_post_scheme', + method: 'post', + data + }) +} +// 获取复制岗位考核方案 +export function get_copy_sheme_infor(data) { + return request({ + url: '/postpc/get_copy_sheme_infor', + method: 'post', + data + }) + } +// 引用指标部门指标 +export function quote_department_target(data) { + return request({ + url: '/postpc/quote_department_target', + method: 'post', + data + }) + } +// 提交岗位考核方案 +export function submit_post_scheme(data) { + return request({ + url: '/postpc/submit_post_scheme', + method: 'post', + data + }) + } +// 获取岗位相关指标 +export function getpostabouttarget(data) { + return request({ + url: '/postpc/getpostabouttarget', + method: 'post', + data + }) + } +// 添加岗位指标 +export function add_post_target(data) { + return request({ + url: '/postpc/add_post_target', + method: 'post', + data + }) +} + diff --git a/src/api/duty/oldGwDingXing.js b/src/api/duty/oldGwDingXing.js new file mode 100644 index 0000000..7a30346 --- /dev/null +++ b/src/api/duty/oldGwDingXing.js @@ -0,0 +1,91 @@ +// 定性考核api +import request from '@/utils/request' +//岗位定性考核列表 +export const posttargetsunlist = (data) => { + return request({ + url: '/postkpi/posttargetsunlist', + method: 'post', + data: data + }) +} +//添加岗位细则 +export const addposttargetcont = (data) => { + return request({ + url: '/postkpi/addposttargetcont', + method: 'post', + data: data + }) + } +//修改定性指标关联岗位 +export const editposttargetaual = (data) => { + return request({ + url: '/postkpi/editposttargetaual', + method: 'post', + data: data + }) + } + +//获取指标关联的岗位 +export const targetorglist = (data) => { + return request({ + url: '/postkpi/targetorglist', + method: 'post', + data: data + }) + } +//获取岗位考核子栏目内容 +export const getsuntargetinfo = (data) => { + return request({ + url: '/postkpi/getsuntargetinfo', + method: 'post', + data: data + }) +} +//编辑定性考核子栏目 +export const eidtsuntargetpost = (data) => { + return request({ + url: '/postkpi/eidtsuntargetpost', + method: 'post', + data: data + }) +} +//删除定性考核指标子栏目 +export const delsuntarget = (data) => { + return request({ + url: '/postkpi/delsuntarget', + method: 'post', + data: data + }) +} +//添加单条定性指标细则 +export const addpostdetacont = (data) => { + return request({ + url: '/postkpi/addpostdetacont', + method: 'post', + data: data + }) +} +//获取指标细则内容 +export const getdetailscont = (data) => { + return request({ + url: '/postkpi/getdetailscont', + method: 'post', + data: data + }) +} +//修改定性考核指标细则 +export const editdeatilscont = (data) => { + return request({ + url: '/postkpi/editdeatilscont', + method: 'post', + data: data + }) +} +//删除定性考核指标细则 +export const eidtposttardetailsstrte = (data) => { + return request({ + url: '/postkpi/eidtposttardetailsstrte', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/api/duty/projectNew.js b/src/api/duty/projectNew.js new file mode 100644 index 0000000..1693404 --- /dev/null +++ b/src/api/duty/projectNew.js @@ -0,0 +1,188 @@ +import request from '@/utils/requestFile' +// 部门指标列表 +export function departmenttargetlist(data) { + return request({ + url: '/department_pc/departmenttargetlist', + method: 'post', + data + }) +} +// 获取部门定性考核部门关联列表 +export function getdepartabouttarget(data) { + return request({ + url: '/department_pc/getdepartabouttarget', + method: 'post', + data + }) + } + // 获取部门指标相关执行人 +export function gettargetreport(data) { + return request({ + url: '/department_pc/gettargetreport', + method: 'post', + data + }) + } + // 修改子栏目标题名称级考核关联部门及提报人 + export function editsontargetdepartmentreport(data) { + return request({ + url: '/department_pc/editsontargetdepartmentreport', + method: 'post', + data + }) + } + // 根据指标和部门获取相关岗位 + export function basistargetdearpetmentgetpost(data) { + return request({ + url: '/department_pc/basistargetdearpetmentgetpost', + method: 'post', + data + }) + } + // 根据指标和部门获取相关岗位 + export function delsontarget(data) { + return request({ + url: '/department_pc/delsontarget', + method: 'post', + data + }) + } + // 删除指标 + export function deltarget(data) { + return request({ + url: '/department_pc/deltarget', + method: 'post', + data + }) + } + // 实验 + export function shiyan(data) { + return request({ + url: '/department_pc/shiyan', + method: 'post', + data + }) + } + // 获取定性考核指标列表内容 + export function getdepartmenttragetcontlist(data) { + return request({ + url: '/department_pc/getdepartmenttragetcontlist', + method: 'post', + data + }) + } + // 子栏目关联部门岗位 + export function depar_son_target_about_post(data) { + return request({ + url: '/department_pc/depar_son_target_about_post', + method: 'post', + data + }) + } + // 获取单一指标细则内容 + export function getonedetailedtarget(data) { + return request({ + url: '/department_pc/getonedetailedtarget', + method: 'post', + data + }) + } + // 获取部门指标岗位提交人 + export function basistaegetdeparmentreport(data) { + return request({ + url: '/department_pc/basistaegetdeparmentreport', + method: 'post', + data + }) + } + // 根据指标栏目新增指标细则 + export function basissontargetadddetailed(data) { + return request({ + url: '/department_pc/basissontargetadddetailed', + method: 'post', + data + }) + } + // 编辑单一部门指标 + export function edit_one_target(data) { + return request({ + url: '/department_pc/edit_one_target', + method: 'post', + data + }) + } + + // 指标细则关联部门岗位 + export function depar_detaile_about_post(data) { + return request({ + url: '/department_pc/depar_detaile_about_post', + method: 'post', + data + }) + } + + // 添加部门指标 + export function add_department_target(data) { + return request({ + url: '/department_pc/add_department_target', + method: 'post', + data + }) + } + // 添加定性考核子栏目及细则 + export function addsuntargetdetailed(data) { + return request({ + url: '/department_pc/addsuntargetdetailed', + method: 'post', + data + }) + } + + // 获取单一指标详细内容 + export function get_one_terget_info(data) { + return request({ + url: '/department_pc/get_one_terget_info', + method: 'post', + data + }) + } + // 指标关联岗位 + export function deparment_target_about_post(data) { + return request({ + url: '/department_pc/deparment_target_about_post', + method: 'post', + data + }) + } + // 编辑单一指标细则内容 + export function edit_one_detailed_target(data) { + return request({ + url: '/department_pc/edit_one_detailed_target', + method: 'post', + data + }) + } + // 获取子栏目基础信息 + export function getsontargetcont(data) { + return request({ + url: '/department_pc/getsontargetcont', + method: 'post', + data + }) + } + // 删除单一指标细则 + export function del_one_detailed_target(data) { + return request({ + url: '/department_pc/del_one_detailed_target', + method: 'post', + data + }) + } +// 获取岗位指标详情 +export function get_post_target(data) { + return request({ + url: '/postpc/get_post_target', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/api/honer.js b/src/api/honer.js index a8919fd..b8cd280 100644 --- a/src/api/honer.js +++ b/src/api/honer.js @@ -62,4 +62,20 @@ export function eidycarrierstate(data) { method: 'post', data }) + } + // 荣誉查看图片 + export function reviewimage(data) { + return request({ + url: '/honors/reviewimage', + method: 'post', + data + }) + } + // 查询荣誉详情 + export function gethonorscont(data) { + return request({ + url: '/honors/gethonorscont', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 121cb8b..db15ab2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -230,25 +230,7 @@ export const constantRoutes = [ }, ], }, - // 考核方案 - { - path: '/assessmentProgram', - component: Layout, - children: [ - // 当 /user/:id 匹配成功 - // UserHome 将被渲染到 User 的 内部 - { - path: 'departmentalAssessment', - component: () => import('@/views/assessmentProgram/departmentalAssessment'), - meta: { title: '定量考核'} - }, - { - path: 'qualitativeIndicators', - component: () => import('@/views/assessmentProgram/qualitativeIndicators'), - meta: { title: '定性考核'} - }, - ], - }, + // 基础信息 { path: '/basicInfo', @@ -349,56 +331,32 @@ export const constantRoutes = [ // } // ] // }, - { - path: '/assessmentProgram', - component: Layout, - redirect: '/assessmentProgram/departmentalAssessment', - name: 'Example', - meta: { title: '考核方案', icon: 'el-icon-s-help' }, - children: [ - { - path: 'departmentalAssessment', - name: 'departmentalAssessment', - component: () => import('@/views/assessmentProgram/departmentalAssessment'), - meta: { title: '部门考核', icon: 'table' } - }, - // { - // path: 'jobAssessment', - // name: 'jobAssessment', - // component: () => import('@/views/assessmentProgram/jobAssessment'), - // meta: { title: '岗位考核', icon: 'tree' } - // }, - { - path: 'qualitativeIndicators', - name: 'qualitativeIndicators', - component: () => import('@/views/assessmentProgram/qualitativeIndicators'), - meta: { title: '定性考核', icon: 'tree' } - }, - { - path: 'gwQualitativeIndicators', - name: 'gwQualitativeIndicators', - component: () => import('@/views/assessmentProgram/gwQualitativeIndicators'), - meta: { title: '定性考核', icon: 'tree' } - }, - // { - // path: 'quantitativeIndicators', - // name: 'quantitativeIndicators', - // component: () => import('@/views/assessmentProgram/quantitativeIndicators'), - // meta: { title: '定量考核', icon: 'tree' } - // }, - // { - // path: 'subSection', - // name: 'subSection', - // component: () => import('@/views/assessmentProgram/subSection'), - // meta: { title: '定性考核子栏目', icon: 'tree' } - // },{ - // path: 'rules', - // name: 'rules', - // component: () => import('@/views/assessmentProgram/rules'), - // meta: { title: '考核细则', icon: 'tree' } - // } - ] - }, + // 考核方案 + { + path: '/assessmentProgram', + component: Layout, + children: [ + // 当 /user/:id 匹配成功 + // UserHome 将被渲染到 User 的 内部 + { + path: 'departmentalAssessment', + component: () => import('@/views/assessmentProgram/departmentalAssessment'), + meta: { title: '部门考核'} + }, + { + path: 'gwQualitativeIndicators', + component: () => import('@/views/assessmentProgram/qualitativeIndicatorsBase'), + meta: { title: '定性考核'} + }, + { + path: 'qualitativeIndicators', + component: () => import('@/views/assessmentProgram/qualitativeIndicators'), + meta: { title: '定性考核'} + }, + + ], + }, + { path: '/basicInfo', component: Layout, diff --git a/src/views/assessmentProgram/gwQualitativeIndicators.vue b/src/views/assessmentProgram/gwQualitativeIndicators.vue index 1bb3d9b..bec1c61 100644 --- a/src/views/assessmentProgram/gwQualitativeIndicators.vue +++ b/src/views/assessmentProgram/gwQualitativeIndicators.vue @@ -90,7 +90,6 @@ >删除 - --> @@ -176,6 +175,17 @@ +
+ + +
@@ -322,7 +332,6 @@ - @@ -853,7 +862,8 @@ + + diff --git a/src/views/basicInfo/gwProject copy.vue b/src/views/basicInfo/gwProject copy.vue new file mode 100644 index 0000000..f13661f --- /dev/null +++ b/src/views/basicInfo/gwProject copy.vue @@ -0,0 +1,899 @@ + + + + + diff --git a/src/views/basicInfo/gwProject.vue b/src/views/basicInfo/gwProject.vue index 3ebf31b..06555da 100644 --- a/src/views/basicInfo/gwProject.vue +++ b/src/views/basicInfo/gwProject.vue @@ -39,7 +39,7 @@ - + @@ -56,11 +56,7 @@ type="primary" icon="el-icon-search" @click="onSubmit" - >查询 - 重置 + >查询 @@ -71,38 +67,12 @@ type="primary" icon="el-icon-plus" @click="showAdd()" - >新增 + >新增 - - - - - - - + -
- -
-
- + + - + -->