Surpriseplus
2022-10-17 16fbbddb45ec387f359358da77f81bfbbb3644fc
黑白名单,令牌管理,综合展示修改
已修改6个文件
193 ■■■■■ 文件已修改
src/api/api.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/mapsdk.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Synthesis/analyse.vue 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Synthesis/viewport.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/blackwhiteList.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/tokentool.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/api.js
@@ -349,3 +349,23 @@
export function menuAuthSelectByPageForRole(params) {
  return request.get('/menuAuth/selectByPageForRole', { params: params });
}
//令牌管理列表获取
export function select_Token_ByPageAndCount(params) {
  return request.get('/token/selectByPageAndCount', { params: params });
}
//令牌管理新增
export function insertToken(params) {
  return request.post('/token/insertToken', params);
}
//令牌管理删除
export function deleteTokens(params) {
  return request.get(' /token/deleteTokens', { params: params });
}
//令牌管理修改
export function updateToken(params) {
  return request.post('/token/updateToken', params);
}
//黑白名单列表获取
export function blacklistSelectByPageAndCount(params) {
  return request.get('/blacklist/selectByPageAndCount', { params: params });
}
src/components/mapsdk.vue
@@ -4,7 +4,7 @@
<script>
export default {
  name: "",
  name: '',
  data() {
    return {};
  },
@@ -13,9 +13,9 @@
  },
  methods: {
    init3DMap() {
      window.sgworld = new SmartEarth.SGWorld("mapdiv", {
        url: "/SmartEarthSDK/Workers/image/earth.jpg",
        licenseServer: "http://192.168.20.39/LFServer",
      window.sgworld = new SmartEarth.SGWorld('mapdiv', {
        url: '/SmartEarthSDK/Workers/image/earth.jpg',
        licenseServer: 'http://192.168.20.39/LFServer',
      });
      window.Viewer = sgworld._Viewer;
      sgworld.Navigate.Stop(); //取消飞行状态
@@ -25,8 +25,19 @@
      });
      //显示fps
      sgworld._Viewer.scene.debugShowFramesPerSecond = false;
      sgworld.navControl("enableCompass", false);
      //mpt添加
      var option = {
        url: 'http://183.162.245.49:82/SG/Elevation',
        layerName: 'zhufeng.397336.mpt',
        requestVertexNormals: true,
      };
      sgworld.Creator.sfsterrainprovider('', option, '', true, '');
      //导航控件
      document.getElementById('distanceLegendDiv').style.display = 'none';
      //比例尺
      sgworld.navControl('enableCompass', false);
      //sgworld.navControl("enableDistanceLegend", false);
      setTimeout(() => {}, 10000);
    },
  },
};
src/views/Synthesis/analyse.vue
@@ -19,53 +19,69 @@
export default {
  data() {
    return {
      isoline: null,
      isolineFlag: false,
      itemsOne: [
        {
          id: "1",
          name: "synthesis.contouranalysis",
          class: "d1",
          id: '1',
          name: 'synthesis.contouranalysis',
          class: 'd1',
        },
        {
          id: "2",
          name: "synthesis.slopeanalysis",
          class: "d2",
          id: '2',
          name: 'synthesis.slopeanalysis',
          class: 'd2',
        },
        {
          id: "3",
          name: "synthesis.pathanalysis",
          class: "d3",
          id: '3',
          name: 'synthesis.pathanalysis',
          class: 'd3',
        },
        {
          id: "4",
          name: "synthesis.cuttinganalysis",
          class: "d4",
          id: '4',
          name: 'synthesis.cuttinganalysis',
          class: 'd4',
        },
        {
          id: "5",
          name: "synthesis.floodanalysis",
          class: "d5",
          id: '5',
          name: 'synthesis.floodanalysis',
          class: 'd5',
        },
        {
          id: "6",
          name: "synthesis.earthworkcalculation",
          class: "d6",
          id: '6',
          name: 'synthesis.earthworkcalculation',
          class: 'd6',
        },
        {
          id: "7",
          name: "synthesis.crosssectionanalysis",
          class: "d7",
          id: '7',
          name: 'synthesis.crosssectionanalysis',
          class: 'd7',
        },
        {
          id: "8",
          name: "synthesis.imagecontrast",
          class: "d8",
          id: '8',
          name: 'synthesis.imagecontrast',
          class: 'd8',
        },
      ],
    };
  },
  mounted() {
    if (this.isoline == null) {
      this.isoline = new SmartEarth.ElevationTool(sgworld);
    }
  },
  methods: {
    changeAnalsy(res) {
      switch (res.id) {
        case '1':
          this.isolineFlag = !this.isolineFlag;
          this.isoline.tf = this.isolineFlag;
          this.isoline.render();
          break;
        case '2':
          elevationTool.type = 'slope';
          elevationTool.render();
          break;
      }
    },
  },
@@ -92,33 +108,33 @@
  margin: 0px;
}
.d1 {
  background: url("../../assets/img/synthesis/椭圆 8 拷贝 8.png") no-repeat
  background: url('../../assets/img/synthesis/椭圆 8 拷贝 8.png') no-repeat
    center;
}
.d2 {
  background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 5.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 5.png') no-repeat
    center;
}
.d3 {
  background: url("../../assets/img/synthesis/圆角矩形 10 副本 3.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 10 副本 3.png') no-repeat
    center;
}
.d4 {
  background: url("../../assets/img/synthesis/图层 74 拷贝 3.png") no-repeat
  background: url('../../assets/img/synthesis/图层 74 拷贝 3.png') no-repeat
    center;
}
.d5 {
  background: url("../../assets/img/synthesis/图层 20.png") no-repeat center;
  background: url('../../assets/img/synthesis/图层 20.png') no-repeat center;
}
.d6 {
  background: url("../../assets/img/synthesis/图层 14 拷贝 3.png") no-repeat
  background: url('../../assets/img/synthesis/图层 14 拷贝 3.png') no-repeat
    center;
}
.d7 {
  background: url("../../assets/img/synthesis/图层 18.png") no-repeat center;
  background: url('../../assets/img/synthesis/图层 18.png') no-repeat center;
}
.d8 {
  background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 6.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 6.png') no-repeat
    center;
}
.backimge4 {
src/views/Synthesis/viewport.vue
@@ -20,6 +20,7 @@
  data() {
    return {
      isRuler: false,
      isNaviget: false,
      itemsOne: [
        {
          id: '1',
@@ -68,13 +69,13 @@
    changeview(res) {
      switch (res.id) {
        case '1':
          this.$bus.$emit('changemap', "分屏");
          this.$bus.$emit('changemap', '分屏');
          break;
        case '2':
          this.$bus.$emit('changemap', "二维");
          this.$bus.$emit('changemap', '二维');
          break;
        case '3':
          this.$bus.$emit('changemap', "三维");
          this.$bus.$emit('changemap', '三维');
          break;
        case '4':
          window.sgworld.Navigate.jumpTo({
@@ -91,6 +92,15 @@
        case '7':
          this.isRuler = !this.isRuler;
          window.sgworld.navControl('enableCompass', this.isRuler);
          break;
        case '8':
          this.isNaviget = !this.isNaviget;
          if (this.isNaviget == false) {
            document.getElementById('distanceLegendDiv').style.display = 'none';
          } else if (this.isNaviget == true) {
            document.getElementById('distanceLegendDiv').style.display =
              'block';
          }
          break;
      }
      // this.$bus.$emit("changetool", res_val);
@@ -119,35 +129,35 @@
  margin: 0px;
}
.b1 {
  background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 3.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 3.png') no-repeat
    center;
}
.b2 {
  background: url("../../assets/img/synthesis/图层 10 拷贝.png") no-repeat
  background: url('../../assets/img/synthesis/图层 10 拷贝.png') no-repeat
    center;
}
.b3 {
  background: url("../../assets/img/synthesis/图层 11 拷贝.png") no-repeat
  background: url('../../assets/img/synthesis/图层 11 拷贝.png') no-repeat
    center;
}
.b4 {
  background: url("../../assets/img/synthesis/图层 12 拷贝 2.png") no-repeat
  background: url('../../assets/img/synthesis/图层 12 拷贝 2.png') no-repeat
    center;
}
.b5 {
  background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 2.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 5 拷贝 2.png') no-repeat
    center;
}
.b6 {
  background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 3.png") no-repeat
  background: url('../../assets/img/synthesis/圆角矩形 5 拷贝 3.png') no-repeat
    center;
}
.b7 {
  background: url("../../assets/img/synthesis/矩形 9.png") no-repeat center;
  background: url('../../assets/img/synthesis/矩形 9.png') no-repeat center;
}
.b8 {
  background: url("../../assets/img/synthesis/椭圆 4.png") no-repeat center;
  background: url('../../assets/img/synthesis/椭圆 4.png') no-repeat center;
}
.backimge2 {
  width: 30px;
src/views/maintenance/blackwhiteList.vue
@@ -61,20 +61,20 @@
            </el-form-item>
            <el-form-item>
              <el-button @click="onSubmit">{{
                $t("operatManage.BWL.change")
                $t('operatManage.BWL.change')
              }}</el-button>
            </el-form-item>
            <el-form-item>
              <el-button @click="onSubmit"
                ><i class="el-icon-search"></i> &nbsp;{{
                  $t("operatManage.BWL.search")
                  $t('operatManage.BWL.search')
                }}</el-button
              >
            </el-form-item>
            <el-form-item>
              <el-button @click="onSubmit"
                ><i class="el-icon-delete"></i> &nbsp;{{
                  $t("operatManage.BWL.reset")
                  $t('operatManage.BWL.reset')
                }}</el-button
              >
            </el-form-item>
@@ -161,14 +161,14 @@
            <el-form-item>
              <el-button @click="onSubmit"
                ><i class="el-icon-search"></i> &nbsp;{{
                  $t("operatManage.BWL.search")
                  $t('operatManage.BWL.search')
                }}</el-button
              >
            </el-form-item>
            <el-form-item>
              <el-button @click="onSubmit"
                ><i class="el-icon-delete"></i> &nbsp;{{
                  $t("operatManage.BWL.reset")
                  $t('operatManage.BWL.reset')
                }}</el-button
              >
            </el-form-item>
@@ -231,8 +231,8 @@
</template>
  
  <script>
import MyBread from "../../components/MyBread.vue";
import { blacklistSelectByPageAndCount } from "../../api/api";
import MyBread from '../../components/MyBread.vue';
import { blacklistSelectByPageAndCount } from '../../api/api';
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
@@ -241,14 +241,14 @@
  data() {
    return {
      activeName: "first",
      activeName: 'first',
      currentPage: 1,
      form: {
        blackListIP: "",
        IPState: "",
        interceptionCycle: "",
        unit: "",
        interceptionNumber: "",
        blackListIP: '',
        IPState: '',
        interceptionCycle: '',
        unit: '',
        interceptionNumber: '',
      },
      BTableData: [],
      WTableData: [],
@@ -269,7 +269,7 @@
  methods: {
    //格式化时间
    add0(m) {
      return m < 10 ? "0" + m : m;
      return m < 10 ? '0' + m : m;
    },
    //格式化时间
    format(shijianchuo) {
@@ -282,7 +282,7 @@
      var mm = time.getMinutes();
      var s = time.getSeconds();
      return (
        y + "-" + this.add0(m) + "-" + this.add0(d)
        y + '-' + this.add0(m) + '-' + this.add0(d)
        // " " +
        // this.add0(h) +
        // ":" +
@@ -319,7 +319,7 @@
      this.getList();
    },
    onSubmit() {
      console.log("submit!");
      console.log('submit!');
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
@@ -328,16 +328,15 @@
      const data = await blacklistSelectByPageAndCount(this.WListData);
      if (data.code != 200) {
        return this.$message.error("列表调用失败");
        return this.$message.error('列表调用失败');
      }
      this.WTableData = data.result;
      this.Wcount = data.count;
    },
    async BGetList() {
      const data = await blacklistSelectByPageAndCount(this.BListData);
      console.log(data);
      if (data.code != 200) {
        return this.$message.error("列表调用失败");
        return this.$message.error('列表调用失败');
      }
      this.BTableData = data.result;
      this.Bcount = data.count;
@@ -384,4 +383,3 @@
  }
}
</style>
src/views/maintenance/tokentool.vue
@@ -490,8 +490,8 @@
      if (this.ruleForm.value != null) {
        this.listData.type = parseInt(this.ruleForm.value);
      }
      debugger;
      const data = await select_Token_ByPageAndCount(this.listData);
      console.log('Token获取', data);
      if (data.code != 200) {
        this.$message.error('列表调用失败');
      }