Files
wysite/hc-etms.sqygj.cn/static/js/chunk-1b623cfd.fec633fc.js

1 line
19 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b623cfd"],{"0107":function(t,e,a){"use strict";a.d(e,"f",(function(){return o})),a.d(e,"d",(function(){return i})),a.d(e,"e",(function(){return r})),a.d(e,"g",(function(){return c})),a.d(e,"h",(function(){return l})),a.d(e,"b",(function(){return s})),a.d(e,"i",(function(){return d})),a.d(e,"j",(function(){return u})),a.d(e,"a",(function(){return p})),a.d(e,"c",(function(){return m})),a.d(e,"l",(function(){return h})),a.d(e,"k",(function(){return f}));var n=a("b775");function o(t){return Object(n["a"])({url:"/hakocompany/ProjectBlueprint/pageList",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/hakocompany/ProjectBlueprint/download",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/hakocompany/ProjectBlueprintNode/getNodeTree",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/ProjectBlueprintNode/updateBatch",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/TaskInspectionsStandard/pageList",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/ProjectConfig/pageList",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/ProjectConfig/updateProbability",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/TaskInspectionsStandard/updateQualifiedStatus",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/hakocompany/AiAcceptanceReport/pageList",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/hakocompany/AiAcceptanceReport/statistics",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/hakocompany/VideoImageCallback/pageList",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/hakocompany/VideoImageCallback/feedback",method:"post",data:t})}},1618:function(t,e,a){"use strict";a("3661")},"22d8":function(t,e,a){},3661:function(t,e,a){},"67d5":function(t,e,a){"use strict";a.d(e,"i",(function(){return o})),a.d(e,"j",(function(){return i})),a.d(e,"f",(function(){return r})),a.d(e,"b",(function(){return c})),a.d(e,"c",(function(){return l})),a.d(e,"k",(function(){return s})),a.d(e,"e",(function(){return d})),a.d(e,"d",(function(){return u})),a.d(e,"h",(function(){return p})),a.d(e,"a",(function(){return m})),a.d(e,"g",(function(){return h}));var n=a("b775");function o(t){return Object(n["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/company/organizationalStructure/selectOsList",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/Role/create",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/Role/delete",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/Role/update",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/RoleMenuRel/findByRoleIdAndClienId",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/OrganizationRoleRel/findByRoleId",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/company/member/pageListForRole",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/company/MemberRoleRel/batchDelete",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/hakocompany/account/findProjectByRole",method:"post",data:t})}},a995:function(t,e,a){"use strict";a("22d8")},c87a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workPointsManage"},[t.list?a("div",{staticClass:"workPointsRuleList"},[a("el-card",{staticClass:"box-card secarch-box"},[a("el-row",[a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择项目"},model:{value:t.query.projectUuid,callback:function(e){t.$set(t.query,"projectUuid",e)},expression:"query.projectUuid"}},t._l(t.projectList,(function(t){return a("el-option",{key:t.uuid,attrs:{label:t.name,value:t.uuid}})})),1)],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:3}},[a("el-input",{attrs:{placeholder:"图谱名称"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name",e)},expression:"query.name"}})],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),a("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(" "),a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[a("div",{staticClass:"planLst"},[a("span",{staticClass:"planTitle"},[t._v("知识图谱列表")]),t._v(" "),a("span",{staticClass:"add"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small",loading:t.syncLoad,icon:"el-icon-refresh"},on:{click:t.syncClick}},[t._v("云下载")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"80",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}],null,!1,714878904)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"项目名称",prop:"projectName"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"知识图谱名称",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"知识图谱描述",prop:"description"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"更新人",prop:"updaterName"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.updaterName||"-"))]}}],null,!1,2838189108)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"更新时间",prop:"updateTime"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.updateTime||"-"))]}}],null,!1,1410144084)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"下载人",prop:"updaterName"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.creatorName||"-"))]}}],null,!1,821566059)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"下载时间",prop:"updateTime"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.createTime||"-"))]}}],null,!1,1887864129)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.editBlueprint(e.row)}}},[t._v("编辑图谱")])]}}],null,!1,4050654314)})],1),t._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,20,30,50],"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._e(),t._v(" "),t.detailsShow?a("div",[a("knowledgeDetails",{ref:"knowledgeDetails",attrs:{detailsTitle:"编辑知识图谱",dataId:t.dataId},on:{goBack:t.goBack}})],1):t._e()])},o=[],i=(a("a450"),a("0107")),r=a("67d5"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("el-page-header",{attrs:{content:t.detailsTitle},on:{back:t.goBack}})],1),t._v(" "),a("el-card",{staticStyle:{"margin-top":"20px",width:"98%",height:"100%"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"boxTitle"},[a("div",[a("span",[t._v("图谱画板 ")]),t._v(" "),t.nodeInfo?a("span",{staticStyle:{"margin-left":"25px",color:"blue","font-weight":"700"}},[t._v("当前选择节点"+t._s(t.nodeInfo.nodeData.name))]):t._e()]),t._v(" "),a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"批量修改为当前选中节点下相邻的兄弟节点",placement:"top-start"}},[a("i",{staticClass:"el-icon-question"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.batchEditWeight}},[t._v("批量修改权重/分值")])],1)])]),t._v(" "),a("div",{staticClass:"mindMapContainerBox",attrs:{id:"mindMapContainer"}},[a("div",{staticClass:"showMouseTooltip"},[a("span",[t._v("节点路径:"+t._s(t.pathStr))])])])]),t._v(" "),a("el-dialog",{attrs:{width:"30%",title:t.dialogTitle,visible:t.addShow},on:{close:function(e){return t.cancelNode("addForm")}}},[a("el-form",{ref:"addForm",attrs:{rules:t.rules,model:t.addForm,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"节点名称",prop:"name"}},[a("el-input",{model:{value:t.addForm.name,callback:function(e){t.$set(t.addForm,"name",e)},expression:"addForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"节点描述"}},[a("el-input",{attrs:{type:"textarea",maxlength:"400",rows:4,"show-word-limit":""},model:{value:t.addForm.description,callback:function(e){t.$set(t.addForm,"description",e)},expression:"addForm.description"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"权重",prop:"weight"}},[a("el-input-number",{attrs:{precision:2,step:.01,max:1,min:0,disabled:t.weightDisabled},model:{value:t.addForm.weight,callback:function(e){t.$set(t.addForm,"weight",e)},expression:"addForm.weight"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"模拟分值"}},[a("el-input-number",{attrs:{precision:2,disabled:t.isDisabled},model:{value:t.addForm.virtualScore,callback:function(e){t.$set(t.addForm,"virtualScore",e)},expression:"addForm.virtualScore"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"倍数",prop:"multiplyingPower"}},[a("el-input-number",{attrs:{precision:2,step:.01,min:0},model:{value:t.addForm.multiplyingPower,callback:function(e){t.$set(t.addForm,"multiplyingPower",e)},expression:"addForm.multiplyingPower"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.cancelNode("addForm")}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitNode("addForm")}}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{width:"60%",title:"批量修改权重/分值",visible:t.batchWeightDialogShow},on:{close:t.cancelBatchWeight}},[a("el-form",{attrs:{"label-width":"150px"}},t._l(t.batchWeightList,(function(e,n){return a("el-form-item",{key:n,attrs:{label:e.name}},[a("span",[t._v(" 权重: ")]),t._v(" "),a("el-input-number",{attrs:{precision:2,step:.01,max:1,min:0},model:{value:e.weight,callback:function(a){t.$set(e,"weight",a)},expression:"item.weight"}}),t._v(" "),a("span",[t._v(" 分值: ")]),t._v(" "),a("el-input-number",{attrs:{precision:2,disabled:t.getScoreDisable(e)},model:{value:e.score,callback:function(a){t.$set(e,"score",a)},expression:"item.score"}})],1)})),1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancelBatchWeight}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitBatchWeight}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{width:"60%",title:"批量修改所有叶子节点权重/分值/倍数",visible:t.batchScoreDialogShow},on:{close:t.cancelBatchScore}},[a("el-form",{attrs:{"label-width":"150px"}},t._l(t.batchScoreList,(function(e,n){return a("el-form-item",{key:n,attrs:{label:"节点:"+e.name}},[a("span",[t._v(" 模拟分值: ")]),t._v(" "),a("el-input-number",{attrs:{precision:2},model:{value:e.virtualScore,callback:function(a){t.$set(e,"virtualScore",a)},expression:"item.virtualScore"}}),t._v(" "),a("span",[t._v(" 权重: ")]),t._v(" "),a("el-input-number",{attrs:{precision:2,step:.01,max:1,min:0},model:{value:e.weight,callback:function(a){t.$set(e,"weight",a)},expression:"item.weight"}}),t._v(" "),a("span",[t._v("倍数:")]),t._v(" "),a("el-input-number",{attrs:{precision:2,step:.01,min:0},model:{value:e.multiplyingPower,callback:function(a){t.$set(e,"multiplyingPower",a)},expression:"item.multiplyingPower"}}),t._v(" "),a("span",[t._v(" 备注:"+t._s(e.description||"-"))])],1)})),1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancelBatchScore}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitBatchScore}},[t._v("确 定")])],1)],1)],1)},l=[],s=(a("1bc7"),a("1af2")),d={props:{detailsTitle:{default:"新增知识图谱"},dataId:{default:null}},data:function(){return{type:"",currentNode:null,left:0,top:0,mindMap:null,isDisabled:!1,weightDisabled:!1,dialogTitle:"新增子节点",addShow:!1,addForm:{pid:"",description:"",name:"",updaterName:"",weight:0,virtualScore:0,multiplyingPower:1},rules:{name:{required:!0,message:"请输入节点名称",trigger:"blur"},weight:{required:!0,message:"请输入权重",trigger:"blur"}},pathStr:"",MapInfo:"",nodeInfo:null,batchWeightList:[],batchWeightDialogShow:!1,batchScoreDialogShow:!1,batchScoreList:[]}},mounted:function(){},methods:{getScoreDisable:function(t){return t.children.length>0||null!==t.dataSourceCode&&""!==t.dataSourceCode},cancelBatchScore:function(){this.batchScoreList=[],this.batchScoreDialogShow=!1},submitBatchScore:function(){var t=this,e=JSON.parse(window.localStorage.getItem("memberInfor")),a={children:this.batchScoreList,updaterName:e.name,blueprintId:this.dataId};BlueprintNodeUpdateLeafNodes(a).then((function(e){0==e.code&&(t.$message.success("操作成功"),t.cancelBatchScore(),t.getTree())}))},submitBatchWeight:function(){var t=this,e=this.batchWeightList.reduce((function(t,e){return t+Math.round(100*e.weight)}),0)/100;if(1!=e)return this.$message.error("权重总和必须为1");var a=JSON.parse(window.localStorage.getItem("memberInfor")),n={children:this.batchWeightList,updaterName:a.name,updaterId:a.id};Object(i["g"])(n).then((function(e){0==e.code&&(t.$message.success("操作成功"),t.cancelBatchWeight(),t.getTree())}))},cancelBatchWeight:function(){this.batchWeightList=[],this.batchWeightDialogShow=!1},batchEditWeight:function(){if(null==this.nodeInfo)return this.$message.error("请选择要批量修改的节点!");var t=function(e,a){for(var n=0;n<e.length;n++){var o=e[n];if(o.originalNodeId===a)return o;if(o.children&&o.children.length>0){var i=t(o.children,a);if(i)return i}}return null};console.log(this.nodeInfo,"this.nodeInfo"),console.log(this.MapInfo,"this.MapInfo");var e=t([this.MapInfo],this.nodeInfo.nodeData.pid);e?(this.batchWeightList=e.children,this.batchWeightDialogShow=!0,console.log(this.batchWeightList,"this.batchWeightList")):this.$message.error("未找到当前节点下的父节点信息!")},cancelNode:function(t){this.addForm.description="",this.addForm.name="",this.addForm.weight=0,this.addForm.id="",this.addForm.virtualScore=0,this.addForm.multiplyingPower=1,this.addShow=!1,this.isDisabled=!1,this.weightDisabled=!1},getTree:function(){var t=this;Object(i["e"])({id:this.dataId}).then((function(e){0==e.code&&t.initData(e.data,1)}))},submitNode:function(t){var e=this,a=JSON.parse(localStorage.getItem("loginInfo"));"新增子节点"==this.dialogTitle?(this.addForm.updaterName=a.name,this.addForm.pid=this.nodeInfo.nodeData.id,this.$refs[t].validate((function(t){t&&BlueprintNodeCreate(e.addForm).then((function(t){0==t.code&&(e.$message.success("新增节点成功成功"),e.cancelNode("addForm"),e.getTree())}))}))):(this.addForm.updaterName=a.name,BlueprintNodeUpdate(this.addForm).then((function(t){0==t.code&&(e.$message.success("修改节点成功"),e.cancelNode("addForm"),e.getTree())})))},initData:function(t,e){var a=this;if(t.children.length>0){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e?"".concat(e,"-").concat(t.name):t.name,o="节点名称:".concat(t.name,"\n权重").concat(t.weight||0,"\n 分值:").concat(t.score||0,"\n倍率").concat(t.multiplyingPower||1);t.data=t.data||{},t.data.text=o,t.data.note=t.description||"",t.pathStr=a,t.children&&t.children.length>0&&t.children.forEach((function(t){n(t,a)}))};n(t)}2==e&&this.mindMap.destroy();var o=t.name,i="节点名称:".concat(t.name,"\n权重").concat(t.weight||0," \n分值").concat(t.score||0,"\n倍率").concat(t.multiplyingPower||1);t.data={text:i,note:t.description||"",pathStr:o},console.log(t.data,"Info"),this.mindMap=new s["a"]({el:document.getElementById("mindMapContainer"),layout:"mindMap",isShowCreateChildBtnIcon:!1,data:t}),this.MapInfo=JSON.parse(JSON.stringify(t)),this.mindMap.on("node_mouseenter",(function(t,e){a.pathStr=t.nodeData.pathStr})),this.mindMap.on("node_contextmenu",(function(t,e){a.left=t.clientX-50,a.top=t.clientY-50,a.currentNode=e,console.log(a.left,"left"),console.log(a.top,"left")})),this.mindMap.on("node_click",(function(t){a.nodeInfo=t,console.log(a.nodeInfo,"nodeInfo")}))},goBack:function(){this.$emit("goBack")}}},u=d,p=(a("1618"),a("829d")),m=Object(p["a"])(u,c,l,!1,null,null,null),h=m.exports,f={components:{knowledgeDetails:h},data:function(){return{query:{pageNumber:1,pageSize:10,companyId:"",projectUuid:"",name:""},projectList:[],companyId:"",pageTotal:0,tableData:[],syncLoad:!1,tableLoading:!1,list:!0,detailsShow:!1,dataId:null}},mounted:function(){this.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,this.getProjectInfo(),this.getlistData()},methods:{goBack:function(){this.list=!0,this.detailsShow=!1,this.getlistData()},editBlueprint:function(t){var e=this;Object(i["e"])({id:t.id}).then((function(a){0==a.code&&a.data&&(e.list=!1,e.detailsShow=!0,e.dataId=t.id,e.$nextTick((function(){console.log(e.$refs.knowledgeDetails,"knowledgeDetails+++++"),e.$refs.knowledgeDetails.initData(a.data,1)})))}))},getProjectInfo:function(){var t=this;Object(r["j"])({id:this.companyId,attribute:1}).then((function(e){0===e.code&&e.data?t.projectList=e.data:t.projectList=[]}))},getlistData:function(){var t=this;this.query.companyId=this.companyId,this.tableLoading=!0,Object(i["f"])(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,userId:"",addStartTime:"",addEndTime:"",tagIds:[]},this.bindTime="",this.getlistData()},syncClick:function(){var t=this;this.syncLoad=!0;var e=JSON.parse(window.localStorage.getItem("memberInfor"));Object(i["d"])({companyId:this.companyId,creatorName:e.name}).then((function(e){0==e.code&&(t.$message({type:"success",message:"同步请求成功请1分钟后刷新页面查看最新数据"}),t.getlistData(),t.syncLoad=!1)})).catch((function(){t.syncLoad=!1}))},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},g=f,b=(a("a995"),Object(p["a"])(g,n,o,!1,null,"6d553fa4",null));e["default"]=b.exports}}]);