管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-21 c2a697c7399dcfb3ebae5333f05f91f488d2cb41
src/views/Tools/Popup.vue
@@ -38,7 +38,10 @@
            >
              <slot></slot>
            </div>
            <div class="popupBtn" v-if="showBtn">
            <div
              class="popupBtn"
              v-if="showBtn"
            >
              <div v-if="btnArr && btnArr.length">
                <el-button
                  v-for="item in btnArr"
@@ -46,14 +49,18 @@
                  size="mini"
                  :type="item.type"
                  @click="item.fun"
                  >{{ item.name }}</el-button
                >
                >{{ item.name }}</el-button>
              </div>
              <div v-else>
                <el-button size="mini" @click="cancel">取消</el-button>
                <el-button type="primary" size="mini" @click="yes"
                  >确定</el-button
                >
                <el-button
                  size="mini"
                  @click="cancel"
                >取消</el-button>
                <el-button
                  type="primary"
                  size="mini"
                  @click="yes"
                >确定</el-button>
              </div>
            </div>
          </div>
@@ -133,6 +140,10 @@
    close() {
      this.showBox = false;
      this.$emit("close");
      if (window.UndergroundMode) {
        window.sgworld.Analysis.UndergroundMode(false, 0);
        window.UndergroundMode = null;
      }
    },
    yes() {
      this.$emit("yes");