后台管理前后端完全分离版
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
33 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b70a03b"],{"0dee":function(t,e,r){"use strict";r("2ea0")},"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"),i=(r("e186"),r("b6be")),s=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(i["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(s["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},"2ea0":function(t,e,r){},"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 i})),r.d(e,"l",(function(){return s})),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 b})),r.d(e,"n",(function(){return g})),r.d(e,"o",(function(){return v}));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})},i=function(t){return Object(n["a"])({url:"/duty/gettasktargetsun",method:"post",data:t})},s=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})},b=function(t){return Object(n["a"])({url:"/duty/adddepartmentdutyinfo",method:"post",data:t})},g=function(t){return Object(n["a"])({url:"/admin/lookquantitativeconfig",method:"post",data:t})},v=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 i}));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})},i=function(t){return Object(n["a"])({url:"/duty/eitedutystate",method:"post",data:t})}},"73cf":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-setting"},on:{click:function(e){return t.showIndex()}}},[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:"dimensionweight",label:"维度权重"}}),r("el-table-column",{attrs:{prop:"targetname",label:"考核指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.type?r("el-link",{attrs:{type:"primary"},on:{click:function(r){return t.showMethod(e.row)}}},[t._v(t._s(e.row.targetname))]):t._e(),2==e.row.type?r("div",[t._v(t._s(e.row.targetname))]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"targetweight",label:"指标权重"}}),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("查看")])]}}])})],1)],1),r("el-dialog",{attrs:{visible:t.dialogFormVisible,"before-close":t.closeDialog,title:"新增",width:"100%"},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}},[""!=t.form.group?r("el-form-item",{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):t._e()],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"考核维度"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:t.form.dimension,callback:function(e){t.$set(t.form,"dimension",e)},expression:"form.dimension"}},t._l(t.dutyclasslist,(function(t){return r("el-option",{key:t.outId,attrs:{label:t.title,value:t.outId}})})),1)],1)],1),r("el-col",{attrs:{span:12}})],1),""!=t.form.parentid?r("el-form-item",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.indexList}},[r("el-table-column",{attrs:{label:"名称",align:"center",prop:"title"}}),r("el-table-column",{attrs:{label:"考核周期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{attrs:{placeholder:"请选择考核周期"},model:{value:e.row.cycle,callback:function(r){t.$set(e.row,"cycle",r)},expression:"scope.row.cycle"}},t._l(t.options,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]}}],null,!1,660950688)}),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.cycleattr,callback:function(r){t.$set(e.row,"cycleattr",r)},expression:"scope.row.cycleattr"}})]}}],null,!1,1742842697)}),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.unites,callback:function(r){t.$set(e.row,"unites",r)},expression:"scope.row.unites"}})]}}],null,!1,3830940825)}),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.reportlist,callback:function(r){t.$set(e.row,"reportlist",r)},expression:"scope.row.reportlist"}})]}}],null,!1,2299407668)}),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.deleteRow(e)}}},[t._v("删除")])]}}],null,!1,2078603656)})],1)],1):t._e()],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:{"close-on-click-modal":!1,visible:t.demDialogFormVisible,title:"指标组合",width:"70%"},on:{"update:visible":function(e){t.demDialogFormVisible=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{attrs:{size:"small"},on:{click:t.zhuheguan}},[t._v("取 消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.zhuheTi}},[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:8}},[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:8}},[""!=t.form.group?r("el-form-item",{attrs:{label:"所属部门",prop:"title"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:t.shouWei},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):t._e()],1),r("el-col",{attrs:{span:8}},[t._v(" 纬度合计分:"+t._s(t.weiduFraction)+" ")])],1),""!=t.form.parentid?r("el-form-item",t._l(t.weiDuList,(function(e,n){return r("el-card",{key:e.id,staticClass:"box-card"},[r("el-row",[r("el-col",{attrs:{span:8}},[r("span",[t._v("考核纬度:"+t._s(e.name))])]),r("el-col",{attrs:{span:8}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择顺序"},model:{value:e.ordering,callback:function(r){t.$set(e,"ordering",r)},expression:"item.ordering"}},[r("el-option",{attrs:{value:1,label:"1"}},[t._v("1")]),r("el-option",{attrs:{value:2,label:"2"}},[t._v("2")]),r("el-option",{attrs:{value:3,label:"3"}},[t._v("3")]),r("el-option",{attrs:{value:4,label:"4"}},[t._v("4")]),r("el-option",{attrs:{value:5,label:"5"}},[t._v("5")]),r("el-option",{attrs:{value:6,label:"2"}},[t._v("6")])],1)],1),r("el-col",{attrs:{span:8}},[t._v(" 指标合计分:"+t._s(e.zhiFraction)+" ")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.child}},[r("el-table-column",{attrs:{label:"指标名称",align:"center",prop:"name"}}),r("el-table-column",{attrs:{label:"说明",align:"center",prop:"illustrate"},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,!0)}),r("el-table-column",{attrs:{label:"分值",align:"center",prop:"referencescore"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.istrue?r("el-input",{attrs:{autocomplete:"off"},on:{change:t.zhibiaofen},model:{value:e.row.referencescore,callback:function(r){t.$set(e.row,"referencescore",t._n(r))},expression:"scope.row.referencescore"}}):t._e(),2==e.row.istrue?r("div",[t._v(t._s(e.row.referencescore))]):t._e()]}}],null,!0)}),r("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.row.status,callback:function(r){t.$set(e.row,"status",r)},expression:"scope.row.status"}},[r("el-option",{attrs:{value:1,label:"使用"}},[t._v("使用")]),r("el-option",{attrs:{value:2,label:"禁用"}},[t._v("禁用")])],1)]}}],null,!0)})],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:"20%"},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-form-item",{attrs:{label:"所属考核项目"}},[r("span",[""!=t.editChildInfo.title?r("el-tag",[t._v(t._s(t.editChildInfo.title))]):t._e(),r("projectDialog",{on:{checkedInfo:t.getEditCheckedfrom}})],1)]),r("el-form-item",{attrs:{label:"定性指标名称",prop:"title"}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:t.editAdd.title,callback:function(e){t.$set(t.editAdd,"title",e)},expression:"editAdd.title"}})],1),r("el-form-item",{attrs:{label:"定性指标说明",prop:"content"}},[r("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.editAdd.content,callback:function(e){t.$set(t.editAdd,"content",e)},expression:"editAdd.content"}})],1)],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:"标准分"}})],1)],1)],1)},a=[],o=r("febe"),i=(r("e186"),r("e456"),r("af46"),r("8cb5"),r("0d90"),r("5ad0"),r("cf33"),r("bab0"),r("09a7"),r("b6be")),s=r("64dc"),l=r("1dac"),c=r("6ac6"),u=r("e74c"),d={name:"Dashboard",components:{projectDialog:l["a"]},data:function(){return{weiduFraction:0,weiDuList:{},liebiaoList:[],demDialogFormVisible:!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:[],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:{group:"",parentid:"",child:[]},dialogFormVisible:!1,editDialogFormVisible:!1,total:0,tableData:[],pos:"",pos1:"",pos2:"",spanArr:[],spanArr1:[],spanArr2:[],methodSpanArr:[],methodList:[],methodPos:"",methodShow:!1,searchInfo:{},abc:{aaa:"111",bbb:"222"},rules:{},editRules:{title:[{required:!0,message:"请输入名称",trigger:"blur"}]}}},created:function(){console.log(this.$store.state.user.token),""==this.$store.state.user.token&&this.$router.push("/login"),this.getDataList(),this.getGrouplist(),this.getDutyclasslist(),this.getSystemadminlist()},watch:{methodList:function(){var t=this;this.$nextTick((function(){t.methodSpanArr=[],t.methodPos="",t.getMethodSpanArr(t.methodList)}))},tableData:function(){var t=this;this.$nextTick((function(){t.spanArr=[],t.spanArr1=[],t.spanArr2=[],t.pos2="",t.pos="",t.pos1="",t.getSpanArr(t.tableData),t.getSpanArr1(t.tableData),t.getSpanArr2(t.tableData)}))}},methods:{zhibiaofen:function(){var t=this;this.Fraction=0,this.weiDuList.forEach((function(t){t.zhiFraction=0})),this.weiDuList.forEach((function(t){null!=t.child&&t.child.forEach((function(e){t.zhiFraction+=e.referencescore}))})),this.weiduFraction=0,this.weiDuList.forEach((function(e){t.weiduFraction+=e.zhiFraction}))},zhuheguan:function(){this.demDialogFormVisible=!1},zhuheTi: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:if(!(t.weiduFraction<=100)){e.next=13;break}return console.log(t.weiDuList),t.form.group=t.form.group.toString(),t.form.parentid=t.form.parentid.toString(),t.form.child=t.weiDuList,e.next=7,Object(s["a"])(t.form);case 7:r=e.sent,0===r.code&&(t.$message({type:"success",message:"操作成功!"}),t.demDialogFormVisible=!1,t.form={group:"",parentid:"",child:[]}),t.weiduFraction=0,t.form={group:"",parentid:"",child:[]},e.next=14;break;case 13:t.$message({type:"error",message:"总分不能超过100!"});case 14:case"end":return e.stop()}}),e)})))()},tijiao: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 r=t,t.liebiaoList.forEach((function(t,e){r.form.targetlist.push({id:t.target,weight:parseInt(t.targetweight)})})),t.form.group=t.form.group.toString(),t.form.parentid=t.form.parentid.toString(),e.next=6,Object(s["c"])(r.form);case 6:e.sent,console.log(r.form);case 8:case"end":return e.stop()}}),e)})))()},showIndex:function(){this.demDialogFormVisible=!0},methodSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,r=t.columnIndex;if(0===r){var n=this.methodSpanArr[e],a=n>0?1:0;return{rowspan:n,colspan:a}}},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)},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 n={type:1,group:t.group,departmentid:t.parentid,dimension:t.dimension,target:t.target},r.next=3,Object(s["h"])(n);case 3:a=r.sent,0==a.code&&(e.methodList=a.data,e.methodShow=!0);case 5:case"end":return r.stop()}}),r)})))()},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)},showUserList:function(t){this.showUser=!0,this.userlistary=t.userlistary},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)},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||2===r){var o=this.spanArr1[e],i=o>0?1:0;return{rowspan:o,colspan:i}}if(3===r||4===r||5===r||6===r||7===r||8===r||9===r){var s=this.spanArr2[e],l=s>0?1:0;return{rowspan:s,colspan:l}}},deleteRow:function(t){this.rulesCopyList.splice(t.$index,1)},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=6;break}return n={id:t},r.next=4,Object(s["m"])(n);case 4:a=r.sent,e.targetsunList=a.data;case 6: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(s["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)})))()},shouWei:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n,a,o;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""==t){r.next=9;break}return n={group:e.form.group.toString(),parentid:e.form.parentid.toString()},a=e,r.next=5,Object(s["g"])(n);case 5:o=r.sent,e.weiDuList=JSON.parse(JSON.stringify(o.data)),e.weiDuList.forEach((function(t){a.$set(t,"ordering",""),a.$set(t,"zhiFraction",0),null!=t.child&&t.child.forEach((function(t){a.$set(t,"status",1)}))})),console.log(e.weiDuList);case 9: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=6;break}return n={type:t,group:e.form.group.toString(),departmentid:e.form.parentid.toString()},r.next=4,Object(s["h"])(n);case 4:a=r.sent,e.liebiaoList=a.data;case 6: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(i["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=6;break}return n={id:t},r.next=4,Object(u["a"])(n);case 4:a=r.sent,e.departmentList=a.data;case 6: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(u["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(u["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:e.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.deleFrom.state=3,e.deleFrom.outid=t.outId,r.next=4,statedutyclass(e.deleFrom);case 4:n=r.sent,0===n.code&&(e.$message({type:"success",message:"删除成功!"}),e.getDataList());case 6:case"end":return r.stop()}}),r)}))));case 1: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;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.editFrom.outid=t.outId,r.next=3,Object(c["c"])(e.editFrom);case 3:n=r.sent,e.editAdd=n.data,e.editAdd.parentId=n.data.parentIdStr,e.editChildInfo.title=n.data.parentTitle,e.editDialogFormVisible=!0;case 8: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(c["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(c["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={assesstype:2,page:1,pagesize:10},this.childInfo={title:""}},onSubmit:function(){this.page=1,this.pageSize=10,this.searchInfo.parentId=this.childInfo.outId,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,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=11;break}return n=t,t.indexList.forEach((function(t,e){n.form.rationlist.push({id:t.id.toString(),unit:t.unites,cycle:t.cycle,cycleattr:t.cycleattr,userlist:t.reportlist})})),t.form.group=t.form.group.toString(),t.form.parentid=t.form.parentid.map(String),e.next=7,Object(s["d"])(t.form);case 7:a=e.sent,0===a.code&&t.$message({type:"success",message:"添加成功",showClose:!0}),t.getDataList(),t.closeDialog();case 11: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(c["a"])(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:2}},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(s["h"])(t.searchInfo);case 2:r=e.sent,t.tableData=r.data;case 4:case"end":return e.stop()}}),e)})))()}}},p=d,f=(r("0dee"),r("cba8")),h=Object(f["a"])(p,n,a,!1,null,"51432242",null);e["default"]=h.exports},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 i})),r.d(e,"f",(function(){return s})),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})},i=function(t){return Object(n["a"])({url:"/duty/addtarget",method:"post",data:t})},s=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})}},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 i})),r.d(e,"c",(function(){return s})),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})},i=function(t){return Object(n["a"])({url:"/duty/getdutyclassinfo",method:"post",data:t})},s=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})}},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 i}));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})},i=function(t){return Object(n["a"])({url:"/group/departmentlist",method:"post",data:t})}}}]);