后台管理前后端完全分离版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
31 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26198766"],{"1dac":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showDialog()}}},[t._v("选择考核项目")])],1),r("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"60%","append-to-body":!0},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("div",{staticClass:"gva-search-box"},[r("el-form",{ref:"searchForm",attrs:{inline:!0,model:t.projectSearchInfo}},[r("el-form-item",{attrs:{label:"考核项目名称"}},[r("el-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:t.projectSearchInfo.title,callback:function(e){t.$set(t.projectSearchInfo,"title",e)},expression:"projectSearchInfo.title"}})],1),r("el-form-item",{attrs:{label:"所属考核类别"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:t.projectSearchInfo.parentId,callback:function(e){t.$set(t.projectSearchInfo,"parentId",e)},expression:"projectSearchInfo.parentId"}},t._l(t.dutyclasslist,(function(t){return r("el-option",{key:t.outId,attrs:{label:t.title,value:t.outId}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-search"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1),r("div",{staticClass:"gva-table-box"},[r("el-table",{attrs:{data:t.assessList}},[r("el-table-column",{attrs:{align:"left",label:"所属考核类别",prop:"parentTitle"}}),r("el-table-column",{attrs:{align:"left",label:"考核项目名称",prop:"title"}}),r("el-table-column",{attrs:{align:"left",label:"考核项目说明",prop:"content"}}),r("el-table-column",{attrs:{align:"left",fixed:"right",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"primary",round:""},on:{click:function(r){return t.checked(e.row)}}},[t._v("选中")])]}}])})],1),r("div",{staticClass:"gva-pagination"},[r("el-pagination",{attrs:{"current-page":t.projectSearchInfo.page,"page-size":t.projectSearchInfo.pageSize,"page-sizes":[10,30,50,100],total:t.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)],1)])],1)},a=[],o=r("febe"),s=(r("e186"),r("b6be")),i=r("a88f"),l={data:function(){return{projectTitle:"",total:"",searchList:{page:1,pagesize:1e4},dutyclasslist:{},projectSearchInfo:{page:1,pageSize:10,state:1},dialogVisible:!1,assessList:null}},created:function(){this.getProjectList(),this.getDutyclasslist()},methods:{onSubmit:function(){this.page=1,this.pageSize=10,this.getProjectList()},handleSizeChange:function(t){this.projectSearchInfo.pageSize=t},handleCurrentChange:function(t){this.projectSearchInfo.page=t},getDutyclasslist:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["b"])(t.searchList);case 2:r=e.sent,t.dutyclasslist=r.data.list;case 4:case"end":return e.stop()}}),e)})))()},showDialog:function(){this.dialogVisible=!0},getProjectList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])(t.projectSearchInfo);case 2:r=e.sent,t.assessList=r.data.list,t.projectSearchInfo.page=r.data.page,t.projectSearchInfo.pageSize=r.data.pageSize,t.total=r.data.total;case 7:case"end":return e.stop()}}),e)})))()},checked:function(t){this.projectTitle=t.title,this.$emit("checkedInfo",t),this.dialogVisible=!1}}},c=l,u=r("cba8"),d=Object(u["a"])(c,n,a,!1,null,"67c0f262",null);e["a"]=d.exports},"496e":function(t,e,r){"use strict";r("b26a")},"64dc":function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"k",(function(){return o})),r.d(e,"m",(function(){return s})),r.d(e,"l",(function(){return i})),r.d(e,"d",(function(){return l})),r.d(e,"h",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"e",(function(){return d})),r.d(e,"j",(function(){return p})),r.d(e,"i",(function(){return f})),r.d(e,"c",(function(){return h})),r.d(e,"g",(function(){return m})),r.d(e,"a",(function(){return g})),r.d(e,"n",(function(){return b})),r.d(e,"o",(function(){return w}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/duty/addqualeval",method:"post",data:t})},o=function(t){return Object(n["a"])({url:"/duty/gettasktarget",method:"post",data:t})},s=function(t){return Object(n["a"])({url:"/duty/gettasktargetsun",method:"post",data:t})},i=function(t){return Object(n["a"])({url:"/duty/gettasktargetcontary",method:"post",data:t})},l=function(t){return Object(n["a"])({url:"/duty/addration",method:"post",data:t})},c=function(t){return Object(n["a"])({url:"/duty/departmenttasklist",method:"post",data:t})},u=function(t){return Object(n["a"])({url:"/duty/delqualevalcont",method:"post",data:t})},d=function(t){return Object(n["a"])({url:"/duty/deldepartmenttasklist",method:"post",data:t})},p=function(t){return Object(n["a"])({url:"/duty/getqualeval",method:"post",data:t})},f=function(t){return Object(n["a"])({url:"/duty/eitequalevalcont",method:"post",data:t})},h=function(t){return Object(n["a"])({url:"/duty/addqubatch",method:"post",data:t})},m=function(t){return Object(n["a"])({url:"/duty/departmentlistnew",method:"post",data:t})},g=function(t){return Object(n["a"])({url:"/duty/adddepartmentdutyinfo",method:"post",data:t})},b=function(t){return Object(n["a"])({url:"/admin/lookquantitativeconfig",method:"post",data:t})},w=function(t){return Object(n["a"])({url:"/duty/setevaluationobjectives",method:"post",data:t})}},"6ac6":function(t,e,r){"use strict";r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return s}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/duty/getdutyinfo",method:"post",data:t})},o=function(t){return Object(n["a"])({url:"/duty/eitedutyinfo",method:"post",data:t})},s=function(t){return Object(n["a"])({url:"/duty/eitedutystate",method:"post",data:t})}},"6b1f":function(t,e,r){var n=r("add7");t.exports=n(1..valueOf)},a88f:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return s})),r.d(e,"f",(function(){return i})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return c}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/duty/assessList",method:"post",data:t})},o=function(t){return Object(n["a"])({url:"/duty/gettarget",method:"post",data:t})},s=function(t){return Object(n["a"])({url:"/duty/addtarget",method:"post",data:t})},i=function(t){return Object(n["a"])({url:"/duty/gettargetinfo",method:"post",data:t})},l=function(t){return Object(n["a"])({url:"/duty/deltarget",method:"post",data:t})},c=function(t){return Object(n["a"])({url:"/duty/eitetarget",method:"post",data:t})}},b26a:function(t,e,r){},b6be:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return i})),r.d(e,"e",(function(){return l}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/duty/dutyclasslist",method:"post",data:t})},o=function(t){return Object(n["a"])({url:"/duty/adddutyclass",method:"post",data:t})},s=function(t){return Object(n["a"])({url:"/duty/getdutyclassinfo",method:"post",data:t})},i=function(t){return Object(n["a"])({url:"/duty/eitedutyclassinfo",method:"post",data:t})},l=function(t){return Object(n["a"])({url:"/duty/statedutyclass",method:"post",data:t})}},ccf5:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"dashboard-container"},[r("div",{staticClass:"gva-table-box"},[r("div",{staticClass:"gva-btn-list"},[r("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.showAdd()}}},[t._v("新增")])],1),r("el-table",{attrs:{data:t.tableData,border:"","span-method":t.objectSpanMethod}},[r("el-table-column",{attrs:{prop:"parentname",label:"部门"}}),r("el-table-column",{attrs:{prop:"dimensionname",label:"考核维度"}}),r("el-table-column",{attrs:{prop:"targetname",label:"考核指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-link",{attrs:{type:"primary"},on:{click:function(r){return t.showMethod(e.row)}}},[t._v(t._s(e.row.targetname))])]}}])}),r("el-table-column",{attrs:{prop:"unit",label:"单位"}}),r("el-table-column",{attrs:{prop:"cycle",label:"周期"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.cycle?r("el-tag",[t._v("班")]):t._e(),2==e.row.cycle?r("el-tag",[t._v("天")]):t._e(),3==e.row.cycle?r("el-tag",[t._v("周")]):t._e(),4==e.row.cycle?r("el-tag",[t._v("月")]):t._e(),5==e.row.cycle?r("el-tag",[t._v("季度")]):t._e(),6==e.row.cycle?r("el-tag",[t._v("年")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"cycleattr",label:"频次"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.cycle?r("div",[t._v("每班"+t._s(e.row.cycleattr)+"次")]):t._e(),2==e.row.cycle?r("div",[t._v("每天"+t._s(e.row.cycleattr)+"次")]):t._e(),3==e.row.cycle?r("div",[t._v("每周"+t._s(e.row.cycleattr)+"次")]):t._e(),4==e.row.cycle?r("div",[t._v("每月"+t._s(e.row.cycleattr)+"次")]):t._e(),5==e.row.cycle?r("div",[t._v("每季度"+t._s(e.row.cycleattr)+"次")]):t._e(),6==e.row.cycle?r("div",[t._v("每年"+t._s(e.row.cycleattr)+"次")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"userlist",label:"执行人"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{icon:"el-icon-view",size:"small",type:"text"},on:{click:function(r){return t.showUserList(e.row)}}},[t._v("查看")])]}}])}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{icon:"el-icon-edit",size:"small",type:"text"},on:{click:function(r){return t.showEdit(e.row)}}},[t._v("修改")]),r("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"text"},on:{click:function(r){return t.deleteOperate(e.row)}}},[t._v("删除")])]}}])})],1)],1),r("el-dialog",{attrs:{"close-on-click-modal":!1,visible:t.dialogFormVisible,"before-close":t.closeDialog,title:"新增",width:"65%"},on:{"update:visible":function(e){t.dialogFormVisible=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{attrs:{size:"small"},on:{click:t.closeDialog}},[t._v("取 消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.enterDialog}},[t._v("确 定")])],1)]},proxy:!0}])},[r("el-form",{ref:"addForm",attrs:{model:t.form,rules:t.rules,"label-width":"150px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属公司",prop:"title"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:t.selectGroup},model:{value:t.form.group,callback:function(e){t.$set(t.form,"group",e)},expression:"form.group"}},t._l(t.companyList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.parentidShow,expression:"parentidShow"}],attrs:{label:"所属部门",prop:"title"}},[r("el-select",{attrs:{multiple:"",clearable:"",placeholder:"请选择"},on:{change:t.selectDepartment},model:{value:t.form.parentid,callback:function(e){t.$set(t.form,"parentid",e)},expression:"form.parentid"}},t._l(t.departmentList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.targetShow,expression:"targetShow"}],attrs:{label:"考核指标"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},on:{change:t.selectIndex},model:{value:t.form.target,callback:function(e){t.$set(t.form,"target",e)},expression:"form.target"}},t._l(t.indexList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1)],1)],1)],1),t.cardShow?r("el-form-item",{attrs:{label:"考核项目"}},[r("el-card",{staticClass:"box-card"},[r("el-row",[r("el-col",{attrs:{span:8}},[r("span",[t._v("标题"),r("el-input",{staticStyle:{width:"40%","margin-left":"15px"},model:{value:t.form.targetsuntitle,callback:function(e){t.$set(t.form,"targetsuntitle",e)},expression:"form.targetsuntitle"}})],1)]),r("el-col",{attrs:{span:8}},[r("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:function(e){return t.addRules()}}},[t._v("添加细则")])],1),r("el-col",{attrs:{span:8}},[t._v(" 项目总分:"+t._s(t.Fraction)+" ")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.RulesList}},[r("el-table-column",{attrs:{label:"考核标准",align:"center",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.row.title,callback:function(r){t.$set(e.row,"title",r)},expression:"scope.row.title"}})]}}],null,!1,929040874)}),r("el-table-column",{attrs:{label:"考核办法",align:"center",prop:"content"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.row.content,callback:function(r){t.$set(e.row,"content",r)},expression:"scope.row.content"}})]}}],null,!1,4270385699)}),r("el-table-column",{attrs:{label:"标准分",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{on:{change:t.FractionBian},model:{value:e.row.referencescore,callback:function(r){t.$set(e.row,"referencescore",t._n(r))},expression:"scope.row.referencescore"}})]}}],null,!1,446402393)}),r("el-table-column",{attrs:{label:"执行人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-cascader",{attrs:{clearable:"",options:t.grouplistBackup,"show-all-levels":!1,props:t.userProps},model:{value:e.row.userlist,callback:function(r){t.$set(e.row,"userlist",r)},expression:"scope.row.userlist"}})]}}],null,!1,1362225227)}),r("el-table-column",{attrs:{align:"left",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"text"},on:{click:function(r){return t.deleteRulesList(e)}}},[t._v("删除")])]}}],null,!1,1287771613)})],1)],1)],1):t._e()],1)],1),r("el-dialog",{attrs:{"close-on-click-modal":!1,visible:t.editDialogFormVisible,"before-close":t.editCloseDialog,title:"修改",width:"60%"},on:{"update:visible":function(e){t.editDialogFormVisible=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{attrs:{size:"small"},on:{click:t.editCloseDialog}},[t._v("取 消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.editEnterDialog}},[t._v("确 定")])],1)]},proxy:!0}])},[r("el-form",{ref:"editForm",attrs:{model:t.editAdd,rules:t.editRules,"label-width":"150px"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.editAdd.list}},[r("el-table-column",{attrs:{label:"考核标准",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.row.name,callback:function(r){t.$set(e.row,"name",r)},expression:"scope.row.name"}})]}}])}),r("el-table-column",{attrs:{label:"考核办法",align:"center",prop:"content"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.row.content,callback:function(r){t.$set(e.row,"content",r)},expression:"scope.row.content"}})]}}])}),r("el-table-column",{attrs:{label:"标准分",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{on:{change:t.FractionBian},model:{value:e.row.referencescore,callback:function(r){t.$set(e.row,"referencescore",t._n(r))},expression:"scope.row.referencescore"}})]}}])}),r("el-table-column",{attrs:{label:"执行人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-cascader",{attrs:{clearable:"",options:t.grouplistBackup,"show-all-levels":!1,props:t.userProps},model:{value:e.row.userlist,callback:function(r){t.$set(e.row,"userlist",r)},expression:"scope.row.userlist"}})]}}])})],1)],1)],1),r("el-dialog",{attrs:{visible:t.showUser,title:"执行人",width:"30%"},on:{"update:visible":function(e){t.showUser=e}}},[r("el-descriptions",{staticClass:"margin-top",attrs:{column:3,size:"medium",border:""}},t._l(t.userlistary,(function(e){return r("el-descriptions-item",{key:e.key},[r("template",{slot:"label"},[r("i",{staticClass:"el-icon-user"}),t._v(" 姓名 ")]),t._v(" "+t._s(e.name)+" ")],2)})),1)],1),r("el-dialog",{attrs:{visible:t.methodShow,title:"考核办法",width:"60%"},on:{"update:visible":function(e){t.methodShow=e}}},[r("el-table",{attrs:{data:t.methodList,border:"","span-method":t.methodSpanMethod}},[r("el-table-column",{attrs:{prop:"targetsunname",label:"考核项目"}}),r("el-table-column",{attrs:{prop:"detailedtargetname",label:"考核标准"}}),r("el-table-column",{attrs:{prop:"content",label:"考核办法"}}),r("el-table-column",{attrs:{prop:"referencescore",label:"标准分"}}),r("el-table-column",{attrs:{align:"left",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"text"},on:{click:function(r){return t.deleteSmall(e.row)}}},[t._v("删除")])]}}])}),r("el-table-column",{attrs:{align:"left",fixed:"right",label:"修改操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"text"},on:{click:function(r){return t.showEdit(e.row)}}},[t._v("修改")])]}}])})],1)],1)],1)},a=[],o=r("febe"),s=(r("e456"),r("af46"),r("0d90"),r("5ad0"),r("8cb5"),r("09a7"),r("cf33"),r("bab0"),r("f203"),r("e186"),r("b6be")),i=r("a88f"),l=r("64dc"),c=r("1dac"),u=r("6ac6"),d=r("e74c"),p={name:"Dashboard",components:{projectDialog:c["a"]},data:function(){return{Fraction:0,targetShow:!1,parentidShow:!1,cardShow:!1,methodShow:!1,userlistary:[],showUser:!1,userProps:{value:"id",label:"name",children:"groupUser",emitPath:!1,multiple:!0},grouplistBackup:[],options:[{value:1,label:"班"},{value:2,label:"天"},{value:3,label:"周"},{value:4,label:"月"},{value:5,label:"季度"},{value:6,label:"年"}],tableShow:!1,targetsunList:[],RulesList:[],rulesList:[],rulesCopyList:[],indexList:[],dutyclasslist:[],dutyClassFrom:{page:1,pagesize:1e5,state:1},departmentList:[],companyList:[],editChildInfo:{},grouplist:[],props:{value:"id",label:"name",children:"children",emitPath:!1},addChildInfo:{title:""},childInfo:{title:""},editFrom:{},switchFrom:{},deleFrom:{},editAdd:{parentId:""},assessList:{},form:{type:1,group:"",parentid:"",target:"",targetsun:""},dialogFormVisible:!1,editDialogFormVisible:!1,total:0,tableData:[],searchInfo:{type:1},spanArr:[],spanArr1:[],spanArr2:[],abc:{aaa:"111",bbb:"222"},methodSpanArr:[],rulesObjectCopy:{},rules:{},methodList:[],pos:"",pos1:"",pos2:"",methodPos:"",editRules:{title:[{required:!0,message:"请输入名称",trigger:"blur"}]}}},created:function(){""==this.$store.state.user.token&&this.$router.push("/login"),this.getDataList(),this.getGrouplist(),this.getDutyclasslist(),this.getSystemadminlist()},watch:{tableData:function(){var t=this;this.$nextTick((function(){t.spanArr=[],t.spanArr1=[],t.spanArr2=[],t.pos="",t.pos1="",t.pos2="",t.getSpanArr(t.tableData),t.getSpanArr1(t.tableData),t.getSpanArr2(t.tableData)}))},methodList:function(){var t=this;this.$nextTick((function(){t.methodSpanArr=[],t.methodPos="",t.getMethodSpanArr(t.methodList)}))}},methods:{deleteSmall:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return console.log(t),n={outid:t.id},r.next=4,Object(l["e"])(n);case 4:a=r.sent,0===a.code&&(e.$message({type:"success",message:"删除成功!"}),e.getDataList());case 6:case"end":return r.stop()}}),r)})))()},FractionBian:function(){var t=this;this.Fraction=0,this.RulesList.forEach((function(e){t.Fraction+=e.referencescore}))},showMethod:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return console.log("row"),console.log(t),n={type:1,group:t.group,departmentid:t.parentid,dimension:t.dimension,target:t.target},r.next=5,Object(l["h"])(n);case 5:a=r.sent,0==a.code&&(e.methodList=a.data,e.methodShow=!0);case 7:case"end":return r.stop()}}),r)})))()},showUserList:function(t){this.showUser=!0,this.userlistary=t.userlistary},getMethodSpanArr:function(t){for(var e=0;e<t.length;e++)0===e?(this.methodSpanArr.push(1),this.methodPos=0):t[e].targetsun===t[e-1].targetsun?(this.methodSpanArr[this.methodPos]+=1,this.methodSpanArr.push(0)):(this.methodSpanArr.push(1),this.methodPos=e)},getSpanArr:function(t){for(var e=0;e<t.length;e++)0===e?(this.spanArr.push(1),this.pos=0):t[e].parentid===t[e-1].parentid?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=e)},getSpanArr1:function(t){for(var e=0;e<t.length;e++)0===e?(this.spanArr1.push(1),this.pos1=0):t[e].dimension===t[e-1].dimension?(this.spanArr1[this.pos1]+=1,this.spanArr1.push(0)):(this.spanArr1.push(1),this.pos1=e)},getSpanArr2:function(t){for(var e=0;e<t.length;e++)0===e?(this.spanArr2.push(1),this.pos2=0):t[e].target===t[e-1].target?(this.spanArr2[this.pos2]+=1,this.spanArr2.push(0)):(this.spanArr2.push(1),this.pos2=e)},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,r=t.columnIndex;if(0===r){var n=this.spanArr[e],a=n>0?1:0;return{rowspan:n,colspan:a}}if(1===r){var o=this.spanArr1[e],s=o>0?1:0;return{rowspan:o,colspan:s}}var i=this.spanArr2[e],l=i>0?1:0;return{rowspan:i,colspan:l}},methodSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,r=t.columnIndex;if(0===r||5===r){var n=this.methodSpanArr[e],a=n>0?1:0;return{rowspan:n,colspan:a}}},deleteRow:function(t){this.rulesCopyList.splice(t.$index,1)},deleteRulesList:function(t){this.RulesList.splice(t.$index,1)},addRules:function(){this.RulesList.push(JSON.parse(JSON.stringify(this.rulesObject)))},selectIndex:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""==t){r.next=11;break}return n={id:t},r.next=4,Object(i["f"])(n);case 4:a=r.sent,e.targetsunList=a.data,e.rulesObject={title:"",content:"",unit:e.targetsunList.unites,referencescore:0,cycle:e.targetsunList.cycle,cycleattr:e.targetsunList.cycleattr,userlist:e.targetsunList.reportmap},e.RulesList.push(JSON.parse(JSON.stringify(e.rulesObject))),console.log("gettargetinfo"),console.log(e.RulesList),e.cardShow=!0;case 11:case"end":return r.stop()}}),r)})))()},selectTargetsun:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""==t){r.next=8;break}return n={type:1,targetid:e.form.target.toString(),targetsunid:t.toString()},r.next=4,Object(l["l"])(n);case 4:a=r.sent,e.rulesList=JSON.parse(JSON.stringify(a.data)),e.rulesCopyList=JSON.parse(JSON.stringify(a.data)),e.tableShow=!0;case 8:case"end":return r.stop()}}),r)})))()},selectDepartment:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""==t){r.next=8;break}return n={type:1,group:e.form.group.toString(),department:t.map(String)},r.next=4,Object(l["k"])(n);case 4:a=r.sent,e.indexList=a.data,e.indexList=a.data,0==a.code&&(e.targetShow=!0);case 8:case"end":return r.stop()}}),r)})))()},getDutyclasslist:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["b"])(t.dutyClassFrom);case 2:r=e.sent,t.dutyclasslist=r.data.list;case 4:case"end":return e.stop()}}),e)})))()},selectGroup:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""==t){r.next=7;break}return n={id:t},r.next=4,Object(d["a"])(n);case 4:a=r.sent,e.departmentList=a.data,0==a.code&&(e.parentidShow=!0);case 7:case"end":return r.stop()}}),r)})))()},getEditCheckedfrom:function(t){this.editChildInfo=t,this.editAdd.parentId=this.editChildInfo.outId},getSystemadminlist:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(d["c"])();case 2:r=e.sent,t.grouplistBackup=r.data.list;case 4:case"end":return e.stop()}}),e)})))()},getGrouplist:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(d["b"])();case 2:r=e.sent,t.companyList=r.data.list;case 4:case"end":return e.stop()}}),e)})))()},getCheckedfrom:function(t){this.addChildInfo=t},getCheckedInfo:function(t){this.childInfo=t},deleteOperate:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:console.log("row"),console.log(t),e.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n={type:1,group:t.group,departmentid:t.parentid,dimension:t.dimension,target:t.target,targetsun:t.targetsun},r.next=3,Object(l["f"])(n);case 3:a=r.sent,0===a.code&&(e.$message({type:"success",message:"删除成功!"}),e.getDataList());case 5:case"end":return r.stop()}}),r)}))));case 3:case"end":return r.stop()}}),r)})))()},showAdd:function(){this.dialogFormVisible=!0},showEdit:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return console.log(t),n={group:t.group,departmentid:t.parentid,dimension:t.dimension,target:t.target,targetsun:t.targetsun},r.next=4,Object(l["j"])(n);case 4:a=r.sent,e.editAdd=a.data,e.editDialogFormVisible=!0;case 7:case"end":return r.stop()}}),r)})))()},changeVal:function(t,e){var r=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(console.log(t),r.switchFrom.outid=e,1!=t){n.next=10;break}return r.switchFrom.state=1,n.next=6,Object(u["b"])(r.switchFrom);case 6:a=n.sent,0===a.code&&(r.$message({type:"success",message:"修改状态成功",showClose:!0}),r.getDataList()),n.next=15;break;case 10:return r.switchFrom.state=2,n.next=13,Object(u["b"])(r.switchFrom);case 13:o=n.sent,0===o.code&&(r.$message({type:"success",message:"修改状态成功",showClose:!0}),r.getDataList());case 15:case"end":return n.stop()}}),n)})))()},onReset:function(){this.searchInfo={type:1}},onSubmit:function(){this.getDataList()},formatDate:function(t){return new Date(1e3*parseInt(t)).toLocaleString().replace(/:\d{1,2}$/," ")},enterDialog:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log("this.rulesCopyList"),console.log(t.rulesCopyList),t.$refs.addForm.validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=9;break}return t.form.evaluationlist=t.RulesList,t.form.group=t.form.group.toString(),t.form.target=t.form.target.toString(),t.form.parentid=t.form.parentid.map(String),e.next=7,Object(l["b"])(t.form);case 7:n=e.sent,0===n.code&&(t.$message({type:"success",message:"添加成功",showClose:!0}),t.RulesList=[],t.RulesList.push(JSON.parse(JSON.stringify(t.rulesObject))),t.form.evaluationlist=t.RulesList,t.form.group=parseInt(t.form.group),t.form.target=parseInt(t.form.target),t.form.targetsun=parseInt(t.form.targetsun),t.form.parentid=t.form.parentid.map(Number),t.Fraction=0,t.form.targetsuntitle="",t.getDataList());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e)})))()},editEnterDialog:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$refs.editForm.validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=7;break}return e.next=3,Object(l["i"])(t.editAdd);case 3:n=e.sent,0===n.code&&t.$message({type:"success",message:"编辑成功",showClose:!0}),t.getDataList(),t.editCloseDialog();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})))()},closeDialog:function(){this.initForm(),this.dialogFormVisible=!1},editCloseDialog:function(){this.editInitForm(),this.editDialogFormVisible=!1},initForm:function(){this.$refs.addForm.resetFields(),this.form={type:1},this.RulesList=[],this.cardShow=!1,this.targetShow=!1,this.parentidShow=!1,console.log("this.form"),console.log(this.form)},editInitForm:function(){this.$refs.editForm.resetFields(),this.editAdd={}},handleSizeChange:function(t){this.searchInfo.pagesize=t,this.getDataList(this.searchInfo)},handleCurrentChange:function(t){this.searchInfo.page=t,this.getDataList(this.searchInfo)},getDataList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["h"])(t.searchInfo);case 2:r=e.sent,t.tableData=r.data;case 4:case"end":return e.stop()}}),e)})))()}}},f=p,h=(r("496e"),r("cba8")),m=Object(h["a"])(f,n,a,!1,null,"4da0aaa8",null);e["default"]=m.exports},e74c:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return s}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/group/getgroupdepartmap",method:"post",data:t})},o=function(t){return Object(n["a"])({url:"/group/getgroupuser",method:"post",data:t})},s=function(t){return Object(n["a"])({url:"/group/departmentlist",method:"post",data:t})}},f203:function(t,e,r){"use strict";var n=r("d5b6"),a=r("71fe"),o=r("add7"),s=r("72a6"),i=r("0d5e"),l=r("ec0b"),c=r("bab3"),u=r("8bc7"),d=r("732b"),p=r("e5d0"),f=r("137b"),h=r("ff1e").f,m=r("a670").f,g=r("edd2").f,b=r("6b1f"),w=r("e3c1").trim,v="Number",y=a[v],S=y.prototype,k=a.TypeError,j=o("".slice),x=o("".charCodeAt),O=function(t){var e=p(t,"number");return"bigint"==typeof e?e:_(e)},_=function(t){var e,r,n,a,o,s,i,l,c=p(t,"number");if(d(c))throw k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),e=x(c,0),43===e||45===e){if(r=x(c,2),88===r||120===r)return NaN}else if(48===e){switch(x(c,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(o=j(c,2),s=o.length,i=0;i<s;i++)if(l=x(o,i),l<48||l>a)return NaN;return parseInt(o,n)}return+c};if(s(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var I,L=function(t){var e=arguments.length<1?0:y(O(t)),r=this;return u(S,r)&&f((function(){b(r)}))?c(Object(e),r,L):e},R=n?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;R.length>A;A++)l(y,I=R[A])&&!l(L,I)&&g(L,I,m(y,I));L.prototype=S,S.constructor=L,i(a,v,L)}}}]);