| | |
| | | |
| | | //资料馆=>分页查询元数据 |
| | | export function dataLib_selectByPageForMeta(params) { |
| | | return request.get('/dataLib/selectByPageForMeta', { params: params }); |
| | | return request.get('/dataLib/selectMetasForPage', { params: params }); |
| | | } |
| | | //资料馆=>分页查询 |
| | | export function dataLib_selectDownloadFile(params) { |
| | |
| | | |
| | | //项目管理查询目录 |
| | | export function project_selectDirAll(params) { |
| | | return request.get('/project/selectDirRoot', { params: params }); |
| | | return request.get('/project/selectProject', { params: params }); |
| | | } |
| | | //项目管理=》根据目录ID查询 |
| | | export function project_selectByDirid(params) { |
| | |
| | | selectMetadata: 'Select Metadata', |
| | | entryName: 'Entry Name', |
| | | selectWBSData: 'Select WBS Data', |
| | | |
| | | coordinateSystem: 'Coordinate System' |
| | | coordinateSystem: 'Coordinate System', |
| | | fileExtension:"File extension", |
| | | inspectionItems:"Inspection items", |
| | | code:'Code' |
| | | }, |
| | | |
| | | metadataManage: 'metadataManage', |
| | |
| | | type2: 'Thematic map', |
| | | type3: 'Metadata', |
| | | type4: 'Business data', |
| | | type5: 'Pipeline analysis', |
| | | type6: 'Statistical report', |
| | | }, |
| | | dataApply: { |
| | | type1: 'Cancel', |
| | |
| | | selectData: '选择数据', |
| | | selectMetadata: '选择元数据', |
| | | entryName: '项目名称', |
| | | |
| | | |
| | | selectWBSData: '选择WBS数据', |
| | | |
| | | coordinateSystem: '坐标系' |
| | | coordinateSystem: '坐标系', |
| | | fileExtension:"文件扩展名", |
| | | inspectionItems:"检查项", |
| | | code:'编码' |
| | | }, |
| | | metadataManage: '元数据管理', |
| | | dataLoading: '数据入库', |
| | |
| | | type2: '专题图', |
| | | type3: '元数据', |
| | | type4: '业务数据', |
| | | type5: '管道分析', |
| | | type6: '统计报告', |
| | | }, |
| | | loglog: { |
| | | serialnumber: '序号', |
| | |
| | | this.ruleForm.wkt = decr(this.listdata.wkt) |
| | | this.ruleForm.tabs = this.option; |
| | | this.dialogInsertVisible = true; |
| | | } |
| | | }download |
| | | |
| | | }, |
| | | async signGetPublicKey() { |
| | |
| | | std1.push(this.option[i].entity) |
| | | } |
| | | var obj = { |
| | | ids: this.insertOption.ids, |
| | | depcodes: this.insertOption.ids, |
| | | pwd: encr(this.codeForm.password), |
| | | tabs: std, |
| | | entities: std1, |
| | |
| | | } |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | |
| | | } |
| | | }, |
| | | primitivesAddLayer(res) { |
| | | debugger |
| | | |
| | | switch (res.type) { |
| | | case "Point": |
| | | var val = Cesium.Cartesian3.fromDegrees( |
| | | res.coordinates[0], |
| | | res.coordinates[1], |
| | | 200 |
| | | |
| | | ); |
| | | var point = Viewer.entities.add({ |
| | | position: val, |
| | | billboard: { |
| | | // 图像地址,URI或Canvas的属性 |
| | | image: SmartEarthRootUrl + "Workers/image/mark.png", |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, |
| | | // 大小是否以米为单位 |
| | | sizeInMeters: false, |
| | | // 相对于坐标的垂直位置 |
| | |
| | | show: true |
| | | } |
| | | }); |
| | | point.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; |
| | | this.$store.state.queryInfo.push(point) |
| | | break; |
| | | case "LineString": |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="small" |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | @click="setSpaceTableLayer" |
| | | >查询</el-button> |
| | | <el-button |
| | | plain size="small" |
| | | plain |
| | | size="small" |
| | | @click="restSpacePopLayer" |
| | | >重置</el-button> |
| | | </el-form-item> |
| | |
| | | attributeData: [], |
| | | optionx: [], |
| | | options: [], |
| | | conditions: [ |
| | | ['<>', 'like'], |
| | | ['>=', '>', ' =', '<=', '<', '<>'], |
| | | ['>=', '<='], |
| | | ], |
| | | options1: [ |
| | | { |
| | | value: '=', |
| | |
| | | this.showSpacePopLayer(); |
| | | }, |
| | | changeValue(value) { |
| | | |
| | | var obj = {}; |
| | | obj = this.optionx.find(function (item) { |
| | | return item.value === value; |
| | | return item.field === value; |
| | | }); |
| | | if (obj.type == 'serial' || obj.type == 'int') { |
| | | this.options = this.options2; |
| | | // debugger |
| | | // if (obj.type == 'serial' || obj.type == 'int') { |
| | | // this.options = this.options2; |
| | | // } else { |
| | | // this.options = this.options1; |
| | | // } |
| | | this.options = []; |
| | | |
| | | var std = []; |
| | | |
| | | if (obj.type == "text" || obj.type == "blob") { |
| | | std = this.conditions[0]; |
| | | } else if (obj.type == "date" || obj.type == "datetime") { |
| | | std = this.conditions[2]; |
| | | } else { |
| | | this.options = this.options1; |
| | | std = this.conditions[1]; |
| | | } |
| | | for (var i in std) { |
| | | this.options.push({ |
| | | label: std[i], |
| | | value: std[i], |
| | | }); |
| | | } |
| | | |
| | | this.formInline.region = this.options[0].value; |
| | | }, |
| | | setListDataStart() { |
| | |
| | | showSpacePopLayer() { |
| | | let val_date = this.optionx[0]; |
| | | this.formInline.name = val_date.field; |
| | | if (val_date.type == 'serial' || val_date.type == 'int') { |
| | | this.options = this.options2; |
| | | this.options = []; |
| | | var std = []; |
| | | if (val_date.type == "text" || val_date.type == "blob") { |
| | | std = this.conditions[0]; |
| | | } else if (val_date.type == "date" || val_date.type == "datetime") { |
| | | std = this.conditions[2]; |
| | | } else { |
| | | this.options = this.options1; |
| | | std = this.conditions[1]; |
| | | } |
| | | for (var i in std) { |
| | | this.options.push({ |
| | | label: std[i], |
| | | value: std[i], |
| | | }); |
| | | } |
| | | |
| | | this.formInline.region = this.options[0].value; |
| | | this.getSpaceTableLayer(); |
| | | }, |
| | |
| | | var val1 = decr(data.result); |
| | | if (val1) { |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | |
| | | this.getSpaceTableLayer(); |
| | | }, |
| | | setMapLoaction(res) { |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | // this.$store.state.primitLayer = null; |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | var coord = res.coordinates; |
| | | if (res.type == 'Point') { |
| | | this.$store.state.primitLayer = sgworld.Creator.CreateLabel( |
| | | { X: coord[0], Y: coord[1], Altitude: 2000 }, |
| | | '', |
| | | SmartEarthRootUrl + 'Workers/image/mark.png', |
| | | { |
| | | disableDepthTestDistance: Infinity, |
| | | scale: 0.8, |
| | | }, |
| | | 0, |
| | | '巡检点' |
| | | var val = Cesium.Cartesian3.fromDegrees( |
| | | res.coordinates[0], |
| | | res.coordinates[1], |
| | | |
| | | ); |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer.item); |
| | | } else if (res.type == 'MultiPolygon') { |
| | | this.$store.state.primitLayer = Viewer.entities.add({ |
| | | position: val, |
| | | billboard: { |
| | | // 图像地址,URI或Canvas的属性 |
| | | image: SmartEarthRootUrl + "Workers/image/mark.png", |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, |
| | | // 大小是否以米为单位 |
| | | sizeInMeters: false, |
| | | // 相对于坐标的垂直位置 |
| | | verticalOrigin: Cesium.VerticalOrigin.CENTER, |
| | | // 相对于坐标的水平位置 |
| | | horizontalOrigin: Cesium.HorizontalOrigin.LEFT, |
| | | // 应用于图像的统一比例。比例大于会1.0放大标签,而比例小于会1.0缩小标签。 |
| | | scale: 1.0, |
| | | // 是否显示 |
| | | show: true |
| | | } |
| | | }); |
| | | this.$store.state.primitLayer.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; |
| | | |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer) |
| | | |
| | | } 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], z: 1000 }) |
| | | std.push({ x: val[i][0], y: val[i][1] }) |
| | | } |
| | | this.$store.state.primitLayer = sgworld.Creator.createPolygon(std, { |
| | | fillColor: '#ffff00', |
| | | outlineColor: '#fff', |
| | | outlineWidth: 2 |
| | | }, 1, 0, "面"); |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer.item); |
| | | this.$store.state.primitLayer = Viewer.entities.add({ |
| | | polyline: { |
| | | positions: Cesium.Cartesian3.fromDegreesArray(std), |
| | | width: 5, |
| | | material: new Cesium.Color(1.0, 0.0, 0.0, 0.3), |
| | | clampToGround: true, |
| | | } |
| | | }) |
| | | |
| | | // this.$store.state.primitLayer = sgworld.Creator.createPolygon(std, { |
| | | // fillColor: '#ffff00', |
| | | // outlineColor: '#fff', |
| | | // outlineWidth: 2 |
| | | // }, 1, 0, "面"); |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer); |
| | | } else if (res.type == 'MultiLineString') { |
| | | var line = res.coordinates[0]; |
| | | var std = []; |
| | |
| | | |
| | | std.push({ x: line[i][0], y: line[i][1], z: 1000 }) |
| | | } |
| | | this.$store.state.primitLayer = sgworld.Creator.createPolyline(std, "#ffff00", 1, 0, "线"); |
| | | this.$store.state.primitLayer = sgworld.Creator.createPolyline(std, "#ffff00", 1, 0, "线"); |
| | | sgworld.Navigate.flyToObj(this.$store.state.primitLayer.item); |
| | | } |
| | | }, |
| | |
| | | } |
| | | .rightTitle { |
| | | padding: 5px; |
| | | |
| | | |
| | | width: 100%; |
| | | .boxClose { |
| | | float: right; |
| | | margin-right: 20px; |
| | | |
| | | } |
| | | } |
| | | .bottomPage { |
| | | position: absolute; |
| | | bottom: 1%; |
| | | } |
| | | |
| | | |
| | | } |
| | | </style> |
| | |
| | | <div class="spaceBox"> |
| | | <el-select |
| | | v-model="menuTopFrom.queryLayer" |
| | | @change="menuTreeCheck" |
| | | placeholder="请选择..." |
| | | filterable |
| | | > |
| | | <el-option |
| | | v-for="item in layerData" |
| | | :key="item.entity" |
| | | :label="item.tabDesc" |
| | | :value="item.entity" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-select |
| | | v-model="menuTopFrom.queryLayer" |
| | | placeholder="请选择..." |
| | | > |
| | | <el-option |
| | |
| | | >重置</el-button> |
| | | </div> |
| | | </el-option> |
| | | </el-select> |
| | | </el-select> --> |
| | | <queryinfo ref="queryinfo" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import queryinfo from "../../views/Tools/queryinfo.vue" |
| | | import { inquiry_SelectTabs } from '../../api/api.js'; |
| | | import { inquiry_SelectTabs, dataLib_selectTabs } from '../../api/api.js'; |
| | | export default { |
| | | components: { queryinfo }, |
| | | data() { |
| | |
| | | }, |
| | | { |
| | | id: 2, |
| | | label: '基础数据', |
| | | label: '业务数据', |
| | | tabDesc: '业务数据', |
| | | value: 'BS', |
| | | children: [], |
| | |
| | | }, |
| | | methods: { |
| | | async getAllTable() { |
| | | const data = await inquiry_SelectTabs(); |
| | | // const data = await inquiry_SelectTabs(); |
| | | const data = await dataLib_selectTabs({ |
| | | pageIndex: 1, |
| | | pageSize: 500 |
| | | }) |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | } |
| | | var option = data.result; |
| | | |
| | | 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); |
| | | this.layerData = option.filter((res) => { |
| | | if (res.rows != 0) { |
| | | return res; |
| | | } |
| | | } |
| | | }) |
| | | |
| | | |
| | | // for (var i in option) { |
| | | // // console.log(option[i].tableType) |
| | | // 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() { |
| | | this.$store.state.mapSpaceQueryLayer = this.mapSpaceQueryLayer; |
| | | // this.$store.state.mapPopBoolean = true; |
| | | this.$store.state.mapPopBoxFlag = '2'; |
| | | // this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close(); |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("空间查询", null, { |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close(); |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("属性", null, { |
| | | close: () => { |
| | | |
| | | if (this.$store.state.primitLayer != null) { |
| | |
| | | this.menuTopFrom.queryLayer = null; |
| | | this.$refs.treeForm.setCheckedKeys([]); |
| | | }, |
| | | menuTreeCheck(node, list) { |
| | | if (list.checkedNodes.length > 0) { |
| | | this.menuTopFrom.queryLayer = node.tabDesc; |
| | | this.mapSpaceQueryLayer = node.entity; |
| | | if (list.checkedKeys.length == 2) { |
| | | //单选实现 |
| | | this.$refs.treeForm.setCheckedKeys([node.id]); |
| | | } |
| | | } else { |
| | | this.menuid = null; |
| | | } |
| | | menuTreeCheck(value) { |
| | | |
| | | this.mapSpaceQueryLayer = value; |
| | | |
| | | this.getCheckedNodes(); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | } |
| | | </style> |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |
| | |
| | | v-bind:src="reportUrl" |
| | | ></iframe> |
| | | </div> |
| | | <div class="title_img"> |
| | | <div class="title_img"> |
| | | <img |
| | | src="../assets/img/loginLogo.png" |
| | | src="../assets/img/lg_03.png" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | <div class="login"> |
| | | |
| | | |
| | | <div class="login_title"> |
| | | <span>用户登录</span> |
| | | </div> |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | |
| | | <el-col |
| | | :span="6" |
| | |
| | | |
| | | }, |
| | | startURL() { |
| | | this.reportUrl = window.location.origin + '/mapscreen/index.html'; |
| | | var url = window.location.href; |
| | | var testurl = ''; |
| | | if (url.indexOf('web') != -1) { |
| | | testurl = '/web'; |
| | | } |
| | | this.reportUrl = window.location.origin + testurl + '/mapscreen/index.html'; |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | left: 1%; |
| | | position: absolute; |
| | | } |
| | | |
| | | } |
| | | .title_img { |
| | | position: absolute; |
| | | left: 10%; |
| | | top:8%; |
| | | left: 17%; |
| | | top: 8%; |
| | | width: 20%; |
| | | /* transform: translateX(-50%); */ |
| | | } |
| | | .title_img img { |
| | |
| | | left: 75%; |
| | | top: 45%; |
| | | transform: translate(-50%, -40%); |
| | | background: rgba(255, 255, 255, 0.6); |
| | | background: rgba(255, 255, 255, 0.8); |
| | | border-radius: 8px; |
| | | } |
| | | |
| | |
| | | @change="handleChange1" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | value: 'code', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | |
| | | <el-button |
| | | icon="el-icon-search" |
| | | @click="searchDataLibSelectTabs" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | |
| | | icon="el-icon-refresh" |
| | | @click="restDataLibSelectTabs" |
| | | type="info" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getdownloadList" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('synthesis.DownloadList') |
| | | }}</el-button> |
| | |
| | | <div v-if="isMenuActive"> |
| | | <ul> |
| | | <li |
| | | v-for="(item, index) in dataType" |
| | | v-for="(item, index) in dataTypeList" |
| | | :key="index" |
| | | > |
| | | <div |
| | | class="menu_div" |
| | | @click="getShowTable(item)" |
| | | > |
| | | {{ item.tabDesc }} |
| | | {{ item.tabDesc }} <span style="margin-left:20px">{{item.rows}}条</span> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | } |
| | | }; |
| | | return { |
| | | dataTypeList: [], |
| | | loading: false, |
| | | downloadLogVisible: false, |
| | | downloadListVisible: false, |
| | |
| | | listData: { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | depid: null, |
| | | dirid: null, |
| | | name: null |
| | | depcode: null, |
| | | dirs: null, |
| | | tab: null |
| | | }, |
| | | count: 0, |
| | | count1: 0, |
| | |
| | | pageSize: 10, |
| | | count: 0, |
| | | name: null, |
| | | }, |
| | | queryList: { |
| | | showList1: '', |
| | | showList2: '' |
| | | } |
| | | }; |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | var std = ""; |
| | | for (var i in this.checkedEntryName) { |
| | | for (var j in this.showList1) { |
| | | if (this.showList1[j].name == this.checkedEntryName[i]) { |
| | | if (std.length != 0) { |
| | | std += "," |
| | | } |
| | | std += this.showList1[j].id |
| | | } |
| | | } |
| | | } |
| | | this.queryList.showList2 = std; |
| | | |
| | | this.getQueryShowListData(); |
| | | }, |
| | | handleCheckedDataTypeChange(res) { |
| | | if (this.checkedDataType.indexOf(res.name) != -1) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | var std = ""; |
| | | for (var i in this.checkedDataType) { |
| | | for (var j in this.showList) { |
| | | if (this.showList[j].name == this.checkedDataType[i]) { |
| | | if (std.length != 0) { |
| | | std += "," |
| | | } |
| | | std += this.showList[j].id |
| | | } |
| | | } |
| | | } |
| | | this.queryList.showList1 = std; |
| | | this.getQueryShowListData(); |
| | | }, |
| | | changeListDataType(res) { |
| | | if (this.isShowFirstCheck == false) { |
| | | this.dataTypeName = res.name; |
| | | this.queryList.showList1 = res.id; |
| | | this.getQueryShowListData(); |
| | | } |
| | | }, |
| | | |
| | | getQueryShowListData() { |
| | | var a1 = ""; |
| | | if (this.queryList.showList1 != "" && this.queryList.showList1 != null) { |
| | | a1 = this.queryList.showList1; |
| | | } |
| | | if (this.queryList.showList2 != "" && this.queryList.showList2 != null) { |
| | | if (a1.length != 0) { |
| | | a1 += "," |
| | | } |
| | | a1 += this.queryList.showList2; |
| | | } |
| | | this.listData.dirs = a1; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | if (this.isMenuActive == true) { |
| | | this.getDataLibSelectTabs() |
| | | } else { |
| | | this.queryInfo(); |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | restDataLibSelectTabs() { |
| | | this.formInline.tab = "" |
| | | this.queryList = { |
| | | showList1: null, |
| | | showList2: null, |
| | | } |
| | | this.formInline.depid = this.companyOption1[0].code; |
| | | this.listData.depcode = this.companyOption1[0].code; |
| | | this.checkedDataType = [] |
| | | this.dataTypeName = '不限'; |
| | | this.dataTypeName = null; |
| | | this.checkedDataType = ['不限']; |
| | | this.isShowFirstCheck = false |
| | | this.checkedDataType = [] |
| | | this.dataTypeName = '不限'; |
| | | this.queryList.showList1 = null; |
| | | this.isShowSecondCheck = false; |
| | | this.checkedEntryName = [] |
| | | this.EntryName = '不限'; |
| | | this.queryList.showList2 = null; |
| | | this.getQueryShowListData(); |
| | | }, |
| | | |
| | | |
| | | changeListEntryName(res) { |
| | | if (this.isShowSecondCheck == false) { |
| | | this.EntryName = res.name; |
| | | this.queryList.showList2 = res.id; |
| | | this.getQueryShowListData(); |
| | | } |
| | | }, |
| | | getSpaceMapVisibale() { |
| | |
| | | this.$store.state.download = false; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | if (this.entityaLayers.length != 0) { |
| | | for (var i in this.entityaLayers) { |
| | | sgworld.Viewer.entities.remove(this.entityaLayers[i]); |
| | | } |
| | | this.entityaLayers = []; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | moreEvent(res) { |
| | | switch (res) { |
| | |
| | | if (this.isShowFirstCheck == false) { |
| | | this.checkedDataType = [] |
| | | this.dataTypeName = '不限'; |
| | | this.queryList.showList1 = null; |
| | | this.getQueryShowListData(); |
| | | } else { |
| | | this.dataTypeName = null; |
| | | this.checkedDataType = ['不限'] |
| | | this.checkedDataType = ['不限']; |
| | | this.queryList.showList1 = null; |
| | | this.getQueryShowListData(); |
| | | } |
| | | |
| | | break; |
| | |
| | | if (this.isShowSecondCheck == false) { |
| | | this.checkedEntryName = [] |
| | | this.EntryName = '不限'; |
| | | this.queryList.showList2 = null; |
| | | this.getQueryShowListData(); |
| | | } else { |
| | | this.EntryName = null; |
| | | this.checkedEntryName = ['不限'] |
| | | this.queryList.showList2 = null; |
| | | this.getQueryShowListData(); |
| | | } |
| | | break; |
| | | } |
| | |
| | | this.formInline.tab = "" |
| | | switch (res) { |
| | | case 1: |
| | | this.listData = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | |
| | | } |
| | | this.getDataLibSelectTabs(); |
| | | this.isMenuActive = true; |
| | | |
| | | this.getQueryShowListData(); |
| | | break; |
| | | case 2: |
| | | this.listData = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | depid: null, |
| | | dirid: null, |
| | | name: null, |
| | | verid: null |
| | | } |
| | | |
| | | this.isMenuActive = false; |
| | | this.getMetaData(); |
| | | this.getQueryShowListData(); |
| | | break; |
| | | } |
| | | }, |
| | |
| | | this.$message.error('单位列表获取失败'); |
| | | return; |
| | | } |
| | | this.formInline.depid = 1; |
| | | // this.formInline.depid = 1; |
| | | this.companyOption1 = this.treeData(res.result); |
| | | // this.getMetaData(); |
| | | this.formInline.depid = this.companyOption1[0].code; |
| | | this.listData.depcode = this.companyOption1[0].code; |
| | | |
| | | this.getQueryShowListData(); |
| | | }, |
| | | |
| | | // 查询 |
| | |
| | | this.codeForm.repassword = ''; |
| | | }, |
| | | getMetaData() { |
| | | this.listData.dirid = this.formInline.dirid |
| | | this.listData.depid = this.formInline.depid; |
| | | |
| | | dataLib_selectByPageForMeta(this.listData).then((res) => { |
| | | |
| | | this.tableData1 = res.result; |
| | |
| | | this.getMetaData(); |
| | | }, |
| | | handleChange1(value) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.formInline.depid = value; |
| | | this.getMetaData(); |
| | | this.listData.depcode = value; |
| | | this.getQueryShowListData(); |
| | | }, |
| | | //树列表生成 |
| | | treeData(source) { |
| | |
| | | this.queryInfo(); |
| | | } |
| | | }, |
| | | restDataLibSelectTabs() { |
| | | this.formInline.tab = "" |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10 |
| | | this.searchDataLibSelectTabs(); |
| | | |
| | | }, |
| | | async getDataLibSelectTabs() { |
| | | this.listData.tab = this.formInline.tab |
| | | const data = await dataLib_selectTabs(this.listData); |
| | |
| | | this.$message.error('列表调用失败'); |
| | | return; |
| | | } |
| | | |
| | | this.count = data.count; |
| | | this.dataType = data.result; |
| | | |
| | | this.dataTypeList = data.result; |
| | | }, |
| | | showDetail1(row) { |
| | | |
| | | this.showinfoBox1 = true; |
| | | |
| | | this.itemdetail1 = row; |
| | | }, |
| | | // 关闭查看 |
| | |
| | | } else { |
| | | this.listTypeData.filter = null; |
| | | } |
| | | |
| | | this.listTypeData.depcode = this.listData.depcode; |
| | | this.listTypeData.dirs = this.listData.dirs |
| | | const data = await dataLib_selectByPage(this.listTypeData); |
| | | if (data.code != 200) { |
| | | this.$message.error('调用列表失败,请联系工作人员!'); |
| | |
| | | /deeep/.el-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | /deeep/ .el-dialog__wrapper{ |
| | | z-index: 999; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | //二級菜单点击切换 |
| | | setChangeTwoMenu(res) { |
| | | |
| | | |
| | | |
| | | //关闭打开的信息窗体 |
| | | |
| | | |
| | | |
| | | this.showTwoMenuFlag = res.id; |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | |
| | | window.model.deleteObject(); |
| | | window.model = null; |
| | | } |
| | | |
| | | if (this.isMenuFlag != val) { |
| | | if (this.isMenuFlag == "d") { |
| | | this.clearAllAnalsy(); |
| | | } |
| | | if (this.isMenuFlag != res.id) { |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.isMenuFlag = val; |
| | | if (this.entityaLayers.length != 0) { |
| | |
| | | } |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | } |
| | | |
| | | this.showTwoMenuFlag = res.id; |
| | | |
| | | switch (val) { |
| | | case 'a': //图层管理 |
| | |
| | | break; |
| | | } |
| | | }, |
| | | clearAllAnalsy() { |
| | | // switch (this.showTwoMenuFlag) { |
| | | // case 'd1': |
| | | // that.isolineFlag = false; |
| | | // elevationTool.tf = that.isolineFlag; |
| | | // elevationTool.render(); |
| | | // break; |
| | | // case 'd2': |
| | | // that.isslopeFlag = false; |
| | | // elevationTool.type = 'none'; |
| | | // elevationTool.render(); |
| | | // break; |
| | | // } |
| | | }, |
| | | |
| | | |
| | | |
| | | setAnalsy(res) { |
| | | //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | var that = this; |
| | |
| | | v-show="menuVisible" |
| | | > |
| | | <div @click="addSameLevelNode()"> |
| | | <i class="el-icon-circle-plus-outline"></i> 同级增加 |
| | | <i class="el-icon-circle-plus-outline"></i> 添加图层组 |
| | | </div> |
| | | <div |
| | | class="add" |
| | | @click="addChildNode()" |
| | | v-show="firstLevel" |
| | | > |
| | | <i class="el-icon-circle-plus-outline"></i> 子级增加 |
| | | <i class="el-icon-circle-plus-outline"></i> 添加图层 |
| | | </div> |
| | | <div |
| | | class="delete" |
| | |
| | | // 关闭弹窗 |
| | | close(id) { |
| | | let index = this.PopupData.findIndex((item) => { |
| | | console.log(item); |
| | | console.log(item); |
| | | return item.id === id; |
| | | }); |
| | | let data = this.PopupData.splice(index, 1)[0]; |
| | | // data.close && data.close(); |
| | | |
| | | |
| | | |
| | | |
| | | if(this.$store.state.primitLayer != null){ |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null |
| | | } |
| | | |
| | | }, |
| | | // 打开弹窗 |
| | | open(title, value, style = {}) { |
| | |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="resetForm" |
| | | type="info" |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | >{{$t('common.reset')}}</el-button> |
| | | |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="submitForm" |
| | |
| | | :file-list="fileList" |
| | | > |
| | | <el-button |
| | | type="success" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | size="small" |
| | | >上传文件</el-button> |
| | |
| | | :label="$t('dataManage.dataUpObj.directoryName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="itemdetail.name" style="max-width: 400px;"/> |
| | | <el-input |
| | | v-model="itemdetail.name" |
| | | style="max-width: 400px;" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.catalogDescription')" |
| | |
| | | > |
| | | <el-input |
| | | v-model="itemdetail.descr" |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto;max-width: 400px;" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.fileExtension')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="itemdetail.exts" |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto;max-width: 400px;" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.inspectionItems')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="itemdetail.checks" |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto;max-width: 400px;" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.code')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="itemdetail.code" |
| | | disabled |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto;max-width: 400px;" |
| | |
| | | v-model="ruleForm.descr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.fileExtension')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="ruleForm.exts" |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto; " |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.inspectionItems')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="ruleForm.checks" |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto; " |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.code')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="ruleForm.code" |
| | | disabled |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto; " |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.catalogRemarks')" |
| | |
| | | }, |
| | | setDelNode() { |
| | | this.$confirm('此操作将永久删除该目录, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.remove(this.newNode, this.itemdetail) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.remove(this.newNode, this.itemdetail) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | }, |
| | | setNewNode(res) { |
| | | var id, lever, orderNum; |
| | |
| | | prop="tab" |
| | | :label="$t('dataManage.dictionaryManageObj.rangeAssociationTable')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="bak" |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="createTime" |
| | |
| | | prop="createUser" |
| | | :label="$t('dataManage.dictionaryManageObj.createPersonnel')" |
| | | /> |
| | | <el-table-column |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="bak" |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | /> |
| | | <!-- <el-table-column |
| | | min-width="100" |
| | | prop="updateTime" |
| | | :label="$t('dataManage.dictionaryManageObj.updateTime')" |
| | |
| | | min-width="100" |
| | | prop="updateUser" |
| | | :label="$t('dataManage.dictionaryManageObj.updatePersonnel')" |
| | | /> |
| | | /> --> |
| | | |
| | | <el-table-column |
| | | min-width="100" |
| | |
| | | v-model="queryForm.depName" |
| | | > |
| | | <el-option |
| | | :value="queryForm.depid" |
| | | :value="queryForm.depcode" |
| | | :label="queryForm.depName" |
| | | style=" height:auto" |
| | | > |
| | |
| | | v-model="queryForm.dirName" |
| | | > |
| | | <el-option |
| | | :value="queryForm.dirid" |
| | | :value="queryForm.dircode" |
| | | :label="queryForm.dirName" |
| | | style=" height:auto" |
| | | > |
| | |
| | | size="small" |
| | | >{{ $t('common.iquery') }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="btnStatus.delete" style="float:right"> |
| | | <el-form-item |
| | | v-if="btnStatus.delete" |
| | | style="float:right" |
| | | > |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | |
| | | icon="el-icon-delete" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="btnStatus.download" style="float:right"> |
| | | <el-form-item |
| | | v-if="btnStatus.download" |
| | | style="float:right" |
| | | > |
| | | <el-button |
| | | @click="downFormData" |
| | | icon="el-icon-download" |
| | |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="infoBox" |
| | | class="infoBox box_div" |
| | | v-show="showinfoBox" |
| | | > |
| | | <el-card class="box-card"> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div |
| | | class="contentBox" |
| | | style="padding:1%" |
| | |
| | | }} |
| | | </p> |
| | | </div> |
| | | </el-card> |
| | | |
| | | </div> |
| | | <el-dialog |
| | | width="80vh" |
| | |
| | | return; |
| | | } |
| | | this.companyOption1 = this.treeData(res.result); |
| | | this.queryForm.depid = this.companyOption1[0].id |
| | | this.queryForm.depcode = this.companyOption1[0].code |
| | | this.queryForm.depName = this.companyOption1[0].name |
| | | this.getQueryDirTree(); |
| | | |
| | |
| | | return; |
| | | } |
| | | this.companyOption = this.treeData(res.result); |
| | | this.queryForm.dirid = this.companyOption[0].id |
| | | this.queryForm.dirid = this.companyOption[0].id; |
| | | this.queryForm.dircode = this.companyOption[0].code |
| | | this.queryForm.dirName = this.companyOption[0].name |
| | | this.getQueryVerList(); |
| | | }, |
| | |
| | | handleChange(data, node, nodeData) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.queryForm.dircode = data.code; |
| | | this.queryForm.dirid = data.id; |
| | | this.queryForm.dirName = data.name |
| | | this.getQueryVerList() |
| | |
| | | handleChange1(data, node, nodeData) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.queryForm.depid = data.id; |
| | | this.queryForm.depcode = data.code; |
| | | this.queryForm.depName = data.name |
| | | this.getMetaData(); |
| | | }, |
| | | handleChange2(data, node, nodeData) { |
| | | |
| | | this.editForm.depid = data.id; |
| | | this.editForm.depcode = data.code; |
| | | this.editForm.depName = data.name |
| | | |
| | | }, |
| | | handleChange3(data, node, nodeData) { |
| | | |
| | | this.editForm.dirid = data.id; |
| | | this.editForm.dircode = data.code; |
| | | this.editForm.dirName = data.name |
| | | |
| | | }, |
| | |
| | | } |
| | | this.optionCount = this.treeData(res.result); |
| | | this.dirComPanyOption = this.treeData(res.result); |
| | | this.listData.dirid = this.optionCount[0].id; |
| | | this.listData.depcode = this.optionCount[0].code; |
| | | |
| | | }, |
| | | handleNodeClick(data) { |
| | |
| | | // }, |
| | | // 请求数据内容 |
| | | getMetaData() { |
| | | this.listData.depid = this.queryForm.depid; |
| | | this.listData.dirid = this.queryForm.dirid; |
| | | this.listData.depcode = this.queryForm.depcode; |
| | | this.listData.dircode = this.queryForm.dircode; |
| | | |
| | | this.listData.verid = this.queryForm.verid; |
| | | // this.listData.dirid = 57 |
| | |
| | | this.listData.name = null; |
| | | this.queryForm.dirid = this.companyOption[0].id; |
| | | this.queryForm.depid = this.companyOption1[0].id; |
| | | this.queryForm.dircode = this.companyOption[0].code; |
| | | this.queryForm.depcode = this.companyOption1[0].code; |
| | | this.queryForm.dirName = this.companyOption[0].name; |
| | | this.queryForm.depName = this.companyOption1[0].name; |
| | | this.getQueryVerList(); |
| | |
| | | sendAdd(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | console.log(this.editForm); |
| | | |
| | | this.fullscreenLoading = true; |
| | | insertMeta(this.editForm) |
| | | .then((res) => { |
| | |
| | | </div> |
| | | <div class="verSion_rightContent subpage_Div"> |
| | | <el-form |
| | | style=" height: 44px; |
| | | style=" height: 44px; |
| | | padding: 1%; |
| | | display: flex; |
| | | flex-direction: row-reverse; |
| | |
| | | //目录树点击事件 |
| | | handleNodeClick(data) { |
| | | //获取目录ID |
| | | this.dirId = data.id; |
| | | // this.dirId = data.id; |
| | | this.dirId = data.code |
| | | this.getSelectProject(); |
| | | }, |
| | | |
| | |
| | | var token = "?token=" + getToken() |
| | | var a = document.createElement("a") // 创建一个a标签元素 |
| | | a.style.display = "none" // 设置元素不可见 |
| | | a.href = BASE_URL + "/mark/downloadFile" + token + "&guid=" + guid |
| | | a.href = BASE_URL + "/export/downloadFile" + token + "&guid=" + guid |
| | | |
| | | document.body.appendChild(a) // 加入 |
| | | a.click() // 触发点击,下载 |
| | |
| | | <template> |
| | | <div class="logLog_box"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('operatManage.DownloadLog')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form :inline="true" ref="sizeForm" :model="sizeForm"> |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | :inline="true" |
| | | ref="sizeForm" |
| | | :model="sizeForm" |
| | | > |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item |
| | |
| | | v-model="sizeForm.type" |
| | | :placeholder="$t('operatManage.operationLogObj.pleaseSelect')" |
| | | > |
| | | <el-option :label="$t('downlog.type1')" value="1" /> |
| | | <el-option :label="$t('downlog.type2')" value="2" /> |
| | | <el-option :label="$t('downlog.type3')" value="3" /> |
| | | <el-option :label="$t('downlog.type4')" value="4" /> |
| | | <el-option |
| | | :label="$t('downlog.type1')" |
| | | value="1" |
| | | /> |
| | | <el-option |
| | | :label="$t('downlog.type2')" |
| | | value="2" |
| | | /> |
| | | <el-option |
| | | :label="$t('downlog.type3')" |
| | | value="3" |
| | | /> |
| | | <el-option |
| | | :label="$t('downlog.type4')" |
| | | value="4" |
| | | /> |
| | | <el-option |
| | | :label="$t('downlog.type5')" |
| | | value="5" |
| | | /> |
| | | <el-option |
| | | :label="$t('downlog.type6')" |
| | | value="6" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | icon="el-icon-search" |
| | | size="small" |
| | | type="primary" |
| | | >{{ $t("operatManage.operationLogObj.inquire") }}</el-button |
| | | > |
| | | >{{ $t("operatManage.operationLogObj.inquire") }}</el-button> |
| | | <el-button |
| | | @click="resAllTable" |
| | | icon="el-icon-delete" |
| | | type="info" |
| | | size="small" |
| | | >{{ $t("operatManage.operationLogObj.empty") }}</el-button |
| | | > |
| | | >{{ $t("operatManage.operationLogObj.empty") }}</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <div class="table_box subpage_Div" :style="styleVar"> |
| | | <div |
| | | class="table_box subpage_Div" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | |
| | | :formatter="formatData" |
| | | /> |
| | | </el-table> |
| | | <div style="margin-top: 25px" class="pagination_box"> |
| | | <div |
| | | style="margin-top: 25px" |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | return "专题图"; |
| | | break; |
| | | case 3: |
| | | return "元数据"; |
| | | return "源数据"; |
| | | break; |
| | | case 4: |
| | | return "业务数据"; |
| | | break; |
| | | case 5: |
| | | return "管道分析"; |
| | | break; |
| | | case 6: |
| | | return "统计报告"; |
| | | break; |
| | | default: |
| | | return "未知数据"; |
| | | break; |
| | |
| | | <template> |
| | | <div class="userInfo_box"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('userManage.userManage')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form ref="queryForm" :model="queryForm" :inline="true"> |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="queryForm" |
| | | :model="queryForm" |
| | | :inline="true" |
| | | > |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item |
| | | prop="uname" |
| | | :label="$t('userManage.userInfoObj.uname')" |
| | | > |
| | | <el-input v-model="queryForm.uname" style="width: 200px" /> |
| | | <el-input |
| | | v-model="queryForm.uname" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="depid" |
| | |
| | | <div> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="queryInfo('queryForm')" |
| | | icon="el-icon-search" |
| | | > |
| | | {{ $t("operatManage.ELM.search") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="resetInfo('queryForm')" |
| | |
| | | @click="editPwd" |
| | | type="warning" |
| | | icon="el-icon-unlock" |
| | | >{{ $t("common.changepassWord") }} |
| | | >{{ $t("common.changepassWord") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <div class="table_box" :style="styleVar"> |
| | | <div |
| | | class="table_box" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | class="table_height" |
| | | height="calc(100% - 57px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | |
| | | :label="$t('userManage.userInfoObj.status')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.status == 0" type="success">正常</el-tag> |
| | | <el-tag v-if="scope.row.status == 1" type="info">禁用</el-tag> |
| | | <el-tag v-if="scope.row.status == 2" type="warning">删除</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 0" |
| | | type="success" |
| | | >正常</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 1" |
| | | type="info" |
| | | >禁用</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 2" |
| | | type="warning" |
| | | >删除</el-tag> |
| | | <el-tag v-if="scope.row.status == 3">申请</el-tag> |
| | | <el-tag v-if="scope.row.status == 4" type="danger">拒批</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 4" |
| | | type="danger" |
| | | >拒批</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | |
| | | plain |
| | | @click="editInfo(scope.row)" |
| | | size="small" |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | >{{ $t("common.update") }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 25px" class="pagination_box"> |
| | | <div |
| | | style="margin-top: 25px" |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | v-if="behavior == '新增用户'" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.uid" autocomplete="off"></el-input> |
| | | <div class="isNewUser" v-if="isNewUser"> |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <div |
| | | class="isNewUser" |
| | | v-if="isNewUser" |
| | | > |
| | | <img src="../../assets/img/success.png" /> |
| | | {{ $t("userManage.userInfoObj.uid") }} |
| | | </div> |
| | |
| | | :label="$t('userManage.userInfoObj.username')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.uname" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.uname" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="sex" |
| | |
| | | :label="$t('userManage.userInfoObj.nativePlace')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.natives" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.natives" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="depid" |
| | |
| | | :label="$t('userManage.userInfoObj.identityCard')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.idcard" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.idcard" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="width: 45%"> |
| | |
| | | :label="$t('userManage.userInfoObj.job')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.job" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.job" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="edu" |
| | | :label="$t('userManage.userInfoObj.edu')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.edu" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.edu" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="addr" |
| | | :label="$t('userManage.userInfoObj.addr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.addr" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.addr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="email" |
| | | :label="$t('userManage.userInfoObj.email')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.email" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.email" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="contact" |
| | | :label="$t('userManage.userInfoObj.contact')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.contact" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.contact" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="status" |
| | |
| | | :label="$t('userManage.userInfoObj.remarks')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.bak" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.bak" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | </el-form> |
| | | <div v-if="behavior == '修改信息'" slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelEdit()">{{ |
| | | <div |
| | | v-if="behavior == '修改信息'" |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelEdit()" |
| | | >{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendEdit('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | >{{ $t("common.submit") }}</el-button> |
| | | </div> |
| | | <div v-else slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelAdd('editForm')">{{ |
| | | <div |
| | | v-else |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelAdd('editForm')" |
| | | >{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendAdd('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | >{{ $t("common.submit") }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | :visible.sync="resetPwd" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-form :model="pwdForm" ref="pwdForm" :rules="rules"> |
| | | <el-form |
| | | :model="pwdForm" |
| | | ref="pwdForm" |
| | | :rules="rules" |
| | | > |
| | | <el-form-item |
| | | prop="adminPwd" |
| | | :label="$t('common.AdminPassword')" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelReset - 'pwdForm'">{{ |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelReset - 'pwdForm'" |
| | | >{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendReset('pwdForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | >{{ $t("common.submit") }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | if (res.code == 200) { |
| | | this.depList = this.treeData(res.result); |
| | | this.treeOptions = this.treeData(res.result); |
| | | this.queryForm.depName = this.depList[0].name; |
| | | this.queryInfo.depid = this.depList[0].id; |
| | | this.queryInfo(); |
| | | } else { |
| | | this.$notify.error({ |
| | | title: res.code, |
| | |
| | | }); |
| | | } |
| | | }) |
| | | .catch((res) => {}); |
| | | .catch((res) => { }); |
| | | |
| | | queryPageUser({ |
| | | pageIndex: 1, |
| | |
| | | }); |
| | | } |
| | | }) |
| | | .catch((res) => {}); |
| | | .catch((res) => { }); |
| | | }, |
| | | treeData(source) { |
| | | let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 |
| | |
| | | //重置按钮 |
| | | resetInfo(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | this.queryForm.depName = this.depList[0].name; |
| | | this.queryInfo.depid = this.depList[0].id; |
| | | this.queryInfo(); |
| | | }, |
| | | //新增按钮 |
| | | showAddDialog() { |
| | |
| | | //重置密码 |
| | | editPwd() { |
| | | |
| | | |
| | | |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | |
| | | |
| | | if (std.length == 0) { |
| | | alert("请先选择用户"); |
| | | return; |
| | |
| | | handeditChange(data, node, nodeData) { |
| | | this.$set(this.editForm, "depid", data.id); |
| | | this.$set(this.editForm, "depName", data.name); |
| | | this.$set(this.editForm, "depcode", data.code); |
| | | this.$refs.editcaderHandle.dropDownVisible = false; |
| | | }, |
| | | //关闭弹出框 |
| | |
| | | |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | //提交编辑 |
| | | sendEdit(formName) { |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | disabled |
| | | v-model="itemdetail.code" |
| | | autocomplete="off" |
| | | style="max-width: 400px;" |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | |
| | | v-model="itemdetail.uncode" |
| | | autocomplete="off" |
| | | style="max-width: 400px;" |
| | |
| | | <template> |
| | | <div class="logLog_box"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('userManage.roleManage')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form ref="ruleForm" :model="roleForm" :inline="true"> |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="roleForm" |
| | | :inline="true" |
| | | > |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item :label="$t('userManage.RM.roleName')" prop="username"> |
| | | <el-input v-model="roleForm.username" style="width: 200px" /> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.roleName')" |
| | | prop="username" |
| | | > |
| | | <el-input |
| | | v-model="roleForm.username" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.ownedSystem')" |
| | |
| | | </div> |
| | | <div> |
| | | <el-form-item> |
| | | <el-button type="info" size="small" @click="resetForm('ruleForm')" |
| | | ><i class="el-icon-delete"></i> {{ |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="resetForm('ruleForm')" |
| | | ><i class="el-icon-delete"></i> {{ |
| | | $t("userManage.RM.reset") |
| | | }}</el-button |
| | | > |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="onSubmit('ruleForm')" |
| | | ><i class="el-icon-search"></i> {{ |
| | | ><i class="el-icon-search"></i> {{ |
| | | $t("userManage.RM.query") |
| | | }}</el-button |
| | | > |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | size="small" |
| | | @click="handleDelete()" |
| | | v-if="menuStatus.delete" |
| | | ><i class="el-icon-delete"></i> {{ |
| | | ><i class="el-icon-delete"></i> {{ |
| | | $t("common.delete") |
| | | }}</el-button |
| | | > |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | size="small" |
| | | @click="setInsertFormdialog" |
| | | v-if="menuStatus.insert" |
| | | ><i class="el-icon-circle-plus-outline"></i> {{ |
| | | ><i class="el-icon-circle-plus-outline"></i> {{ |
| | | $t("userManage.RM.add") |
| | | }}</el-button |
| | | > |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </el-form-item> --> |
| | | </el-form> |
| | | </div> |
| | | <div class="table_box subpage_Div" :style="styleVar"> |
| | | <div |
| | | class="table_box subpage_Div" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | height="calc(100% - 57px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | :label="$t('userManage.RM.index')" |
| | | width="70px" |
| | | /> |
| | | <el-table-column align="center" prop="id" v-if="false" /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="id" |
| | | v-if="false" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | |
| | | type="warning" |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | size="small" |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | >{{ $t("common.update") }}</el-button> |
| | | <el-button |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | size="small" |
| | | >{{ $t("common.see") }}</el-button |
| | | > |
| | | >{{ $t("common.see") }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 25px" class="pagination_box"> |
| | | <div |
| | | style="margin-top: 25px" |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | :label="$t('userManage.RM.isAdmin')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-radio v-model="insertform.isAdmin" label="1">是</el-radio> |
| | | <el-radio v-model="insertform.isAdmin" label="0">否</el-radio> |
| | | <el-radio |
| | | v-model="insertform.isAdmin" |
| | | label="1" |
| | | >是</el-radio> |
| | | <el-radio |
| | | v-model="insertform.isAdmin" |
| | | label="0" |
| | | >否</el-radio> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.remarks')" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button size="small" @click="insertFromClose">{{ |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | @click="insertFromClose" |
| | | >{{ |
| | | $t("common.close") |
| | | }}</el-button> |
| | | <el-button type="primary" size="small" @click="insertFromData">{{ |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="insertFromData" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | |
| | | :label="$t('userManage.RM.roleName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="updateform.name" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="updateform.name" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | |
| | | :label="$t('userManage.RM.isAdmin')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-radio v-model="updateform.isAdmin" label="1">是</el-radio> |
| | | <el-radio v-model="updateform.isAdmin" label="0">否</el-radio> |
| | | <el-radio |
| | | v-model="updateform.isAdmin" |
| | | label="1" |
| | | >是</el-radio> |
| | | <el-radio |
| | | v-model="updateform.isAdmin" |
| | | label="0" |
| | | >否</el-radio> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="updateform.descr" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="updateform.descr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.remarks')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="updateform.bak" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="updateform.bak" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button size="small" @click="updateFromClose">{{ |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | @click="updateFromClose" |
| | | >{{ |
| | | $t("common.close") |
| | | }}</el-button> |
| | | <el-button type="primary" size="small" @click="updateFromData">{{ |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="updateFromData" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <div class="leftTree subpage_Div box_div" v-if="showCata"> |
| | | <div |
| | | class="leftTree subpage_Div box_div" |
| | | v-if="showCata" |
| | | > |
| | | <div class="treeBox"> |
| | | <role-dep-tree></role-dep-tree> |
| | | </div> |
| | | <div class="btnBox"> |
| | | <el-button type="primary" size="small" @click="selectCataName" |
| | | >确定</el-button |
| | | > |
| | | <el-button type="info" size="small" @click="showCata = false" |
| | | >取消</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="selectCataName" |
| | | >确定</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="showCata = false" |
| | | >取消</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="infoBox box_div subpage_Div" v-show="showinfoBox"> |
| | | <div slot="header" class="clearfix"> |
| | | <div |
| | | class="infoBox box_div subpage_Div" |
| | | v-show="showinfoBox" |
| | | > |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{ $t("dataManage.styleObj.deInformation") }}</span> |
| | | <div style="float: right; cursor: pointer" @click="closeDetial"> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | </div> |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | onResize() { |
| | | onResize() { |
| | | this.timer && clearTimeout(this.timer); |
| | | this.timer = setTimeout(() => { |
| | | this.calHeight(); |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | | console.log(data); |
| | | |
| | | this.tableData = data.result; |
| | | this.count = data.count; |
| | | }, |
| | |
| | | this.updateform = row; |
| | | this.updateform.isAdmin = row.isAdmin.toString(); |
| | | const data = await selectDep({ id: row.depid }); |
| | | this.updateform.depValue = data.result.name; |
| | | if (data.result == null) { |
| | | this.updateform.depValue = null; |
| | | } else { |
| | | this.updateform.depValue = data.result.name; |
| | | } |
| | | |
| | | this.UpdateFormdialog = true; |
| | | }, |
| | | onSubmit() { |