Files
starRiverProperty/frontend/cwos_manager_frontend/static/js/18.650b845475b02d0e3698.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
19 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
webpackJsonp([18],{"00Lh":function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.app-container[data-v-98a0404a] {\n max-height: 100%;\n}\n.el-row[data-v-98a0404a] {\n margin-bottom: 20px;\n}\n.el-row[data-v-98a0404a]:last-child {\n margin-bottom: 0;\n}\n.el-col[data-v-98a0404a] {\n border-radius: 4px;\n}\n.tableName[data-v-98a0404a] {\n margin-bottom: 20px;\n font-weight: 600;\n}\n.expireStatus[data-v-98a0404a] {\n font-size: 0.5em;\n color: white;\n font-weight: 600;\n background: red;\n}\n.authButton[data-v-98a0404a] {\n padding-bottom: 1px;\n color: grey;\n}\n.my_table[data-v-98a0404a] {\n width: 50%;\n}\n.validStatus[data-v-98a0404a] {\n padding: 2px 0;\n font-size: 0.5em;\n color: white;\n font-weight: 600;\n background: grey;\n}\n.success[data-v-98a0404a] {\n color: black;\n}\n.fail[data-v-98a0404a] {\n color: #cccccc;\n}\n.extractfail-icon[data-v-98a0404a] {\n font-size: 7em;\n padding-left: 40%;\n padding-top: 20px;\n}\n.extractfail-text[data-v-98a0404a] {\n font-size: 1.5em;\n padding-left: 30%;\n padding-top: 20px;\n padding-bottom: 50px;\n}\n.error-text[data-v-98a0404a] {\n font-size: 1.2em;\n color: red;\n padding: 10px;\n}\n.progress[data-v-98a0404a] {\n background: rgba(0, 0, 0, 0.2);\n color: white;\n padding: auto;\n font-size: 1.5em;\n padding-top: 70px;\n padding-bottom: 70px;\n}\n",""])},"5mpD":function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.app-container[data-v-23334274] {\n max-height: 100%;\n}\n\n/* .el-row {\r\n margin-bottom: 20px;\r\n &:last-child {\r\n margin-bottom: 0;\r\n }\r\n} */\n.el-col[data-v-23334274] {\n border-radius: 4px;\n}\n.tableName[data-v-23334274] {\n margin-bottom: 20px;\n font-weight: 600;\n}\n.expireStatus[data-v-23334274] {\n font-size: 0.5em;\n color: white;\n font-weight: 600;\n background: red;\n}\n.authButton[data-v-23334274] {\n padding-bottom: 1px;\n color: grey;\n}\n.my_table[data-v-23334274] {\n width: 50%;\n}\n.validStatus[data-v-23334274] {\n padding: 2px 0;\n font-size: 0.5em;\n color: white;\n font-weight: 600;\n background: grey;\n}\n.offline-icon[data-v-23334274] {\n font-size: 7em;\n padding: 20px 40%;\n}\n.offline-text[data-v-23334274] {\n font-size: 1.5em;\n padding: 10px 20%;\n}\n",""])},dkJh:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("YwUV"),i={name:"OnlineActive",data:function(){return{radioId:Number,snId:Number,nodeIds:[],nodeData:[],snData:[],authData:[],expireList:[],activeName:"",form:{pageSize:0,pageNum:1},activeForm:{},activeMode:1,tableLoading:!1,activeLoading:!1,visiable:!1,expands:[],getRowKeys:function(t){return t.id}}},watch:{authData:function(){this.$router.push({name:"activeResult",params:{status:this.activeName,data:this.authData,activeData:this.activeForm}})}},created:function(){this.getNodeData(),this.getSnData()},methods:{getNodeData:function(t){var e=this;this.tableLoading=!0,n.b.getExpireNode().then(function(t){setTimeout(function(){e.nodeData=t.data,e.tableLoading=!1},500)}).catch(function(t){e.tableLoading=!1})},getSnData:function(){var t=this;this.tableLoading=!0,n.b.getSNList(this.form).then(function(e){setTimeout(function(){t.snData=e.data.list,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},getExpireInfo:function(t){this.expireList=t.auth,this.$refs.nodeTableData.toggleRowExpansion(t)},nodeRowClick:function(t,e,a){t.auth.length&&(this.$refs.nodeTableData.toggleRowExpansion(t),this.expireList=t.auth,this.visible=!0)},nodeSelectionChange:function(t){for(var e in this.nodeIds.length=0,t)this.nodeIds.push(t[e].id)},snRowClick:function(t){this.radioId=t.id,this.snId=t.id},handleSubmit:function(){var t=this;this.activeLoading=!0,this.activeName="online",this.activeForm={snId:this.snId,nodeIds:this.nodeIds,activeMode:1},n.b.lineActive(this.activeForm).then(function(e){setTimeout(function(){t.authData=e.data,t.activeLoading=!1},2e3)}).catch(function(e){t.activeLoading=!1})},expandSelect:function(t,e){e.length?(this.expands=[],t&&this.expands.push(t.id)):this.expands=[]}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.activeLoading,expression:"activeLoading"}],staticStyle:{width:"100%"},attrs:{model:t.activeForm,"element-loading-text":"激活中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.6)"}},[a("el-row",{attrs:{gutter:100}},[a("el-col",{attrs:{span:12}},[a("el-card",[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 1")]),t._v("选择需要添加授权的节点\n ")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"nodeTableData",staticClass:"table_expand",staticStyle:{width:"100%"},attrs:{data:t.nodeData,"row-style":{height:"44px"},"row-key":t.getRowKeys,"expand-row-keys":t.expands,height:"400px"},on:{"expand-change":t.expandSelect,"selection-change":t.nodeSelectionChange}},[a("el-table-column",{attrs:{type:"selection",label:"index"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"节点名称",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{align:"right",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.expire?[a("span",{staticClass:"expireStatus"},[t._v("授权已过期")])]:t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"授权信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.auth.length?[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.getExpireInfo(e.row)}}},[a("span",{staticClass:"authButton"},[t._v("\n 查看已安装授权\n "),a("i",{staticClass:"el-icon-caret-bottom"})])])]:[a("span",[t._v("无授权")])]]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"expand"}},[a("div",{staticClass:"my_table"},[a("el-table",{staticStyle:{border:"1px #e8e8e8 solid"},attrs:{data:t.expireList,"row-style":{height:"44px"}}},[a("el-table-column",{attrs:{label:"产品名称",prop:"productName",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"激活时间",prop:"activeTime",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"过期时间",prop:"expireTime",align:"center"}})],1)],1)])],1),t._v(" "),a("el-button",{staticStyle:{float:"left","margin-bottom":"20px","margin-top":"20px","margin-left":"40%"},attrs:{type:"text"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-card",[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 2")]),t._v("选择需要添加的SN码\n ")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"snTableData",staticClass:"table_expand",staticStyle:{width:"100%"},attrs:{data:t.snData,"row-style":{height:"44px"},height:"400px"},on:{"selection-change":t.snSelectionChange,"row-click":t.snRowClick}},[a("el-table-column",{attrs:{label:"",width:"35"},scopedSlots:t._u([{key:"default",fn:function(e){return[[a("el-radio",{attrs:{label:e.row.id},model:{value:t.radioId,callback:function(e){t.radioId=e},expression:"radioId"}},[t._v(" ")])]]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"index",label:"序号",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sn",label:"SN",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(e.row.sn?e.row.sn.replace(/^(\w{4})\w+(\w{4})$/,"$1****$2"):"")+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"productName",align:"center",label:"产品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.productName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"validDay",align:"center",label:"有效期"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.validDay))])]}}])})],1),t._v(" "),a("el-button",{staticStyle:{width:"30%",float:"left","margin-bottom":"20px","margin-top":"20px","margin-left":"35%",padding:"10px auto"},attrs:{type:"warning"},on:{click:t.handleSubmit}},[t._v("申请激活\n ")])],1)],1)],1)],1)],1)},staticRenderFns:[]};var l={name:"OfflineActive",data:function(){return{radioId:Number,nodeData:[],snData:[],expireList:[],snId:Number,nodeIds:[],extractForm:{},insertForm:{},authData:[],newSnId:Number,newNodeIds:[],activeForm:{},activeData:[],sn:"",activeName:"",errorText:"",tableLoading:!1,extractLoading:!1,extractfail:!1,processBar:!1,visible:!1,expireInfoable:!1,form:{pageSize:0,pageNum:1},expands:[],getRowKeys:function(t){return t.id}}},watch:{authData:function(){var t=this;this.authData.length?(this.$message.success("导入成功"),this.visible=!0,this.processBar=!1):(this.extractfail=!0,setTimeout(function(){t.extractfail=!1},2e3),this.processBar=!1,this.$refs.upload.clearFiles())}},created:function(){this.getNodeData(),this.getSnData()},methods:{getNodeData:function(){var t=this;this.tableLoading=!0,n.b.getExpireNode().then(function(e){setTimeout(function(){t.nodeData=e.data,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},getSnData:function(){var t=this;this.tableLoading=!0,n.b.getSNList(this.form).then(function(e){setTimeout(function(){t.snData=e.data.list,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},getExpireInfo:function(t){this.expireList=t.auth,this.$refs.nodeTableData.toggleRowExpansion(t)},nodeSelectionChange:function(t){for(var e in this.nodeIds.length=0,t)this.nodeIds.push(t[e].id)},nodeRowClick:function(t,e,a){t.auth.length&&(this.$refs.nodeTableData.toggleRowExpansion(t),this.expireList=t.auth,this.expireInfoable=!0)},snRowClick:function(t){this.radioId=t.id,this.snId=t.id,this.sn=t.sn},handleExtractSubmit:function(){this.extractLoading=!0,this.extractForm={snId:this.snId,nodeIds:this.nodeIds},n.b.getExtractFile(this.extractForm),this.extractLoading=!1},handleUploadFile:function(t){var e=this;this.insertForm={sn:this.sn,nodeIds:this.nodeIds,file:t},n.b.insertFile(this.insertForm).then(function(t){e.processBar=!0,setTimeout(function(){e.authData=t.data,e.newSnId=t.data[0].snId,e.authData.forEach(function(t){e.newNodeIds.push(t.nodeId)})},2e3)}).catch(function(t){e.errorText=t.message,e.extractfail=!0,setTimeout(function(){e.extractfail=!1},2e3),e.processBar=!1,e.$refs.upload.clearFiles()})},handleSubmit:function(){var t=this;this.tableLoading=!0,this.activeName="offline",this.activeForm={snId:this.newSnId,nodeIds:this.newNodeIds,activeMode:0},n.b.lineActive(this.activeForm).then(function(e){t.activeData=e.data,t.$router.push({name:"activeResult",params:{status:t.activeName,data:t.activeData,activeData:t.activeForm}})}).catch(function(e){t.$refs.upload.clearFiles(),t.visible=!1,t.tableLoading=!1})},expandSelect:function(t,e){e.length?(this.expands=[],t&&this.expands.push(t.id)):this.expands=[]}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.extractLoading,expression:"extractLoading"}],staticStyle:{width:"100%"},attrs:{model:t.extractForm}},[a("el-row",{attrs:{gutter:100}},[a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"card-name"},[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 1")]),t._v("选择需要添加授权的节点\n ")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"nodeTableData",staticClass:"table_expand",staticStyle:{width:"100%"},attrs:{data:t.nodeData,"row-style":{height:"44px"},"row-key":t.getRowKeys,"expand-row-keys":t.expands,height:"400px"},on:{"expand-change":t.expandSelect,"selection-change":t.nodeSelectionChange}},[a("el-table-column",{attrs:{type:"selection",label:"index"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"节点名称",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{align:"right",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.expire?[a("span",{staticClass:"expireStatus"},[t._v("授权已过期")])]:t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"授权信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.auth.length?[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.getExpireInfo(e.row)}}},[a("span",{staticClass:"authButton"},[t._v("\n 查看已安装授权\n "),a("i",{staticClass:"el-icon-caret-bottom"})])])]:[a("span",[t._v("无授权")])]]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"expand"}},[a("div",{staticClass:"my_table"},[a("el-table",{staticStyle:{border:"1px #e8e8e8 solid"},attrs:{data:t.expireList,"row-style":{height:"44px"}}},[a("el-table-column",{attrs:{label:"产品名称",prop:"productName",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"激活时间",prop:"activeTime",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"过期时间",prop:"expireTime",align:"center"}})],1)],1)])],1),t._v(" "),a("el-button",{staticStyle:{width:"20%",float:"left","margin-bottom":"20px","margin-top":"20px","margin-left":"40%"},attrs:{type:"text"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"card-name"},[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 2")]),t._v("选择需要添加的SN码\n ")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"snTableData",staticClass:"table_expand",staticStyle:{width:"100%"},attrs:{data:t.snData,"row-style":{height:"44px"},height:"400px"},on:{"row-click":t.snRowClick}},[a("el-table-column",{attrs:{label:"",width:"35"},scopedSlots:t._u([{key:"default",fn:function(e){return[[a("el-radio",{attrs:{label:e.row.id},model:{value:t.radioId,callback:function(e){t.radioId=e},expression:"radioId"}},[t._v(" ")])]]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"index",label:"序号",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sn",label:"SN",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.sn?e.row.sn.replace(/^(\w{4})\w+(\w{4})$/,"$1****$2"):""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"productName",align:"center",label:"产品名称",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.productName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"validDay",align:"center",label:"有效期"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.validDay))])]}}])})],1),t._v(" "),a("el-button",{staticStyle:{width:"40%",float:"left","margin-bottom":"20px","margin-top":"20px","margin-left":"35%",padding:"10px auto"},attrs:{type:"warning"},on:{click:t.handleExtractSubmit}},[t._v("提取设备码文件\n ")])],1)],1)],1)],1),t._v(" "),a("div",{staticStyle:{margin:"30px auto"}}),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%"},attrs:{model:t.extractForm,"element-loading-text":"激活中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.6)"}},[a("el-row",{attrs:{gutter:100}},[a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"card-name"},[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 3")]),t._v("导入激活码文件\n ")]),t._v(" "),a("el-form-item",{staticStyle:{padding:"30px 100px"}},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{limit:1,"http-request":t.handleUploadFile,action:"",accept:".xls",drag:""}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.processBar,expression:"processBar"}],staticClass:"progress"},[t._v("正在上传...")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:!t.processBar,expression:"!processBar"}],staticClass:"el-icon-upload"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.processBar,expression:"!processBar"}],staticClass:"el-upload__text"},[t._v("\n 拖拽文件到这里, 或\n "),a("em",[t._v("点击上传")])]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传xls文件")])])],1)],1)],1),t._v(" "),t.visible?a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"card-name"},[a("div",{staticClass:"tableName"},[a("span",[t._v("Step 4")]),t._v("激活\n ")]),t._v(" "),a("el-table",{ref:"authData",staticClass:"table_expand",staticStyle:{width:"100%"},attrs:{data:t.authData,"row-style":{height:"44px"}}},[a("el-table-column",{attrs:{prop:"sn",label:"SN",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sn?e.row.sn.replace(/^(\w{4})\w+(\w{4})$/,"$1****$2"):"")+"\n ")]}}],null,!1,1948789834)}),t._v(" "),a("el-table-column",{attrs:{prop:"productName",align:"center",label:"产品名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"validDay",align:"center",label:"有效期"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1==e.row.validDay?[t._v("永久")]:[t._v(t._s(e.row.validDay))]]}}],null,!1,92497684)}),t._v(" "),a("el-table-column",{attrs:{prop:"nodeName",align:"center",label:"安装节点","show-overflow-tooltip":""}})],1),t._v(" "),t.visible?a("el-button",{staticStyle:{width:"30%","margin-left":"35%","margin-bottom":"20px","margin-top":"10%"},attrs:{type:"warning"},on:{click:t.handleSubmit}},[t._v("申请激活")]):t._e()],1)],1):t._e()],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.extractfail,title:"提示",width:"30%"},on:{"update:visible":function(e){t.extractfail=e}}},[a("div",{staticClass:"error-text"},[a("p",[t._v("Error: "+t._s(t.errorText))])]),t._v(" "),a("div",{staticClass:"extractfail-icon"},[a("i",{staticClass:"el-icon-error"})]),t._v(" "),a("div",{staticClass:"extractfail-text"},[a("p",[t._v("导入失败,请重新上传")])])])],1)},staticRenderFns:[]};var r={name:"AddAuth",components:{onlineActive:a("VU/8")(i,o,!1,function(t){a("yZCf")},"data-v-23334274",null).exports,offlineActive:a("VU/8")(l,s,!1,function(t){a("sICo")},"data-v-98a0404a",null).exports},data:function(){return{activeName:"online",isshowResult:null}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticClass:"app-container"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"online",label:"在线激活"}},[a("onlineActive")],1),t._v(" "),a("el-tab-pane",{attrs:{name:"offline",label:"离线激活"}},[a("offlineActive")],1)],1)],1)},staticRenderFns:[]},c=a("VU/8")(r,d,!1,null,null,null);e.default=c.exports},sICo:function(t,e,a){var n=a("00Lh");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("5b3d6d1e",n,!0)},yZCf:function(t,e,a){var n=a("5mpD");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("8230a688",n,!0)}});