Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/133.c6f5bb6aa80a0e355564.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
10 KiB
JavaScript

webpackJsonp([133],{Bqnz:function(e,t,a){var r=a("GYb5");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("8d9c4a7c",r,!0)},GYb5:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.status-wrp span[data-v-a88430a6] {\n vertical-align: middle;\n}\n.status-wrp .status-point[data-v-a88430a6] {\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #3399ff;\n margin-right: 8px;\n}\n",""])},Ll0t:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.app-container[data-v-7e27ba2b] {\n min-width: 1098px;\n padding-bottom: 60px;\n padding: 10px;\n height: calc(100vh - 120px);\n overflow: auto;\n}\n",""])},YK85:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),n=a("exGp"),i=a.n(n),o=a("mvHQ"),u=a.n(o),l=a("3Kt4"),c=a("VRaf"),p={data:function(){return{}},computed:{bg:function(){return this.statusColorList?this.statusColorList[this.value]:this.disabled?"#BCC0C5":"rgb(94, 195, 69)"}},props:{color:String,disabled:Boolean,value:Number,type:{type:String,default:"status"},statusColorList:{type:Object,required:!1},statusTextList:{type:Object,required:!1}},methods:{renderStr:function(e){if(this.statusTextList)return this.statusTextList[e];switch(e){case"":break;default:return{1:"初始化",2:"在线",3:"离线"}[e]||""}}}},h={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"status-wrp"},[t("span",{directives:[{name:"show",rawName:"v-show",value:1!=this.value,expression:"value != 1"}],staticClass:"status-point",style:{backgroundColor:this.bg}}),t("span",[this._v(this._s(this.renderStr(this.value)))])])},staticRenderFns:[]};var m=a("VU/8")(p,h,!1,function(e){a("Bqnz")},"data-v-a88430a6",null).exports,g={data:function(){return{total:0,allType:this.$dict("aialgorithmSubType"),allSType:[],statusTypes:[],sTypes:[{algorithmSubTypeName:"全部",algorithmSubType:null}],tableData:[],searchForm:{abilityGroup:this.$route.query.abilityGroup,algorithmSubType:this.$route.query.algorithmSubType,host:null,pageSize:10,pageNum:1}}},computed:{ifRecog:function(){return"2001"==this.searchForm.algorithmSubType||"2002"==this.searchForm.algorithmSubType||"2003"==this.searchForm.algorithmSubType||"2037"==this.searchForm.algorithmSubType}},components:{searchPage:c.a,statusPoint:m},created:function(){this.init()},methods:{goGroup:function(){sessionStorage.setItem("engineList",u()(this.$route.query)),this.$router.push("/engineManage/group?mode=4")},goBase:function(){this.$router.push({path:"/groupManage/index",query:{algorithmSubType:this.searchForm.algorithmSubType}})},reset:function(){this.searchForm={abilityGroup:this.$route.query.abilityGroup,algorithmSubType:this.$route.query.algorithmSubType,host:null,pageSize:10,pageNum:1},this.getData()},filterStatus:function(e){return{1:"初始化",2:"在线",3:"离线"}[e.status]||val},filterType:function(e){var t=e;return this.allType.some(function(a){if(a.value===e)return t=a.label,!0}),t},filterSType:function(e){var t=e;return this.allSType.some(function(a){if(a.algorithmSubType===e)return t=a.algorithmSubTypeName,!0}),t},goDetail:function(e){this.$router.push("/engineManage/edit?id="+e.serviceId+"&mode=4")},goBaseDetail:function(e){this.$router.push("/groupManage/node?host="+e.host+"&algorithmSubType="+this.$route.query.algorithmSubType)},removeRow:function(e){var t=this;return i()(s.a.mark(function a(){var r;return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("是否确定,删除该条数据?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 2:return t.$set(e,"removing",!0),a.prev=3,a.next=6,l.a.checkRemove({serviceType:e.algorithmSubType,serviceVersion:e.modelVersion});case 6:a.sent,a.next=14;break;case 9:return a.prev=9,a.t0=a.catch(3),t.$message.error(a.t0||"不可删除该引擎"),e.removing=!1,a.abrupt("return");case 14:return a.prev=14,a.next=17,l.a.remove(e.serviceId);case 17:if(!(r=a.sent).success){a.next=22;break}t.$message.success("删除成功"),a.next=23;break;case 22:throw new Error(r.message);case 23:a.next=28;break;case 25:a.prev=25,a.t1=a.catch(14),t.$message.error(a.t1);case 28:return a.prev=28,e.removing=!1,t.getData(),a.finish(28);case 32:case"end":return a.stop()}},a,t,[[3,9],[14,25,28,32]])}))()},goAdd:function(){this.$router.push("/engineManage/add")},init:function(){var e=this;return i()(s.a.mark(function t(){var a,r,n,i;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.statusTypes=[{label:"全部",value:null},{label:"初始化",value:1},{label:"在线",value:2},{label:"离线",value:3}],t.next=3,l.a.sTypes({});case 3:(a=t.sent).success&&(r=a.data,n={},i=[{label:"全部",value:null}],r.forEach(function(e){n[e.abilityGroup]||(n[e.abilityGroup]=!0,i.push({value:e.abilityGroup,label:e.abilityGroupDesc}))}),e.eTypes=i,e.allType=i),e.fetchStypes({},!0),e.search();case 7:case"end":return t.stop()}},t,e)}))()},fetchStypes:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments[1];return i()(s.a.mark(function r(){var n;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,l.a.sTypes(t);case 2:(n=r.sent).success&&(e.sTypes=n.data,a&&(e.allSType=n.data));case 4:case"end":return r.stop()}},r,e)}))()},eTypeChange:function(){if(this.searchForm.algorithmSubType=null,this.searchForm.abilityGroup){var e={abilityGroup:this.searchForm.abilityGroup};this.fetchStypes(e)}else this.sTypes=[{algorithmSubTypeName:"全部",algorithmSubType:null}]},search:function(){this.searchForm.pageNum=1,this.getData()},getData:function(){var e=this;return i()(s.a.mark(function t(){var a;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return""===e.searchForm.host&&(e.searchForm.host=null),e.loading=!0,t.prev=2,t.next=5,l.a.slist(e.searchForm);case 5:a=t.sent,e.loading=!1,a.success&&(e.tableData=a.data.engineServiceResultList,e.total=a.data.total),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),e.loading=!1;case 13:case"end":return t.stop()}},t,e,[[2,10]])}))()}}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"app-container"},[a("el-card",{attrs:{shadow:"never"}},[a("search-page",{attrs:{pageSize:e.searchForm.pageSize,pageNum:e.searchForm.pageNum,total:e.total},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"pageNum",t)},"update:page-num":function(t){return e.$set(e.searchForm,"pageNum",t)},change:e.getData}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"引擎状态"}},[a("el-select",{model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[e._l(e.statusTypes,function(e,t){return[a("el-option",{key:t,attrs:{label:e.label,value:e.value}})]})],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"所属节点"}},[a("el-input",{attrs:{maxlength:"20"},model:{value:e.searchForm.host,callback:function(t){e.$set(e.searchForm,"host","string"==typeof t?t.trim():t)},expression:"searchForm.host"}})],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[e.$auth.engineManageDetailSearch],expression:"[$auth.engineManageDetailSearch]"}],attrs:{type:"warning"},on:{click:e.search}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:e.reset}},[e._v("重置")]),e._v(" "),e.ifRecog?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[e.$auth.engineManageDetailGroupBt],expression:"[$auth.engineManageDetailGroupBt]"}],attrs:{type:"primary"},on:{click:e.goGroup}},[e._v("分组管理")]):e._e(),e._v(" "),e.ifRecog?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[e.$auth.engineManageDetailDataBt],expression:"[$auth.engineManageDetailDataBt]"}],attrs:{type:"primary"},on:{click:e.goBase}},[e._v("底库管理")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-bottom":"60px"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"abilityGroup",label:"引擎分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.filterType(t.row.abilityGroup))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"algorithmSubType",label:"引擎名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.filterSType(t.row.algorithmSubType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"modelVersionName",label:"模型版本号"}}),e._v(" "),e.ifRecog?a("el-table-column",{attrs:{prop:"mirrorTag",label:"所属分组"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"host",label:"所属节点"}}),e._v(" "),a("el-table-column",{attrs:{prop:"port",label:"节点端口"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status",label:"引擎状态"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("status-point",{attrs:{disabled:3==e.row.status,value:e.row.status}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",width:e.ifRecog?180:120,label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[e.$auth.engineManageDetailEdit],expression:"[$auth.engineManageDetailEdit]"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.goDetail(t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[e.$auth.engineManageDetailRemove],expression:"[$auth.engineManageDetailRemove]"}],attrs:{type:"text",loading:t.row.removing,size:"small"},on:{click:function(a){return e.removeRow(t.row)}}},[e._v("删除")]),e._v(" "),e.ifRecog?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.goBaseDetail(t.row)}}},[e._v("查看底库")]):e._e()]}}])})],1)],1)],1)])},staticRenderFns:[]};var f=a("VU/8")(g,v,!1,function(e){a("myTe")},"data-v-7e27ba2b",null);t.default=f.exports},myTe:function(e,t,a){var r=a("Ll0t");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("6c22168e",r,!0)}});