| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 50, 100, 200]" |
| | | :page-sizes="[10, 50, 100, 200,500]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | |
| | | @size-change="handleMetaSizeChange" |
| | | @current-change="handMetaCurrentChange" |
| | | :current-page="listMetaData.pageIndex" |
| | | :page-sizes="[10, 50, 100, 200]" |
| | | :page-sizes="[10, 50, 100, 200,500]" |
| | | :page-size="listMetaData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="listMetaData.count" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 目录 --> |
| | | <el-form-item v-if="active == 'second'"> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.dirid2" |
| | | placeholder="请选择项目目录..." |
| | | > |
| | | <el-option |
| | | :value="formInline.dirid2" |
| | | :label="formInline.dirName2" |
| | | style="height: auto" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="dirOption2" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handleDirChange2" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 版本 --> |
| | | <el-form-item v-if="active == 'first'"> |
| | | <el-select |
| | |
| | | > |
| | | <el-option |
| | | v-for="item in typeOption" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="active == 'second'"> |
| | | <el-select |
| | | size="small" |
| | | v-model="formInline.type1" |
| | | @change="handleTypeChange1" |
| | | placeholder="请选择数据类别..." |
| | | > |
| | | <el-option |
| | | v-for="item in typeOption1" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | active: 'first', |
| | | formInline: { |
| | | dirid: null, |
| | | dirid2: null, |
| | | dirName: null, |
| | | dirName2: null, |
| | | depid: null, |
| | | verid: null, |
| | | depName: null, |
| | | name: "", |
| | | type: "" |
| | | type: "", |
| | | type1: "All", |
| | | }, |
| | | listData: { |
| | | pageIndex: 1, |
| | |
| | | multipleSelection: [], |
| | | tableData: [], |
| | | depOption: [], |
| | | dirOption2: [], |
| | | dirOption: [], |
| | | verOption: [], |
| | | modelOptions: [], |
| | | typeOption: [{ |
| | | value: 'DOM', |
| | | label: '影像数据(.tif, .img)' |
| | | }, { |
| | | value: 'DEM', |
| | | label: '高程数据(.tif)' |
| | | }, { |
| | | value: 'MPT', |
| | | label: '场景数据(.mpt)' |
| | | }, { |
| | | value: 'OSGB', |
| | | label: '倾斜数据(.osgb)' |
| | | }, { |
| | | value: 'LAS', |
| | | label: '点云数据(.las, .laz)' |
| | | }, { |
| | | value: 'CPT', |
| | | label: '点云数据(.cpt)' |
| | | }, { |
| | | value: '3DML', |
| | | label: '三维模型(.3dml)' |
| | | }, { |
| | | value: 'BIM', |
| | | label: '三维模型(.fbx, .ifc, .rvt)' |
| | | }], |
| | | typeOption1: [{ |
| | | value: 'All', |
| | | label: '全部' |
| | | }, { |
| | | value: 'DOM', |
| | | label: '影像数据(.tif, .img)' |
| | | }, { |
| | |
| | | setPageStart() { |
| | | this.formInline = { |
| | | dirid: null, |
| | | dirid2: null, |
| | | dirName: null, |
| | | dirName2: null, |
| | | depid: null, |
| | | verid: null, |
| | | depName: null, |
| | | name: "", |
| | | type: "" |
| | | type: "", |
| | | type1: "All" |
| | | } |
| | | if (this.active == "first") { |
| | | this.listData = { |
| | |
| | | pageSize: 10, |
| | | count: 0 |
| | | } |
| | | this.showPageSize = [10, 50, 100, 200] |
| | | this.showPageSize = [10, 50, 100, 200, 500] |
| | | this.formInline.type1 = this.typeOption1[0].value; |
| | | this.formInline.dirid2 = this.dirOption2[0].code; |
| | | this.formInline.dirName2 = this.dirOption2[0].name; |
| | | } |
| | | |
| | | this.formInline.type = this.typeOption[0].value; |
| | |
| | | this.$message.error("单位列表获取失败") |
| | | return |
| | | } |
| | | var res = JSON.parse(JSON.stringify(data.result)); |
| | | var res_val = res.filter((rs) => { |
| | | if (rs.pid == 0) { |
| | | return rs |
| | | } |
| | | }) |
| | | |
| | | res_val.unshift({ |
| | | name: '全部', |
| | | id: 'All', |
| | | pid: 0, |
| | | code: "All" |
| | | }) |
| | | this.dirOption2 = this.treeData(res_val) |
| | | this.dirOption = this.treeData(data.result); |
| | | this.formInline.dirid = this.dirOption[0].code; |
| | | this.formInline.dirName = this.dirOption[0].name; |
| | | this.formInline.dirid2 = this.dirOption2[0].code; |
| | | this.formInline.dirName2 = this.dirOption2[0].name; |
| | | this.getVerList(this.dirOption[0].id) |
| | | }, |
| | | //获取版本列表 |
| | |
| | | this.formInline.type = value; |
| | | this.getTableData(); |
| | | }, |
| | | handleTypeChange1(value) { |
| | | this.formInline.type1 = value; |
| | | this.getTableData(); |
| | | }, |
| | | //单位列表切换 |
| | | handleDepChange(data, node, nodeData) { |
| | | this.formInline.depid = data.code |
| | |
| | | this.formInline.dirName = data.name |
| | | this.getVerList(data.id) |
| | | }, |
| | | //目录列表切换 |
| | | handleDirChange2(data, node, nodeData) { |
| | | this.formInline.dirid2 = data.code |
| | | this.formInline.dirName2 = data.name |
| | | this.getTableData(); |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | //获取Table表格数据 |
| | | async getTableData() { |
| | | |
| | |
| | | } |
| | | } |
| | | else { |
| | | if (this.formInline.name) { |
| | | this.listData.name = this.formInline.name |
| | | if (this.formInline.dirid2 == 'All') { |
| | | this.listData.dircode = this.formInline.dirid2.replace('All', ''); |
| | | } else { |
| | | this.listData.dircode = this.formInline.dirid2 |
| | | } |
| | | if (this.formInline.type1 == 'All') { |
| | | this.listData.type = this.formInline.type1.replace('All', ''); |
| | | } else { |
| | | this.listData.type = this.formInline.type1 |
| | | } |
| | | |
| | | |
| | | const data = await publish_selectByPage(this.listData); |
| | | |