| | |
| | | <template> |
| | | <div class="archive"> |
| | | <div |
| | | class="archive box_div" |
| | | v-loading="loading" |
| | | element-loading-background="rgba(0, 0, 0, 0.8)" |
| | | > |
| | | <div class="top_header"> |
| | | <div class="top_left"> |
| | | <My-bread :list="[`${$t('synthesis.synthesis')}`, `${$t('synthesis.archive')}`]"></My-bread> |
| | | </div> |
| | | <div class="top_right"> |
| | | <el-form |
| | | :inline="true" |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-input |
| | | v-model="formInline.tab" |
| | | suffix-icon="el-icon-search" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | @click="searchDataLibSelectTabs" |
| | | class="primaries" |
| | | >{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | @click="restDataLibSelectTabs" |
| | | type="info" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | class="primaries" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="box_item"> |
| | | <div class="box_item "> |
| | | |
| | | <div class="box_left">资料类别</div> |
| | | <div class="box_cont"> |
| | | |
| | | <div v-if="isShowFirstCheck"> |
| | | <el-checkbox-group v-model="checkedDataType"> |
| | | <el-checkbox |
| | | @change="handleCheckedDataTypeChange(item)" |
| | | v-for="(item, index) in showList" |
| | | :label="item.name" |
| | | :key="index" |
| | | >{{item.name}}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | <div |
| | | class="box_div" |
| | | v-if="!isShowFirstCheck" |
| | | class="menu_div" |
| | | v-for="(item, index) in showList" |
| | | :key="index" |
| | | @click="changeListDataType(item)" |
| | | > |
| | | <el-checkbox |
| | | v-if="isShowFirstCheck" |
| | | v-model="item.isCheckedFlag" |
| | | :checked="item.isCheckedFlag" |
| | | ></el-checkbox> |
| | | <div style="margin-left: 5px">{{ item.name }}</div> |
| | | |
| | | <div |
| | | :class="{menuActive:dataTypeName == item.name}" |
| | | style="margin-left: 5px" |
| | | >{{ item.name }}</div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="box_right"> |
| | | <div |
| | | class="box_div box_menu" |
| | | class="menu_div subpage_Div" |
| | | @click="moreEvent(1)" |
| | | > |
| | | {{ $t('synthesis.more') }} |
| | | </div> |
| | | <div |
| | | class="box_div box_menu" |
| | | class="menu_div subpage_Div " |
| | | @click="checkEvent(1)" |
| | | > |
| | | <i class="el-icon-plus"></i> {{ $t('synthesis.Multiplechoice') }} |
| | | <i class="el-icon-plus"></i> |
| | | <span v-if="!isShowFirstCheck">{{ $t('synthesis.Multiplechoice') }}</span> |
| | | <span v-if="isShowFirstCheck">{{ $t('synthesis.Singlechoice') }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box_item"> |
| | | <div class="box_item "> |
| | | <div class="box_left">项目名称</div> |
| | | <div class="box_cont"> |
| | | <div v-if=" isShowSecondCheck"> |
| | | <el-checkbox-group v-model="checkedEntryName"> |
| | | <el-checkbox |
| | | @change="handleCheckedEntryNameChange(item)" |
| | | v-for="(item, index) in showList1" |
| | | :label="item.name" |
| | | :key="index" |
| | | >{{item.name}}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | <div |
| | | class="box_div" |
| | | v-if="!isShowSecondCheck" |
| | | class="menu_div" |
| | | v-for="(item, index) in showList1" |
| | | :key="index" |
| | | @click="changeListEntryName(item)" |
| | | > |
| | | <el-checkbox |
| | | v-if="isShowSecondCheck" |
| | | v-model="item.isCheckedFlag" |
| | | :checked="item.isCheckedFlag" |
| | | ></el-checkbox> |
| | | <div style="margin-left: 5px">{{ item.name }}</div> |
| | | <div |
| | | :class="{menuActive:EntryName == item.name}" |
| | | style="margin-left: 5px" |
| | | >{{ item.name }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="box_right"> |
| | | <div |
| | | class="box_div box_menu" |
| | | class="menu_div subpage_Div" |
| | | @click="moreEvent(2)" |
| | | > |
| | | {{ $t('synthesis.more') }} |
| | | </div> |
| | | <div |
| | | class="box_div box_menu" |
| | | class="menu_div subpage_Div" |
| | | @click="checkEvent(2)" |
| | | > |
| | | <i class="el-icon-plus"></i> {{ $t('synthesis.Multiplechoice') }} |
| | | <i class="el-icon-plus"></i> |
| | | <span v-if="!isShowSecondCheck">{{ $t('synthesis.Multiplechoice') }}</span> |
| | | <span v-if="isShowSecondCheck">{{ $t('synthesis.Singlechoice') }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="bottom_content"> |
| | | <div class="bottom_left"> |
| | | <!-- <div class="box_div">当前搜索关键词:</div> --> |
| | | |
| | | <div class="bottom_left "> |
| | | <!-- <div class="menu_div">当前搜索关键词:</div> --> |
| | | <div> |
| | | <ul> |
| | | <li>搜索类型</li> |
| | |
| | | <li |
| | | @click="getMenuChange(2)" |
| | | :class="{ menuActive: !isMenuActive }" |
| | | style="border-bottom: 1px solid white" |
| | | style="border-bottom: 1px solid #dcdfe6" |
| | | > |
| | | 文件数据源 |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <div |
| | | v-if="isMenuActive" |
| | | class="bottom_right" |
| | | > |
| | | <ul> |
| | | <li |
| | | v-for="(item, index) in dataType" |
| | | :key="index" |
| | | > |
| | | <div |
| | | class="box_div" |
| | | @click="getShowTable(item)" |
| | | > |
| | | {{ item.tabDesc }} ({{ item.tab }}) |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div |
| | | v-if="!isMenuActive" |
| | | class="bottom_right" |
| | | > |
| | | <el-form |
| | | :inline="true" |
| | | :model="queryForm" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-cascader |
| | | v-model="queryForm.dirid" |
| | | :show-all-levels="false" |
| | | :options="companyOption" |
| | | @change="handleChange" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-cascader |
| | | v-model="queryForm.depid" |
| | | :show-all-levels="false" |
| | | :options="companyOption1" |
| | | @change="handleChange1" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | |
| | | <!-- <el-form-item> |
| | | |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | @click="deleteMetaInfo" |
| | | icon="el-icon-delete" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item> |
| | | <el-button |
| | | @click="setBatchDownload" |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >批量下载</el-button> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <div class="bottom_right"> |
| | | <div> |
| | | <el-form |
| | | :inline="true" |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | | > |
| | | <!-- <el-form-item> |
| | | <el-cascader |
| | | v-model="formInline.dirid" |
| | | :show-all-levels="false" |
| | | :options="companyOption" |
| | | @change="handleChange" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }" |
| | | ></el-cascader> --> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-cascader |
| | | v-model="formInline.depid" |
| | | :show-all-levels="false" |
| | | :options="companyOption1" |
| | | @change="handleChange1" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-input |
| | | v-model="formInline.tab" |
| | | suffix-icon="el-icon-search" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | @click="searchDataLibSelectTabs" |
| | | size="mini" |
| | | >{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | @click="restDataLibSelectTabs" |
| | | type="info" |
| | | size="mini" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="mini" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getdownloadList" |
| | | size="mini" |
| | | >{{ |
| | | $t('synthesis.DownloadList') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div v-if="isMenuActive"> |
| | | <ul> |
| | | <li |
| | | v-for="(item, index) in dataType" |
| | | :key="index" |
| | | > |
| | | <div |
| | | class="menu_div" |
| | | @click="getShowTable(item)" |
| | | > |
| | | {{ item.tabDesc }} |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div |
| | | class="boxCard" |
| | | v-if="!isMenuActive" |
| | | v-for="(item,index) in tableData1" |
| | | > |
| | | <el-card class="box-card"> |
| | |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.createontime')}} : {{format(item.createTime)}} </div> |
| | | </el-card> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="panerPage"> |
| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | |
| | | :title="dialogtitle" |
| | | :visible.sync="dialogVisible" |
| | | width="90%" |
| | | top="5vh" |
| | | top="10vh" |
| | | :modal="false" |
| | | style="z-index:999" |
| | | :before-close="handleClose" |
| | | > |
| | | <!-- 条件--> |
| | | <el-dialog |
| | | width="37%" |
| | | :visible.sync="conditionVisible" |
| | | append-to-body |
| | | :modal="false" |
| | | title="查询条件" |
| | | :before-close="handleconditionClose" |
| | | > |
| | |
| | | > |
| | | <el-form-item> |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | @change="fieldChange($event)" |
| | | v-model="formSql.field" |
| | | > |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-select v-model="formSql.condition"> |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="formSql.condition" |
| | | > |
| | | <el-option |
| | | v-for="item in condOption" |
| | | :key="item.value" |
| | |
| | | <el-dialog |
| | | width="30%" |
| | | :visible.sync="innerVisible" |
| | | append-to-body |
| | | > |
| | | <div class="contentBox"> |
| | | <ul> |
| | |
| | | <el-dialog |
| | | width="30%" |
| | | :visible.sync="outerVisible" |
| | | append-to-body |
| | | :modal="false" |
| | | > |
| | | <el-form |
| | | :model="fromfile" |
| | |
| | | |
| | | </el-table> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <!-- <el-form-item> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | |
| | | >取消</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('common.passworld')" |
| | | :visible.sync="downloadLogVisible" |
| | | width="30%" |
| | | top="10vh" |
| | | :modal="false" |
| | | :show-close="false" |
| | | :before-close="handleCloseDown" |
| | | > |
| | | <el-form |
| | | :model="codeForm" |
| | | :rules="rules" |
| | | ref="codeForm" |
| | | label-width="100px" |
| | | class="codeForm" |
| | | > |
| | | <el-form-item |
| | | :label="$t('common.passworld')" |
| | | prop="password" |
| | | > |
| | | <el-input |
| | | type="password" |
| | | v-model="codeForm.password" |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('common.SPassword')" |
| | | prop="repassword" |
| | | > |
| | | <el-input |
| | | type="password" |
| | | v-model="codeForm.repassword" |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="download1('codeForm')" |
| | | >{{$t('common.confirm')}}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="closeDown1('codeForm')" |
| | | >{{$t('common.cancel')}}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-dialog> |
| | |
| | | icon="el-icon-search" |
| | | >{{$t('common.reset')}}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="info" |
| | | @click="downloadForm()" |
| | | icon="el-icon-download" |
| | | >{{$t('common.download')}}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider class="eldivider" /> |
| | | <div style="width:100%;height:400px;"> |
| | |
| | | ></el-table-column> |
| | | <el-table-column |
| | | v-if="isMenuActive" |
| | | min-width="80" |
| | | min-width="120" |
| | | align="center" |
| | | :label="$t('common.operate')" |
| | | > |
| | |
| | | @size-change="handleSizeChange1" |
| | | @current-change="handleCurrentChange1" |
| | | :current-page="listTypeData.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listTypeData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count1" |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <div |
| | | class="downloadBox" |
| | | class="downloadBox box_div subpage_Div" |
| | | v-if="showCodeBox" |
| | | > |
| | | <h4 style="padding: 20px">{{$t('common.passworld')}}</h4> |
| | |
| | | <div |
| | | style="float:right;margin-right:10px" |
| | | @click="downBatchFormData()" |
| | | ><i |
| | | style="color:#FFF" |
| | | class="el-icon-download" |
| | | ></i></div> |
| | | ><i class="el-icon-download"></i></div> |
| | | <div style="height:580px"> |
| | | |
| | | <el-table |
| | |
| | | @size-change="batchSizeChange" |
| | | @current-change="batchCurrentChange" |
| | | :current-page="batchPage.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="batchPage.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="batchPage.count" |
| | |
| | | :title=" $t('synthesis.rangequery')" |
| | | :visible.sync="dialogMapVisible" |
| | | width="90%" |
| | | top="10vh" |
| | | > |
| | | <div style="height:700px"> |
| | | <map-sdk v-if='showMapVisible'></map-sdk> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :visible.sync="downloadListVisible" |
| | | width="90%" |
| | | top="10vh" |
| | | > |
| | | <div style="height:700px"> |
| | | <el-table |
| | | :data="downloadTableData" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="index" |
| | | width="50" |
| | | label="序号" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | property="descr" |
| | | label="标题" |
| | | > </el-table-column> |
| | | <el-table-column |
| | | property="name" |
| | | label="文件名称" |
| | | > </el-table-column> |
| | | <el-table-column |
| | | property="createName" |
| | | label="出图人" |
| | | > </el-table-column> |
| | | <el-table-column |
| | | property="createTime" |
| | | :formatter="formatData" |
| | | label="日期" |
| | | > |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | @click.native.prevent="downloadMap(scope.$index, scope.row)" |
| | | :underline="false" |
| | | >下载</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination |
| | | @size-change="downloadSizeChange" |
| | | @current-change="downloadCurrentChange" |
| | | :current-page="downloadPage.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="downloadPage.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="downloadPage.count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </el-dialog> |
| | | <iframe |
| | |
| | | selectdirTab, |
| | | selectdepTab, |
| | | deleteMeta, |
| | | dataLib_selectProject, |
| | | dataLib_selectBaseType, |
| | | dataLib_selectBusinessType, |
| | | dataLib_selectPageCountForDownload, |
| | | } from '../../api/api'; |
| | | import $ from 'jquery' |
| | | import { getToken } from '@/utils/auth'; |
| | | import { data_type, project_name } from '../../components/js/archive.js'; |
| | | // import { data_type, project_name } from '../../components/js/archive.js'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | import MapSdk from '../../components/mapsdk.vue' |
| | | export default { |
| | |
| | | } |
| | | }; |
| | | return { |
| | | loading: false, |
| | | downloadLogVisible: false, |
| | | downloadListVisible: false, |
| | | data_type: [], |
| | | project_name: [], |
| | | checkedDataType: [], |
| | | checkedEntryName: [], |
| | | dataTypeName: '不限', |
| | | EntryName: '不限', |
| | | conditionVisible: false, |
| | | formSql: { |
| | | field: '', |
| | |
| | | fromSqlflag: false, |
| | | filedsOption: [], |
| | | condOption: [], |
| | | queryForm: { |
| | | dirid: null, |
| | | |
| | | formInline: { |
| | | tab: '', fileName: '', dirid: null, |
| | | depid: null, |
| | | }, |
| | | formInline: { tab: '', fileName: '' }, |
| | | codeForm: { |
| | | password: '', |
| | | repassword: '', |
| | |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | count: 0 |
| | | }, |
| | | downloadTableData: [], |
| | | downloadPage: { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | count: 0, |
| | | name: null, |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | | |
| | | newList() { |
| | | this.listType.forEach((item) => { |
| | | this.$set(item, 'isCheckedFlag', false); |
| | |
| | | return this.listType; |
| | | }, |
| | | showList() { |
| | | this.listType = data_type; |
| | | this.listType = this.data_type; |
| | | if (this.showFirstAll == false) { |
| | | var showList = []; |
| | | if (this.newList.length > 8) { |
| | |
| | | return this.listProject; |
| | | }, |
| | | showList1() { |
| | | this.listProject = project_name; |
| | | this.listProject = this.project_name; |
| | | if (this.showSecondAll == false) { |
| | | var showList1 = []; |
| | | if (this.newList1.length > 8) { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | handleCloseDown() { |
| | | |
| | | }, |
| | | download1() { |
| | | if (this.codeForm.password == '' || this.codeForm.repassword == '') { |
| | | return this.$message.error('密码不能为空'); |
| | | } |
| | | if (this.codeForm.password != this.codeForm.repassword) { |
| | | return; |
| | | } |
| | | var passwordreg = |
| | | /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$/; |
| | | if (!passwordreg.test(this.codeForm.password)) { |
| | | return; |
| | | } |
| | | this.downloadLogVisible = false; |
| | | var obj = { |
| | | entities: [this.listTypeData.name], // bpachydrogeology,bhydrogeologyattach |
| | | filter: this.listTypeData.filter, |
| | | pwd: encrypt.encrypt(this.codeForm.password) |
| | | }; |
| | | this.loading = true; |
| | | var that = this; |
| | | $.ajax({ |
| | | url: BASE_URL + "/dataLib/downloadEntityReq?token=" + getToken(), |
| | | type: "POST", |
| | | data: JSON.stringify(obj), |
| | | dataType: 'json', // html、json、jsonp、script、text |
| | | contentType: "application/json", // "application/x-www-form-urlencoded" |
| | | success: (data) => { |
| | | if (data.code == 200) { |
| | | that.downloadflie(data, this.codeForm.password) |
| | | |
| | | } |
| | | }, |
| | | error: function (e) { |
| | | } |
| | | }); |
| | | }, |
| | | downloadflie(data, pwd) { |
| | | this.codeForm = { |
| | | password: '', |
| | | repassword: '', |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + data.result + "&pwd=" + encrypt.encrypt(pwd); |
| | | $("#downFrame").attr("src", url).click(); |
| | | this.loading = false; |
| | | }, |
| | | closeDown1() { |
| | | this.codeForm = { |
| | | password: '', |
| | | repassword: '', |
| | | } |
| | | this.downloadLogVisible = false; |
| | | }, |
| | | downloadForm() { |
| | | this.downloadLogVisible = true; |
| | | }, |
| | | downloadMap(index, rows) { |
| | | var token = getToken() |
| | | var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + rows.guid + "&pwd=" + rows.pwd; |
| | | $("#downFrame").attr("src", url).click(); |
| | | }, |
| | | downloadSizeChange(val) { |
| | | |
| | | this.downloadPage.pageIndex = 1; |
| | | this.downloadPage.pageSize = val; |
| | | this.getdownloadListData(); |
| | | }, |
| | | downloadCurrentChange(val) { |
| | | this.downloadPage.pageIndex = val; |
| | | this.getdownloadListData(); |
| | | }, |
| | | getdownloadList() { |
| | | this.downloadPage = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | count: 0, |
| | | name: null, |
| | | } |
| | | this.downloadListVisible = true; |
| | | this.getdownloadListData(); |
| | | }, |
| | | async getdownloadListData() { |
| | | const data = await dataLib_selectPageCountForDownload(this.downloadPage); |
| | | if (data.code != 200) { |
| | | this.downloadListVisible = false; |
| | | return this.$message.error('下载列表获取失败'); |
| | | } |
| | | |
| | | this.downloadTableData = data.result; |
| | | |
| | | this.downloadPage.count = data.count; |
| | | }, |
| | | handleCheckedEntryNameChange(res) { |
| | | if (this.checkedEntryName.indexOf(res.name) != -1) { |
| | | if (res.name == "不限") { |
| | | this.checkedEntryName = ['不限'] |
| | | } else { |
| | | var index = this.checkedEntryName.indexOf('不限') |
| | | if (index > -1) { |
| | | this.checkedEntryName.splice(index, 1); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | handleCheckedDataTypeChange(res) { |
| | | if (this.checkedDataType.indexOf(res.name) != -1) { |
| | | if (res.name == "不限") { |
| | | this.checkedDataType = ['不限'] |
| | | } else { |
| | | var index = this.checkedDataType.indexOf('不限') |
| | | if (index > -1) { |
| | | this.checkedDataType.splice(index, 1); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }, |
| | | changeListDataType(res) { |
| | | if (this.isShowFirstCheck == false) { |
| | | this.dataTypeName = res.name; |
| | | } |
| | | }, |
| | | changeListEntryName(res) { |
| | | if (this.isShowSecondCheck == false) { |
| | | this.EntryName = res.name; |
| | | } |
| | | }, |
| | | getSpaceMapVisibale() { |
| | | this.dialogMapVisible = true; |
| | | this.showMapVisible = true; |
| | |
| | | switch (res) { |
| | | case 1: |
| | | this.isShowFirstCheck = !this.isShowFirstCheck; |
| | | if (this.isShowFirstCheck == false) { |
| | | this.checkedDataType = [] |
| | | this.dataTypeName = '不限'; |
| | | } else { |
| | | this.dataTypeName = null; |
| | | this.checkedDataType = ['不限'] |
| | | } |
| | | |
| | | break; |
| | | case 2: |
| | | this.isShowSecondCheck = !this.isShowSecondCheck; |
| | | if (this.isShowSecondCheck == false) { |
| | | this.checkedEntryName = [] |
| | | this.EntryName = '不限'; |
| | | } else { |
| | | this.EntryName = null; |
| | | this.checkedEntryName = ['不限'] |
| | | } |
| | | break; |
| | | } |
| | | }, |
| | | getMenuChange(res) { |
| | | |
| | | this.getQueryDirTree(); |
| | | this.formInline.tab = "" |
| | | switch (res) { |
| | | case 1: |
| | |
| | | pageSize: 10, |
| | | depid: null, |
| | | dirid: null, |
| | | name: null |
| | | name: null, |
| | | verid: null |
| | | } |
| | | this.getQueryDirTree(); |
| | | |
| | | this.isMenuActive = false; |
| | | this.getMetaData(); |
| | | break; |
| | | } |
| | | }, |
| | |
| | | this.$message.error('单位列表获取失败'); |
| | | return; |
| | | } |
| | | this.queryForm.dirid = 1; |
| | | this.formInline.dirid = 1; |
| | | this.companyOption = this.treeData(res.result); |
| | | this.getQueryDepTree(); |
| | | }, |
| | |
| | | this.$message.error('单位列表获取失败'); |
| | | return; |
| | | } |
| | | this.queryForm.depid = 1; |
| | | this.formInline.depid = 1; |
| | | this.companyOption1 = this.treeData(res.result); |
| | | this.getMetaData(); |
| | | // this.getMetaData(); |
| | | }, |
| | | |
| | | // 查询 |
| | |
| | | }, |
| | | // 重置查询 |
| | | resetInfo(formName) { |
| | | this.queryForm.name = ''; |
| | | this.formInline.name = ''; |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.name = null; |
| | |
| | | getBatchMetaData() { |
| | | this.batchPage.dirid = '1' |
| | | this.batchPage.depid = '1'; |
| | | |
| | | dataLib_selectByPageForMeta(this.batchPage).then((res) => { |
| | | this.batchPage.count = res.count; |
| | | this.tableData2 = res.result; |
| | |
| | | this.codeForm.repassword = ''; |
| | | }, |
| | | getMetaData() { |
| | | this.listData.dirid = this.queryForm.dirid |
| | | this.listData.depid = this.queryForm.depid; |
| | | this.listData.dirid = this.formInline.dirid |
| | | this.listData.depid = this.formInline.depid; |
| | | dataLib_selectByPageForMeta(this.listData).then((res) => { |
| | | |
| | | this.tableData1 = res.result; |
| | |
| | | handleChange(value) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.queryForm.dirid = value; |
| | | this.formInline.dirid = value; |
| | | this.getMetaData(); |
| | | }, |
| | | handleChange1(value) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.queryForm.depid = value; |
| | | this.formInline.depid = value; |
| | | this.getMetaData(); |
| | | }, |
| | | //树列表生成 |
| | |
| | | this.getCollapseTable(this.filedsLayer); |
| | | |
| | | }, |
| | | |
| | | async showDetail2(res) { |
| | | var val = res.tab.split("."); |
| | | const data = await dataLib_selectTabFields({ |
| | |
| | | this.listTypeData.name = res.entity; |
| | | this.listTypeData.pageIndex = 1; |
| | | this.listTypeData.pageSize = 10; |
| | | this.dialogtitle = res.tabDesc + '(' + res.tab + ')'; |
| | | this.dialogtitle = res.tabDesc; |
| | | this.upAttach.tabName = res.ns + "." + res.tab; |
| | | this.filedsLayer = this.getCollapseDomFiled(); |
| | | |
| | |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | async getDataTyeAndEntryName() { |
| | | const data = await dataLib_selectProject();//查询项目名称 |
| | | if (data.code != 200) { |
| | | this.$message.error('项目列表调用失败'); |
| | | } |
| | | |
| | | const res = await dataLib_selectBaseType(); //查询基础地理类别 |
| | | if (res.code != 200) { |
| | | this.$message.error('基础地理类别列表调用失败'); |
| | | } |
| | | const rest = await dataLib_selectBusinessType(); //查询业务类别 |
| | | if (rest.code != 200) { |
| | | this.$message.error('业务类别列表调用失败'); |
| | | } |
| | | var std = [{ name: "不限", id: null }] |
| | | var str = [{ name: "不限", id: null }] |
| | | for (var i in data.result) { |
| | | std.push({ |
| | | id: data.result[i].key, |
| | | name: data.result[i].value |
| | | }) |
| | | } |
| | | this.project_name = std; |
| | | for (var i in res.result) { |
| | | str.push({ |
| | | id: res.result[i].key, |
| | | name: res.result[i].value |
| | | }) |
| | | } |
| | | for (var i in rest.result) { |
| | | str.push({ |
| | | id: rest.result[i].key, |
| | | name: rest.result[i].value |
| | | }) |
| | | } |
| | | this.data_type = str; |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getDataLibSelectTabs(); |
| | | this.signGetPublicKey(); |
| | | this.getQueryDirTree(); |
| | | this.getDataTyeAndEntryName(); |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .archive { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin: 0; |
| | | overflow-y: auto; |
| | | background: #353539; |
| | | width: 98%; |
| | | height: 95%; |
| | | padding: 1%; |
| | | position: relative; |
| | | overflow: auto; |
| | | .top_header { |
| | | width: calc(100% - 60px); |
| | | height: 70px; |
| | | width: calc(100% -20px); |
| | | height: 60px; |
| | | display: flex; |
| | | padding: 0 30px; |
| | | padding: 0 10px; |
| | | justify-content: space-between; |
| | | border-bottom: 1px solid white; |
| | | |
| | | .top_left { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | line-height: 70px; |
| | | } |
| | | span { |
| | | color: gray; |
| | | margin: 0 5px; |
| | | } |
| | | /deep/.el-form--inline .el-form-item__content { |
| | | line-height: 70px; |
| | | } |
| | | /deep/.el-form--inline .el-form-item__label { |
| | | line-height: 70px; |
| | | } |
| | | } |
| | | .box_item { |
| | | width: calc(100% - 60px); |
| | | border-bottom: 1px solid white; |
| | | height: auto; |
| | | padding: 10px 30px; |
| | | |
| | | margin: 5px 30px; |
| | | padding-bottom: 5px; |
| | | border-bottom: 1px solid #dcdfe6; |
| | | align-items: center; |
| | | display: flex; |
| | | float: left; |
| | | .box_left { |
| | | color: white; |
| | | height: 100%; |
| | | line-height: 100%; |
| | | width: 100px; |
| | | text-align: center; |
| | | color: white; |
| | | |
| | | font-size: 14px; |
| | | font-weight: 400; |
| | | } |
| | | .box_cont { |
| | | color: white; |
| | | height: 100%; |
| | | width: 80%; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | /* 设置多行对齐 */ |
| | | align-content: flex-start; |
| | | color: white; |
| | | |
| | | font-size: 14px; |
| | | font-weight: 400; |
| | | } |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-left: 10px; |
| | | color: white; |
| | | |
| | | font-size: 14px; |
| | | align-self: flex-start; |
| | | font-weight: 400; |
| | | .box_menu { |
| | | border: 1px solid white; |
| | | } |
| | | |
| | | .box_menu:hover { |
| | | border: 1px solid #009cff; |
| | | color: #009cff; |
| | |
| | | font-size: 14px; |
| | | font-weight: 400; |
| | | align-self: flex-start; |
| | | color: white; |
| | | |
| | | ul { |
| | | margin-left: 10px; |
| | | } |
| | | li { |
| | | height: 42px; |
| | | border-top: 1px solid white; |
| | | border-left: 1px solid white; |
| | | border-right: 1px solid white; |
| | | border-top: 1px solid #dcdfe6; |
| | | border-left: 1px solid #dcdfe6; |
| | | border-right: 1px solid #dcdfe6; |
| | | font-size: 14px; |
| | | line-height: 42px; |
| | | padding: 5px 15px; |
| | |
| | | } |
| | | } |
| | | .bottom_right { |
| | | width: calc(100% - 320px); |
| | | width: 100%; |
| | | padding: 0px 20px; |
| | | height: auto; |
| | | color: white; |
| | | |
| | | .boxCard { |
| | | margin: 1%; |
| | | /deep/.el-card { |
| | | background: #303030 !important; |
| | | color: #fff !important; |
| | | } |
| | | |
| | | .cardItem { |
| | | margin-bottom: 10px; |
| | | } |
| | | } |
| | | li { |
| | | border-bottom: 1px solid white; |
| | | border-bottom: 1px solid #dcdfe6; |
| | | padding: 10px 0px; |
| | | } |
| | | li:hover { |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | .box_div { |
| | | .menu_div { |
| | | padding: 5px 15px; |
| | | margin-left: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | display: flex; |
| | | } |
| | | .primaries { |
| | | background: linear-gradient(180deg, #002992, #080472); |
| | | border: 1px solid #000000; |
| | | box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.21); |
| | | color: white; |
| | | } |
| | | .elLink { |
| | | color: white; |
| | | } |
| | | .infoBox { |
| | | width: 500px; |
| | | position: absolute; |
| | | z-index: 100; |
| | | top: 25%; |
| | | right: 25%; |
| | | background: #303030; |
| | | color: #fff; |
| | | .el-card { |
| | | background-color: transparent; |
| | | color: #fff; |
| | | span { |
| | | color: #fff; |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | } |
| | | } |
| | | .contentBox { |
| | | margin: 0 aotu 10px; |
| | | height: 500px; |
| | | overflow: auto; |
| | | p { |
| | | // background-color: #bfa; |
| | | // margin-bottom: 10px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .menuActive { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | |
| | |
| | | top: 20%; |
| | | left: 40%; |
| | | padding: 20px; |
| | | background: #303030; |
| | | |
| | | width: 30%; |
| | | border: 1px solid gray; |
| | | border-radius: 10px; |
| | | color: white; |
| | | } |
| | | .pagination_box { |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important; |
| | | border: 1px solid; |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__total { |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__jump { |
| | | color: white; |
| | | } |
| | | /deep/.el-pager li.active { |
| | | color: #409eff; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | background: transparent; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next i { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev i { |
| | | color: white; |
| | | } |
| | | } |
| | | /deep/ .el-select .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | } |
| | | |
| | | .elLink { |
| | | color: white !important; |
| | | } |
| | | .el-icon-folder-opened { |
| | | color: white; |
| | | } |
| | | |
| | | .contentBox { |
| | | height: 60vh; |
| | | overflow: auto; |
| | | color: white; |
| | | } |
| | | /deep/ .el-dialog { |
| | | background: #303030; |
| | | } |
| | | /deep/.el-range-editor.is-active, |
| | | .el-range-editor.is-active:hover, |
| | | .el-select .el-input.is-focus .el-input__inner { |
| | | border: 1px solid; |
| | | } |
| | | /deep/.el-dialog__title { |
| | | color: white; |
| | | } |
| | | /deep/ .el-dialog__body { |
| | | padding: 10px; |
| | | } |
| | | /*修改table 表体的背景颜色和文字颜色*/ |
| | | /deep/ .el-table { |
| | | background-color: transparent; |
| | | |
| | | th, |
| | | td { |
| | | background-color: transparent; |
| | | } |
| | | .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | // 表头背景色 |
| | | th.el-table__cell { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | tr > td { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | |
| | | // hover效果 |
| | | tr:hover > td { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | } |
| | | |
| | | tbody tr:hover { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | // text-align: center; |
| | | } |
| | | |
| | | // 滚动条宽高 |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | height: 5px; |
| | | } |
| | | |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | /*滚动条宽度*/ |
| | | height: 5px; |
| | | /*滚动条高度*/ |
| | | } |
| | | /*定义滚动条轨道 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-track { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | /*滚动条的背景区域的内阴影*/ |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | /*定义滑块 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | border-radius: 6px; |
| | | background-color: #216fe6; |
| | | /deeep/.el-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | } |
| | | // 设置输入框的背景色、字体颜色、边框属性设置; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid white !important; |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | } |
| | | /deep/.el-dialog__wrapper { |
| | | overflow: hidden; |
| | | } |
| | | /deep/.el-textarea__inner { |
| | | background: transparent; |
| | | border-color: #fff !important; |
| | | color: white; |
| | | height: 70px !important; |
| | | } |
| | | /deep/.el-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | /deep/.el-form-item__content { |
| | | line-height: 70px; |
| | | } |
| | | /deep/.el-textarea.is-disabled .el-textarea__inner { |
| | | background: transparent; |
| | | } |
| | | </style> |