Files
wysite/hc-etms.sqygj.cn/static/js/chunk-adf61db0.6aae39c5.js

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-adf61db0"],{"031b":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"workPointsManage"},[n("div",{staticClass:"workPointsRuleList"},[n("el-card",{staticClass:"box-card secarch-box"},[n("el-row",[n("el-col",{attrs:{span:4}},[n("el-input",{attrs:{clearable:"",placeholder:"项目名称"},model:{value:t.query.projectName,callback:function(e){t.$set(t.query,"projectName",e)},expression:"query.projectName"}})],1),t._v(" "),n("el-col",{staticClass:"elCol",attrs:{span:4}},[n("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),n("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1)],1),t._v(" "),n("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[n("div",{staticClass:"planLst"},[n("span",{staticClass:"planTitle"},[t._v("指数配置列表")])]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{"margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[n("el-table-column",{attrs:{label:"#",align:"center",width:"80",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"projectName",label:"项目名称","min-width":"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.projectName||"-")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"safetyExponent",label:"安全指数","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{style:t.getColor(e.row.safetyExponent)},[t._v(t._s(t.filterIndex(e.row.safetyExponent)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"financeExponent",label:"效益指数","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{style:t.getColor(e.row.financeExponent)},[t._v(t._s(t.filterIndex(e.row.financeExponent)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"satisfactionExponent",label:"客户满意","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{style:t.getColor(e.row.satisfactionExponent)},[t._v(t._s(t.filterIndex(e.row.satisfactionExponent)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceExponent",label:"服务质量","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{style:t.getColor(e.row.serviceExponent)},[t._v(t._s(t.filterIndex(e.row.serviceExponent)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceExponent",label:"操作人","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.exponentUpdaterName||"-")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceExponent",label:"操作时间","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.exponentUpdateTime||"-")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"realName",label:"操作","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.weightEdit(e.row)}}},[t._v("编辑")])]}}])})],1),t._v(" "),n("div",{staticClass:"paginations"},[n("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,20,50,100],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1),t._v(" "),n("el-dialog",{attrs:{width:"25%",title:"编辑项目指数",visible:t.showEdit,"before-close":t.editClose},on:{"update:visible":function(e){t.showEdit=e}}},[n("el-form",{ref:"wightForm",attrs:{model:t.wightForm,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"安全指数"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.wightForm.safetyExponent,callback:function(e){t.$set(t.wightForm,"safetyExponent",e)},expression:"wightForm.safetyExponent"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"效益指数"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.wightForm.financeExponent,callback:function(e){t.$set(t.wightForm,"financeExponent",e)},expression:"wightForm.financeExponent"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"客户满意"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.wightForm.satisfactionExponent,callback:function(e){t.$set(t.wightForm,"satisfactionExponent",e)},expression:"wightForm.satisfactionExponent"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"服务质量"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.wightForm.serviceExponent,callback:function(e){t.$set(t.wightForm,"serviceExponent",e)},expression:"wightForm.serviceExponent"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.editClose}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.editConfirm}},[t._v("确 定")])],1)],1)],1)},o=[],r=(n("ac67"),n("1bc7"),n("32ea"),n("5821")),i=(n("a450"),n("90e7"));n("0b37");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={data:function(){return{query:{pageNumber:1,pageSize:10,projectName:""},tableLoading:!1,pageTotal:0,tableData:[],companyId:"",showEdit:!1,wightForm:{}}},mounted:function(){this.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,this.getlistData()},methods:{getColor:function(t){return 1===t?"color:green":0===t?"color:red":"-"},filterIndex:function(t){return 1===t?"已开启":0===t?"已关闭":"-"},getlistData:function(){var t=this;this.query.companyId=this.companyId,this.tableLoading=!0,Object(i["i"])(this.query).then((function(e){t.tableLoading=!1,0===e.code&&e.data?(t.tableData=e.data.records,t.pageTotal=e.data.rowsCount):t.tableData=[]})).catch((function(){t.tableLoading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},onSearch:function(){this.query.pageNumber=1,this.getlistData()},resetForm:function(){this.query={pageNumber:1,pageSize:10,projectName:""},this.getlistData()},weightEdit:function(t){var e=JSON.parse(window.localStorage.getItem("memberInfor"));this.saveData=JSON.parse(JSON.stringify(t)),this.wightForm={safetyExponent:this.saveData.safetyExponent,financeExponent:this.saveData.financeExponent,satisfactionExponent:this.saveData.satisfactionExponent,serviceExponent:this.saveData.serviceExponent,projectUuid:this.saveData.projectUuid,exponentUpdaterName:e.name},this.showEdit=!0},editConfirm:function(){var t=this,e=s({},this.wightForm);Object(i["j"])(e).then((function(e){0===e.code?(t.$message.success("修改成功!"),t.editClose(),t.getlistData()):t.$message.warning("修改失败")}))},editClose:function(){this.wightForm={},this.showEdit=!1},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},u=l,p=(n("6ff6"),n("829d")),d=Object(p["a"])(u,a,o,!1,null,"6bb7ba4a",null);e["default"]=d.exports},"0b37":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return s}));n("8dee"),n("e680"),n("4057"),n("fc02");function a(t,e){var n,a,o,r;try{n=t.toString().split(".")[1].length}catch(c){n=0}try{a=e.toString().split(".")[1].length}catch(c){a=0}if(r=Math.abs(n-a),o=Math.pow(10,Math.max(n,a)),r>0){var i=Math.pow(10,r);n>a?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*i):(t=Number(t.toString().replace(".",""))*i,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/o}function o(t,e){var n,a,o=0,r=0;try{o=t.toString().split(".")[1].length}catch(i){}try{r=e.toString().split(".")[1].length}catch(i){}return n=Number(t.toString().replace(".","")),a=Number(e.toString().replace(".","")),n/a*Math.pow(10,r-o)}function r(t,e){var n=0,a=t.toString(),o=e.toString();try{n+=a.split(".")[1].length}catch(r){}try{n+=o.split(".")[1].length}catch(r){}return Number(a.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,n)}function i(t,e){var n,a,o,r;try{n=t.toString().split(".")[1].length}catch(i){n=0}try{a=e.toString().split(".")[1].length}catch(i){a=0}return o=Math.pow(10,Math.max(n,a)),r=n>=a?n:a,(Math.round(t*o-e*o)/o).toFixed(r)}function c(t,e){if(0==t&&(t=0),/[^[\-|0-9][0-9]*]/.test(t))return"0";if(null==t||""===t)return"";t=t.toString().replace(/^(-\d*)$/,"$1."),t=t.toString().replace(/^(\d*)$/,"$1."),t=(t+"00").replace(/(\d*\.\d\d)\d*/,"$1"),t=t.replace(".",",");var n=/(\d)(\d{3},)/;while(n.test(t))t=t.replace(n,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var a=t.split(".");"00"==a[1]&&(t=a[0])}return t}function s(t,e){t=t.toString();var n=t.indexOf(".");return t=-1!==n?t.substring(0,e+n+1):t.substring(0),parseFloat(t).toFixed(e)}},"6ff6":function(t,e,n){"use strict";n("e32d")},"90e7":function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"m",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"l",(function(){return c})),n.d(e,"h",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return m})),n.d(e,"o",(function(){return v})),n.d(e,"k",(function(){return b}));var a=n("b775");function o(t){return Object(a["a"])({url:"/hakocompany/DeductionInfo/findById",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/hakocompany/DeductionInfo/update",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/hakocompany/CollectionInfoApi/findById",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/hakocompany/CollectionInfoApi/update",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/hakocompany/ChargePushConfigApi/findById",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/hakocompany/ChargePushConfigApi/update",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/company/ProjectSatisfactionConfig/pageList",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/company/ProjectSatisfactionConfig/update",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/create",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/findByCompanyIdAndType",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/sceneMenuList",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/pageList",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/updateExponentByProjectUuid",method:"post",data:t})}function v(t,e){return Object(a["a"])({url:"/oss/upload",isFile:!0,isReturnResponse:!0,headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},method:"post",data:t,onUploadProgress:e&&e.onUploadProgress})}function b(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid",method:"post",data:t})}},e32d:function(t,e,n){}}]);