((typeof self !== 'undefined' ? self : this)["webpackJsonphs_sky_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonphs_sky_ui"] || []).push([[3],{

/***/ "f3bc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"225853fa-vue-loader-template"}!./node_modules/_vue-loader@15.9.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./src/packages/common/lookPageLog.vue?vue&type=template&id=7d223226&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-table',{attrs:{"data":_vm.gridData,"max-height":"350"}},[_c('el-table-column',{attrs:{"property":"app_code","label":"appCode","width":"150"}}),_c('el-table-column',{attrs:{"property":"page_name","label":"pageName","width":"200"}}),_c('el-table-column',{attrs:{"property":"control_name","label":"controlName"}}),_c('el-table-column',{attrs:{"property":"query_sql","label":"querySql","show-overflow-tooltip":true}}),_c('el-table-column',{attrs:{"property":"version","label":"version"}}),_c('el-table-column',{attrs:{"label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini","type":"danger"},on:{"click":function($event){return _vm.revertVersion(scope.$index, scope.row)}}},[_vm._v("回滚")]),_c('el-button',{attrs:{"type":"success","size":"mini"},on:{"click":function($event){return _vm.showView(scope.$index, scope.row)}}},[_vm._v("查看效果")])]}}])})],1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/packages/common/lookPageLog.vue?vue&type=template&id=7d223226&

// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./src/packages/common/lookPageLog.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var lookPageLogvue_type_script_lang_js_ = ({
  name: 'lookPageLog',
  props: {
    elInfo: {
      type: Object,
      default: function _default() {
        return {
          dialogVisible: false
        };
      }
    },
    isrequest: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      pageTitle: '',
      dialogVisible: false,
      gridData: []
    };
  },
  watch: {
    isrequest: function isrequest(value) {
      this.dialogOpen();
    }
  },
  mounted: function mounted() {
    this.dialogOpen();
  },
  methods: {
    revertVersion: function revertVersion(index, item) {
      var _this = this;

      var parm = {
        sAppCode: item.app_code,
        sPage: item.page_name,
        sControl: item.control_name,
        version: item.version
      };
      this.$confirm('是否确定回滚到此版本!', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(function () {
        _this.$emit('revertVersion', parm);
      }).catch(function (e) {
        console.log(e);

        _this.$message({
          type: 'info',
          message: '已取消'
        });
      });
    },
    dialogOpen: function dialogOpen() {
      var _this2 = this;

      var parm = {
        sPage: this.elInfo.page,
        sControl: this.elInfo.position
      };
      this.$API.getPageLog(parm).then(function (res) {
        _this2.gridData = res;
      });
    },
    showView: function showView(index, item) {
      var data = {
        config: JSON.parse(item.json_config),
        sourceData: JSON.parse(item.json_data),
        sql: item.query_sql
      };
      this.$emit('showView', data);
    }
  }
});
// CONCATENATED MODULE: ./src/packages/common/lookPageLog.vue?vue&type=script&lang=js&
 /* harmony default export */ var common_lookPageLogvue_type_script_lang_js_ = (lookPageLogvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.9.1@vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("e90a");

// CONCATENATED MODULE: ./src/packages/common/lookPageLog.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  common_lookPageLogvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var lookPageLog = __webpack_exports__["default"] = (component.exports);

/***/ })

}]);