| | |
| | | ></el-tree> |
| | | </div> |
| | | </div> |
| | | <div class="spatial_rightContent subpage_Div"> |
| | | <el-form |
| | | <div style="width: 80%;"> |
| | | <div> |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | | :inline="true" |
| | |
| | | </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('common.append')}}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider class="eldivider" /> |
| | | <!-- <el-divider class="eldivider" /> --> |
| | | </div> |
| | | <!-- <div class="spatial_rightContent subpage_Div"> |
| | | <div> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | border |
| | | style="width: 100% " |
| | | style="width: 100%;max-height: 593px;overflow: auto;" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <div style="height: 73%"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | height="99%" |
| | | > |
| | | <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 |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div |
| | | class="infoBox box_div" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import MapSdk from '../../components/mapsdk.vue' |
| | | import $ from 'jquery'; |
| | | import { conditions } from '../Archive/Archive.js' |
| | | import MapSdk from "../../components/mapsdk.vue"; |
| | | import $ from "jquery"; |
| | | import { conditions } from "../Archive/Archive.js"; |
| | | import { |
| | | dataQuery_selectTabs, |
| | | dataQuery_selectDomains, |
| | |
| | | dataQuery_uploadFiles, |
| | | dataQuery_selectFiles, |
| | | dataQuery_deletes, |
| | | } from '../../api/api'; |
| | | } from "../../api/api"; |
| | | import { getToken } from "../../utils/auth.js"; |
| | | import catalogueTree from '../../components/catalogueTree.vue'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | import catalogueTree from "../../components/catalogueTree.vue"; |
| | | import MyBread from "../../components/MyBread.vue"; |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | name: 'dataSearch', |
| | | name: "dataSearch", |
| | | components: { MyBread, catalogueTree, MapSdk }, |
| | | data() { |
| | | return { |
| | | attachtable: ['b_pac_geologic_hazard', 'b_hydrogeology', 'b_pac_meteorological', 'b_pac_marine_meteorological', 'b_pac_frozensoil', 's_borehole', 'm_marker', 'm_hydraulic_protection', 'm_equipment_nameplate'], |
| | | attachtable: [ |
| | | "b_pac_geologic_hazard", |
| | | "b_hydrogeology", |
| | | "b_pac_meteorological", |
| | | "b_pac_marine_meteorological", |
| | | "b_pac_frozensoil", |
| | | "s_borehole", |
| | | "m_marker", |
| | | "m_hydraulic_protection", |
| | | "m_equipment_nameplate", |
| | | ], |
| | | formInline: { |
| | | file: '', |
| | | file: "", |
| | | }, |
| | | formSql: { |
| | | field: '', |
| | | condition: '', |
| | | value: '', |
| | | type: '', |
| | | date: '', |
| | | |
| | | field: "", |
| | | condition: "", |
| | | value: "", |
| | | type: "", |
| | | date: "", |
| | | }, |
| | | fromSqlflag: false, |
| | | tree: [ |
| | | { |
| | | tabDesc: '基础数据', |
| | | label: '基础数据', |
| | | value: 'BD', |
| | | ns: 'bd', |
| | | tabDesc: "基础数据", |
| | | label: "基础数据", |
| | | value: "BD", |
| | | ns: "bd", |
| | | id: 1, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 2, |
| | | tabDesc: '业务数据', |
| | | label: '业务数据', |
| | | value: 'BS', |
| | | ns: 'bs', |
| | | tabDesc: "业务数据", |
| | | label: "业务数据", |
| | | value: "BS", |
| | | ns: "bs", |
| | | children: [], |
| | | }, { |
| | | }, |
| | | { |
| | | id: 3, |
| | | tabDesc: '元数据', |
| | | label: '元数据', |
| | | value: 'MD', |
| | | ns: 'md', |
| | | tabDesc: "元数据", |
| | | label: "元数据", |
| | | value: "MD", |
| | | ns: "md", |
| | | children: [], |
| | | }, |
| | | ], |
| | |
| | | condOption: [], |
| | | |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label', |
| | | children: "children", |
| | | label: "label", |
| | | }, |
| | | btnStatus: { |
| | | select: false, |
| | |
| | | }, |
| | | tableType: null, |
| | | ruleForm: { |
| | | fileName: '' |
| | | fileName: "", |
| | | }, |
| | | FBtest: false, |
| | | tableData: [], |
| | | formLabelWidth: '120px', |
| | | formLabelWidth: "120px", |
| | | dialogFormVisible: false, |
| | | upform: { |
| | | gid: '', |
| | | pipename: '', |
| | | sitename: '', |
| | | type: '', |
| | | seriesname: '', |
| | | stationvalue: '', |
| | | transportm: '', |
| | | diameter: '', |
| | | name: '', |
| | | gid: "", |
| | | pipename: "", |
| | | sitename: "", |
| | | type: "", |
| | | seriesname: "", |
| | | stationvalue: "", |
| | | transportm: "", |
| | | diameter: "", |
| | | name: "", |
| | | }, |
| | | |
| | | changePag: true, |
| | |
| | | |
| | | attributeData: [], |
| | | currentPage: 1, |
| | | searchName: '', |
| | | searchName: "", |
| | | multipleSelection: [], |
| | | filedsLayer: null, |
| | | count: 0, |
| | |
| | | tabName: null, |
| | | eventid: null, |
| | | }, |
| | | filterText: '' |
| | | |
| | | filterText: "", |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | watch: { |
| | | filterText(val) { |
| | | this.$refs.tree.filter(val); |
| | | } |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | this.dialogMapVisible = true; |
| | | this.showMapVisible = true; |
| | | this.$store.state.mapMenuBoolean = true; |
| | | this.$store.state.mapMenuBoxFlag = '1'; |
| | | this.$store.state.mapMenuBoxFlag = "1"; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | this.$store.state.download = true; |
| | | |
| | | }, |
| | | handleMapClose() { |
| | | this.$confirm('确认关闭?') |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | this.closeMapDown(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | }, |
| | | closeMapDown() { |
| | | this.dialogMapVisible = false; |
| | |
| | | } |
| | | const res = await dataQuery_deletes({ ids: std.toString() }); |
| | | if (res.code != 200) { |
| | | this.$message.error('文件删除失败'); |
| | | this.$message.error("文件删除失败"); |
| | | } |
| | | this.getAttacthFlieList(); |
| | | }, |
| | |
| | | var token = getToken(); |
| | | var fs = document.getElementById("insertFile"); |
| | | if (fs.files.length == 0) { |
| | | |
| | | this.$message({ |
| | | message: '请选择要上传的文件!', |
| | | type: 'warning' |
| | | message: "请选择要上传的文件!", |
| | | type: "warning", |
| | | }); |
| | | return; |
| | | } |
| | | const formData = new FormData() |
| | | const formData = new FormData(); |
| | | for (var i = 0, c = fs.files.length; i < c; i++) { |
| | | |
| | | formData.append('file', fs.files[i]); // fs.files[i].name,file |
| | | formData.append("file", fs.files[i]); // fs.files[i].name,file |
| | | } |
| | | |
| | | $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName= " + this.upAttach.tabName + "&eventid=" + this.upAttach.eventid, { |
| | | type: "post", |
| | | data: formData, |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: (rs) => { |
| | | this.$message({ |
| | | message: '附件添加成功', |
| | | type: 'success' |
| | | }); |
| | | document.getElementById("insertFile").value = ""; |
| | | this.formInline = { |
| | | file: '', |
| | | } |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | error: (e) => { |
| | | document.getElementById("insertFile").value = ""; |
| | | this.$message.error('附件添加失败'); |
| | | $.ajax( |
| | | BASE_URL + |
| | | "/dataQuery/uploadFiles?token=" + |
| | | token + |
| | | "&tabName= " + |
| | | this.upAttach.tabName + |
| | | "&eventid=" + |
| | | this.upAttach.eventid, |
| | | { |
| | | type: "post", |
| | | data: formData, |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: (rs) => { |
| | | this.$message({ |
| | | message: "附件添加成功", |
| | | type: "success", |
| | | }); |
| | | document.getElementById("insertFile").value = ""; |
| | | this.formInline = { |
| | | file: "", |
| | | }; |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | error: (e) => { |
| | | document.getElementById("insertFile").value = ""; |
| | | this.$message.error("附件添加失败"); |
| | | }, |
| | | } |
| | | }); |
| | | ); |
| | | }, |
| | | async getAttacthFlieList() { |
| | | var obj = this.upAttach |
| | | var obj = this.upAttach; |
| | | const res = await dataQuery_selectFiles(obj); |
| | | if (res.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | return |
| | | this.$message.error("列表调用失败"); |
| | | return; |
| | | } |
| | | this.tableAttach = res.result; |
| | | }, |
| | | |
| | | |
| | | getAttachTable(index, row) { |
| | | if (row.eventid != null) { |
| | | this.upAttach.eventid = row.eventid; |
| | | } else { |
| | | this.upAttach.eventid = ''; |
| | | this.upAttach.eventid = ""; |
| | | } |
| | | this.getAttacthFlieList(); |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | //附件=>文件选择 |
| | | getInsertFile() { |
| | | $('#insertFile').click(); |
| | | $("#insertFile").click(); |
| | | }, |
| | | insertFile() { |
| | | var val = document.getElementById('insertFile').files; |
| | | var val = document.getElementById("insertFile").files; |
| | | if (!val || !val.length) return; |
| | | |
| | | this.formInline.file = val[0].name; |
| | |
| | | async getTreeDataAll() { |
| | | const data = await dataQuery_selectTabs(); |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | | var option = data.result; |
| | | |
| | | for (var i in option) { |
| | | var val_Data = option[i]; |
| | | val_Data.id = '1' + i; |
| | | val_Data.id = "1" + i; |
| | | // val_Data.label = val_Data.tabDesc + "(" + val_Data.tab + ")" |
| | | val_Data.label = val_Data.tabDesc |
| | | option[i].id = parseInt(option[i].id) |
| | | val_Data.label = val_Data.tabDesc; |
| | | option[i].id = parseInt(option[i].id); |
| | | for (var j in this.tree) { |
| | | if (this.tree[j].ns == option[i].ns) { |
| | | this.tree[j].children.push(val_Data); |
| | |
| | | // this.tree[1].children.push(val_Data); |
| | | // } |
| | | } |
| | | this.handleNodeClick(this.tree[0].children[0]) |
| | | this.handleNodeClick(this.tree[0].children[0]); |
| | | }, |
| | | //授权管理 |
| | | showPermsBtn() { |
| | |
| | | permsEntity |
| | | .filter((item) => item.perms == currentPerms) |
| | | .map((item) => { |
| | | |
| | | this.btnStatus[item.tag.substr(1)] = true; |
| | | }); |
| | | }, |
| | |
| | | res.then((val) => { |
| | | this.attributeData = val; |
| | | }); |
| | | if (this.ruleForm.fileName != '') { |
| | | if (this.ruleForm.fileName != "") { |
| | | this.listData.filter = this.ruleForm.fileName; |
| | | } else { |
| | | this.listData.filter = null; |
| | |
| | | |
| | | const data = await dataQuery_selectByPage(this.listData); |
| | | if (data.code != 200) { |
| | | this.$message.error('调用列表失败,请联系工作人员!'); |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | var res_val = this.attributeData; |
| | |
| | | name: this.listData.name, |
| | | }); |
| | | if (fileds.code != 200) { |
| | | this.$message.error('调用列表失败,请联系工作人员!'); |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | |
| | |
| | | name: this.listData.name, |
| | | }); |
| | | if (domains.code != 200) { |
| | | this.$message.error('调用列表失败,请联系工作人员!'); |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | var data1 = fileds.result; |
| | | var data2 = domains.result; |
| | | var std = []; |
| | | for (var i in data1) { |
| | | if (data1[i].type != 'geomtry' && data1[i].type != 'null') { |
| | | this.filedsOption.push(data1[i]) |
| | | if (data1[i].type != "geomtry" && data1[i].type != "null") { |
| | | this.filedsOption.push(data1[i]); |
| | | } |
| | | if (data1[i].showtype == 1) { |
| | | if (data1[i].domainNa != null) { |
| | |
| | | this.formSql.date = new Date(); |
| | | }, |
| | | handleconditionClose() { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | this.startFiledAndcondition(); |
| | | }) |
| | | .catch(_ => { }); |
| | | .catch((_) => {}); |
| | | }, |
| | | |
| | | fieldChange(value) { |
| | | var obj = {} |
| | | var obj = {}; |
| | | obj = this.filedsOption.find(function (item) { |
| | | return item.field === value; |
| | | }) |
| | | this.conditionChange(obj) |
| | | |
| | | }); |
| | | this.conditionChange(obj); |
| | | }, |
| | | conditionChange(res) { |
| | | this.formSql.field = res.field; |
| | | this.formSql.type = res.type; |
| | | if (res.type == "date" || res.type == "datetime") { |
| | | this.fromSqlflag = true |
| | | this.fromSqlflag = true; |
| | | } else { |
| | | this.fromSqlflag = false |
| | | this.fromSqlflag = false; |
| | | } |
| | | var std = []; |
| | | this.condOption = []; |
| | | if (res.type == 'text' || res.type == 'blob') { |
| | | std = conditions[0] |
| | | } else if (res.type == 'date' || res.type == 'datetime') { |
| | | std = conditions[2] |
| | | if (res.type == "text" || res.type == "blob") { |
| | | std = conditions[0]; |
| | | } else if (res.type == "date" || res.type == "datetime") { |
| | | std = conditions[2]; |
| | | } else { |
| | | std = conditions[1] |
| | | std = conditions[1]; |
| | | } |
| | | for (var i in std) { |
| | | this.condOption.push({ |
| | | label: std[i], |
| | | value: std[i], |
| | | }) |
| | | }); |
| | | } |
| | | this.formSql.condition = this.condOption[0].value |
| | | this.formSql.condition = this.condOption[0].value; |
| | | }, |
| | | appendQueryFilter() { |
| | | if (this.formSql.type == "date" || this.formSql.type == "datetime") { |
| | | if (this.formSql.date == null) { |
| | | this.$message.error('请输入要查询的信息!'); |
| | | this.$message.error("请输入要查询的信息!"); |
| | | return; |
| | | } |
| | | } else { |
| | | if (this.formSql.value == "") { |
| | | this.$message.error('请输入要查询的信息!'); |
| | | this.$message.error("请输入要查询的信息!"); |
| | | return; |
| | | } |
| | | } |
| | |
| | | |
| | | if (this.formSql.type == "long" || this.formSql.type == "integer") { |
| | | val = parseInt(this.formSql.value); |
| | | } else if (this.formSql.type == 'double') { |
| | | |
| | | } else if (this.formSql.type == "double") { |
| | | if (this.formSql.value.indexOf(".") != -1) { |
| | | val = this.formSql.value; |
| | | } else { |
| | | val = parseFloat(this.formSql.value).toFixed(1) |
| | | val = parseFloat(this.formSql.value).toFixed(1); |
| | | } |
| | | } else if (this.formSql.type == "date" || this.formSql.type == "datetime") { |
| | | } else if ( |
| | | this.formSql.type == "date" || |
| | | this.formSql.type == "datetime" |
| | | ) { |
| | | var time = new Date(this.formSql.date); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var y = time.getFullYear(); |
| | | val = "'" + y + |
| | | '-' + |
| | | this.add0(m) + |
| | | '-' + |
| | | this.add0(d) + "'"; |
| | | val = "'" + y + "-" + this.add0(m) + "-" + this.add0(d) + "'"; |
| | | } else { |
| | | val = "'" + this.formSql.value + "'"; |
| | | } |
| | | this.ruleForm.fileName += this.formSql.field + " " + this.formSql.condition + " " + val; |
| | | this.ruleForm.fileName += |
| | | this.formSql.field + " " + this.formSql.condition + " " + val; |
| | | |
| | | this.startFiledAndcondition(); |
| | | }, |
| | | |
| | | |
| | | |
| | | //值域字段匹配 |
| | | getDomainNaFild(res, result) { |
| | |
| | | }, |
| | | // 重置查询 |
| | | resetForm() { |
| | | this.ruleForm.fileName = ''; |
| | | this.ruleForm.fileName = ""; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | //获取table信息 |
| | | this.getCollapseTable(this.filedsLayer); |
| | | |
| | | }, |
| | | |
| | | // 发布按钮 |
| | |
| | | // .then(() => { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: 'Loading', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)', |
| | | text: "Loading", |
| | | spinner: "el-icon-loading", |
| | | background: "rgba(0, 0, 0, 0.7)", |
| | | }); |
| | | setTimeout(() => { |
| | | loading.close(); |
| | |
| | | // 提交修改 |
| | | updateForm() { |
| | | let params = {}; |
| | | this.$confirm('是否确定编辑?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | this.$confirm("是否确定编辑?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | this.dialogFormVisible = false; |
| | | switch (this.tableType) { |
| | | case '场站点': |
| | | case "场站点": |
| | | params = { |
| | | gid: this.upform.gid, |
| | | pipename: this.upform.pipename, |
| | |
| | | UpdateSitePoint(params).then((res) => { |
| | | if (res.data == 1) { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success', |
| | | message: "修改成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getSPData(10, 1, ''); |
| | | this.getSPCount(''); |
| | | this.getSPData(10, 1, ""); |
| | | this.getSPCount(""); |
| | | }); |
| | | break; |
| | | case '管道中心线': |
| | | case "管道中心线": |
| | | params = { |
| | | gid: this.upform.gid, |
| | | pipename: this.upform.pipename, |
| | |
| | | UpdateStationSeries(params).then((res) => { |
| | | if (res.data == 1) { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success', |
| | | message: "修改成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getSSData(10, 1, ''); |
| | | this.getSSCount(''); |
| | | this.getSSData(10, 1, ""); |
| | | this.getSSCount(""); |
| | | }); |
| | | break; |
| | | case '标桩': |
| | | case "标桩": |
| | | params = { |
| | | gid: this.upform.gid, |
| | | pipename: this.upform.pipename, |
| | |
| | | UpdatgeMarker(params).then((res) => { |
| | | if (res.data == 1) { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success', |
| | | message: "修改成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getMData(10, 1, ''); |
| | | this.getMCount(''); |
| | | this.getMData(10, 1, ""); |
| | | this.getMCount(""); |
| | | }); |
| | | break; |
| | | } |
| | |
| | | // this.getMetaCount(""); |
| | | // }); |
| | | }) |
| | | .catch(() => { }); |
| | | .catch(() => {}); |
| | | }, |
| | | // 获取多选选中的对象 |
| | | handleSelectionChange(val) { |
| | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].gid); |
| | | } |
| | | this.$confirm('确定是否删除所选内容?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | this.$confirm("确定是否删除所选内容?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | switch (this.tableType) { |
| | | case '场站点': |
| | | case "场站点": |
| | | dltSitePoint(std).then((res) => { |
| | | if (res.data !== 0) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'success', |
| | | message: "删除成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getSPData(10, 1, ''); |
| | | this.getSPCount(''); |
| | | this.getSPData(10, 1, ""); |
| | | this.getSPCount(""); |
| | | }); |
| | | break; |
| | | case '管道中心线': |
| | | case "管道中心线": |
| | | dltStationSeries(std).then((res) => { |
| | | if (res.data !== 0) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'success', |
| | | message: "删除成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getSSData(10, 1, ''); |
| | | this.getSSCount(''); |
| | | this.getSSData(10, 1, ""); |
| | | this.getSSCount(""); |
| | | }); |
| | | break; |
| | | case '标桩': |
| | | case "标桩": |
| | | dltMarker(std).then((res) => { |
| | | if (res.data !== 0) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'success', |
| | | message: "删除成功", |
| | | type: "success", |
| | | }); |
| | | } |
| | | this.getMData(10, 1, ''); |
| | | this.getMCount(''); |
| | | this.getMData(10, 1, ""); |
| | | this.getMCount(""); |
| | | }); |
| | | break; |
| | | } |
| | |
| | | // }); |
| | | // }); |
| | | }) |
| | | .catch(() => { }); |
| | | .catch(() => {}); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | overflow: auto; |
| | | max-height: 670px; |
| | | overflow-y: auto; |
| | | } |
| | | .spatial_rightContent { |
| | | width: 80%; |
| | | height: 91%; |
| | | // width: 80%; |
| | | // height: 91%; |
| | | |
| | | border-radius: 5px; |
| | | padding: 1%; |