管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-11-21 ba3f4338070b930bc2b5b50bcd483aba1a37d7b9
src/views/datamanage/styleManage.vue
@@ -19,7 +19,7 @@
          <el-button
            @click="submitForm('ruleForm')"
            icon="el-icon-search"
            type="primary"
            class="primary"
            size="small"
            >{{ $t('common.iquery') }}</el-button
          >
@@ -106,38 +106,6 @@
              prop="descr"
              :label="$t('dataManage.styleObj.descr')"
            />
            <!-- <el-table-column
              align="center"
              prop="fileGuid"
              :label="$t('dataManage.styleObj.fileguid')"
            />
            <el-table-column
              align="center"
              prop="viewGuid"
              :label="$t('dataManage.styleObj.viewguid')"
            />
            <el-table-column
              align="center"
              prop="createUser"
              :label="$t('dataManage.styleObj.createUser')"
            />
            <el-table-column
              align="center"
              prop="createTime"
              :label="$t('dataManage.styleObj.createTime')"
              :formatter="formatTime"
            />
            <el-table-column
              align="center"
              prop="updateUser"
              :label="$t('dataManage.styleObj.updateUser')"
            />
            <el-table-column
              align="center"
              prop="updateTime"
              :label="$t('dataManage.styleObj.updateTime')"
              :formatter="formatTime"
            /> -->
            <el-table-column
              align="center"
              prop="bak"
@@ -267,7 +235,7 @@
      </el-card>
    </div>
    <el-dialog
      title="修改详情"
      :title="$t('dataManage.styleObj.modifyStyleData')"
      top="2vh"
      style="overflow: hidden"
      :before-close="removeUpdate"
@@ -421,8 +389,8 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="removeUpdate">{{$t('common.close')}}</el-button>
        <el-button type="primary" @click="updateForm">{{$t('common.confirm')}}</el-button>
        <el-button type="info" @click="removeUpdate">{{$t('common.close')}}</el-button>
        <el-button class="primary" @click="updateForm">{{$t('common.confirm')}}</el-button>
      </div>
    </el-dialog>
    <el-dialog
@@ -430,6 +398,7 @@
      top="2vh"
      style="overflow: hidden"
      :visible.sync="InsertFormdialog"
      :before-close="handleClose"
    >
      <el-form :model="insertform">
        <el-form-item
@@ -580,8 +549,8 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="insertFromDataClose">{{$t('common.close')}}</el-button>
        <el-button type="primary" @click="insertFromData">{{$t('common.confirm')}}</el-button>
        <el-button type="info" @click="insertFromDataClose">{{$t('common.close')}}</el-button>
        <el-button  class="primary" @click="insertFromData">{{$t('common.confirm')}}</el-button>
      </div>
    </el-dialog>
    <div class="leftTree" v-if="showDirCata">
@@ -589,10 +558,10 @@
        <style-dir-tree></style-dir-tree>
      </div>
      <div class="btnBox">
        <el-button type="primary" size="small" @click="selectDirCataName">{{
        <el-button class="primary" size="small" @click="selectDirCataName">{{
          $t('common.confirm')
        }}</el-button>
        <el-button type="primary" size="small" @click="showDirCata = false">{{
        <el-button type="info" size="small" @click="showDirCata = false">{{
          $t('common.close')
        }}</el-button>
      </div>
@@ -602,10 +571,10 @@
        <style-dep-tree></style-dep-tree>
      </div>
      <div class="btnBox">
        <el-button type="primary" size="small" @click="selectDepCataName">{{
        <el-button class="primary" size="small" @click="selectDepCataName">{{
          $t('common.confirm')
        }}</el-button>
        <el-button type="primary" size="small" @click="showDepCata = false">{{
        <el-button type="info" size="small" @click="showDepCata = false">{{
          $t('common.close')
        }}</el-button>
      </div>
@@ -687,10 +656,13 @@
        .map((item) => (this.btnStatus[item.tag.substr(1)] = true));
    },
    filesReset() {
      document.getElementById("insertFile").reset();
      document.getElementById("insertimageFile").reset();
      this.guidFile = null;
      this.fileGuid = null;
      // document.getElementById("insertFile").reset();
      // document.getElementById("insertimageFile").reset();
         document.getElementById("insertFile").value = "";
            document.getElementById("insertimageFile").value = "";
      this.guidFile = '';
      this.fileGuid = '';
    },
    getInsertFile(res) {
      if (res == 0) {
@@ -882,8 +854,19 @@
    },
    insertFromDataClose() {
      this.InsertFormdialog = false;
      this.insertform = {};
       this.insertform= {
        fileGuid: null,
        viewGuid: null,
      }
      this.filesReset();
    },
    handleClose(){
     this.InsertFormdialog = false;
     this.insertform= {
        fileGuid: null,
        viewGuid: null,
      }
        this.filesReset();
    },
    async insertFromData() {
      if (this.insertform.dirid == null || this.insertform.depid == null) {
@@ -902,8 +885,10 @@
      const data = await insertStyle(this.insertform);
      if (data.code == 200) {
        this.InsertFormdialog = false;
        this.insertform = {};
     this.insertform= {
        fileGuid: null,
        viewGuid: null,
      }
        this.filesReset();
        this.$message({
          message: "添加成功!",
@@ -1212,7 +1197,7 @@
    left: 800px;
    width: 400px;
    height: 600px;
    background: #f0f2f5;
    background: #303030;
    border: 1px solid #000;
    .treeBox {
      height: 550px;
@@ -1302,13 +1287,14 @@
  }
  .infoBox {
    width: 500px;
    border: 1px solid #eee;
    position: absolute;
    z-index: 100;
    top: 15%;
    right: 25%;
    background-color: #fff;
    background-color: #303030;
    .el-card {
      color: white;
      background-color: transparent;
      span {
        font-size: 16px;
@@ -1317,7 +1303,7 @@
    }
    .contentBox {
      margin: 0 aotu 10px;
      height: 600px;
      height: 500px;
      overflow: auto;
      p {
        // background-color: #bfa;
@@ -1416,7 +1402,11 @@
  /deep/.el-cascader .el-input__inner {
    border-color: #fff !important;
  }
  .primary {
    background: #409eff;
    border: #409eff;
    color: white;
  }
}
</style>