src/api/api.js
@@ -942,6 +942,85 @@ export function dataCount_countExplorationPoints(params) { return request.get('/dataCount/countExplorationPoints', { params: params }); } export function dataCount_countWaterDamageByPrj(params) { return request.get('/dataCount/countWaterDamageByPrj', { params: params }); } export function dataCount_countUnstableSlopeByPrj(params) { return request.get('/dataCount/countUnstableSlopeByPrj', { params: params }); } export function dataCount_countLandSlideByPrj(params) { return request.get('/dataCount/countLandSlideByPrj', { params: params }); } export function dataCount_countHighSteepSlopeByPrj(params) { return request.get('/dataCount/countHighSteepSlopeByPrj', { params: params }); } export function dataCount_countGroundCollapseByPrj(params) { return request.get('/dataCount/countGroundCollapseByPrj', { params: params }); } export function dataCount_countDebrisFlowByPrj(params) { return request.get('/dataCount/countDebrisFlowByPrj', { params: params }); } export function dataCount_countCollapseByPrj(params) { return request.get('/dataCount/countCollapseByPrj', { params: params }); } export function dataCount_countExplorationReportByPrj(params) { return request.get('/dataCount/countExplorationReportByPrj', { params: params }); } export function dataCount_countSurveyWorksiteByPrj(params) { return request.get('/dataCount/countSurveyWorksiteByPrj', { params: params }); } export function dataCount_countLasAreaByPrj(params) { return request.get('/dataCount/countLasAreaByPrj', { params: params }); } export function dataCount_countOsgbAreaByPrj(params) { return request.get('/dataCount/countOsgbAreaByPrj', { params: params }); } export function dataCount_countMptAreaByPrj(params) { return request.get('/dataCount/countMptAreaByPrj', { params: params }); } export function dataCount_countDemAreaByPrj(params) { return request.get('/dataCount/countDemAreaByPrj', { params: params }); } export function dataCount_countDomAreaByPrj(params) { return request.get('/dataCount/countDomAreaByPrj', { params: params }); } export function dataCount_countDlgAreaByPrj(params) { return request.get('/dataCount/countDlgAreaByPrj', { params: params }); } export function dataCount_countExplorationPointByPrj(params) { return request.get('/dataCount/countExplorationPointByPrj', { params: params }); } export function dataCount_countLineLength(params) { return request.get('/dataCount/countLineLength', { params: params }); } export function dataCount_countGeoModelAreaByPrj(params) { return request.get('/dataCount/countGeoModelAreaByPrj', { params: params }); } export function dataCount_countGeologicHazardByPrj(params) { return request.get('/dataCount/countGeologicHazardByPrj', { params: params }); } export function dataCount_countVariousDataByPrj(params) { return request.get('/dataCount/countVariousDataByPrj', { params: params }); } //æ°æ®ç»è®¡=>ä¸è½½æ¥å src/api/screen.js
@@ -54,6 +54,17 @@ return request.get("/oneMap/countLargeCategories", { params: params }) } //æç §ç±»å«è®¿é®ç»è®¡è®¿é®æ¬¡æ° export function countByMajor(params) { return request.get("/oneMap/countByMajor", { params: params }) } //å ¨å½ç«åºåº§æ°ãé室ãç®¡éæ°ç export function countZhPipeStations(params) { return request.get("/oneMap/countZhPipeStations", { params: params }) src/components/chart/VisitCount.vue
@@ -4,7 +4,7 @@ <script> import * as echarts from "echarts" import { GetTypeVisitsCount } from "@/api/screen.js" import { countByMajor } from "@/api/screen.js" export default { data() { return { @@ -17,54 +17,16 @@ methods: { async initChart() { let data = [ { name: "user1", value: 10, }, { name: "user2", value: 20, }, { name: "user3", value: 23, }, { name: "user4", value: 44, }, { name: "user1", value: 10, }, { name: "user2", value: 20, }, { name: "user3", value: 53, }, { name: "user4", value: 24, }, { name: "user1", value: 10, }, { name: "user2", value: 20, }, ] const res = await GetTypeVisitsCount() const res = await countByMajor() let xAxis = [] let yAxis = [] if (res.code == 200) { var obj = res.result; data = res.result.map(item => { xAxis.push(item.name) yAxis.push(item.count) xAxis.push(item.m2) yAxis.push(item.sizes) }) } let option = { @@ -76,13 +38,34 @@ bottom: "15%", }, tooltip: { show: true show: true, formatter: function (data) { var val = obj.filter(res=>{ if(data.value == res.sizes){ return res } }) if(val.length>0){ var num = val[0].m3 if(num=="å¹³æ¹åç±³"){ num= " km²"; }else if(num=="å¹³æ¹ç±³"){ num= " m²"; }else if(num=="åç±³"){ num= " km"; } return val[0].m2+":<br/>"+val[0].sizes+ num; }else{ return data; } }, }, xAxis: { data: xAxis, axisLabel: { show: true, color: "#ffff", }, axisTick: { show: false, src/components/js/dataStatistics.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,245 @@ const dataStatistics= { statistics:[ { value: "dataTable", label: "ä¸ä¼ æ°æ®è¡¨æ ¼æ¨¡æ¿", isCount:false, isMenu:true }, { value: "uploadDir", label: "ä¸ä¼ ç®å½ç»ææ¨¡æ¿", isCount:false, isMenu:true }, { value: "dirFolder", label: "ç®å½ç»ææä»¶å¤¹æ¨¡æ¿", isCount:false, pid:0, isMenu:true, id:1, }, { value: "countSizes", label: "æ°æ®éç»è®¡", isCount:true, pid:0, isMenu:true, id:2, }, { value: "countServices", label: "æå¡è°ç¨éç»è®¡", isCount:true, pid:0, isMenu:true, id:3, }, { value: "countOperates", label: "ç¨æ·æµéç»è®¡", isCount:true, pid:0, isMenu:true, id:4, }, { value: "countExplorationPoints", label: "é»åæ°æ®ç»è®¡", isCount:true, pid:0, isMenu:true, id:5, }, { value: "countSizesByType", label: "æ°æ®æ ¼å¼ç»è®¡", isCount:true, pid:0, isMenu:true, id:6, },{ value: "countSizesByPrj", label: "é¡¹ç®æ°æ®ç»è®¡", isCount:true, pid:0, isMenu:true, id:7, },{ value: "countVariousDataByPrj", label: "é¡¹ç®æ°æ®åç±»ç»è®¡", isCount:true, pid:0, isMenu:true, id:11, }, { label: "æµç»(ESV)", isCount:true, pid:0, isMenu:false, id:8, },{ value: "countDlgAreaByPrj", label: "æ°å线åå¾ç»è®¡", isCount:true, pid:8, isMenu:true, id:11, },{ value: "countDemAreaByPrj", label: "æ°åé«ç¨æ¨¡åç»è®¡", isCount:true, pid:8, isMenu:true, id:12, },{ value: "countDomAreaByPrj", label: "æ°åæ£å°å½±åå¾ç»è®¡", isCount:true, pid:8, isMenu:true, id:13, },{ value: "countOsgbAreaByPrj", label: "徿æå½±æ¨¡åç»è®¡", isCount:true, pid:8, isMenu:true, id:14, },{ value: "countLasAreaByPrj", label: "æ¿å ç¹äºæ¨¡åç»è®¡", isCount:true, pid:8, isMenu:true, id:15, },{ value: "countLineLength", label: "管线é¿åº¦ç»è®¡", isCount:true, pid:8, isMenu:true, id:16, },{ value: "countMptAreaByPrj", label: "ä¸ç»´å°å½¢æ¨¡åç»è®¡", isCount:false, pid:8, isMenu:true, id:17, }, { label: "åå¯(EGE)", isCount:true, pid:0, isMenu:false, id:9, },{ value: "countExplorationPointByPrj", label: "忢ç¹ç»è®¡", isCount:true, pid:9, isMenu:true, id:18, },{ value: "countSurveyWorksiteByPrj", label: "åå¯å·¥ç¹ç»è®¡", isCount:true, pid:9, isMenu:true, id:19, },{ value: "countExplorationReportByPrj", label: "å坿¥åç»è®¡", isCount:true, pid:9, isMenu:true, id:20, },{ value: "countGeoModelAreaByPrj", label: "ä¸ç»´å°è´¨æ¨¡åç»è®¡", isCount:true, pid:9, isMenu:true, id:21, },{ label: "å°ç¾(EGD)", isCount:true, pid:0, isMenu:false, id:10, },{ value: "countGeologicHazardByPrj", label: "å°ç¾ç¹ç»è®¡", isCount:true, pid:10, isMenu:true, id:22, },{ value: "countCollapseByPrj", label: "å´©å¡ç»è®¡", isCount:true, pid:10, isMenu:true, id:23, },{ value: "countDebrisFlowByPrj", label: "æ³¥ç³æµç»è®¡", isCount:true, pid:10, isMenu:true, id:24, },{ value: "countGroundCollapseByPrj", label: "å°é¢å¡é·ç»è®¡", isCount:true, pid:10, isMenu:true, id:25, },{ value: "countHighSteepSlopeByPrj", label: "é«é¡è¾¹å¡ç»è®¡", isCount:true, pid:10, isMenu:true, id:26, },{ value: "countLandSlideByPrj", label: "æ»å¡ç»è®¡", isCount:true, pid:10, isMenu:true, id:27, } ,{ value: "countUnstableSlopeByPrj", label: "ä¸ç¨³å®æå¡ç»è®¡", isCount:true, pid:10, isMenu:true, id:28, },{ value: "countWaterDamageByPrj", label: "æ°´æ¯ç»è®¡", isCount:true, pid:10, isMenu:true, id:29, } ] }; export default dataStatistics; src/utils/auth.js
@@ -26,7 +26,7 @@ const TokenKey = 'Admin-Token'; export function getToken() { console.log(window.sessionStorage.getItem(TokenKey)); return window.sessionStorage.getItem(TokenKey); } src/utils/request.js
@@ -13,7 +13,7 @@ // create an axios instance const service = axios.create({ baseURL: BASE_URL, // apiçbase_url timeout: 35000, // 请æ±è¶ æ¶æ¶é´ timeout: -1, // 请æ±è¶ æ¶æ¶é´ headers: { "content-type": "application/json;charset=UTF-8", }, src/views/datamanage/dataStatistics.vue
@@ -8,7 +8,7 @@ <div class="contentBox"> <div class="content_Left subpage_Div" style="border: 1px solid #dcdfe6;"> <el-tree :data="treeData" @node-click="handleNodeClick" node-key="id" ref="tree" highlight-current :props="defaultProps"> :props="defaultProps" accordion> </el-tree> </div> <div class="content_Right subpage_Div" style="border: 1px solid #dcdfe6;"> @@ -21,24 +21,32 @@ <el-option label="æ°æ®åå¨é" value="sjccl"> </el-option> <el-option label="æä»¶ä¸ªæ°" value="sjts"> <el-option label="æä»¶ä¸ªæ°" v-show="queryData.value != 'countExplorationPoints'" value="sjts"> </el-option> <el-option label="æ°é" v-show="queryData.value == 'countExplorationPoints'" value="sjts"> </el-option> </el-select> </el-form-item> <el-form-item v-show="!setCountFlag" label="æ»è®¡:"> <el-form-item v-show="!setCountFlag && setExcelType" label="æ»è®¡:"> {{ dataVolume }} </el-form-item> <el-form-item> <el-form-item v-show="setExcelType"> <el-button icon="el-icon-c-scale-to-original" size="small" type="warning" @click="setCountFlagChange(1)">{{ $t("shuJuGuanLi.butten.Report") }}</el-button> </el-form-item> <el-form-item> <el-form-item v-show="setExcelType"> <el-button icon="el-icon-pie-chart" size="small" type="primary" @click="setCountFlagChange(2)">{{ $t("shuJuGuanLi.butten.Histogram") }}</el-button> </el-form-item> <el-form-item v-show="setDownloadType"> <el-form-item v-show="!setExcelType"> <el-select v-model="prjCunt" size="small" @change="setPrjCuntChange" placeholder=""> <el-option v-for="item in prjOption" :key="item.id" :label="item.name" :value="item.code"> </el-option> </el-select> </el-form-item> <el-form-item> <el-button icon="el-icon-download" size="small" type="success" @click="setCountFlagChange(3)">{{ $t("shuJuGuanLi.butten.Download") }}</el-button> </el-form-item> @@ -52,8 +60,8 @@ <el-table-column v-if="queryData.value == 'countServices'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countServices'" :formatter="formatterColumn2" prop="count" key="2" align="center" :label="$t('dataManage.dataStaticObj.type2')"> <el-table-column v-if="queryData.value == 'countServices'" :formatter="formatterColumn2" prop="count" key="2" align="center" :label="$t('dataManage.dataStaticObj.type2')"> </el-table-column> <el-table-column v-if="queryData.value == 'countSizes'" prop="m1" key="3" align="center" :label="$t('dataManage.dataStaticObj.type3')"> @@ -67,8 +75,8 @@ <el-table-column v-if="queryData.value == 'countOperates'" prop="m1" key="5" align="center" :label="$t('dataManage.dataStaticObj.type5')"> </el-table-column> <el-table-column v-if="queryData.value == 'countOperates'" prop="count" :formatter="formatterColumn3" key="6" align="center" :label="$t('dataManage.dataStaticObj.type7')"> <el-table-column v-if="queryData.value == 'countOperates'" prop="count" :formatter="formatterColumn3" key="6" align="center" :label="$t('dataManage.dataStaticObj.type7')"> </el-table-column> <el-table-column v-if="queryData.value == 'countSizesByType'" prop="m1" key="3" align="center" :label="$t('common.fileType')"> @@ -98,8 +106,134 @@ <el-table-column v-if="queryData.value == 'countExplorationPoints'" prop="sizes" key="4" align="center" :formatter="formatterColumn" :label="$t('dataManage.dataStaticObj.type4')"> </el-table-column> <el-table-column v-if="queryData.value == 'countExplorationPoints'" prop="count" :formatter="formatterColumn3" <el-table-column v-if="queryData.value == 'countExplorationPoints'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countWaterDamageByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countWaterDamageByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countUnstableSlopeByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countUnstableSlopeByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLandSlideByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLandSlideByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countHighSteepSlopeByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countHighSteepSlopeByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGroundCollapseByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGroundCollapseByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDebrisFlowByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDebrisFlowByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countCollapseByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countCollapseByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countExplorationReportByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countExplorationReportByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countSurveyWorksiteByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countSurveyWorksiteByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLasAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLasAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countOsgbAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countOsgbAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countMptAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countMptAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDemAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDemAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDomAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDomAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDlgAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countDlgAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countExplorationPointByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countExplorationPointByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLineLength'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countLineLength'" prop="len" :formatter="formatterColumn5" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGeoModelAreaByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGeoModelAreaByPrj'" prop="area" :formatter="formatterColumn4" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGeologicHazardByPrj'" prop="m1" key="1" align="center" :label="$t('dataManage.dataStaticObj.type1')"> </el-table-column> <el-table-column v-if="queryData.value == 'countGeologicHazardByPrj'" prop="count" :formatter="formatterColumn3" key="4" align="center" :label="$t('dataManage.dataStaticObj.type9')"> </el-table-column> </el-table> </div> @@ -144,48 +278,38 @@ dataCount_downloadReport, dataCount_countSizesByType, dataCount_countSizesByPrj, dataCount_countExplorationPoints dataCount_countExplorationPoints, dataCount_countWaterDamageByPrj, dataCount_countUnstableSlopeByPrj, dataCount_countLandSlideByPrj, dataCount_countHighSteepSlopeByPrj, dataCount_countGroundCollapseByPrj, dataCount_countDebrisFlowByPrj, dataCount_countCollapseByPrj, dataCount_countExplorationReportByPrj, dataCount_countSurveyWorksiteByPrj, dataCount_countLasAreaByPrj, dataCount_countOsgbAreaByPrj, dataCount_countMptAreaByPrj, dataCount_countDemAreaByPrj, dataCount_countDomAreaByPrj, dataCount_countDlgAreaByPrj, dataCount_countExplorationPointByPrj, dataCount_countLineLength, dataCount_countGeoModelAreaByPrj, dataCount_countGeologicHazardByPrj, project_selectDirAll, dataCount_countVariousDataByPrj } from "../../api/api.js"; import { t } from 'element-ui/lib/locale'; import dataStatistics from '@/components/js/dataStatistics.js' export default { name: "DataStatistics", components: { MyBread }, data() { return { treeData: [ { id: 5, label: "项ç®ç»è®¡æ°æ®", value: "countSizesByPrj", children: [], }, { id: 2, label: "å使°æ®ç»è®¡", value: "countSizes", children: [], }, { id: 4, label: "æ°æ®æ ¼å¼ç»è®¡", value: "countSizesByType", children: [], }, { id: 3, label: "ç¨æ·æµéç»è®¡", value: "countOperates", children: [], }, { id: 1, label: "æå¡è°ç¨éç»è®¡", value: "countServices", children: [], }, { id: 6, label: "é»åæ°æ®ç»è®¡", value: "countExplorationPoints", children: [], }, ], tjlxData: { region: 'sjccl', @@ -211,13 +335,54 @@ setDownloadType: false, dataVolume: null, reportFormsData: [], setExcelType: true, prjOption: [], prjCunt: null, prjData: [], }; }, mounted() { this.setStartDataCount(); this.setTreeDataStart(); }, methods: { setTreeDataStart() { this.treeData = []; var val = dataStatistics.statistics; var std = []; for (var i = 0; i < val.length; i++) { if (val[i].isCount) { std.push(val[i]) } } var obj = this.getTreeData(std); this.treeData = obj this.setStartDataCount(); setStartDataCount }, getTreeData(source) { let cloneData = JSON.parse(JSON.stringify(source)); // å¯¹æºæ°æ®æ·±åº¦å é if (cloneData.length != 0) { return cloneData.filter((father) => { // å¾ªç¯ææé¡¹ let branchArr = cloneData.filter((child) => father.id == child.pid); // 对æ¯IDï¼åå«ä¸ä¸çº§èåï¼å¹¶è¿åæ°æ® branchArr.length > 0 ? (father.children = branchArr) : ''; // ç»ç¶çº§æ·»å ä¸ä¸ªchildren屿§ï¼å¹¶èµå¼ // å±äºåä¸å¯¹è±¡é®é¢ï¼ä¾å¦ï¼ä»¤ a=bãc=1 ï¼ç¶åå令 b.c=c ï¼ é£ä¹ a.c=b.c=c=1 ï¼åçï¼åç»ä»¤ c.d=2 ,é£ä¹ a.c.d 乿¯=2ï¼ // ç±æ¤å¾ªç¯å¤æ¬¡åï¼å°±è½å½¢æç¸åºçæ å½¢æ°æ®ç»æ return father.pid == 0; // è¿åä¸çº§èå }); } else { this.$message({ message: 'ææ èåæ æ°æ®', type: 'warning' }); } }, setTjlxDataChange() { this.showCountEchart() }, @@ -234,13 +399,29 @@ formatterColumn3(row) { return row.count + "个" }, formatterColumn5(row) { return row.len + "<span style='font-size:16px;'>km<span>" }, formatterColumn4(row) { if (row.area >= 1000000) { return (row.area / 1000000).toFixed(3) + "<span style='font-size:16px;'>km²<span>" } else { return (row.area).toFixed(3) + "<span style='font-size:16px; '>m²<span>" } }, setDownLoadRow(rows) { var obj = '' if (this.queryData.value == "countVariousDataByPrj") { obj = "&code=" + this.prjCunt } var url = BASE_URL + "/dataCount/downloadReport?token=" + getToken() + "&id=" + rows.id; rows.id + obj; $("#Iframe1").attr("src", url).click(); }, @@ -276,19 +457,32 @@ var m1 = "æ»è®¡" for (var i in this.tableData) { sizes += this.tableData[i].sizes; if (this.queryData.value == 'countDlgAreaByPrj' || this.queryData.value == 'countGeoModelAreaByPrj') { count += this.tableData[i].area; } else if (this.queryData.value == 'countLineLength') { count += this.tableData[i].len; } else { count += this.tableData[i].count; } } if (this.queryData.value == 'countDlgAreaByPrj' || this.queryData.value == 'countGeoModelAreaByPrj') { val.area = count; } else if (this.queryData.value == 'countLineLength') { val.len = count; } else { val.count = count; } val.sizes = sizes; val.m1 = m1; this.reportFormsData = JSON.parse(JSON.stringify(this.tableData)); this.reportFormsData.push(val) }, //ç»è®¡åæ¢ setCountFlagChange(res) { switch (res) { case 1: this.getReportForms(); this.setCountFlag = true; break; @@ -319,6 +513,30 @@ this.modelData = data.result; this.listData.count = data.count; }, getEchartFormate(val) { var obj = this.prjData.filter(res => { if (res.m1 == val) { return res; } })[0]; var message = ""; if (obj) { if (obj.m2 == 'area') { if (obj.area > 1000000) { message = (obj.area / 1000000).toFixed(3) + "<span style='font-size:16px; '>km²<span>"; } else { message = obj.area + "<span style='font-size:16px; '>m²<span>"; } } else if (obj.m2 == 'count') { message = obj.count + '个'; } else if (obj.m2 == 'len') { message = obj.len + "<span style='font-size:16px;'>km<span>"; } } return message; }, //Echartå¾è¡¨æ¾ç¤º showCountEchart() { var dom = document.getElementById("chart_11"); @@ -344,7 +562,44 @@ let data = []; window.sjName = this.queryData.value window.sjType = this.tjlxData.region if (sjName == 'countServices' || sjName == 'countOperates') { if (sjName == 'countDemAreaByPrj' || sjName == 'countMptAreaByPrj' || sjName == 'countOsgbAreaByPrj' || sjName == 'countLasAreaByPrj' || sjName == 'countDomAreaByPrj' || sjName == 'countDlgAreaByPrj' || sjName == 'countGeoModelAreaByPrj' ) { for (var i in this.tableData) { if (this.tableData[i].count > yMax) { yMax = this.tableData[i].area; } data.push(this.tableData[i].area); var m1 = this.tableData[i].m1; dataAxis.push(m1); this.dataVolume += this.tableData[i].area; } if (parseFloat(this.dataVolume) >= 1000000) { this.dataVolume = parseFloat(this.dataVolume / 1000000).toFixed(3) + "km²"; } else { this.dataVolume = this.dataVolume.toFixed(3) + "m²" } } else if (sjName == 'countWaterDamageByPrj' || sjName == 'countUnstableSlopeByPrj' || sjName == 'countLandSlideByPrj' || sjName == 'countHighSteepSlopeByPrj' || sjName == 'countGroundCollapseByPrj' || sjName == 'countDebrisFlowByPrj' || sjName == 'countCollapseByPrj' || sjName == 'countExplorationReportByPrj' || sjName == 'countSurveyWorksiteByPrj' || sjName == 'countExplorationPointByPrj' || sjName == 'countGeologicHazardByPrj' ) { for (var i in this.tableData) { if (this.tableData[i].count > yMax) { yMax = this.tableData[i].count; @@ -353,9 +608,43 @@ var m1 = this.tableData[i].m1; dataAxis.push(m1); this.dataVolume += this.tableData[i].count; } this.dataVolume += "个" } else if (sjName == 'countLineLength') { for (var i in this.tableData) { if (this.tableData[i].count > yMax) { yMax = this.tableData[i].len; } data.push(this.tableData[i].len); var m1 = this.tableData[i].m1; dataAxis.push(m1); this.dataVolume += this.tableData[i].len; } this.dataVolume = this.dataVolume.toFixed(3) +"km"; } else if (sjName == 'countServices' || sjName == 'countOperates') { for (var i in this.tableData) { if (this.tableData[i].count > yMax) { yMax = this.tableData[i].count; } data.push(this.tableData[i].count); var m1 = this.tableData[i].m1; dataAxis.push(m1); this.dataVolume += this.tableData[i].count; } this.dataVolume += "次" } else if (sjName == 'countVariousDataByPrj') { for (var i in this.tableData) { var val = this.tableData[i].m2; var obj = this.tableData[i][val]; if (val == 'area') { if (obj > 1000000) { obj = (obj / 1000000).toFixed(3) } } data.push(obj); var m1 = this.tableData[i].m1; dataAxis.push(m1); } } else { for (var i in this.tableData) { @@ -393,6 +682,7 @@ for (let i = 0; i < data.length; i++) { dataShadow.push(yMax); } var that = this; this.option = { grid: { left: "5%", @@ -412,12 +702,48 @@ formatter: function (params) { var p_name = params[0].axisValue; var p_val; if (sjName == 'countServices' || sjName == 'countOperates') { if (that.queryData.value == 'countServices' || that.queryData.value == 'countOperates') { p_val = p_name + '<br/>è®¿é®æ¬¡æ° ï¼' + params[0].data + '次' } else if (that.queryData.value == 'countDemAreaByPrj' || that.queryData.value == 'countMptAreaByPrj' || that.queryData.value == 'countOsgbAreaByPrj' || that.queryData.value == 'countLasAreaByPrj' || that.queryData.value == 'countDomAreaByPrj' || that.queryData.value == 'countDlgAreaByPrj' || that.queryData.value == 'countGeoModelAreaByPrj' ) { if (params[0].data >= 1000000) { p_val = p_name + '<br/>' + (params[0].data / 1000000).toFixed(3) + "<span style='font-size:20px; '>km²<span>" } else { p_val = p_name + '<br/>' + params[0].data.toFixed(3) + "<span style='font-size:20px; '>m²<span>" } } else if (sjName == 'countLineLength') { p_val = p_name + '<br/>è·ç¦»:' + params[0].data.toFixed(3) + "<span style='font-size:16px;'>km<span>"; } else if (sjName == 'countWaterDamageByPrj' || sjName == 'countUnstableSlopeByPrj' || sjName == 'countLandSlideByPrj' || sjName == 'countHighSteepSlopeByPrj' || sjName == 'countGroundCollapseByPrj' || sjName == 'countDebrisFlowByPrj' || sjName == 'countCollapseByPrj' || sjName == 'countExplorationReportByPrj' || sjName == 'countDlgAreaByPrj' || sjName == 'countExplorationPointByPrj' || sjName == 'countGeologicHazardByPrj' || sjName == 'countSurveyWorksiteByPrj' ) { p_val = p_name + '<br/>' + params[0].data + '个' } else if (sjName == "countVariousDataByPrj") { p_val = p_name + '<br/>' + that.getEchartFormate(p_name) } else { if (sjType == 'sjts') { if (that.queryData.value != "countExplorationPoints") { p_val = p_name + '<br/>æä»¶ä¸ªæ°:' + params[0].data + '个' } else if (that.queryData.value == "countExplorationPoints") { p_val = p_name + '<br/>个æ°:' + params[0].data + '个' } } else { if (params[0].data >= 1024) { p_val = p_name + '<br/>æ°æ®åå¨é:' + (params[0].data / 1024).toFixed(3) + 'GB' @@ -520,6 +846,8 @@ }, //æ ç¹å»äºä»¶ handleNodeClick(data, node, prop) { if (data.isMenu == false) return this.prjCunt = ""; this.setCountFlag = false; this.queryData = data; this.listData.code = data.value; @@ -530,42 +858,116 @@ handleIsopenSelect() { this.$forceUpdate() }, async setPrjCuntChange() { const data = await dataCount_countVariousDataByPrj({ code: this.prjCunt }) if (!data || data.code != 200) { return; } this.tableData = data.result; this.prjData = data.result; this.showCountEchart(); }, //æ¥è¯¢ç»è®¡ä¿¡æ¯ async setQueryCountData() { this.tjlxData.region = 'sjccl'; var data, val; this.setDownloadType = true; this.tjlxData.flag = true; this.setExcelType = true; if (this.queryData.value == "countServices") { this.tjlxData.flag = false; data = await dataCount_selectCountServices(); } else if (this.queryData.value == "countSizes") { data = await dataCount_selectCountSizes(); } else if (this.queryData.value == "countOperates") { this.tjlxData.flag = false; data = await dataCount_selectCountOperates(); } else if (this.queryData.value == "countSizesByType") { data = await dataCount_countSizesByType(); this.setDownloadType = false; } else if (this.queryData.value == "countSizesByPrj") { data = await dataCount_countSizesByPrj(); this.setDownloadType = false; } else if (this.queryData.value == "countExplorationPoints") { data = await dataCount_countExplorationPoints(); } if (this.queryData.value == 'countServices' || this.queryData.value == 'countOperates') { else if (this.queryData.value == "countWaterDamageByPrj") { this.tjlxData.flag = false; data = await dataCount_countWaterDamageByPrj(); } else if (this.queryData.value == "countUnstableSlopeByPrj") { this.tjlxData.flag = false; data = await dataCount_countUnstableSlopeByPrj(); } else if (this.queryData.value == "countLandSlideByPrj") { this.tjlxData.flag = false; data = await dataCount_countLandSlideByPrj(); } else if (this.queryData.value == "countHighSteepSlopeByPrj") { this.tjlxData.flag = false; data = await dataCount_countHighSteepSlopeByPrj(); } else if (this.queryData.value == "countGroundCollapseByPrj") { this.tjlxData.flag = false; data = await dataCount_countGroundCollapseByPrj(); } else if (this.queryData.value == "countDebrisFlowByPrj") { this.tjlxData.flag = false; data = await dataCount_countDebrisFlowByPrj(); } else if (this.queryData.value == "countCollapseByPrj") { this.tjlxData.flag = false; data = await dataCount_countCollapseByPrj(); } else if (this.queryData.value == "countExplorationReportByPrj") { this.tjlxData.flag = false; data = await dataCount_countExplorationReportByPrj(); } else if (this.queryData.value == "countSurveyWorksiteByPrj") { this.tjlxData.flag = false; data = await dataCount_countSurveyWorksiteByPrj(); } else if (this.queryData.value == "countLasAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countLasAreaByPrj(); } else if (this.queryData.value == "countOsgbAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countOsgbAreaByPrj(); } else if (this.queryData.value == "countMptAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countMptAreaByPrj(); } else if (this.queryData.value == "countDemAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countDemAreaByPrj(); } else if (this.queryData.value == "countDomAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countDomAreaByPrj(); } else if (this.queryData.value == "countDlgAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countDlgAreaByPrj(); } else if (this.queryData.value == "countExplorationPointByPrj") { this.tjlxData.flag = false; data = await dataCount_countExplorationPointByPrj(); } else if (this.queryData.value == "countLineLength") { this.tjlxData.flag = false; data = await dataCount_countLineLength(); } else if (this.queryData.value == "countGeoModelAreaByPrj") { this.tjlxData.flag = false; data = await dataCount_countGeoModelAreaByPrj(); } else if (this.queryData.value == "countGeologicHazardByPrj") { this.tjlxData.flag = false; data = await dataCount_countGeologicHazardByPrj(); } else if (this.queryData.value == "countVariousDataByPrj") { this.setDownloadType = false; this.tjlxData.flag = false; this.setCountFlag = false; this.setExcelType = false; data = await project_selectDirAll(); if (!data || data.code != 200) { return; } else { this.tjlxData.flag = true; this.prjOption = []; var val_std = [{ name: 'å ¨é¨', code: "ALL", }] this.prjOption = val_std.concat(data.result); this.prjCunt = this.prjOption[0].code this.setPrjCuntChange(); return } } if (data.code != 200) { if (!data || data.code != 200) { return; } @@ -647,6 +1049,7 @@ .el-table /deep/ th, .el-table /deep/ tr { background-color: transparent !important; } } } src/views/datamanage/dataUpdata.vue
@@ -1972,12 +1972,12 @@ var fs2 = null; if (this.formInline.uploadType == "v1") { //åæä»¶é¡¹ç®ä¸ä¼ fs2 = document.getElementById("metaDataFile"); if (this.pathBak != null && this.pathBak.indexOf("checkMain") > -1) { if (fs2.files.length == 0) { return this.$message.error("è¯·éæ©éè¦ä¸ä¼ çå æ°æ®æä»¶"); } } // fs2 = document.getElementById("metaDataFile"); // if (this.pathBak != null && this.pathBak.indexOf("checkMain") > -1) { // if (fs2.files.length == 0) { // return this.$message.error("è¯·éæ©éè¦ä¸ä¼ çå æ°æ®æä»¶"); // } // } } else if (this.formInline.uploadType == "v2") { //æ´ä½é¡¹ç®ä¸ä¼ fs2 = document.getElementById("wbsDataFile"); src/views/maintenance/databaseMonitoring.vue
@@ -34,7 +34,6 @@ if (url.indexOf('{webHost}') != -1) { url = url.replace('{webHost}', webHost) } if (url.indexOf('token=') != -1) { this.sql_Url = url + getToken(); } else { src/views/maintenance/eventlogManage.vue
@@ -297,7 +297,7 @@ async getList() { const data = await resOpSelectByPageAndCount(this.listData); console.log(data); if (data.code != 200) { return this.$message.error("å表è°ç¨å¤±è´¥"); } src/views/maintenance/opexController.vue
@@ -288,7 +288,8 @@ this.$store.state.currentPerms = data.perms; var index = data.url; if (index != null) { if (index.indexOf('http') != -1) { if (index.indexOf('{webHost}') != -1) { this.$store.commit('getIframe', data.url); index = 'dataIfream'; } src/views/maintenance/parameterConfiguration.vue
@@ -253,7 +253,7 @@ if (data.code != 200) { this.$message.error("å表è°ç¨å¤±è´¥"); } console.log(data); this.tableData = data.result; this.count = data.count; }, src/views/maintenance/systemMonitoring copy.vue
@@ -836,7 +836,7 @@ Window.ws.onmessage = (msg) => { // console.log('æ¥èªæå¡å¨ç«¯çæ°æ®ï¼' + msg.data); //ç嬿¥åæ¥èªæå¡ç«¯çä¿¡æ¯ var data = JSON.parse(msg.data); console.log(data); if (data.userInfo != undefined) { that.SetTableData1(data); } else if (data.resInfo != undefined) { src/views/maintenance/systemMonitoring.vue
@@ -1,72 +1,40 @@ <template> <div class="systemMonitoring_box"> <My-bread :list="[ <My-bread :list="[ `${$t('operatManage.operatManage')}`, `${$t('operatManage.systemMonitoring')}`, ]" ></My-bread> ]"></My-bread> <el-divider /> <div class="content_Box"> <div class="cloumn_Box1"> <div class="flex_Box1 subpage_Div"> <el-tabs v-model="activeName" @tab-click="handleClick"> <el-tab-pane :label="$t('operatManage.systemMonitoringObj.abnormalResources')" name="first" > <el-tab-pane :label="$t('operatManage.systemMonitoringObj.abnormalResources')" name="first"> <div class="table_b"> <el-table :data="resInfo" style="width: 100%; height: 100%"> <el-table-column prop="id" :label="$t('operatManage.systemMonitoringObj.resourceID')" > <el-table-column prop="id" :label="$t('operatManage.systemMonitoringObj.resourceID')"> </el-table-column> <el-table-column prop="name" :label="$t('operatManage.systemMonitoringObj.resourceName')" > <el-table-column prop="name" :label="$t('operatManage.systemMonitoringObj.resourceName')"> </el-table-column> <el-table-column prop="bak" :label=" $t('operatManage.systemMonitoringObj.resourceState') " > <el-table-column prop="bak" :label="$t('operatManage.systemMonitoringObj.resourceState') "> </el-table-column> <el-table-column prop="createTime" :label="$t('operatManage.systemMonitoringObj.abnormaltime')" show-overflow-tooltip > <el-table-column prop="createTime" :label="$t('operatManage.systemMonitoringObj.abnormaltime')" show-overflow-tooltip> </el-table-column> </el-table> </div> </el-tab-pane> <el-tab-pane :label=" $t('operatManage.systemMonitoringObj.serviceResourceStatus') " name="second" > <el-tab-pane :label="$t('operatManage.systemMonitoringObj.serviceResourceStatus') " name="second"> <div id="resUseChart" style="width: 101vh; height: 30vh"></div> </el-tab-pane> <el-tab-pane :label="$t('operatManage.systemMonitoringObj.userloginStatus')" name="third" > <el-tab-pane :label="$t('operatManage.systemMonitoringObj.userloginStatus')" name="third"> <div id="userLoginChart" style="width: 101vh; height: 30vh"></div> </el-tab-pane> <el-tab-pane :label=" $t('operatManage.systemMonitoringObj.resourceOperationStatus') " name="fourth" > <div id="operateCountChart" style="width: 101vh; height: 30vh" ></div> <el-tab-pane :label="$t('operatManage.systemMonitoringObj.resourceOperationStatus') " name="fourth"> <div id="operateCountChart" style="width: 101vh; height: 30vh"></div> </el-tab-pane> </el-tabs> </div> @@ -78,27 +46,13 @@ </div> <div class="table_b"> <el-table :data="tableData" style="width: 100%"> <el-table-column align="center" type="index" :label="$t('operatManage.ELM.index')" width="100px" /> <el-table-column prop="uid" :label="$t('operatManage.systemMonitoringObj.userID')" > <el-table-column align="center" type="index" :label="$t('operatManage.ELM.index')" width="100px" /> <el-table-column prop="uid" :label="$t('operatManage.systemMonitoringObj.userID')"> </el-table-column> <el-table-column prop="uname" :label="$t('operatManage.systemMonitoringObj.username')" > <el-table-column prop="uname" :label="$t('operatManage.systemMonitoringObj.username')"> </el-table-column> <el-table-column prop="loginTime" :label="$t('operatManage.systemMonitoringObj.onlineTime')" fixed="right" > <el-table-column prop="loginTime" :label="$t('operatManage.systemMonitoringObj.onlineTime')" fixed="right"> </el-table-column> </el-table> </div> @@ -119,16 +73,14 @@ <label> {{ $t("operatManage.systemMonitoringObj.haveBeenUsed") }}</label > }}</label> <p>{{ memInfo.use }}</p> </div> <div class="height_title"> <label> {{ $t("operatManage.systemMonitoringObj.usageRate") }}</label > }}</label> <p>{{ memInfo.usage }}</p> </div> </div> @@ -137,16 +89,14 @@ <label> {{ $t("operatManage.systemMonitoringObj.totalMemory") }}</label > }}</label> <p>{{ memInfo.totalMem }}</p> </div> <div class="height_title"> <label> {{ $t("operatManage.systemMonitoringObj.remainingMemory") }}</label > }}</label> <p>{{ memInfo.remainMem }}</p> </div> </div> @@ -163,10 +113,7 @@ {{ $t("operatManage.systemMonitoringObj.cpuMonitoring") }} </div> </div> <div id="Sys_cpu_chart" style="width: 100%; height: 86%; margin-top: 8%" ></div> <div id="Sys_cpu_chart" style="width: 100%; height: 86%; margin-top: 8%"></div> </div> <div class="flex_Box subpage_Div"> <div style="width: 100%; height: 34px"> @@ -633,12 +580,15 @@ }, ], }; let myChart1 = this.$echarts.init(document.getElementById("shuiwen")); var dome = document.getElementById("shuiwen") if (dome) { let myChart1 = this.$echarts.init(dome); myChart1.setOption(options); window.addEventListener("resize", function () { myChart1.resize(); }); } }, lineChart3() { var data = [ @@ -803,6 +753,24 @@ ); myChart4.setOption(option); }, isJSON(str) { if (typeof str == 'string') { try { var obj = JSON.parse(str); if (typeof obj == 'object' && obj) { return true; } else { return false; } } catch (e) { return false; } } } }, created() { if (Window.ws != null) { @@ -818,8 +786,9 @@ var that = this; Window.ws.onmessage = (msg) => { // console.log('æ¥èªæå¡å¨ç«¯çæ°æ®ï¼' + msg.data); //ç嬿¥åæ¥èªæå¡ç«¯çä¿¡æ¯ var obj = this.isJSON(msg.data); if (obj) { var data = JSON.parse(msg.data); console.log(data); if (data.userInfo != undefined) { that.SetTableData1(data); } else if (data.resInfo != undefined) { @@ -827,6 +796,8 @@ } else if (data.operateCount != undefined) { that.SetTableData3(data); } } }; }, @@ -853,10 +824,12 @@ .table_b .el-table /deep/ .el-table__expanded-cell { background-color: transparent !important; } .table_b .el-table /deep/ th, .table_b .el-table /deep/ tr { background-color: transparent !important; } .content_Box { width: 100%; height: 90%; @@ -864,12 +837,14 @@ display: flex; flex-direction: column; justify-content: space-around; .cloumn_Box { width: 100%; height: 38%; display: flex; justify-content: space-between; .flex_Box { width: 30.5%; height: 88%; @@ -881,37 +856,37 @@ width: 46px; height: 20px; float: left; background: url("../../assets/img/systemMonitoring/å¾å± 38.png") no-repeat; background: url("../../assets/img/systemMonitoring/å¾å± 38.png") no-repeat; background-size: 100% 100%; } .image2 { width: 34px; height: 34px; float: left; background: url("../../assets/img/systemMonitoring/å¾å± 37.png") no-repeat; background: url("../../assets/img/systemMonitoring/å¾å± 37.png") no-repeat; background-size: 100% 100%; } .image3 { width: 32px; height: 32px; float: left; background: url("../../assets/img/systemMonitoring/å¾å± 40.png") no-repeat; background: url("../../assets/img/systemMonitoring/å¾å± 40.png") no-repeat; background-size: 100% 100%; } } .ycsBox { width: 495px; height: 182px; background: url("../../assets/img/systemMonitoring/å¾å± 39.png") no-repeat; background: url("../../assets/img/systemMonitoring/å¾å± 39.png") no-repeat; background-size: 100% 100%; border: 1px; display: flex; align-items: center; } .ycContent { width: 100%; padding: 1%; @@ -921,11 +896,13 @@ justify-content: center; } } .imageTitle { float: left; margin-left: 10px; } .ycTltle { width: 100%; margin-top: 8%; @@ -935,6 +912,7 @@ color: #009cff; text-align: center; } .heteroTitle { width: 100%; text-align: center; @@ -948,6 +926,7 @@ // text-align: center; } .top_Box1 { width: 96%; height: 91%; @@ -955,17 +934,20 @@ margin-left: 4%; display: flex; justify-content: space-between; .top_box_left { width: 59%; height: 100%; display: flex; justify-content: space-between; .left_title { width: 48%; height: 100%; display: flex; flex-direction: column; justify-content: space-around; .height_title { width: 100%; height: 48%; @@ -977,6 +959,7 @@ } } } .top_box_right { width: 39%; height: 100%; @@ -989,6 +972,7 @@ display: flex; justify-content: space-between; .flex_Box1 { width: 64%; height: 92%; @@ -996,6 +980,7 @@ border-radius: 5px; } .flex_Box { width: 30.5%; height: 92%; src/views/userManage/templateManage.vue
@@ -31,7 +31,8 @@ size="small">{{ $t('common.append') }}</el-button> </el-form-item> <el-form-item> <el-button v-if="btnStatus.delete" icon="el-icon-delete" @click="delTableData" type="danger" size="small">{{ <el-button v-if="btnStatus.delete" icon="el-icon-delete" @click="delTableData" type="danger" size="small">{{ $t('common.delete') }}</el-button> </el-form-item> <el-form-item> @@ -72,6 +73,7 @@ <el-table-column align="center" prop="createTime" :label="$t('dataManage.vmobj.createontime')" :formatter="formatData" /> <el-table-column min-width="100" :label="$t('dataManage.dictionaryManageObj.operation')"> <template slot-scope="scope"> <el-button v-if="btnStatus.select" @click="showDetail(scope.$index, scope.row)" type="primary" plain size="small">{{ $t('dataManage.dictionaryManageObj.lookOver') }}</el-button> @@ -236,41 +238,14 @@ report_deletes, report_update, } from "../../api/api.js"; import dataStatistics from '../../components/js/dataStatistics.js' import { getToken } from "@/utils/auth"; export default { name: "templateManage", components: { MyBread }, data() { return { options: [ { value: "countSizes", label: "æ°æ®éç»è®¡", }, { value: "countServices", label: "æå¡è°ç¨éç»è®¡", }, { value: "countOperates", label: "ç¨æ·æµéç»è®¡", }, { value: "dataTable", label: "ä¸ä¼ æ°æ®è¡¨æ ¼æ¨¡æ¿", }, { value: "uploadDir", label: "ä¸ä¼ ç®å½ç»ææ¨¡æ¿", }, { value: "dirFolder", label: "ç®å½ç»ææä»¶å¤¹æ¨¡æ¿", }, { value: "countExplorationPoints", label: "é»åæ°æ®ç»è®¡", }, ], options: [], itemdetail: {}, showinfoBox: false, behavior: "æ°å¢", @@ -321,6 +296,12 @@ window.removeEventListener("resize", this.onResize); }, mounted() { var obj = dataStatistics.statistics.filter(res => { if (res.isMenu != false) return res; }) this.options = obj window.addEventListener("resize", this.onResize); this.calHeight(); }, @@ -388,7 +369,10 @@ return res } }) if (val.length > 0 && val[0].label) { this.itemdetail.code = val[0].label; } // if (row.code.indexOf("countSizes") != -1) { // this.itemdetail.code = "æ°æ®éç»è®¡"; // } else if (row.code.indexOf("countServices") != -1) { @@ -452,7 +436,7 @@ break; } } console.log(name) if (name.indexOf('ç»è®¡') > -1) { this.typeOption = [{ label: "World模æ¿", @@ -484,12 +468,38 @@ handleEdit(index, row) { this.behavior = "ä¿®æ¹"; this.editForm = row; if (row.name.indexOf('ç»è®¡') > -1) { this.typeOption = [{ label: "World模æ¿", value: "1" }, { label: "Excel模æ¿", value: "2" }] } else { this.typeOption = [{ label: "World模æ¿", value: "1" }, { label: "Excel模æ¿", value: "2" }, { label: "Zip模æ¿", value: "3" }] } if (parseInt(row.type) == 1) { this.selectFileType = ".docx"; } else if (parseInt(row.type) == 2) { this.selectFileType = ".xlsx"; } this.rowGuid = row.guid; this.dialogVisible = true; }, //å é¤ @@ -552,6 +562,7 @@ }, //æ°å¢ä¸æ¡æ°æ® async addInsertData() { this.editForm.guid = this.rowGuid; const data = await report_insert(this.editForm); if (data.code != 200) { return this.$message.error("æ°å¢å¤±è´¥"); @@ -578,10 +589,24 @@ }, //æä»¶ä¸ä¼ async geteditFile(res) { if (parseInt(this.editForm.type) == 1) { this.selectFileType = ".docx"; } else if (parseInt(this.editForm.type) == 2) { this.selectFileType = ".xlsx"; } this.$nextTick(() => { this.setEditFile(res) }) }, async setEditFile(res) { if (res == 0) { if (this.editForm.type == "") { return this.$message("è¯·éæ©ä¸ä¼ æä»¶ç±»å"); } $("#editFile").click(); } else if (res == 1) { @@ -597,7 +622,7 @@ formData.append("file", fs.files[0]); var val_data = await report_upload(formData); if (val_data.code == 200) { // this.editForm.guid = val_data.result; this.editForm.guid = val_data.result; this.rowGuid = val_data.result; this.$message({ message: "ä¸ä¼ æåï¼", @@ -641,7 +666,7 @@ }, editFormStart() { this.editForm.code = "countSizes"; this.editForm.code = "dataTable"; var name; for (var i in this.options) { if (this.options[i].value == this.editForm.code) { @@ -713,6 +738,7 @@ }, }; </script> <style lang="less" scoped> //@import url(); å¼å ¥å ¬å ±cssç±» .authorityManagement_box { @@ -779,4 +805,3 @@ } } </style>