|
@@ -40,12 +40,10 @@
|
|
|
class="tablePage"
|
|
|
:cloumn="cloumn"
|
|
|
:table="table"
|
|
|
+ :showTotal="false"
|
|
|
ref="tableDialogRef"
|
|
|
@currentChange="searchFun"
|
|
|
>
|
|
|
- <template #state="{ row }">
|
|
|
- <div :class="`type${row.type}`">{{ row.typeN }}</div>
|
|
|
- </template>
|
|
|
<template #type="{ row }">
|
|
|
<el-checkbox v-model="row.checked" @change="changeShare(row)">
|
|
|
共享
|
|
@@ -66,7 +64,8 @@ import tablePage from "@/components/mapView/tablePage.vue";
|
|
|
import customForm from "@/components/mapView/custom-form.vue";
|
|
|
import fieldSet from "./components/fieldSetModal.vue";
|
|
|
import { FormConfig, TableHeader } from "./config";
|
|
|
-import { Getfiledslist } from "@/api/shared.js";
|
|
|
+import { Getfiledslist, listZyml } from "@/api/shared.js";
|
|
|
+import { handleTree } from "@/utils/ruoyi.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
tablePage,
|
|
@@ -76,15 +75,23 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ queryParams: {
|
|
|
+ name: null,
|
|
|
+ type: null,
|
|
|
+ state: null,
|
|
|
+ year: null,
|
|
|
+ },
|
|
|
model: {
|
|
|
- carNo: "", //网格名称
|
|
|
+ id: "23fa916114494640b71988d9858474c3",
|
|
|
regionCode: "", //地区编码
|
|
|
placeCode: "", //所属小区
|
|
|
+ startTime: "",
|
|
|
+ endTime: "",
|
|
|
+ sj: ["", ""],
|
|
|
},
|
|
|
formConfig: FormConfig,
|
|
|
- tableData: null,
|
|
|
- details: {},
|
|
|
cloumn: TableHeader,
|
|
|
+ table: { data: [], total: 0 },
|
|
|
table: {
|
|
|
data: [
|
|
|
{ JGMC: "ssmdmm", type: 0, typeN: "正在审核", checked: false },
|
|
@@ -117,30 +124,66 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
searchFun(page) {
|
|
|
- this.getTableData({ pageNo: page.pageIndex, pageSize: page.size });
|
|
|
+ this.getList(page);
|
|
|
+ },
|
|
|
+ /** 查询数据资源目录列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listZyml(this.queryParams).then((response) => {
|
|
|
+ // this.zymlList = handleTree(response.data, "bsm", "pbsm");
|
|
|
+ // this.loading = false;
|
|
|
+ this.table = {
|
|
|
+ data: handleTree(response.data, "bsm", "pbsm"),
|
|
|
+ };
|
|
|
+ console.log(this.zymlList);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getTreeselect() {
|
|
|
+ listZyml().then((response) => {
|
|
|
+ this.zymlOptions = [];
|
|
|
+ const data = { bsm: 0, name: "根节点", children: [] };
|
|
|
+ data.children = handleTree(response.data, "bsm", "pbsm");
|
|
|
+ this.zymlOptions.push(data);
|
|
|
+ });
|
|
|
},
|
|
|
- async getTableData(params) {
|
|
|
- let obj = {
|
|
|
- jscType: store.state.cockpit_vector.tablejscType,
|
|
|
- beginTime: store.state.cockpit_date[0],
|
|
|
- endTime: store.state.cockpit_date[1],
|
|
|
- id: store.state.cockpit_region.id,
|
|
|
- ...params,
|
|
|
+ async getTableData(page = { pageIndex: 1, size: 10 }) {
|
|
|
+ this.model.pageNum = page.pageIndex;
|
|
|
+ this.model.pageSize = page.size;
|
|
|
+ this.model.startTime = this.model.sj[0];
|
|
|
+ this.model.endTime = this.model.sj[1];
|
|
|
+ let data = await Getfiledslist(this.model);
|
|
|
+ // this.active_dableData = data.data;
|
|
|
+ this.table = {
|
|
|
+ data: data.rows,
|
|
|
+ total: data.total,
|
|
|
};
|
|
|
- let data = await Getfiledslist(obj);
|
|
|
- this.active_dableData = data.data;
|
|
|
- this.tableData = data.data;
|
|
|
+ },
|
|
|
+ reset() {
|
|
|
+ this.model = {
|
|
|
+ zymlBy: "",
|
|
|
+ state: "",
|
|
|
+ startTime: "",
|
|
|
+ endTime: "",
|
|
|
+ sj: ["", ""],
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ };
|
|
|
+ this.searchFun();
|
|
|
},
|
|
|
// 详情
|
|
|
fieldset(row) {
|
|
|
this.$refs.fieldSetModal.Init(row);
|
|
|
},
|
|
|
changeShare(row) {},
|
|
|
- closeMdel() {},
|
|
|
+ closeMdel() {
|
|
|
+ this.searchFun();
|
|
|
+ },
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ this.searchFun();
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|