mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
webpackJsonp([27],{"3md1":function(t,e,a){var n=a("UNfz");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("6ede6bce",n,!0)},UNfz:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.tableName[data-v-50817547] {\n margin-bottom: 20px;\n font-weight: 600;\n}\n.success-text[data-v-50817547] {\n color: #0ff004;\n}\n.fail-text[data-v-50817547] {\n color: red;\n}\n.re-text[data-v-50817547] {\n color: blue;\n padding-bottom: 1px;\n border-bottom: 1px solid blue;\n}\n.errMsg[data-v-50817547] {\n color: red;\n}\n",""])},oQer:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("YwUV"),s={name:"ActiveResult",data:function(){return{activeName:"",tableLoading:!1,tableData:[],snId:Number,nodeId:Number,activeMode:1,visible:!1}},mounted:function(){this.getData()},methods:{getData:function(){this.tableData=this.$route.params.data,this.activeName=this.$route.params.status},handleReActive:function(t){this.snId=t.snId,this.nodeId=t.nodeId,"online"===this.activeName?this.activeForm={snId:this.snId,nodeId:this.nodeId,activeMode:1}:this.activeForm={snId:this.snId,nodeId:this.nodeId,activeMode:0},this.reActive(this.activeForm)},reActive:function(t){var e=this;this.tableLoading=!0,n.b.reActive(t).then(function(t){t.data?(e.$message.success("重新授权成功"),e.visible=!0,e.tableLoading=!1):(e.$message.error("重新授权失败"),e.tableLoading=!1)}).catch(function(t){e.tableLoading=!1})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticStyle:{height:"600px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"resultData",staticClass:"table_expand",staticStyle:{width:"70%"},attrs:{data:t.tableData,"row-style":{height:"44px"}}},[a("el-table-column",{attrs:{prop:"sn",align:"center",label:"SN"},scopedSlots:t._u([{key:"default",fn:function(e){return[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:"产品名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"validDay",align:"center",label:"有效期",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1==e.row.validDay?[t._v("永久")]:[t._v(t._s(e.row.validDay))]]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nodeName",align:"center",label:"安装节点"}}),t._v(" "),a("el-table-column",{attrs:{align:"right",prop:"statusStr",label:"授权状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.status?[a("span",{staticClass:"success-text"},[t._v(t._s(e.row.statusStr))])]:[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.row.errorMsg))]),t._v(" "),a("el-button",{staticClass:"fail-text",attrs:{type:"text"}},[t._v(t._s(e.row.statusStr))])],1)]]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleReActive(e.row)}}},[t._v("重新授权")])]:t._e()]}}])}),t._v(" "),t.visible?a("el-table-column",[a("span",{staticClass:"success-text"},[t._v("重新授权成功")])]):t._e()],1)],1)},staticRenderFns:[]};var l=a("VU/8")(s,o,!1,function(t){a("3md1")},"data-v-50817547",null);e.default=l.exports}}); |