(("undefined"!==typeof self?self:this)["webpackJsonphs_sky_ui"]=("undefined"!==typeof self?self:this)["webpackJsonphs_sky_ui"]||[]).push([[3],{f3bc:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{attrs:{data:e.gridData,"max-height":"350"}},[n("el-table-column",{attrs:{property:"app_code",label:"appCode",width:"150"}}),n("el-table-column",{attrs:{property:"page_name",label:"pageName",width:"200"}}),n("el-table-column",{attrs:{property:"control_name",label:"controlName"}}),n("el-table-column",{attrs:{property:"query_sql",label:"querySql","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{property:"version",label:"version"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.revertVersion(t.$index,t.row)}}},[e._v("回滚")]),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.showView(t.$index,t.row)}}},[e._v("查看效果")])]}}])})],1)],1)},a=[],i={name:"lookPageLog",props:{elInfo:{type:Object,default:function(){return{dialogVisible:!1}}},isrequest:{type:Boolean,default:!1}},data:function(){return{pageTitle:"",dialogVisible:!1,gridData:[]}},watch:{isrequest:function(e){this.dialogOpen()}},mounted:function(){this.dialogOpen()},methods:{revertVersion:function(e,t){var n=this,o={sAppCode:t.app_code,sPage:t.page_name,sControl:t.control_name,version:t.version};this.$confirm("是否确定回滚到此版本!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.$emit("revertVersion",o)})).catch((function(e){console.log(e),n.$message({type:"info",message:"已取消"})}))},dialogOpen:function(){var e=this,t={sPage:this.elInfo.page,sControl:this.elInfo.position};this.$API.getPageLog(t).then((function(t){e.gridData=t}))},showView:function(e,t){var n={config:JSON.parse(t.json_config),sourceData:JSON.parse(t.json_data),sql:t.query_sql};this.$emit("showView",n)}}},s=i,l=n("e90a"),r=Object(l["a"])(s,o,a,!1,null,null,null);t["default"]=r.exports}}]);