1 line
4.7 KiB
JavaScript
1 line
4.7 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2095b1"],{a969: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",[t.dialogVisible?a("el-dialog",{attrs:{width:"80%","close-on-click-modal":!1,visible:t.dialogVisible,title:"属性列表"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){t.dialogVisible=!1}}},[a("a-input-search",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入搜索","allow-clear":""},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}}),t._v(" "),a("event-attr",{staticStyle:{"margin-top":"10px"},attrs:{typ:Number(2),"event-name":t.eventName,input:t.input2}})],1):t._e(),t._v(" "),t.tableShow?a("page-table",{ref:"pagetable",attrs:{"connect-loading":t.loading,"table-list":t.tableData,"table-info":t.tableInfo,input:t.input}},[a("el-table-column",{attrs:{slot:"operate",label:"事件名",align:"center",width:"300"},slot:"operate",scopedSlots:t._u([{key:"default",fn:function(e){return[""==t.attr?[a("a",{staticStyle:{color:"#6bb8ff"},on:{click:function(a){return t.openDialog(e.row.event_name)}}},[t._v(t._s(e.row.event_name))])]:[t._v("\n "+t._s(e.row.event_name)+"\n ")]]}}],null,!1,2148553825)}),t._v(" "),a("el-table-column",{attrs:{slot:"operate",label:"显示名",align:"center",width:"300"},slot:"operate",scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isEdit?a("div",[a("el-input",{attrs:{size:"mini"},model:{value:e.row.show_name,callback:function(a){t.$set(e.row,"show_name",a)},expression:"scope.row.show_name"}})],1):a("div",[t._v("\n "+t._s(e.row.show_name)+"\n ")])]}}],null,!1,1704822814)}),t._v(" "),a("el-table-column",{attrs:{slot:"operate",label:"昨日事件量",align:"center",prop:"yesterday_count",sortable:""},slot:"operate"}),t._v(" "),a("el-table-column",{attrs:{slot:"operate",fixed:"right",label:"操作",width:"200",align:"center"},slot:"operate",scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isEdit?a("i",{staticClass:"el-icon-check",staticStyle:{cursor:"pointer",color:"orangered","font-weight":"bolder"},on:{click:function(a){return t.saveShowName(e.row.index,e.row.event_name,e.row.show_name)}}}):a("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer",color:"blue","font-weight":"bolder"},on:{click:function(a){return t.editShowName(e.row.index)}}})]}}],null,!1,3979527919)})],1):t._e()],1)},i=[],s=a("c80c"),r=(a("96cf"),a("3b8d")),o=a("7d99"),l={name:"MetaAttr",components:{PageTable:function(){return a.e("chunk-b022bae4").then(a.bind(null,"e94a"))},EventAttr:function(){return a.e("chunk-2d0c8dd9").then(a.bind(null,"5767"))}},props:{input:{type:String,default:""},attr:{type:String,default:""}},data:function(){return{eventName:"",loading:!1,tableInfo:[{slot:"operate"}],tableData:[],tableShow:!0,dialogVisible:!1,input2:""}},mounted:function(){this.searchData()},methods:{openDialog:function(t){this.eventName=t,this.dialogVisible=!0},editShowName:function(t){for(var e in this.tableData)this.tableData[e].index==t&&(this.tableData[e].isEdit=!0);this.refreshTable()},saveShowName:function(){var t=Object(r["a"])(Object(s["a"])().mark((function t(e,a,n){var i,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["g"])({appid:this.$store.state.baseData.EsConnectID,show_name:n,event_name:a});case 2:if(i=t.sent,0==i.code){t.next=6;break}return this.$message({offset:60,type:"error",message:i.msg}),t.abrupt("return");case 6:for(r in this.tableData)this.tableData[r].index==e&&(this.tableData[r].isEdit=!1);this.refreshTable();case 8:case"end":return t.stop()}}),t,this)})));function e(e,a,n){return t.apply(this,arguments)}return e}(),searchData:function(){var t=Object(r["a"])(Object(s["a"])().mark((function t(){var e,a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loading=!0,e={},""!=this.attr){t.next=8;break}return t.next=5,Object(o["c"])({appid:this.$store.state.baseData.EsConnectID});case 5:e=t.sent,t.next=11;break;case 8:
|