管道基础大数据平台系统开发-【前端】-新系統界面
王旭
2023-02-23 78b543ca7046ff1fa0b1727821e789bfb3291814
src/views/datamanage/SpatialData.vue
@@ -7,7 +7,7 @@
    <el-divider />
    <div class="spatialContent ">
      <div class="spatial_leftTree subpage_Div">
        <el-input v-model="filterText"></el-input>
        <el-input v-model="filterText" style="width: 200px;"></el-input>
        <div style="width:300px">
          <el-tree
@@ -22,8 +22,8 @@
          ></el-tree>
        </div>
      </div>
      <div style="width: 80%;">
        <div>
      <div class="contentshuju">
        <div class="contentshujutou">
          <el-form
          ref="ruleForm"
          :model="ruleForm"
@@ -31,51 +31,16 @@
        >
          <el-form-item>
            <!-- type="textarea" disabled-->
            <el-input
              type="textarea"
              v-model="ruleForm.fileName"
              class="nm-skin-pretty"
              show-word-limit
              :rows="2"
              resize='none'
              disabled
              style="width: 545px;"
              style="width: 200px;"
            ></el-input>
          </el-form-item>
          <!-- <el-form-item style="float: right">
            <el-button
              v-if="btnStatus.insert"
              @click="conditionVisible = true"
              size="small"
              icon="el-icon-plus"
              type="success"
            >{{$t('common.append')}}</el-button>
          </el-form-item>
          <el-form-item style="float: right">
            <el-button
              @click="submitForm"
              type="primary"
              size="small"
              icon="el-icon-search"
            >{{$t('common.iquery')}}</el-button>
          </el-form-item>
          <el-form-item style="float: right">
            <el-button
              @click="resetForm"
              size="small"
              icon="el-icon-refresh"
              type="info"
            >{{$t('common.reset')}}</el-button>
          </el-form-item>
          <el-form-item style="float: right">
            <el-button
              @click="getSpaceMapVisibale"
              size="small"
              type="primary"
            >{{
              $t('synthesis.rangequery')
            }}</el-button>
          </el-form-item> -->
          <el-form-item style="float: right">
            <el-button
              @click="getSpaceMapVisibale"
@@ -85,6 +50,15 @@
              $t('synthesis.rangequery')
            }}</el-button>
          </el-form-item>
            <el-form-item style="float: right">
              <el-button
                @click="resetForm"
                type="info"
                size="small"
                icon="el-icon-refresh"
              >{{$t('common.reset')}}</el-button>
            </el-form-item>
          <el-form-item style="float: right">
            <el-button
              @click="submitForm"
@@ -103,76 +77,13 @@
            >{{$t('common.append')}}</el-button>
          </el-form-item>
        </el-form>
        <!-- <el-divider class="eldivider" /> -->
      </div>
      <!-- <div class="spatial_rightContent subpage_Div">
        <div>
          <el-table
            ref="filterTable"
            :data="tableData"
            border
            style="width: 100%;max-height: 593px;overflow: auto;"
            @selection-change="handleSelectionChange"
          >
            <el-table-column
              type="selection"
              width="55"
            />
            <el-table-column
              width="60"
              align="center"
              type="index"
              :label="$t('common.index')"
            />
            <el-table-column
              v-for="(item, index) in attributeData"
              :key="index"
              :label="item.alias"
              :prop="item.field"
              show-overflow-tooltip
              align="center"
            ></el-table-column>
            <el-table-column
              min-width="120"
              :label="$t('common.operate')"
            >
              <template slot-scope="scope">
                <el-link
                  class="elLink"
                  @click="showDetail(scope.$index, scope.row)"
                >{{$t('common.details')}}</el-link>
                <el-link
                  class="elLink"
                  @click="getAttachTable(scope.$index, scope.row)"
                  style="margin-left: 20px;  "
                >{{$t('common.enclosure')}}</el-link>
              </template>
            </el-table-column>
          </el-table>
          <div
            style="margin-top: 20px"
            class="pagination_box"
          >
            <el-pagination
              v-if="changePag"
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="this.listData.pageIndex"
              :page-sizes="[10, 20, 50, 100]"
              :page-size="this.listData.pageSize"
              layout="total, sizes, prev, pager, next, jumper"
              :total="count"
            >
            </el-pagination>
          </div>
        </div>
      </div> -->
      <div style="height: 73%">
        <div class="table_box" style="height:calc(100% - 89px)">
          <el-table
            ref="filterTable"
            :data="tableData"
            style="width: 100%"
            height="99%"
            height="calc(100% - 57px)"
          >
          <el-table-column
              type="selection"
