| | |
| | | var isWeb = true; |
| | | |
| | | var webHost = isWeb ? "103.85.165.99" + ":8052" : '192.168.20.205' + ":8088"; |
| | | // var webHost = isWeb ? "103.85.165.99" + ":8052" : '192.168.16.162' + ":12316"; |
| | | |
| | | var fmeHost = isWeb ? "103.85.165.99" + ":8051" : '192.168.20.205' + ":88"; |
| | | |
| | |
| | | // SG地址 |
| | | SGUrl: "http://" + iisHost + "/SG/Elevation", |
| | | // Fly地址 |
| | | fly: 'http://' + iisHost + '/LFData/fly/' + (isWeb ? "lfy_web.fly" : "lf_127.fly"), |
| | | // fly: 'http://' + iisHost + '/LFData/fly/' + (isWeb ? "lfy_web.fly" : "lf_127.fly"), |
| | | fly: 'http://' + iisHost + '/LFData/fly/' + (isWeb ? "lfgd.fly" : "lfgd_127.fly"), |
| | | // |
| | | positionBtn: [], |
| | | }; |
| | | //工点信息表 |
| | | var workSite = [ |
| | | { |
| | | name: "勘察信息表", |
| | | table: "s_survey_information", |
| | | ns: 'bs', |
| | | }, |
| | | ] |
| | | |
| | | var gaoDeBaseUrl = [{ |
| | | url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', |
| | |
| | | } |
| | | |
| | | /*el-table边框*/ |
| | | .el-table{ |
| | | .el-table { |
| | | border-left: none !important; |
| | | border-right: none !important; |
| | | } |
| | | |
| | | .el-table td { |
| | | border-right: none !important; |
| | | } |
| | | |
| | | .el-table th.is-leaf { |
| | | border-right: none !important; |
| | | } |
| | | .el-table--group::after, .el-table--border::after{ |
| | | |
| | | .el-table--group::after, |
| | | .el-table--border::after { |
| | | width: 0 !important; |
| | | } |
| | | |
| | | .el-table { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | |
| | | } |
| | | |
| | | .el-table .el-table__body-wrapper { |
| | | flex: 1; |
| | | } |
| | | |
| | | .el-table th.gutter { |
| | | display: table-cell !important; |
| | | } |
| | |
| | | passworld: 'Passworld', |
| | | language: "中文", |
| | | title: 'Title', |
| | | preview: 'preview' |
| | | preview: 'preview', |
| | | attribute: 'Attribute', |
| | | }, |
| | | |
| | | dataManage: { |
| | |
| | | passworld: '密码', |
| | | language: "English", |
| | | title: '标题', |
| | | preview: '预览' |
| | | preview: '预览', |
| | | attribute: '属性', |
| | | }, |
| | | dataManage: { |
| | | dataManage: '数据管理', |
| | |
| | | this.imagePoint = null; |
| | | } |
| | | var wkt = this.$wkt.parse(val1); |
| | | this.setMapLoaction(wkt); |
| | | this.setMapLoaction(wkt, row); |
| | | } |
| | | }, |
| | | setMapLoaction(res) { |
| | |
| | | this.listdata.pageIndex = 1; |
| | | this.listdata.pageSize = 10; |
| | | this.listdata.name = res.entity; |
| | | this.$store.state.propertiesName = res; |
| | | this.getTableDateHidder(); |
| | | }, |
| | | handleSizeChange(val) { |
| | |
| | | }, |
| | | async showAllImage(res) { |
| | | for (var i in res) { |
| | | let properties = res[i]; |
| | | var param = { |
| | | gid: res[i].gid, |
| | | name: this.listdata.name, |
| | |
| | | if (val1) { |
| | | var wkt = this.$wkt.parse(val1); |
| | | // this.getprimitiLayer(wkt); |
| | | this.primitivesAddLayer(wkt); |
| | | this.primitivesAddLayer(wkt, properties); |
| | | } |
| | | } |
| | | }, |
| | |
| | | break; |
| | | } |
| | | }, |
| | | primitivesAddLayer(res) { |
| | | primitivesAddLayer(res, properties) { |
| | | switch (res.type) { |
| | | case "Point": |
| | | var val = Cesium.Cartesian3.fromDegrees( |
| | |
| | | ); |
| | | var point = Viewer.entities.add({ |
| | | position: val, |
| | | properties: properties, |
| | | tag: "properties_point", |
| | | billboard: { |
| | | // 图像地址,URI或Canvas的属性 |
| | | image: SmartEarthRootUrl + "Workers/image/mark.png", |
| | |
| | | }); |
| | | point.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; |
| | | this.$store.state.queryInfo.push(point); |
| | | //点击事件 |
| | | window.propertieshandler = new Cesium.ScreenSpaceEventHandler( |
| | | sgworld.Viewer.scene.canvas |
| | | ); |
| | | window.propertieshandler.setInputAction(event => { |
| | | let pick = sgworld.Viewer.scene.pick(event.position); |
| | | // ; |
| | | if (pick && pick.id && pick.id.tag == "properties_point") { |
| | | this.$store.state.propertiesFlag = '1'; |
| | | let properties = pick.id.properties; |
| | | let propertyNames = pick.id.properties.propertyNames; |
| | | let obj = {}; |
| | | obj["eventid"] = properties['_eventid']._value; |
| | | this.attributeData.forEach(item => { |
| | | propertyNames.forEach(itemElement => { |
| | | if (itemElement == item.field) { |
| | | obj[item.alias] = properties[itemElement]._value |
| | | } |
| | | }) |
| | | }) |
| | | this.$store.state.propertiesInfo = obj; |
| | | } |
| | | }, Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | break; |
| | | case "LineString": |
| | | case "MultiLineString": |
| | |
| | | } |
| | | }); |
| | | }, |
| | | destroyed() { |
| | | this.$store.state.propertiesFlag = null; |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <template> |
| | | <div class="menuBox"> |
| | | <el-form :inline="true" :model="menuTopFrom" class="demo-form-inline"> |
| | | <el-form |
| | | :inline="true" |
| | | :model="menuTopFrom" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-select |
| | | v-model="menuTopFrom.queryLayer" |
| | |
| | | placeholder="请选择..." |
| | | :popper-append-to-body="false" |
| | | > |
| | | <el-option :value="menuTopFrom.queryLayer" style="height: 100%"> |
| | | <el-option |
| | | :value="menuTopFrom.queryLayer" |
| | | style="height: 100%" |
| | | > |
| | | <div style="height: 200px; overflow: auto"> |
| | | <el-tree |
| | | :data="layerData" |
| | |
| | | </el-tree> |
| | | </div> |
| | | <div style="margin-top: 5px"> |
| | | <el-button size="small" plain @click="getCheckedNodes" |
| | | >确认</el-button |
| | | > |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | @click="getCheckedNodes" |
| | | >确认</el-button> |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | plain |
| | | @click="resetCheckedNodes" |
| | | >重置</el-button |
| | | > |
| | | >重置</el-button> |
| | | </div> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button plain size="small" @click="getAttributeQuery" |
| | | >查询</el-button |
| | | > |
| | | <el-button type="info" size="small" @click="clearQuery" plain |
| | | >重置</el-button |
| | | > |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | @click="getAttributeQuery" |
| | | >查询</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="clearQuery" |
| | | plain |
| | | >重置</el-button> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | <el-button |
| | |
| | | width="25%" |
| | | @opened="dialogOpend" |
| | | > |
| | | <el-form :model="menuTopFrom" label-width="150px"> |
| | | <el-form |
| | | :model="menuTopFrom" |
| | | label-width="150px" |
| | | > |
| | | <el-form-item label="管道中心线"> |
| | | <el-select |
| | | @change="changeSelect2" |
| | |
| | | ></el-input-number> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button @click="dialogFormVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="changeBufferData">确 定</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="changeBufferData" |
| | | >确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | treeChange: [], |
| | | layerData: [ |
| | | { |
| | | id: 1, |
| | | label: "基础数据", |
| | | tabDesc: "基础数据", |
| | | value: "BD", |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 2, |
| | | label: "业务数据", |
| | | tabDesc: "业务数据", |
| | | value: "BS", |
| | | children: [], |
| | | }, |
| | | // { |
| | | // id: 1, |
| | | // label: "基础数据", |
| | | // tabDesc: "基础数据", |
| | | // value: "BD", |
| | | // children: [], |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // label: "业务数据", |
| | | // tabDesc: "业务数据", |
| | | // value: "BS", |
| | | // children: [], |
| | | // }, |
| | | ], |
| | | |
| | | queryOption: [ |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败") |
| | | } |
| | | var option = data.result.filter(res => { |
| | | if (res.rows != 0) { |
| | | return res |
| | | |
| | | // var val = data.result.filter(res => { |
| | | // if (res.rows != 0) { |
| | | // return res |
| | | // } |
| | | // }) |
| | | var val = data.result |
| | | var std = []; |
| | | val.filter((item) => { |
| | | if (std.indexOf(item.bak) == -1) { |
| | | std.push(item.bak); |
| | | this.layerData.push( |
| | | { |
| | | val: item.bak, |
| | | label: item.bak, |
| | | children: [], |
| | | } |
| | | ) |
| | | } |
| | | }); |
| | | |
| | | this.layerData.filter((item) => { |
| | | val.filter((res) => { |
| | | if (item.val === res.bak) { |
| | | res.label = res.tabDesc |
| | | item.children.push(res) |
| | | } |
| | | }) |
| | | }) |
| | | for (var i in option) { |
| | | var val_Data = option[i] |
| | | val_Data.id = "1" + i |
| | | val_Data.label = val_Data.tabDesc |
| | | if (option[i].ns == "bd") { |
| | | this.layerData[0].children.push(val_Data) |
| | | } else { |
| | | this.layerData[1].children.push(val_Data) |
| | | } |
| | | } |
| | | |
| | | }, |
| | | //获取选择树的节点 |
| | | getCheckedNodes() { |
| | | var valTree = this.$refs.tree.getCheckedNodes() |
| | | if (valTree.length == 0) return |
| | | |
| | | this.menuTopFrom.queryLayer = valTree[0].tabDesc |
| | | this.menuTopFrom.queryLayer = valTree[0].tabDesc; |
| | | this.$store.state.propertiesName = valTree[0]; |
| | | for (var i = 0; i < valTree.length; i++) { |
| | | if (valTree[i].entity) { |
| | | this.treeChange.push(valTree[i]) |
| | |
| | | spaceLayer: '', |
| | | imagePoint: null, |
| | | domainsLayer: null, |
| | | querytype: null, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | this.options = []; |
| | | |
| | | var std = []; |
| | | |
| | | this.querytype = obj.type |
| | | if (obj.type == "text" || obj.type == "blob") { |
| | | std = this.conditions[0]; |
| | | } else if (obj.type == "date" || obj.type == "datetime") { |
| | |
| | | this.formInline.name = val_date.field; |
| | | this.options = []; |
| | | var std = []; |
| | | this.querytype = val_date.type |
| | | if (val_date.type == "text" || val_date.type == "blob") { |
| | | std = this.conditions[0]; |
| | | } else if (val_date.type == "date" || val_date.type == "datetime") { |
| | |
| | | if (this.formInline.input == undefined || this.formInline.input == null) { |
| | | this.listdata.filter = null; |
| | | } else { |
| | | |
| | | var val; |
| | | var value = this.formInline.input |
| | | if (this.querytype == "long" || this.querytype == "integer") { |
| | | |
| | | val = parseInt(value); |
| | | } else if (this.querytype == 'double') { |
| | | |
| | | if (this.formSql.value.indexOf(".") != -1) { |
| | | val = value; |
| | | } else { |
| | | val = parseFloat(value).toFixed(1) |
| | | } |
| | | } else if (querytype == "date" || querytype == "datetime") { |
| | | var time = new Date(value); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var y = time.getFullYear(); |
| | | val = "'" + y + |
| | | '-' + |
| | | this.add0(m) + |
| | | '-' + |
| | | this.add0(d) + "'"; |
| | | } else { |
| | | val = "'" + value + "'"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | this.listdata.filter = |
| | | this.formInline.name + |
| | | ' ' + |
| | | this.formInline.region + |
| | | ' ' + |
| | | this.formInline.input; |
| | | this.formInline.name + " " + this.formInline.region + " " + val |
| | | |
| | | } |
| | | |
| | | const data = await dataQuerySelectByPage(this.listdata); |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | var wkt = this.$wkt.parse(val1); |
| | | this.setMapLoaction(wkt,row); |
| | | |
| | | this.setMapLoaction(wkt, row); |
| | | } |
| | | }, |
| | | handleSizeChange(val) { |
| | |
| | | this.listdata.pageIndex = val; |
| | | this.getSpaceTableLayer(); |
| | | }, |
| | | setMapLoaction(res,properties) { |
| | | setMapLoaction(res, properties) { |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | // this.$store.state.primitLayer = null; |
| | |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | var coord = res.coordinates; |
| | | |
| | | if (res.type == 'Point') { |
| | | var val = Cesium.Cartesian3.fromDegrees( |
| | | res.coordinates[0], |
| | |
| | | |
| | | ); |
| | | this.$store.state.primitLayer = Viewer.entities.add({ |
| | | properties:properties, |
| | | tag : "properties_point", |
| | | properties: properties, |
| | | tag: "properties_point", |
| | | position: val, |
| | | billboard: { |
| | | // 图像地址,URI或Canvas的属性 |
| | |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer) |
| | | |
| | | window.propertieshandler = new Cesium.ScreenSpaceEventHandler( |
| | | sgworld.Viewer.scene.canvas |
| | | sgworld.Viewer.scene.canvas |
| | | ); |
| | | window.propertieshandler.setInputAction(event => { |
| | | let pick = sgworld.Viewer.scene.pick(event.position); |
| | | // debugger; |
| | | // ; |
| | | if (pick && pick.id && pick.id.tag == "properties_point") { |
| | | this.$store.state.propertiesFlag = '1'; |
| | | let properties = pick.id.properties; |
| | | let propertyNames = pick.id.properties.propertyNames; |
| | | let obj = {}; |
| | | obj["eventid"] = properties['_eventid']._value; |
| | | // |
| | | this.attributeData.forEach(item => { |
| | | propertyNames.forEach(itemElement => { |
| | | if (itemElement == item.field){ |
| | | if (itemElement == item.field) { |
| | | obj[item.alias] = properties[itemElement]._value |
| | | } |
| | | }) |
| | |
| | | }, Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | |
| | | } else if (res.type == 'MultiPolygon' || res.type == 'LineString') { |
| | | |
| | | var val = res.coordinates[0][0]; |
| | | var std = []; |
| | | for (var i in val) { |
| | | |
| | | std.push({ x: val[i][0], y: val[i][1] }) |
| | | std.push(val[i][0]) |
| | | |
| | | std.push(val[i][1]) |
| | | } |
| | | |
| | | this.$store.state.primitLayer = Viewer.entities.add({ |
| | | polyline: { |
| | | positions: Cesium.Cartesian3.fromDegreesArray(std), |
| | |
| | | border: 1px solid gray; |
| | | float: left; |
| | | .centTable { |
| | | margin-top: 1%; |
| | | position: absolute; |
| | | height: 66%; |
| | | width: 98%; |
| | |
| | | position: absolute; |
| | | bottom: 3%; |
| | | } |
| | | /deep/.el-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | this.mapSpaceQueryLayer = value; |
| | | this.layerData.forEach(item => { |
| | | if (this.menuTopFrom.queryLayer == item.entity){ |
| | | this.$store.state.propertiesName = item.tabDesc; |
| | | this.$store.state.propertiesName = item; |
| | | } |
| | | }) |
| | | this.getCheckedNodes(); |
| | |
| | | > |
| | | <el-card class="box-card"> |
| | | <div slot="header"> |
| | | <span>{{$store.state.propertiesName}}</span> |
| | | <span>{{$store.state.propertiesName.tabDesc || '属性信息'}}</span> |
| | | <div style="float: right; cursor: pointer"> |
| | | <el-link type="primary" :underline="false" @click="getAttatchList" style="margin-right: 10px">查看附件</el-link> |
| | | <i |
| | | class="el-icon-close" |
| | | @click="closeBufferBox(6)" |
| | |
| | | v-for="(value, key) in $store.state.propertiesInfo" |
| | | :key="key" |
| | | > |
| | | <span style="font-size: 14px;font-weight: bold;margin-right: 5px">{{key}}:</span> |
| | | <span>{{value}}</span> |
| | | <span v-if="key != 'eventid'" style="font-size: 14px;font-weight: bold;margin-right: 5px">{{key}}:</span> |
| | | <span v-if="key != 'eventid'">{{value}}</span> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | <!--附件列表弹窗--> |
| | | <el-dialog |
| | | title="附件列表" |
| | | :append-to-body="false" |
| | | :visible.sync="showAttach" |
| | | width="35%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div> |
| | | <el-table |
| | | :data="attachList" |
| | | height="100%" |
| | | style="width: 100%" |
| | | border |
| | | > |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | label="序号" |
| | | width="50" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="名称"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="时间" |
| | | width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{format(scope.row.createTime)}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button v-if="showAttachDetailBtn(scope.row)" @click="showAttachDetail(scope.row)" type="text" size="small">查看</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | | <!--附件弹窗--> |
| | | <el-dialog |
| | | title="预览" |
| | | :append-to-body="false" |
| | | :visible.sync="dialog.dialogVisible" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div |
| | | v-if="dialog.isPdf" |
| | | class="pdfClass" |
| | | > |
| | | <iframe |
| | | :src="dialog.src" |
| | | type="application/x-google-chrome-pdf" |
| | | width="100%" |
| | | height="100%" |
| | | > |
| | | </iframe> |
| | | </div> |
| | | <div |
| | | v-if="dialog.isJpg" |
| | | class="pdfClass" |
| | | > |
| | | <img |
| | | style="width:100%; height:100%;" |
| | | :src="dialog.src" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- <div--> |
| | | <!-- @click="changeMenulayer"--> |
| | | <!-- class="center CenDiv"--> |
| | |
| | | <script> |
| | | import $ from "jquery"; |
| | | import mapMenuTop from "./MapView/mapMenuTop.vue"; |
| | | |
| | | import mapSpaceTop from "./MapView/mapSpaceTop.vue"; |
| | | import { |
| | | select_Comprehensive_ByPageAndCount, |
| | | select_Comprehensive_SelectWktById, |
| | | comprehensive_selectRoute, |
| | | dataLib_selectFiles |
| | | } from "../api/api"; |
| | | import {getToken} from '@/utils/auth' |
| | | |
| | | export default { |
| | | name: "", |
| | |
| | | lon: "", |
| | | lat: "", |
| | | }, |
| | | |
| | | rules: { |
| | | lon: [ |
| | | { required: true, message: "请输入起点经纬度坐标", trigger: "blur" }, |
| | |
| | | layer3: null, |
| | | isActive: false, |
| | | isMenuLayer: true, |
| | | selFrom: {}, |
| | | selectTree: null, |
| | | showTerrainLevelDialog: false, |
| | | menuList: [], |
| | |
| | | show2DMap: false, |
| | | terrainFrom: { |
| | | height: '10' |
| | | }, showLengendDialog: false, |
| | | }, |
| | | showLengendDialog: false, |
| | | showAttach:false, |
| | | attachList:[], |
| | | dialog: { |
| | | dialogVisible: false, |
| | | isPdf: false, |
| | | isJpg: false, |
| | | src: '' |
| | | } |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | } |
| | | this.$bus.$emit("changemapType", this.show2DMap); |
| | | }, |
| | | //获取附件列表 |
| | | async getAttatchList() { |
| | | let tabName = this.$store.state.propertiesName.ns+'.'+this.$store.state.propertiesName.tab; |
| | | let eventid = this.$store.state.propertiesInfo.eventid; |
| | | var obj = { |
| | | eventid:eventid, |
| | | tabName:tabName, |
| | | }; |
| | | const res = await dataLib_selectFiles(obj); |
| | | if (res.code != 200) { |
| | | this.$message.error('附件查询失败'); |
| | | return |
| | | } |
| | | if (res.result.length <= 0) { |
| | | this.$message.error('暂无附件'); |
| | | return |
| | | } |
| | | this.attachList = res.result; |
| | | this.showAttach = true; |
| | | }, |
| | | //是否显示查看按钮 |
| | | showAttachDetailBtn(row){ |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | //数据初始化 |
| | | refreshAttatchDetail() { |
| | | this.dialog.src = ""; |
| | | this.dialog.dialogVisible = false; |
| | | this.dialog.isPdf = false; |
| | | this.dialog.isJpg = false; |
| | | }, |
| | | //查看附件 |
| | | showAttachDetail(row){ |
| | | this.refreshAttatchDetail(); |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | var url = BASE_URL + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | else if (name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isJpg = true; |
| | | var url = BASE_URL + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | }, |
| | | //格式化时间 |
| | | format(shijianchuo) { |
| | | //shijianchuo是整数,否则要parseInt转换 |
| | | var time = new Date(shijianchuo); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var h = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | var s = time.getSeconds(); |
| | | return ( |
| | | y + |
| | | '-' + |
| | | this.add0(m) + |
| | | '-' + |
| | | this.add0(d) + |
| | | ' ' + |
| | | h + |
| | | ':' + |
| | | mm + |
| | | ':' + |
| | | s |
| | | ); |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | background-size: contain; |
| | | } |
| | | |
| | | .pdfClass { |
| | | height: 70vh; |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | |
| | | // .menuSelect .el-input__inner { |
| | | // background: rgba(255, 255, 255, 0.2) !important; |
| | | // color: white !important; |
| | |
| | | > |
| | | <el-option |
| | | v-for="item in categoryOptions" |
| | | :key="item.value" |
| | | :key="item.key" |
| | | :label="item.value" |
| | | :value="item.key" |
| | | > |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | |
| | | this.signGetPublicKey(); |
| | | }, |
| | | methods: { |
| | | matchState(state = "", reg) { |
| | | var row = state.row; |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | // 附件=>表格选择 |
| | | handleAttatchChange(val) { |
| | | this.attacgSelection = val; |
| | |
| | | return; |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | } else { |
| | | this.listData.count = 0; |
| | | this.monthdata = []; |
| | | } |
| | | |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | }, |
| | | //查询文件数据 |
| | | async getQueryFileData() { |
| | |
| | | this.$message.error('文件数据列表调用失败'); |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | } else { |
| | | this.monthdata = []; |
| | | this.listData.count = 0; |
| | | } |
| | | |
| | | }, |
| | | //查询数据 |
| | | getAllTabesData() { |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error('资料类别列表调用失败'); |
| | | } |
| | | |
| | | this.categoryOptions = data.result; |
| | | }, |
| | | //关键字查询 |
| | |
| | | }, |
| | | //资料类别下拉框值改变触发 |
| | | categorySelectChange(model, prop, options) { |
| | | |
| | | this.getAllTabesData(); |
| | | |
| | | }, |
| | | // 项目名称下拉框值改变触发 |
| | | itemSelectChange(model, prop, options) { |
| | |
| | | <div class="dividing-line"></div> |
| | | <div |
| | | class="table_box" |
| | | style="height:calc(100% - 130px)" |
| | | style="height:calc(100% - 130px); " |
| | | > |
| | | <!-- border--> |
| | | <!-- ref="filterTable"--> |
| | |
| | | :data="tableData" |
| | | style="width: 100% ;" |
| | | border |
| | | height="100% " |
| | | height="100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="20" |
| | | align="center" |
| | | /> |
| | | <!-- <el-table-column |
| | | width="60" |
| | | align="center" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | />--> |
| | | |
| | | <el-table-column |
| | | min-width="135" |
| | | v-for="(item, index) in attributeData" |
| | |
| | | align="center" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | min-width="180" |
| | | min-width="240" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | plain |
| | | size="small" |
| | | @click="getAttachTable(scope.$index, scope.row)" |
| | | style="margin-left: 20px; " |
| | | >{{$t('common.enclosure')}}</el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | type="info" |
| | | v-if="matchState1(scope, /[]/)" |
| | | @click="getAttributeTable(scope.$index, scope.row)" |
| | | >{{$t('common.attribute')}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | :title="$t('common.attachinform')" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <div style="height:68vh"> |
| | | <el-form |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | |
| | | <!-- <el-col :span="3"> <el-link class="elLink" :underline="false" >{{$t('common.reset')}}</i></el-link></el-col> --> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-table |
| | | :data="tableAttach" |
| | | ref="filterTable" |
| | | height="calc(100% - 100px)" |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="handleAttatchChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <el-table-column |
| | | prop="date" |
| | | :label="$t('common.fileNme')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('common.filePath')" |
| | | /> |
| | | |
| | | </el-table> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | | :span="12" |
| | | :offset="8" |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | >确认</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | >取消</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <el-table |
| | | :data="tableAttach" |
| | | ref="filterTable" |
| | | height="calc(100% - 130px)" |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="handleAttatchChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="70" |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('common.fileNme')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="statSizeChange" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | :label="$t('common.operate')" |
| | | min-width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | <map-sdk v-if='showMapVisible'></map-sdk> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="预览" |
| | | :append-to-body="false" |
| | | :visible.sync="dialog.dialogVisible" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div |
| | | v-if="dialog.isPdf" |
| | | class="pdfClass" |
| | | > |
| | | <iframe |
| | | :src="dialog.src" |
| | | type="application/x-google-chrome-pdf" |
| | | width="100%" |
| | | height="100%" |
| | | > |
| | | </iframe> |
| | | </div> |
| | | <div |
| | | v-if="dialog.isJpg" |
| | | class="pdfClass" |
| | | > |
| | | <img |
| | | style="width:100%; height:100%" |
| | | :src="dialog.src" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="attribute.title" |
| | | :append-to-body="false" |
| | | :visible.sync="AttributedialogVisible" |
| | | width="80%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="attributeBox"> |
| | | <div class="attrubuteLeft"> |
| | | <ul> |
| | | <li |
| | | v-for="item in attrbuteOption" |
| | | :class="{active:attributeFlag === item.name}" |
| | | @click="setChangeAttrubuteData(item)" |
| | | > |
| | | {{item.name}} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="attrubuteRight"> |
| | | <el-table |
| | | ref="refAttributeTable" |
| | | :data="attributeTable" |
| | | style="width:100%;" |
| | | border |
| | | height="calc(100% - 50px)" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | align="center" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="135" |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | |
| | | </el-table> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 10px" |
| | | > |
| | | <el-pagination |
| | | @size-change="attributeSizeChange" |
| | | @current-change="attributeCurrentChange" |
| | | :current-page="attribute.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="attribute.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="attribute.count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | fromSqlflag: false, |
| | | tree: [ |
| | | { |
| | | tabDesc: "基础数据", |
| | | label: "基础数据", |
| | | value: "BD", |
| | | ns: "bd", |
| | | id: 1, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 2, |
| | | tabDesc: "业务数据", |
| | | label: "业务数据", |
| | | value: "BS", |
| | | ns: "bs", |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 3, |
| | | tabDesc: "元数据", |
| | | label: "元数据", |
| | | value: "MD", |
| | | ns: "md", |
| | | children: [], |
| | | }, |
| | | ], |
| | | tableAttach: [], |
| | | filedsOption: [], |
| | |
| | | eventid: null, |
| | | }, |
| | | filterText: "", |
| | | dialog: { |
| | | dialogVisible: false, |
| | | isPdf: false, |
| | | isJpg: false, |
| | | src: '' |
| | | }, |
| | | AttributedialogVisible: false, |
| | | attribute: { |
| | | name: null, |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | count: 0, |
| | | title: null |
| | | }, |
| | | attrbuteOption: [], |
| | | attributeFlag: null, |
| | | attributeTable: [], |
| | | attributeLayer: null, |
| | | attributeFild: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | //分页点击事件 |
| | | attributeSizeChange(val) { |
| | | this.attribute.pageSize = val; |
| | | this.attribute.pageIndex = 1; |
| | | //获取table信息 |
| | | this.setAttributeTableData(this.attributeLayer); |
| | | }, |
| | | attributeCurrentChange(val) { |
| | | this.attribute.pageIndex = val; |
| | | //获取table信息 |
| | | this.setAttributeTableData(this.attributeLayer); |
| | | }, |
| | | getAttributeTable(idnex, row) { |
| | | this.attribute.title = row.workname; |
| | | this.attrbuteOption = workSite; |
| | | |
| | | this.AttributedialogVisible = true; |
| | | this.setChangeAttrubuteData(this.attrbuteOption[0]) |
| | | }, |
| | | setChangeAttrubuteData(res) { |
| | | this.attributeFlag = res.name; |
| | | this.attribute.pageIndex = 1; |
| | | this.attribute.pageSize = 10; |
| | | this.attribute.count = 0; |
| | | this.attributeLayer = res; |
| | | this.setAttributeTableData(res) |
| | | }, |
| | | setAttributeTableData(res) { |
| | | var name = res.table.replaceAll("_", ""); |
| | | this.attribute.name = name; |
| | | var value = this.getAttributeDomFiled(name) |
| | | this.getAttributeTableData(value, res) |
| | | }, |
| | | |
| | | //获取每个表字段名称及阈值 |
| | | async getAttributeDomFiled(res) { |
| | | //查询字段信息; |
| | | const fileds = await dataQuery_selectFields({ |
| | | name: res, |
| | | }); |
| | | if (fileds.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | |
| | | //查询阈值信息; |
| | | const domains = await dataQuery_selectDomains({ |
| | | name: res, |
| | | }); |
| | | if (domains.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | var data1 = fileds.result; |
| | | var data2 = domains.result; |
| | | var std = []; |
| | | this.filedsOption = []; |
| | | for (var i in data1) { |
| | | if (data1[i].type != 'geometry' && data1[i].type) { |
| | | |
| | | this.filedsOption.push(data1[i]); |
| | | } |
| | | if (data1[i].showtype == 1) { |
| | | if (data1[i].domainNa != null) { |
| | | data1[i].domainNa = this.getDomainNaFild(data1[i].domainNa, data2); |
| | | } |
| | | std.push(data1[i]); |
| | | } |
| | | } |
| | | return std; |
| | | }, |
| | | |
| | | //获取表格信息 |
| | | async getAttributeTableData(res, result) { |
| | | res.then((val) => { |
| | | this.attributeFild = val; |
| | | }); |
| | | |
| | | this.attribute.filter = "workname = " + "'" + this.attribute.title + "'"; |
| | | |
| | | |
| | | const data = await dataQuery_selectByPage(this.attribute); |
| | | if (data.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | this.attributeTable = [] |
| | | var res_val = this.attributeFild; |
| | | this.attribute.count = data.count; |
| | | for (var i in data.result) { |
| | | let val_Data = data.result[i]; |
| | | |
| | | for (var j in res_val) { |
| | | if (res_val[j].domainNa != null && res_val[j].domainNa != undefined) { |
| | | val_Data[res_val[j].field] = res_val[j].domainNa; |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.attributeTable = data.result; |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | matchState1(state = "", reg) { |
| | | var row = state.row; |
| | | if ( |
| | | this.listData.name == "ssurveyworksite" |
| | | ) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | statSizeChange(row, column) { |
| | | return this.stateFormatSizes(row.sizes) |
| | | }, |
| | | stateFormatSizes(res) { |
| | | if (res >= 1024) { |
| | | const val = parseFloat(res / 1024).toFixed(3); |
| | | return val + ' GB'; |
| | | } else { |
| | | return res + ' MB'; |
| | | } |
| | | }, |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.label.indexOf(value) !== -1; |
| | |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | }, |
| | | |
| | | refreshAttatchDetail() { |
| | | this.dialog.src = ""; |
| | | this.dialog.dialogVisible = false; |
| | | this.dialog.isPdf = false; |
| | | this.dialog.isJpg = false; |
| | | }, |
| | | //附件查看 |
| | | setAttatchDetail(index, row) { |
| | | |
| | | this.refreshAttatchDetail() |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | var url = BASE_URL + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } else if (name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isJpg = true; |
| | | var url = BASE_URL + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | }, |
| | | |
| | | matchState(state = "", reg) { |
| | | var row = state.row; |
| | | var name = row.name; |
| | | |
| | | if (name) { |
| | | if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | |
| | | |
| | | async setAttachDel() { |
| | | var std = []; |
| | | for (var i in this.attacgSelection) { |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | | var option = data.result; |
| | | var val = data.result; |
| | | |
| | | for (var i in option) { |
| | | var val_Data = option[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); |
| | | for (var j in this.tree) { |
| | | if (this.tree[j].ns == option[i].ns) { |
| | | this.tree[j].children.push(val_Data); |
| | | } |
| | | // for (var i in option) { |
| | | // var val_Data = option[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); |
| | | // for (var j in this.tree) { |
| | | // if (this.tree[j].ns == option[i].ns) { |
| | | // this.tree[j].children.push(val_Data); |
| | | // } |
| | | // } |
| | | |
| | | // } |
| | | var std = []; |
| | | val.filter((item) => { |
| | | if (std.indexOf(item.bak) == -1) { |
| | | std.push(item.bak); |
| | | this.tree.push( |
| | | { |
| | | val: item.bak, |
| | | label: item.bak, |
| | | children: [], |
| | | } |
| | | ) |
| | | } |
| | | // if (option[i].ns == 'bd') { |
| | | }); |
| | | |
| | | // this.tree[0].children.push(val_Data); |
| | | // } else { |
| | | // this.tree[1].children.push(val_Data); |
| | | // } |
| | | } |
| | | this.tree.filter((item) => { |
| | | val.filter((res) => { |
| | | if (item.val === res.bak) { |
| | | res.label = res.tabDesc |
| | | item.children.push(res) |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | this.handleNodeClick(this.tree[0].children[0]); |
| | | }, |
| | | //授权管理 |
| | |
| | | handleNodeClick(data) { |
| | | //判断点击是否为子节点 |
| | | if (data.children != null) return; |
| | | |
| | | this.listData.name = data.entity; //要查询表格类型; |
| | | this.getClickTable = data; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | |
| | | this.count = 0; |
| | | this.upAttach.tabName = data.ns + "." + data.tab; |
| | | this.filedsLayer = this.getCollapseDomFiled(); //获取每个表字段名称及阈值 |
| | |
| | | border: 1px solid #dcdfe6; |
| | | } |
| | | } |
| | | .pdfClass { |
| | | height: 70vh; |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | .attributeBox { |
| | | height: 63vh; |
| | | width: 100%; |
| | | position: relative; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .attrubuteLeft { |
| | | width: calc(20% - 20px); |
| | | height: calc(100% - 20px); |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 5px; |
| | | padding: 10px; |
| | | li { |
| | | border-bottom: 1px solid #dcdfe6; |
| | | line-height: 30px; |
| | | text-align: center; |
| | | } |
| | | li:hover { |
| | | background: rgba(255, 255, 255, 0.3); |
| | | color: #409eff; |
| | | } |
| | | .active { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | .attrubuteRight { |
| | | width: 79%; |
| | | height: 100%; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 5px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .table_box2 { |
| | |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | // this.dialogFormVisible = false; |
| | |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | this.insertform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | // this.InsertFormdialog = false; |
| | |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.dialogFormVisible = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | this.$nextTick(() => { |
| | | this.editForm = JSON.parse(this.initialForm); |
| | | }); |
| | | this.BGetList(); |
| | | this.WGetList(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.EditFormdialog = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false; |
| | | this.updateform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |