1
Surpriseplus
2022-09-20 07fc9a3eafde862df6f8b544210b096e7248b285
1
已修改4个文件
267 ■■■■ 文件已修改
src/assets/lang/en.js 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/lang/zh.js 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Archive/index.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Thematic/index.vue 124 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/lang/en.js
@@ -36,22 +36,22 @@
    logLog: 'ConLog',
    operationLog: 'Operation Log',
    databaseMonitoring: 'Database Monitoring',
    operationLogObj:{
      queryRegion:"queryRegion",
      resourceName:"resourceName",
      operationType:"operationType",
      operatingTime:"operatingTime",
      inquire:"inquire",
      empty:"empty",
      num:"num",
      username:"username",
      systematicName:"systematicName",
      IP:" IP",
      pleaseInput:"pleaseInput",
      pleaseSelect:"pleaseSelect",
      optionDate:"optionDate",
      selectTime:"selectTime",
    }
    operationLogObj: {
      queryRegion: 'queryRegion',
      resourceName: 'resourceName',
      operationType: 'operationType',
      operatingTime: 'operatingTime',
      inquire: 'inquire',
      empty: 'empty',
      num: 'num',
      username: 'username',
      systematicName: 'systematicName',
      IP: ' IP',
      pleaseInput: 'pleaseInput',
      pleaseSelect: 'pleaseSelect',
      optionDate: 'optionDate',
      selectTime: 'selectTime',
    },
  },
  synthesis: {
    synthesis: 'Comprehensive Display',
@@ -120,6 +120,24 @@
    operationtype: 'Operation Type',
    operationStatus: 'Operation Status',
  },
  themaic: {
    name: 'Themaic Map',
    maptltle: 'Map Title',
    all: 'All',
    sortbytime: 'Sort by Time',
    sortbyviews: 'Sort by Views',
    find: 'Find',
    record: 'pieces of data',
  },
  archive: {
    name: 'Piping materials',
    keyword: 'Keyword',
    uname: 'Name',
    type: 'Type',
    modifications: 'Revision number',
    creationtime: 'Creation Time',
    state: 'State',
  },
};
export default en;
src/assets/lang/zh.js
@@ -36,22 +36,22 @@
    logLog: '登录日志',
    operationLog: '操作日志',
    databaseMonitoring: '数据库监控',
    operationLogObj:{
      queryRegion:"查询区",
      resourceName:"资源名称",
      operationType:"操作类型",
      operatingTime:"操作时间",
      inquire:"查询",
      empty:"清空",
      num:"序号",
      username:"用户名",
      systematicName:"系统名称",
      IP:" IP",
      pleaseInput:"请输入",
      pleaseSelect:"请选择",
      optionDate:"选择日期",
      selectTime:"选择时间",
    }
    operationLogObj: {
      queryRegion: '查询区',
      resourceName: '资源名称',
      operationType: '操作类型',
      operatingTime: '操作时间',
      inquire: '查询',
      empty: '清空',
      num: '序号',
      username: '用户名',
      systematicName: '系统名称',
      IP: ' IP',
      pleaseInput: '请输入',
      pleaseSelect: '请选择',
      optionDate: '选择日期',
      selectTime: '选择时间',
    },
  },
  synthesis: {
    synthesis: '综合展示',
@@ -120,6 +120,24 @@
    operationtype: '操作类型',
    operationStatus: '操作状态',
  },
  themaic: {
    name: '专题地图',
    maptltle: '地图名称',
    all: '全部',
    sortbytime: '按时间排序',
    sortbyviews: '按浏览次数排序',
    find: '共找到',
    record: '条数据',
  },
  archive: {
    name: '管道资料',
    keyword: '关键字',
    uname: '名称',
    type: '类型',
    modifications: '修改次数',
    creationtime: '创建时间',
    state: '状态',
  },
};
export default zh;
src/views/Archive/index.vue
@@ -2,7 +2,7 @@
  <div class="archive">
    <div class="left_active">
      <el-card class="arch_card">
        <div class="title_active">管道资料</div>
        <div class="title_active">{{ $t("archive.name") }}</div>
        <el-divider />
        <el-tree
          :data="tree"
@@ -17,25 +17,50 @@
        <el-row :gutter="20">
          <el-col :span="6"></el-col>
          <el-col :span="4"
            ><div style="text-align: right; margin-top: 6px">关键字:</div>
            ><div style="text-align: right; margin-top: 6px">
              {{ $t("archive.keyword") }}:
            </div>
          </el-col>
          <el-col :span="4"> <el-input placeholder="请输入...." /></el-col>
          <el-col :span="4"><el-button type="primary">查询</el-button></el-col>
          <el-col :span="4">
            <el-input :placeholder="$t('common.pleaseInput')"
          /></el-col>
          <el-col :span="4"
            ><el-button type="primary">{{
              $t("common.iquery")
            }}</el-button></el-col
          >
          <el-col :span="6"></el-col>
        </el-row>
        <el-divider />
        <el-card shadow="never" class="middle_card">
          <el-table :data="tableData" style="width: 10000px" stripe>
            <el-table-column prop="name" label="名称" width="180" />
            <el-table-column prop="type" sortable label="类型" width="180" />
            <el-table-column
              prop="name"
              :label="$t('archive.uname')"
              width="180"
            />
            <el-table-column
              prop="type"
              sortable
              :label="$t('archive.type')"
              width="180"
            />
            <el-table-column
              prop="count"
              sortable
              label="修改次数"
              :label="$t('archive.modifications')"
              width="180"
            />
            <el-table-column prop="timer" sortable label="创建时间" />
            <el-table-column prop="state" label="状态" width="180" />
            <el-table-column
              prop="timer"
              sortable
              :label="$t('archive.creationtime')"
            />
            <el-table-column
              prop="state"
              :label="$t('archive.state')"
              width="180"
            />
          </el-table>
        </el-card>
        <el-divider />