@@ -193,24 +104,26 @@
              align="center"
            ></el-table-column>
            <el-table-column
              min-width="120"
            min-width="180"
              :label="$t('common.operate')"
            >
              <template slot-scope="scope">
                <el-link
                  class="elLink"
                <el-button
                   type="primary"
                  plain
                  size="small"
                  @click="showDetail(scope.$index, scope.row)"
                >{{$t('common.details')}}</el-link>
                <el-link
                  class="elLink"
                >{{$t('common.details')}}</el-button>
                <el-button
                  plain
                  size="small"
                  @click="getAttachTable(scope.$index, scope.row)"
                  style="margin-left: 20px;  "
                >{{$t('common.enclosure')}}</el-link>
                >{{$t('common.enclosure')}}</el-button>
              </template>
            </el-table-column>
          </el-table>
          <div
            style="margin-top: 20px; "
            class="pagination_box"
          >
            <el-pagination
@@ -228,9 +141,10 @@
      </div>
      
    </div>
    <div
     <div class="infoBox_box" v-show="showinfoBox">
      <div
      class="infoBox box_div"
      v-show="showinfoBox"
    >
      <div
@@ -259,15 +173,18 @@
        </ul>
      </div>
    </div>
      </div>
     </div>
    <el-dialog
      :title="$t('common.attachinform')"
      width="30%"
      top="2vh"
      :visible.sync="dialogFormVisible"
    >
    <div style="height: 500px; overflow: auto">
      <el-form
        :model="formInline"
        class="demo-form-inline"
        label-position="top"
      >
        <el-form-item>
          <el-input
@@ -361,19 +278,22 @@
          </el-row>
        </el-form-item> -->
      </el-form>
    </div>
    </el-dialog>
    <el-dialog
      width="37%"
       top="2vh"
      :visible.sync="conditionVisible"
      title="查询条件"
      :before-close="handleconditionClose"
    >
      <el-form
        :inline="true"
        :model="formSql"
        class="demo-form-inline"
        label-position="top"
      >
        <el-form-item>
          <el-select
            @change="fieldChange($event)"
@@ -415,7 +335,9 @@
          >
          </el-date-picker>
        </el-form-item>
      </el-form>
      <span
        slot="footer"
        class="dialog-footer"
@@ -1205,26 +1127,36 @@
  padding: 1%;
  .spatialContent {
    width: 100%;
    height: 92%;
    height: calc(100% - 75px);
    display: flex;
    justify-content: space-between;
    .spatial_leftTree {
      width: calc(15% - 0px);
      height: 91%;
      width: calc(23% - 0px);
      height: 100%;
      padding: 10px;
      border-radius: 5px;
      padding: 1%;
      max-height: 670px;
      box-sizing: border-box;
      overflow-y: auto;
    }
    .spatial_rightContent {
      // width: 80%;
      // height: 91%;
    .contentshuju {
      width: 75%;
      height: 100%;
      border-radius: 5px;
      padding: 1%;
      overflow-y: auto;
      padding: 10px;
      box-sizing: border-box;
      border: 1px solid #dcdfe6;
    }
  }
}
.contentshujutou {
  padding: 8px;
  // margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #dcdfe6;
  margin-bottom: 20px;
  .el-form-item {
    margin: 5px;
  }
}
</style>