管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-03-03 5023f311e2f4654e0b7c52fe3b2d70679de1739a
src/views/maintenance/tokentool.vue
@@ -190,6 +190,7 @@
    <el-dialog
      :title="$t('operatManage.tokentoolObj.addToken')"
      :visible.sync="InsertFormdialog"
      :before-close="handleClose"
    >
        <div style="height: 500px; overflow: auto">
      <el-form ref="formData1" :model="insertform" label-position="top">
@@ -258,6 +259,7 @@
    <el-dialog
      :title="$t('operatManage.tokentoolObj.editToken')"
      :visible.sync="EditFormdialog"
      :before-close="handleCloseEdit"
    >
     <div style="height: 500px; overflow: auto">
      <el-form ref="formData1" :model="insertform" label-position="top">
@@ -463,8 +465,12 @@
      // }
    },
    editFromDataClose() {
      this.EditFormdialog = false;
      this.upform = {};
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.EditFormdialog = false;
          this.upform = {};
        })
        .catch((_) => { });
    },
    async editFromData() {
      this.upform.type = parseInt(this.upform.edit);
@@ -500,8 +506,12 @@
      this.multipleSelection = val;
    },
    insertFromDataClose() {
      this.InsertFormdialog = false;
      this.insertform = {};
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.InsertFormdialog = false;
          this.insertform = {};
        })
        .catch((_) => { });
    },
    async insertFromData() {
      if (
@@ -643,6 +653,20 @@
      }
      return moment(parseInt(date)).format("YYYY-MM-DD HH:mm:ss");
    },
    handleClose() {
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.InsertFormdialog = false
        })
        .catch((_) => { });
    },
    handleCloseEdit() {
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.EditFormdialog = false
        })
        .catch((_) => { });
    },
  },
};
</script>