管道基础大数据平台系统开发-【前端】-新系統界面
584911253@qq.com
2023-03-02 8bb00665765e8348aeb3a6e799069287e503e1ab
src/views/userManage/templateManage.vue
@@ -13,62 +13,68 @@
      >
         <div class="flex_box">
          <div style="margin-right: auto">
 <el-form-item label="名称">
 <el-form-item :label="$t('userManage.authorityM.name')">
          <el-input
          style="width:200px"
            v-model="ruleForm.name"
          />
          size="small"
          v-model="ruleForm.name"
          :placeholder="$t('userManage.authorityM.nameHolder')"
          >
            <i slot="suffix" class="el-icon-search" @click="setRefreshTable"></i>
          </el-input>
            </el-form-item>
          </div>
           <div>
               <el-form-item>
          <el-button
            icon="el-icon-refresh"
            @click="restRefreshTable"
            type="info"
            size="small"
          >{{ $t('common.empty') }}</el-button>
        </el-form-item>
        <el-form-item>
          <el-button
            icon="el-icon-search"
            @click="setRefreshTable"
            type="primary"
            size="small"
          >{{ $t('common.iquery') }}</el-button>
        </el-form-item>
        <el-form-item>
          <el-button
            v-if="btnStatus.delete"
            icon="el-icon-delete"
            @click="delTableData"
            type="danger"
            size="small"
          >{{ $t('common.delete') }}</el-button>
        </el-form-item>
        <el-form-item>
          <el-button
            v-if="btnStatus.insert"
            @click="setTableInsert"
            icon="el-icon-edit"
            type="success"
            size="small"
          >{{ $t('common.append') }}</el-button>
        </el-form-item>
<!--            <el-form-item>-->
<!--              <el-button-->
<!--                icon="el-icon-search"-->
<!--                @click="setRefreshTable"-->
<!--                type="primary"-->
<!--                size="small"-->
<!--              >{{ $t('common.iquery') }}</el-button>-->
<!--            </el-form-item>-->
             <el-form-item>
               <el-button
                   v-if="btnStatus.insert"
                   @click="setTableInsert"
                   icon="el-icon-edit"
                   type="success"
                   size="small"
               >{{ $t('common.append') }}</el-button>
             </el-form-item>
              <el-form-item>
              <el-button
                v-if="btnStatus.delete"
                icon="el-icon-delete"
                @click="delTableData"
                type="danger"
                size="small"
              >{{ $t('common.delete') }}</el-button>
            </el-form-item>
             <el-form-item>
               <el-button
                   icon="el-icon-refresh"
                   @click="restRefreshTable"
                   type="info"
                   size="small"
               >{{ $t('common.empty') }}</el-button>
             </el-form-item>
           </div>
         </div>
      </el-form>
    </div>
    <div class="dividing-line"></div>
    <div class="table_box" :style="styleVar">
      <el-table
        :data="tableData"
        style="width: 100%"
        border
        @selection-change="handleSelectionChange"
        height="calc(100% - 57px)"
        height="calc(100% - 45px)"
      >
        <el-table-column
          type="selection"
@@ -151,7 +157,7 @@
          </template>
        </el-table-column>
      </el-table>
      <div style="margin-top:25px">
      <div style="margin-top:10px">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
@@ -172,19 +178,19 @@
          : `${$t('common.update')}`
      "
      :visible.sync="dialogVisible"
      width="50%"
      :before-close="handleClose"
      :show-close="false"
    >
      <div>
      <div style="height: 500px; overflow: auto">
        <el-form
          ref="form"
          :model="editForm"
          label-width="100px"
          label-position="top"
        >
          <el-form-item :label="$t('dataManage.styleObj.name')">
            <el-input
              style="width:100%"
              style="width:85%"
              v-model=" editForm.name"
            ></el-input>
          </el-form-item>
@@ -194,7 +200,7 @@
              v-model="editForm.type"
              @change="selFileTypeChange"
              placeholder="请选择活动区域"
              style="width:100%"
              style="width:85%"
            >
              <el-option
                label="World模板"
@@ -213,7 +219,7 @@
            ></el-input> -->
            <el-select
              :popper-append-to-body="false"
              style="width:100%"
              style="width:85%"
              v-model="editForm.code"
              placeholder="请选择"
            >
@@ -236,7 +242,7 @@
                  style="width:100%"
                ></el-input>
              </div>
              <div>
              <div class="BoxFlexbutton">
                <input
                  name="file1"
                  type="file"
@@ -264,7 +270,7 @@
          </el-form-item>
          <el-form-item :label="$t('common.bak')">
            <el-input
              style="width:100%"
              style="width:85%"
              v-model="editForm.bak"
            ></el-input>
          </el-form-item>
@@ -301,9 +307,10 @@
        >确 定</el-button>
      </div>
    </el-dialog>
      <div class="infoBox_box" v-show="showinfoBox">
    <div
      class="infoBox subpage_Div box_div"
      v-show="showinfoBox"
    >
      <div
@@ -370,6 +377,7 @@
      </div>
    </div>
      </div>
    <iframe
      id="downFrame"
      src=""
@@ -469,7 +477,8 @@
      this.$nextTick(() => {
        const rect = this.$refs.container.getBoundingClientRect();
        this.tableHeight = `${rect.height + 97}px`;
        this.styleVar["height"] = `calc(100% - ${rect.height + 97}px)`;
        this.styleVar["height"] = `calc(100% - ${rect.height + 30}px)`;
        // this.styleVar["height"] = `calc(100% - ${rect.height + 97}px)`;
      });
    },
    //修改取消
@@ -755,19 +764,19 @@
.authorityManagement_box {
  height: 98%;
  width: 98%;
  padding: 1%;
  padding: 0.5%;
  .el-input {
    width: 730px;
  }
  .searchComp {
    padding: 8px;
    margin-top: 20px;
    //padding: 8px;
    //margin-top: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    //margin-bottom: 20px;
    .el-form-item {
      margin: 5px;
@@ -808,14 +817,7 @@
      }
    }
  }
  .BoxFlex {
    display: flex;
    justify-content: space-around;
    width: 100%;
    .BoxFlexinput {
      flex: 1;
    }
  }
}
</style>