'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../../api/index.js');
var index = require('../../../../../api/base/index.js');

const _hoisted_1 = { class: "sys-upgrade-container" };
const _hoisted_2 = { style: { "color": "#fff" } };
const _hoisted_3 = ["innerHTML"];
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "upgradeInfo",
  setup(__props, { expose: __expose }) {
    const state = vue.reactive({
      isShowDialog: false,
      ruleForm: {}
    });
    const openDialog = (row) => {
      state.ruleForm = JSON.parse(JSON.stringify(row));
      state.isShowDialog = true;
    };
    const cancel = async () => {
      await index.useBaseApi("sysUpgrade").pcomm({ id: state.ruleForm.id }, "setRead");
      state.isShowDialog = false;
    };
    __expose({ openDialog });
    return (_ctx, _cache) => {
      const _component_ele_InfoFilled = vue.resolveComponent("ele-InfoFilled");
      const _component_el_icon = vue.resolveComponent("el-icon");
      const _component_el_dialog = vue.resolveComponent("el-dialog");
      return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
        vue.createVNode(_component_el_dialog, {
          modelValue: state.isShowDialog,
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.isShowDialog = $event),
          draggable: "",
          "close-on-click-modal": false,
          width: "50vw",
          "before-close": cancel
        }, {
          header: vue.withCtx(() => [
            vue.createElementVNode("div", _hoisted_2, [
              vue.createVNode(_component_el_icon, {
                size: "16",
                style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
              }, {
                default: vue.withCtx(() => [
                  vue.createVNode(_component_ele_InfoFilled)
                ]),
                _: 1
                /* STABLE */
              }),
              _cache[1] || (_cache[1] = vue.createElementVNode(
                "span",
                null,
                " \u7CFB\u7EDF\u66F4\u65B0\u65E5\u5FD7 ",
                -1
                /* CACHED */
              ))
            ])
          ]),
          default: vue.withCtx(() => [
            vue.createElementVNode("div", {
              innerHTML: state.ruleForm.content,
              style: { "padding": "20px" }
            }, null, 8, _hoisted_3)
          ]),
          _: 1
          /* STABLE */
        }, 8, ["modelValue"])
      ]);
    };
  }
});

exports.default = _sfc_main;