src/views/Thematic/index.vue
@@ -3,54 +3,98 @@
    <el-card style="height: 100%">
      <el-row :gutter="20">
        <el-col :span="6">
          <div class="th_title">专题地图</div>
          <div class="th_title">{{ $t("themaic.name") }}</div>
        </el-col>
        <el-col :span="4" :offset="14">
          <el-input size="small" placeholder="请输入内容" suffix-icon="el-icon-search" v-model="input3">
          <el-input
            size="small"
            :placeholder="$t('common.pleaseInput')"
            suffix-icon="el-icon-search"
            v-model="input3"
          >
          </el-input>
        </el-col>
      </el-row>
      <el-divider />
      <el-row>
        <el-col :span="5">
          <label style="margin-right: 10px">地图名称:</label>
          <el-select v-model="selvalue" class="m-2" placeholder="Select" style="width: 150px">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
          <label style="margin-right: 10px"
            >{{ $t("themaic.maptltle") }}:</label
          >
          <el-select
            v-model="selvalue"
            class="m-2"
            placeholder="Select"
            style="width: 150px"
          >
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            />
          </el-select>
        </el-col>
        <el-col :span="3">
          <div style="margin-top: 5px">
            <label style="margin-right: 10px">按时间排序:</label>
            <label style="margin-right: 10px"
              >{{ $t("themaic.sortbytime") }}:</label
            >
            <i @click="changetime(1)" :class="{ active: timeindex == 1 }" class="el-icon-caret-bottom"></i>
            <i
              @click="changetime(1)"
              :class="{ active: timeindex == 1 }"
              class="el-icon-caret-bottom"
            ></i>
            <i @click="changetime(2)" :class="{ active: timeindex == 2 }" class="el-icon-caret-top"></i>
            <i
              @click="changetime(2)"
              :class="{ active: timeindex == 2 }"
              class="el-icon-caret-top"
            ></i>
          </div>
        </el-col>
        <el-col :span="3">
          <div style="margin-top: 5px">
            <label style="margin-right: 10px">按浏览次数排序:</label>
            <label style="margin-right: 10px"
              >{{ $t("themaic.sortbyviews") }}:</label
            >
            <i @click="changeChecked(1)" :class="{ active: checkindex == 1 }" class="el-icon-caret-bottom"></i>
            <i
              @click="changeChecked(1)"
              :class="{ active: checkindex == 1 }"
              class="el-icon-caret-bottom"
            ></i>
            <i @click="changeChecked(2)" :class="{ active: checkindex == 2 }" class="el-icon-caret-top"></i>
            <i
              @click="changeChecked(2)"
              :class="{ active: checkindex == 2 }"
              class="el-icon-caret-top"
            ></i>
          </div>
        </el-col>
        <el-col :span="10"> </el-col>
        <el-col :span="3">
          <div style="margin-top: 5px">
            <label style="margin-right: 10px">共找到{{ listcount }}个结果</label>
            {{ $t("themaic.find") }}
            <label style="magin: 0% 15px">{{ listcount }}</label>
            {{ $t("themaic.record") }}
          </div>
        </el-col>
      </el-row>
      <el-divider />
      <el-card shadow="never" class="themic_middle_card">
        <div @click="showThematic(item)" v-for="(item, i) in middleList" class="midedle_div" :key="i">
        <div
          @click="showThematic(item)"
          v-for="(item, i) in middleList"
          class="midedle_div"
          :key="i"
        >
          <el-card class="middle_card">
            <!-- <div>
           </div> -->
            <table>
@@ -61,31 +105,43 @@
              </tr>
              <tr>
                <td>
                  <div class="middle_image"
                    :style="{ background: 'url(' + item.url + ') no-repeat center', 'background-size': '100% 100%', }">
                  </div>
                  <div
                    class="middle_image"
                    :style="{
                      background: 'url(' + item.url + ') no-repeat center',
                      'background-size': '100% 100%',
                    }"
                  ></div>
                </td>
              </tr>
              <tr>
                <td>
                  <div style="position: absolute;
    bottom: 2%;
    right: 4%;"><label class="t2">{{ item.time }}</label><label class="t2">浏览{{ item.count }}次</label></div>
                  <div style="position: absolute; bottom: 2%; right: 4%">
                    <label class="t2">{{ item.time }}</label
                    ><label class="t2">浏览{{ item.count }}次</label>
                  </div>
                </td>
              </tr>
            </table>
          </el-card>
        </div>
      </el-card>
      <el-pagination layout="prev, pager, next, jumper" :total="pagesize" @size-change="handleSizeChange"
        @current-change="handleCurrentChange" />
      <el-pagination
        layout="prev, pager, next, jumper"
        :total="pagesize"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </el-card>
    <el-dialog class="themaic_dialog" :modal-append-to-body="true" :append-to-body="true" :show-close="false"
      :visible.sync="dialogVisible" width="99%" :before-close="handleClose">
    <el-dialog
      class="themaic_dialog"
      :modal-append-to-body="true"
      :append-to-body="true"
      :show-close="false"
      :visible.sync="dialogVisible"
      width="99%"
      :before-close="handleClose"
    >
      <map-View @close="close" :typeIndex="typeIndex"></map-View>
    </el-dialog>
  </div>
@@ -173,8 +229,8 @@
      typeIndex: "",
    };
  },
  mounted(){
     this.timeindex = 7888;
  mounted() {
  },
  methods: {
    close() {
@@ -210,8 +266,8 @@
    showThematic(res) {
      this.typeIndex = res.index;
      this.dialogVisible = true;
      // var url = "http://localhost/" + res.pop;
      // window.open(