1406 changed files with 219866 additions and 35 deletions
@ -0,0 +1,150 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
summaryplanrecord |
||||
@ -0,0 +1,157 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
summaryplanrecord |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanrecord(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,157 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
get_post_target |
||||
@ -0,0 +1,164 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
get_post_target |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/get_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_post_target(data?:get_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_post(data?:get_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
import request from '@/utils/request'; |
||||
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss, addposttar, searchorgpos, setposttarget, table_base_post_target, getdetails, neweditposttarget, get_organdpost_ary, look_work_flowcont, quantechart, gettarget, getquantechartorgandyear, summaryplanrecord, get_post_target } from './type'; |
||||
|
export function addPostCont(url:string,method:string,data?: postinfp){ |
||||
|
return request({ |
||||
|
url: url, |
||||
|
method: method, |
||||
|
data: data |
||||
|
}); |
||||
|
} |
||||
|
export function tarlist(data?:tarData){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_depart_tar_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addtarget(data?:addlist){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_add_depar_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function deltarget(data?:deltarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_del_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupusers(data?:getgroupData){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupdepartmap', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function edittarget(data?:edittarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/department_pc/new_edit_one_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function positionlist(data?:position){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/positionlist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getgroupuser(data?:getgroup){ |
||||
|
return request({ |
||||
|
url:'/api/group/getgroupuser', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function organdpost(data?:organd){ |
||||
|
return request({ |
||||
|
url:'/hrapi/org/get_organdpost_three', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function posttarget(data?:postsss){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_posttarget_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function addposttargetcont(data?:addposttar){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/addposttargetcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function search_orgpost(data?:searchorgpos){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/search_orgpost_list', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function set_posttarget(data?:setposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/set_posttarget_state', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function table_base_post(data?:table_base_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/table_base_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getdetailslist(data?:getdetails){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/getdetailslist', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function neweditpost(data?:neweditposttarget){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/neweditposttarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_organdpost(data?:get_organdpost_ary){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_organdpost_ary', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function look_work(data?:look_work_flowcont){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/workflow/look_work_flowcont', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function quante(data?:quantechart){ |
||||
|
return request({ |
||||
|
url:'/api/quant/quantechart', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function gettar(data?:gettarget){ |
||||
|
return request({ |
||||
|
url:'/api/duty/gettarget', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function getquantechar(data?:getquantechartorgandyear){ |
||||
|
return request({ |
||||
|
url:'/api/quant/getquantechartorgandyear', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function summaryplanre(data?:summaryplanrecord){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/strtistics/summaryplanrecord', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
export function get_post(data?:get_post_target){ |
||||
|
return request({ |
||||
|
url:'/kpiapi/postpc/get_post_target', |
||||
|
method:'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
@ -0,0 +1,150 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
summaryplanrecord |
||||
@ -0,0 +1,153 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
@ -0,0 +1,153 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
"12" |
||||
|
year |
||||
|
: |
||||
|
2023 |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
"12" |
||||
|
year |
||||
|
: |
||||
|
Number |
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
"12" |
||||
|
year |
||||
|
: |
||||
|
Number; |
||||
|
} |
||||
@ -0,0 +1,161 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
"12" |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,161 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
"12" |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,161 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid |
||||
|
: |
||||
|
string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,159 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,159 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
3 |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,159 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
Number |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,159 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month |
||||
|
: |
||||
|
Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,157 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,157 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
"438" |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,157 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department |
||||
|
: |
||||
|
string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,155 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,156 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
get_post_target |
||||
@ -0,0 +1,162 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
get_post_target |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,162 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
|
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,161 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,161 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
export interface get_post_target{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
@ -0,0 +1,158 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
export interface get_post_target{ |
||||
|
department:string; |
||||
|
} |
||||
@ -0,0 +1,158 @@ |
|||||
|
export interface postinfp{ |
||||
|
id?:number, |
||||
|
number?: string, |
||||
|
name?:string, |
||||
|
superior?:number, |
||||
|
organizationtype?: number, |
||||
|
abbreviation?: string, |
||||
|
time?: number, |
||||
|
state?: number, |
||||
|
wechatorganizationid?: number, |
||||
|
superiorsun?: string, |
||||
|
schoole?: number, |
||||
|
kingdeeid?: string, |
||||
|
ispower?: number, |
||||
|
sort?: number, |
||||
|
classname?: string, |
||||
|
level?: number, |
||||
|
isman?: number, |
||||
|
status?: boolean, |
||||
|
child?: null, |
||||
|
type?:number; |
||||
|
} |
||||
|
export interface tarData{ |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
name?:string; |
||||
|
dimension?:string; |
||||
|
attribute?:string; |
||||
|
orgidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addlist{ |
||||
|
name?:string; |
||||
|
share?:number; |
||||
|
acceptdepartmentid?:Array<any>; |
||||
|
userlist?:Array<any>; |
||||
|
dimension?:string; |
||||
|
nature?:number; |
||||
|
unit?:string; |
||||
|
cycle?:number; |
||||
|
cycleattr?:Number; |
||||
|
scoringmethod?:number; |
||||
|
visiblerangegroup?:Array<any>; |
||||
|
visiblerangedepart?:Array<any>; |
||||
|
} |
||||
|
export interface deltarget{ |
||||
|
id?:String; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface getgroupData{ |
||||
|
id?:number; |
||||
|
all:number; |
||||
|
} |
||||
|
export interface edittarget{ |
||||
|
acceptdepartmentid?:Array<any> |
||||
|
cycle?:Number; |
||||
|
cycleattr:number; |
||||
|
dimension:string; |
||||
|
id:string; |
||||
|
name:string; |
||||
|
nature:number; |
||||
|
scoringmethod:Number; |
||||
|
unit:string; |
||||
|
userlist:Array<any> |
||||
|
} |
||||
|
export interface position{ |
||||
|
page?:number; |
||||
|
pagesize?:number; |
||||
|
organization?:string; |
||||
|
} |
||||
|
export interface getgroup{ |
||||
|
id?:number; |
||||
|
level?:number; |
||||
|
} |
||||
|
export interface organd{ |
||||
|
all?:number; |
||||
|
id?:string; |
||||
|
levelL:number; |
||||
|
} |
||||
|
export interface postsss{ |
||||
|
attribute?:string; |
||||
|
dimension?:string; |
||||
|
page?:number; |
||||
|
pageSize?:number; |
||||
|
title?:string; |
||||
|
postidlist?:Array<any>; |
||||
|
} |
||||
|
export interface addposttar{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: number; |
||||
|
cycle?:number; |
||||
|
cycleattr?: number; |
||||
|
departmentPostOther?:Array<any> |
||||
|
otherposttarget?:Array<any>; |
||||
|
|
||||
|
} |
||||
|
export interface searchorgpos{ |
||||
|
name?:string; |
||||
|
orgid?:string; |
||||
|
} |
||||
|
export interface setposttarget{ |
||||
|
id?:string; |
||||
|
state?:number; |
||||
|
istrue?:number; |
||||
|
} |
||||
|
export interface table_base_post_target{ |
||||
|
id?:string; |
||||
|
} |
||||
|
export interface getdetails{ |
||||
|
targetid: string; |
||||
|
inspect: Array<any>; |
||||
|
postlist: Array<any>; |
||||
|
cycle:Number; |
||||
|
} |
||||
|
export interface neweditposttarget{ |
||||
|
title?:string; |
||||
|
dimension?: String; |
||||
|
unit?:String; |
||||
|
type?: number; |
||||
|
scoringmethod?: Number; |
||||
|
cycle?:Number; |
||||
|
cycleattr?: Number; |
||||
|
otherposttarget?:Array<any>; |
||||
|
id:string; |
||||
|
} |
||||
|
export interface get_organdpost_ary{ |
||||
|
id: string; |
||||
|
} |
||||
|
export interface look_work_flowcont{ |
||||
|
id:string; |
||||
|
} |
||||
|
export interface quantechart{ |
||||
|
AccMethod?:Array<any>; |
||||
|
targetid?:Array<any>; |
||||
|
year?:Array<any>; |
||||
|
analysisangle?:number; |
||||
|
org?:Array<any>; |
||||
|
timeattribute?:Array<any> |
||||
|
} |
||||
|
export interface gettarget{ |
||||
|
page:number; |
||||
|
pagesize:number; |
||||
|
} |
||||
|
export interface getquantechartorgandyear{ |
||||
|
targetid:Array<any>; |
||||
|
} |
||||
|
export interface summaryplanrecord{ |
||||
|
department:string; |
||||
|
month:Number; |
||||
|
targetid:string; |
||||
|
year:Number; |
||||
|
} |
||||
|
export interface get_post_target{ |
||||
|
id:string; |
||||
|
} |
||||
@ -0,0 +1,272 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
<el-form-item label-width="18"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
|
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,271 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
<el-form-item label-width="18"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,273 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label-width="18"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
</el-form-item> |
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,273 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label-width="18"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
|
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,273 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
|
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,273 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label-width="18"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
</el-form-item> |
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,273 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-19 09:13:14 |
||||
|
@ 备注: |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import {ref,reactive,onMounted} from 'vue' |
||||
|
import Diolog from './diolog.vue' |
||||
|
import Edit from './editdialog.vue' |
||||
|
import ED from './edcialog.vue' |
||||
|
import zjr from './zjr.vue' |
||||
|
import { addPostCont,tarlist,deltarget } from '@/api/opk/api' |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
import { formItemValidateStates, TableV2SortOrder } from 'element-plus'; |
||||
|
// eslint-disable-next-line vue/require-prop-types |
||||
|
const { addShow, title } = defineProps(['addShow', 'title']) |
||||
|
const data = reactive({ |
||||
|
formInline:{ |
||||
|
region:'', |
||||
|
}, |
||||
|
addPostBox: false, |
||||
|
editPostCont:false, |
||||
|
edPostCont:false, |
||||
|
zjrPostBox:false, |
||||
|
}) |
||||
|
const orgTreeProps ={ |
||||
|
label: 'name', |
||||
|
children:'child' |
||||
|
} |
||||
|
const orgTreeProp ={ |
||||
|
label: 'title', |
||||
|
children:'childen' |
||||
|
} |
||||
|
const formdat = { |
||||
|
someProp:"", |
||||
|
} |
||||
|
const total =ref(0) |
||||
|
let rowInfo = ref<any>({}) |
||||
|
const postIds = ref<number[]>([]) |
||||
|
const tableData = ref<any>([]); |
||||
|
const tables = ref<any>([]); |
||||
|
// 获取侧栏数据 |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const table = ref<any>([]) |
||||
|
const formdate = reactive({ |
||||
|
page:0, |
||||
|
pagesize:10, |
||||
|
name:"", |
||||
|
dimension:"", |
||||
|
attribute:"", |
||||
|
orgidlist:[]as String[], |
||||
|
type:"", |
||||
|
}) |
||||
|
// 获取数据 |
||||
|
const pages = ref(0) |
||||
|
const pagesizes = ref(4) |
||||
|
const newtarlist=()=>{ |
||||
|
const add = formdate.type.toString() |
||||
|
tarlist({page:formdate.page,pageSize:formdate.pagesize,name:formdate.name,dimension:formdate.dimension, attribute:add,orgidlist:formdate.orgidlist}) |
||||
|
.then(data=>{ |
||||
|
table.value = data.data.list |
||||
|
total.value = data.data.total; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
newtarlist() |
||||
|
// 新增数据 |
||||
|
const addtableData = ()=>{ |
||||
|
data.addPostBox = true; |
||||
|
} |
||||
|
// 添加行 |
||||
|
const addRow = (val:any)=> { |
||||
|
tableData.value.push(val); |
||||
|
} |
||||
|
// 编辑行 |
||||
|
const editRow = (val:any)=> { |
||||
|
let index =tableData.value.findIndex( |
||||
|
(item:any) => item.id === val.id |
||||
|
); |
||||
|
tableData.value.splice(index, 1, val); |
||||
|
} |
||||
|
// 关闭弹窗 |
||||
|
const closeDetail = ()=>{ |
||||
|
data.addPostBox = false; |
||||
|
} |
||||
|
// 状态 |
||||
|
function editPostState(classId:number,state:number){ |
||||
|
console.log("改变状态--------->",classId,state) |
||||
|
const add =classId.toString() |
||||
|
let statusVal = 1 |
||||
|
if( state == 2 ) statusVal = 2; |
||||
|
deltarget({id:add,state:statusVal,istrue:2}) |
||||
|
newtarlist() |
||||
|
} |
||||
|
// 删除数据 |
||||
|
const handleDel = (val:any) => { |
||||
|
const dictTypeIds = [val.outID || postIds.value].join(","); |
||||
|
let dictTypeIdAry = dictTypeIds.split(",") |
||||
|
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", { |
||||
|
confirmButtonText: "确认", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(() => { |
||||
|
const delid = new String(val.id) |
||||
|
handleSure(val) |
||||
|
console.log(val.id) |
||||
|
deltarget({id:delid,state:3,istrue:2}).then(()=> |
||||
|
ElMessage.success("删除成功")) |
||||
|
newtarlist() |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
alert('用户取消了删除操作'); |
||||
|
}); |
||||
|
}; |
||||
|
const handleSure = (val:any)=> { |
||||
|
const index = tableData.value.findIndex((item:any) => item.id === val.id); |
||||
|
if(index!=-1){ |
||||
|
tableData.value.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
const resetChecked=()=> { |
||||
|
formdate.orgidlist = [] |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handle=(data:any)=>{ |
||||
|
formdate.orgidlist = data.id.toString().split(',') |
||||
|
newtarlist() |
||||
|
} |
||||
|
const handleedit=(val:any)=>{ |
||||
|
data.editPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const handleErd=(val:any)=>{ |
||||
|
data.edPostCont=true, |
||||
|
rowInfo.value=val; |
||||
|
} |
||||
|
const jkl=(val:any)=>{ |
||||
|
data.zjrPostBox=true; |
||||
|
rowInfo.value = val; |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
jjjs() |
||||
|
newtarlist() |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-container class="m-4"> |
||||
|
<div class="qwe"> |
||||
|
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button> |
||||
|
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" multiple node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/> |
||||
|
</div> |
||||
|
<el-divider direction="vertical"/> |
||||
|
<el-col :span="22"> |
||||
|
<el-container class="wer"> |
||||
|
<el-form-item label="考核指标"> |
||||
|
<el-input v-model="formdate.name" placeholder="请输入考核指标" clearable/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标名称"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formdate.dimension" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProp" :default-expand-all="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item v-model="formdate" label="指标名称"> |
||||
|
<el-select v-model="formdate.type" placeholder="请输入名称" clearable> |
||||
|
<el-option label="定性指标" :value="1" /> |
||||
|
<el-option label="定量指标" :value="2" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label-width="14"> |
||||
|
<el-button type="primary" @click="newtarlist"><el-icon><Search /></el-icon>查询</el-button> |
||||
|
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon>新增</el-button> |
||||
|
</el-form-item> |
||||
|
</el-container> |
||||
|
<el-table class="m-1" :data="table" style="width: 100%"> |
||||
|
<el-table-column label="考核指标"> |
||||
|
<template #default="scope"> |
||||
|
<a v-if="scope.row.scoringmethod == 2" style="color:#409eff" @click="jkl(scope.row)">{{scope.row.title}}</a> |
||||
|
<a v-if="scope.row.scoringmethod == 1">{{scope.row.title}}</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="dimensiontitle" label="考核维度"/> |
||||
|
<el-table-column prop="scoringmethod" label="指标性质"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.scoringmethod== 1">定量考核</span> |
||||
|
<span v-if="scope.row.scoringmethod== 2">定性考核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="unites" label="计量单位" /> |
||||
|
<el-table-column prop="cycle" label="考核周期"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycle== 4" class="el-tag">季度</span> |
||||
|
<span v-if="scope.row.cycle== 5" class="el-tag">月</span> |
||||
|
<span v-if="scope.row.cycle== 6" class="el-tag">年</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="cycleattr" label="计分方式"> |
||||
|
<template #default="scope"> |
||||
|
<span v-if="scope.row.cycleattr== 1" class="el-tag">自动计分</span> |
||||
|
<span v-if="scope.row.cycleattr== 2" class="el-tag">手动计分</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="relevantdepartments" label="关联部门"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formdat.someProp" placeholder="查看详情"> |
||||
|
<el-option v-for="item in scope.row.relevantdepartmentsmap" :key="item.key" :label="item.title" :value="item.title"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="reportmap[0].title" label="数据提交"/> |
||||
|
<el-table-column prop="share" label="辅助计数"/> |
||||
|
<el-table-column prop="state" label="状态" width="70"> |
||||
|
<template #default="scope"> |
||||
|
<el-switch v-model="scope.row.state" class="ml-2" :inactive-value="1" :active-value="2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.id,scope.row.state)"/> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" label="操作" width="250"> |
||||
|
<template #default="{ row }"> |
||||
|
<el-button type="primary" link @click="handleErd(row)"><el-icon><EditPen /></el-icon>关联部门</el-button> |
||||
|
<el-button type="primary" link @click="handleedit(row)"><el-icon><EditPen /></el-icon>编辑</el-button> |
||||
|
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon>删除</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-col> |
||||
|
</el-container> |
||||
|
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @pagination="newtarlist"/> |
||||
|
<Diolog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Diolog> |
||||
|
<Edit v-if="data.editPostCont" v-model="data.editPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></Edit> |
||||
|
<ED v-if="data.edPostCont" v-model="data.edPostCont" :row-info="rowInfo" :title="title" :array-num="tableData.length"></ED> |
||||
|
<zjr v-if="data.zjrPostBox" v-model="data.zjrPostBox" :row-info="rowInfo" :title="title" :array-num="tableData.length"></zjr> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
.horizontal-controls { |
||||
|
display: flex; |
||||
|
float: left; |
||||
|
} |
||||
|
.aaa{ |
||||
|
display:flex; |
||||
|
} |
||||
|
.el-divider--vertical{ |
||||
|
display:inline-block; |
||||
|
width:1px; |
||||
|
height:700px; |
||||
|
margin:0 8px; |
||||
|
vertical-align:middle; |
||||
|
position:relative; |
||||
|
} |
||||
|
.qwe{ |
||||
|
margin:-15px 10px 0 -14px; |
||||
|
} |
||||
|
.wer{ |
||||
|
margin: -7px 0 0 15px; |
||||
|
} |
||||
|
/* 可以根据需要调整样式 */ |
||||
|
</style> |
||||
@ -0,0 +1,205 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,205 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
|
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo.postary, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,206 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiu.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function orgpost(){ |
||||
|
get_post({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,216 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({id:}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,214 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({id:}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,214 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post() |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({id:}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post() |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({id:props.rowIn}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,217 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
get_post({id:props.rowInfo.id}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id |
||||
|
get_post({id:props.rowInfo.id}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id) |
||||
|
get_post({id:props.rowInfo.id}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:props.rowInfo.id}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="operator"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="taoperator"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="tablaoperator"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="tablauio.operator"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="tablaoperator"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model=" "> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,218 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const tableq = ref([]) |
||||
|
function orgpost(){ |
||||
|
search_orgpost({name:formData.name,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
tableq.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="uio"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="tableiuo"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="tableiuo"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,208 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
{{props.rowInfo}} |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props,rowi, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props,rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":props.rowInfo, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":, |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data.otherposttarget; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="table"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableuio = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data.otherposttarget; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="tableiuo"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableiuo = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data.otherposttarget; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="tableiuo"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postlist" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,207 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 鲁智强 |
||||
|
@ 时间: 2023-09-28 15:32:37 |
||||
|
@ 备注: 岗位指标编辑 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { addPostCont,getgroupusers,neweditpost,getgroupuser,search_orgpost,get_post } from '@/api/opk/api' |
||||
|
// eslint-disable-next-line vue/no-dupe-keys |
||||
|
import { editPostCont } from '@/api/opk/pulic/api' |
||||
|
const formData = reactive({ |
||||
|
"title":"", |
||||
|
"relevantdepartmentsmap":[] as {orgid:Number,postid:Number,operator:Array<any>}[], |
||||
|
"state":"", |
||||
|
"dimensiontitle":"", |
||||
|
"unit":"", |
||||
|
"reportmap":[], |
||||
|
"jkl":0, |
||||
|
"cycleattr":0, |
||||
|
"id":"", |
||||
|
"cycle":"", |
||||
|
"name":"", |
||||
|
"zjr":"", |
||||
|
"dimensionname":"", |
||||
|
"postarys":"", |
||||
|
"deaprtname":"", |
||||
|
}) |
||||
|
const tableData = ref<any>([]) |
||||
|
function jjjs(){ |
||||
|
addPostCont("/hrapi/org/govthree","post") |
||||
|
.then(data => { |
||||
|
tableData.value = data.data[3].child[14].child; |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error fetching data:', error); |
||||
|
}); |
||||
|
} |
||||
|
jjjs() |
||||
|
const tables = ref<any>([]) |
||||
|
function editPost(){ |
||||
|
editPostCont() |
||||
|
.then(data => { |
||||
|
tables.value = data.data.list; |
||||
|
}) |
||||
|
} |
||||
|
editPost() |
||||
|
const tablea = ref([]) |
||||
|
function getgrou(){ |
||||
|
getgroupusers({ id:309,all:1 }) |
||||
|
.then(data => { |
||||
|
tablea.value = data.data; |
||||
|
console.log(tablea.value) |
||||
|
}) |
||||
|
} |
||||
|
getgrou() |
||||
|
const tablee = ref([]) |
||||
|
function getuser(){ |
||||
|
getgroupuser({id:309,level:4}) |
||||
|
.then(data => { |
||||
|
tablee.value = data.data; |
||||
|
}) |
||||
|
} |
||||
|
getuser() |
||||
|
const table = ref([]) |
||||
|
const isshows = ref(false) |
||||
|
function orgposts (){ |
||||
|
const ess = props.rowInfo.postary[0].name |
||||
|
search_orgpost({name:ess,orgid:"309"}) |
||||
|
.then(data =>{ |
||||
|
table.value = data.data; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
orgposts() |
||||
|
const tableiuo = ref([]) |
||||
|
function get_posts(){ |
||||
|
const err = props.rowInfo.id.toString() |
||||
|
get_post({id:err}) |
||||
|
.then(data =>{ |
||||
|
tableiuo.value = data.data.otherposttarget; |
||||
|
}) |
||||
|
.finally(()=>{ |
||||
|
isshows.value = false |
||||
|
}) |
||||
|
} |
||||
|
get_posts() |
||||
|
const props = defineProps({ |
||||
|
title:{ |
||||
|
type:String, |
||||
|
default:"", |
||||
|
}, |
||||
|
editPostCont:{ |
||||
|
type:Boolean, |
||||
|
default:false, |
||||
|
}, |
||||
|
rowInfo:{ |
||||
|
type:Object, |
||||
|
default(){ |
||||
|
return {}; |
||||
|
} |
||||
|
}, |
||||
|
arrayNum:{ |
||||
|
type:Number, |
||||
|
default:0, |
||||
|
} |
||||
|
}) |
||||
|
const orgTreeProp ={ |
||||
|
label:'name', |
||||
|
children:'child', |
||||
|
} |
||||
|
const orgTreeProps ={ |
||||
|
label:'title', |
||||
|
children:'children' |
||||
|
} |
||||
|
const orgTreePropa ={ |
||||
|
label:'name', |
||||
|
children:'children' |
||||
|
} |
||||
|
const num =ref(1) |
||||
|
const emit = defineEmits(["update:editPostCont"]) |
||||
|
const handClose=()=>{ |
||||
|
emit("update:editPostCont",false) |
||||
|
} |
||||
|
const submitForm = ()=>{ |
||||
|
const yuu = new Number(formData.deaprtname) |
||||
|
const opp = new Number(formData.zjr) |
||||
|
const oop = formData.name.toString().split(',') |
||||
|
formData.relevantdepartmentsmap = [{orgid:yuu,postid:opp,operator:oop}] |
||||
|
const edd = formData.id.toString() |
||||
|
const add = new Number(formData.cycle) |
||||
|
const err = new Number(formData.state) |
||||
|
neweditpost({otherposttarget:formData.relevantdepartmentsmap,id:edd,title:formData.title,cycle:add,cycleattr:formData.cycleattr,dimension:formData.dimensionname,scoringmethod:err,type:num.value,unit:formData.unit}) |
||||
|
.then(()=> |
||||
|
ElMessage.success("编辑成功")) |
||||
|
handClose() |
||||
|
jjjs() |
||||
|
} |
||||
|
onMounted(()=>{ |
||||
|
Object.assign(formData,props.rowInfo); |
||||
|
}) |
||||
|
</script> |
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :title="title" style="width:40%" @close="handClose"> |
||||
|
<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm"> |
||||
|
<el-form-item label="指标名称:" prop="title"> |
||||
|
<el-input v-model="formData.title" placeholder="请输入名称"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="岗位/人员:" prop="dimensionname"> |
||||
|
<el-input v-model="formData.postarys" placeholder="请输入指标名称"></el-input> |
||||
|
<el-button @click="orgposts">查询</el-button> |
||||
|
<el-table v-loading="isshows" :data="tableiuo"> |
||||
|
<el-table-column label="行政组织"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.deaprtname" show-checkbox clearable node-key="id" class="orgTree" :data="tablea" :props="orgTreePropa" :render-after-expand="false" :disable-branch-nodes="true"/> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="" label="相关岗位"> |
||||
|
<template #default="scope"> |
||||
|
<el-select v-model="formData.zjr"> |
||||
|
<el-option v-for="item in scope.row.postid" :key="item.id" :label="item.name" :value="item.id"></el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="提报人"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.name" multiple show-checkbox node-key="key" class="orgTree" :data="tablee" :props="orgTreeProp" :render-after-expand="false"/> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标性质:" prop=""> |
||||
|
<el-select v-model="formData.state"> |
||||
|
<el-option label="定性指标" :value="1"></el-option> |
||||
|
<el-option label="定量指标" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="指标:" prop="dimensiontitle"> |
||||
|
<el-tree-select ref="orgTreeRef" v-model="formData.dimensionname" clearable node-key="outId" class="orgTree" :data="tables" :props="orgTreeProps" :render-after-expand="false"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计量单位:" prop="unites"> |
||||
|
<el-input v-model="formData.unit"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="计分方式:" prop="cycleattr"> |
||||
|
<el-select v-model="formData.cycleattr"> |
||||
|
<el-option label="自动计数" :value="1"></el-option> |
||||
|
<el-option label="手动技术" :value="2"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="考核周期:" prop=""> |
||||
|
<el-select v-model="formData.cycle"> |
||||
|
<el-option label="班" :value="1"></el-option> |
||||
|
<el-option label="天" :value="2"></el-option> |
||||
|
<el-option label="周" :value="3"></el-option> |
||||
|
<el-option label="月" :value="4"></el-option> |
||||
|
<el-option label="季度" :value="5"></el-option> |
||||
|
<el-option label="年" :value="6"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="辅助计数:" prop="state"> |
||||
|
<el-input-number v-model="num" :min="1"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item> |
||||
|
<el-button type="primary" @click="submitForm()">确定</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
|
||||
|
</style> |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue