| | |
| | | prompt15: 'Please enter service parameters', |
| | | prompt16: "Please enter descriptive information", |
| | | prompt17: "Please enter note information", |
| | | prompt18: "Please select a service category", |
| | | prompt19: "Please select the resource status", |
| | | tableName: 'Table Name', |
| | | resourceName: 'resourceName', |
| | | |
| | |
| | | prompt15: '请输入服务参数', |
| | | prompt16: "请输入描述信息", |
| | | prompt17: "请输入备注信息", |
| | | prompt18: "请选择服务类别", |
| | | prompt19: "请选择资源状态", |
| | | tableName: '表名称', |
| | | resourceName: '资源名称', |
| | | }, |
| | |
| | | Cesium.Cartographic.fromDegrees(that.longitude, that.latitude, 0) |
| | | ) |
| | | if (that.altHeight) { |
| | | that.altHeight = that.altHeight.toFixed(6); |
| | | that.altHeight = that.altHeight.toFixed(2); |
| | | } |
| | | } |
| | | }, SmartEarth.Cesium.ScreenSpaceEventType.MOUSE_MOVE); |
| | |
| | | globe.ellipsoid.cartesianToCartographic(rightPosition); |
| | | var geodesic = new SmartEarth.Cesium.EllipsoidGeodesic(); |
| | | geodesic.setEndPoints(leftCartographic, rightCartographic); |
| | | that.rate = geodesic.surfaceDistance.toFixed(6); //分辨率 |
| | | that.rate = geodesic.surfaceDistance.toFixed(2); //分辨率 |
| | | }); |
| | | |
| | | }, |
| | |
| | | > <i |
| | | :title="$t('common.iquery')" |
| | | slot="suffix" |
| | | @click="setListDataStart" |
| | | @click="getResTableData" |
| | | class="el-icon-search" |
| | | style="padding-right: 8px" |
| | | ></i></el-input> |
| | | </el-form-item> |
| | | <!-- 服务类别 --> |
| | | <el-form-item> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.category" |
| | | :placeholder="$t('dataManage.layerObj.prompt18')" |
| | | @change="getResTableData" |
| | | > |
| | | <el-option |
| | | v-for="item in serviceType" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 数据类型 --> |
| | | <el-form-item> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.data" |
| | | :placeholder="$t('dataManage.layerObj.prompt8')" |
| | | @change="getResTableData" |
| | | > |
| | | <el-option |
| | | v-for="item in dataType" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 服务类别 --> |
| | | <el-form-item> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.type" |
| | | :placeholder="$t('dataManage.layerObj.prompt3')" |
| | | @change="getResTableData" |
| | | > |
| | | <el-option |
| | | v-for="item in dataTypes" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 状态 --> |
| | | <el-form-item> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.status" |
| | | :placeholder="$t('dataManage.layerObj.prompt19')" |
| | | @change="getResTableData" |
| | | > |
| | | <el-option |
| | | v-for="item in statusType" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item style="float: right;"> |
| | | <el-button |
| | |
| | | |
| | | return { |
| | | formInline: { |
| | | name: null |
| | | name: null, |
| | | type: null, |
| | | data: null, |
| | | category: null, |
| | | status: null |
| | | }, |
| | | menuStatus: { |
| | | delete: false, |
| | |
| | | editDialog: false, |
| | | insertDialog: false, |
| | | dataType: [], |
| | | dataTypes: [], |
| | | serviceType: [], |
| | | categoryType: [], |
| | | insertDisabled: false, |
| | |
| | | isFullscreen: false, |
| | | prevDialog: false, |
| | | showMapView: false, |
| | | statusType: [ |
| | | { |
| | | label: '禁用', value: 0 |
| | | }, |
| | | { |
| | | label: '启用原始地址', value: 1 |
| | | }, { |
| | | label: '启用代理地址', value: 2 |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | .catch(_ => { }); |
| | | }, |
| | | setEmptyData() { |
| | | this.formInline.name = "" |
| | | this.formInline = { |
| | | name: null, |
| | | type: null, |
| | | data: null, |
| | | category: null, |
| | | status: null |
| | | } |
| | | this.setListDataStart() |
| | | }, |
| | | setInsertTableData() { |
| | |
| | | }) |
| | | } |
| | | this.dataType = str; |
| | | |
| | | for (var i in serve_type) { |
| | | std.push({ |
| | | value: serve_type[i].value, |
| | | label: serve_type[i].name, |
| | | }) |
| | | } |
| | | this.dataTypes = std; |
| | | }, |
| | | setScopeEdit(row) { |
| | | this.copyData = JSON.parse(JSON.stringify(row)); |
| | |
| | | } |
| | | }, |
| | | async getResTableData() { |
| | | this.listData.name = this.formInline.name |
| | | this.listData.name = this.formInline.name; |
| | | this.listData.data = this.formInline.data; |
| | | this.listData.type = this.formInline.type; |
| | | this.listData.category = this.formInline.category; |
| | | this.listData.status = this.formInline.status; |
| | | const data = await select_Res_ByPageAndCount(this.listData); |
| | | if (data.code != 200) { |
| | | return this.$message({ |
| | |
| | | if (data.code != 200) return |
| | | var std = []; |
| | | var result = data.result; |
| | | |
| | | e.createUser = e.createName; |
| | | e.depcode = e.depName |
| | | e.dircode = e.dirName; |
| | | e.updateUser = e.updateName; |
| | | |
| | | e.verid = e.verName; |
| | | if (e.sensortype > 0) { |
| | | for (var i in this.sensorOption) { |
| | | if (this.sensorOption[i].value == e.sensortype) { |
| | | e.sensortype = this.sensorOption[i].name |
| | | } |
| | | } |
| | | } else { |
| | | e.sensortype = null |
| | | } |
| | | if (e.mataType > 0) { |
| | | for (var i in this.metaOption) { |
| | | if (this.metaOption[i].value == e.mataType) { |
| | | e.mataType = this.metaOption[i].name |
| | | } |
| | | } |
| | | } else { |
| | | e.mataType = null |
| | | } |
| | | for (var i in result) { |
| | | for (var key in e) { |
| | | if (result[i].field == key) { |