| | |
| | | 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 }); |
| | | } |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | name: "", |
| | | name: '', |
| | | data() { |
| | | return {}; |
| | | }, |
| | |
| | | }, |
| | | 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(); //取消飞行状态 |
| | |
| | | }); |
| | | //显示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); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | 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; |
| | | } |
| | | }, |
| | | }, |
| | |
| | | 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 { |
| | |
| | | data() { |
| | | return { |
| | | isRuler: false, |
| | | isNaviget: false, |
| | | itemsOne: [ |
| | | { |
| | | id: '1', |
| | |
| | | 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({ |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | </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> {{ |
| | | $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> {{ |
| | | $t("operatManage.BWL.reset") |
| | | $t('operatManage.BWL.reset') |
| | | }}</el-button |
| | | > |
| | | </el-form-item> |
| | |
| | | <el-form-item> |
| | | <el-button @click="onSubmit" |
| | | ><i class="el-icon-search"></i> {{ |
| | | $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> {{ |
| | | $t("operatManage.BWL.reset") |
| | | $t('operatManage.BWL.reset') |
| | | }}</el-button |
| | | > |
| | | </el-form-item> |
| | |
| | | </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: { |
| | |
| | | |
| | | data() { |
| | | return { |
| | | activeName: "first", |
| | | activeName: 'first', |
| | | currentPage: 1, |
| | | form: { |
| | | blackListIP: "", |
| | | IPState: "", |
| | | interceptionCycle: "", |
| | | unit: "", |
| | | interceptionNumber: "", |
| | | blackListIP: '', |
| | | IPState: '', |
| | | interceptionCycle: '', |
| | | unit: '', |
| | | interceptionNumber: '', |
| | | }, |
| | | BTableData: [], |
| | | WTableData: [], |
| | |
| | | methods: { |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? "0" + m : m; |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | //格式化时间 |
| | | format(shijianchuo) { |
| | |
| | | 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) + |
| | | // ":" + |
| | |
| | | this.getList(); |
| | | }, |
| | | onSubmit() { |
| | | console.log("submit!"); |
| | | console.log('submit!'); |
| | | }, |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | 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('列表调用失败'); |
| | | } |