Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/98.c05422b5290a1b5d0ac2.js
T
反编译工作区 4f79e10bd6 chore: cleanup stray nested directories in frontend-source
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
2026-04-29 13:07:40 +08:00

1 line
7.4 KiB
JavaScript

webpackJsonp([98],{"4qoJ":function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.left[data-v-2cae890c] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n.progress p.title[data-v-2cae890c] {\n color: #2c2d2f;\n font-weight: bold;\n font-size: 14px;\n}\n.progress p[data-v-2cae890c] {\n font-size: 12px;\n line-height: 20px;\n height: 20px;\n}\n.progress .percent[data-v-2cae890c] {\n border-radius: 0;\n margin-bottom: 10px;\n}\n.progress .percent[data-v-2cae890c] .el-progress-bar__outer {\n border-radius: 0;\n border: 1px solid #e4e6e9;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n background-color: #fff;\n height: 70px !important;\n}\n.progress .percent[data-v-2cae890c] .el-progress-bar__inner {\n border-radius: 0;\n}\n",""])},"7F1t":function(t,e,a){var n=a("4qoJ");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("2dc492c3",n,!0)},hQ5z:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("yfAY"),r=a("vMX1"),o=a("x1DN"),i=a("lGPi"),s=[],l={data:function(){return{total:0,tableData:[],tableLoading:!1,searchForm:{personName:null,personCode:null,orgId:null,extractStatus:3,engineModelVersion:null,pageSize:10,currentPage:1},showImport:!1,dialogVisible:!1,dialogImageUrl:"",progressInfo:[]}},created:function(){this.searchAll(),this.fetchOptions()},filters:{modeType:function(t){var e="";return s.some(function(a){if(a.value===t)return e=a.label,!0}),null!==t&&void 0!==t||(e=""),e},percent:function(t){return 0==t.totalQuantity?"0":(100*t.currentQuantity/t.totalQuantity).toFixed(0)}},methods:{searchAll:function(){var t=this;this.fetchProgress().then(function(e){e.length>0&&e[0].engineVersionModelId?t.fetchData(e[0].engineVersionModelId):t.fetchData()})},showTip:function(t){return 0==t.totalQuantity?"预估完成时间:":"100"==(100*t.currentQuantity/t.totalQuantity).toFixed(0)?"实际完成时间:":"预估完成时间:"},fetchProgress:function(){var t=this;return i.c.progress({}).then(function(e){return t.progressInfo=e.data,e.data})},fetchOptions:function(){var t=this;n.b.modeType().then(function(e){t.modeTypes=e,s=e})},fetchData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.tableLoading=!0,e&&(this.searchForm.engineModelVersion=e),i.c.list(this.searchForm).then(function(e){setTimeout(function(){t.tableData=e.data,t.total=e.total,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},goDetail:function(t){this.$router.push({name:"PersonEdit",params:{id:t.id}})},enable:function(t){var e=this;this.$set(t,"loading",!0),i.c.enable(t.id).then(function(a){e.$set(t,"loading",!1),e.fetchData()}).catch(function(a){e.$message.error(a.message),e.$set(t,"loading",!1),e.fetchData()})},disable:function(t){var e=this;this.$confirm("是否确定禁用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$set(t,"loading",!0),i.c.disable(t.id).then(function(a){e.$set(t,"loading",!1),e.fetchData()}).catch(function(a){e.$set(t,"loading",!1),e.fetchData()})}).catch(function(){})},handleReset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.searchForm.currentPage=1,this.searchAll()},transterPerson:function(t){if(t){var e=t.split("#"),a=e.length>1?e[1]:"";return this.personType.some(function(t){if(t.value===a)return a=t.label,!0}),a}return""},transterCard:function(t){if(t){var e=t.split("#"),a=e.length>1?e[1]:"";return this.cardTypes.some(function(t){if(t.value===a)return a=t.label,!0}),a}return""}},components:{searchPage:r.a,cascader:o.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-card",{attrs:{shadow:"hover"}},[a("search-page",{attrs:{pageSize:t.searchForm.pageSize,pageNum:t.searchForm.currentPage,total:t.total,limit:""},on:{"update:pageSize":function(e){return t.$set(t.searchForm,"pageSize",e)},"update:page-size":function(e){return t.$set(t.searchForm,"pageSize",e)},"update:pageNum":function(e){return t.$set(t.searchForm,"currentPage",e)},"update:page-num":function(e){return t.$set(t.searchForm,"currentPage",e)},change:t.fetchData}},[a("el-row",{staticStyle:{"border-bottom":"1px solid #ececec",padding:"10px 0"},attrs:{gutter:20}},t._l(t.progressInfo,function(e,n){return a("el-col",{key:n,attrs:{span:12,gutter:40},nativeOn:{click:function(a){return t.fetchData(e.engineModelVersion)}}},[a("el-row",{staticClass:"progress"},[a("el-progress",{staticClass:"percent",staticStyle:{"margin-top":"16px"},attrs:{"text-inside":!0,"stroke-width":18,percentage:t._f("percent")(e)}}),t._v(" "),a("p",{staticClass:"title"},[t._v("建模完成"+t._s(t._f("percent")(e))+"%")]),t._v(" "),a("p",[a("span",[t._v("AI服务:")]),t._v("\n "+t._s(e.engineVersionModelId)+"\n ")]),t._v(" "),e.createTime?a("p",[a("span",[t._v("上次建模时间:")]),t._v("\n "+t._s(t._f("datetime")(e.createTime))+"\n ")]):t._e(),t._v(" "),e.lastUpdateTime?a("p",[a("span",[t._v(t._s(t.showTip(e)))]),t._v("\n "+t._s(t._f("datetime")(e.lastUpdateTime))+"\n ")]):t._e()],1)],1)}),1),t._v(" "),a("el-form",{ref:"queryForm",staticStyle:{"margin-top":"20px"},attrs:{inline:!0,"label-width":"100px",model:t.searchForm}},[a("el-form-item",{attrs:{label:"建模状态",prop:"extractStatus"}},[a("el-select",{staticStyle:{width:"185px"},model:{value:t.searchForm.extractStatus,callback:function(e){t.$set(t.searchForm,"extractStatus",e)},expression:"searchForm.extractStatus"}},t._l(t.modeTypes,function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"warning"},on:{click:t.handleQuery}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:t.handleReset}},[t._v("重置")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",staticStyle:{"margin-top":"20px"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"personName",label:"姓名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"personCode","show-overflow-tooltip":"",label:"人员编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"imagePath",label:"人员图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("show-img",{attrs:{title:"人员图片",img:t.row.imagePath}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"分库名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"createTime",width:"200",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createTime?a("span",[t._v(t._s(t._f("datetime")(e.row.createTime)))]):a("span",[t._v("-")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"extractStatus",label:"建模状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("modeType")(e.row.extractStatus)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"imageRemark","show-overflow-tooltip":"",label:"失败原因"}})],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"人员图片",width:"800px",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.dialogImageUrl?a("img",{staticStyle:{"max-height":"60vh","max-width":"800px",margin:"0 auto",display:"block"},attrs:{src:t.dialogImageUrl,alt:""}}):t._e()])],1)},staticRenderFns:[]};var u=a("VU/8")(l,c,!1,function(t){a("7F1t")},"data-v-2cae890c",null);e.default=u.exports}});