江河模块修改
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item label="起始日期:">
|
||||
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker>
|
||||
<a-month-picker valueFormat="YYYY-MM" v-model:value="where.startTime"></a-month-picker>
|
||||
</a-form-item>
|
||||
<a-form-item label="结束日期:">
|
||||
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.endTime"></a-date-picker>
|
||||
<a-month-picker valueFormat="YYYY-MM" v-model:value="where.endTime"></a-month-picker>
|
||||
</a-form-item>
|
||||
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
@@ -45,7 +45,7 @@
|
||||
</a-form>
|
||||
<!-- 表格 -->
|
||||
<a-spin :spinning="loading">
|
||||
<ele-pro-table ref="table" :datasource="url" :columns="columns" :where="where"
|
||||
<ele-pro-table ref="table" :datasource="datasource" :columns="columns" :where="where"
|
||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||
</ele-pro-table>
|
||||
</a-spin>
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
autonomyWaterFunctionTotalUrl,
|
||||
autonomyWaterFunctionTotal,
|
||||
} from "@/api/ecology/river-statis";
|
||||
import {
|
||||
listInfo
|
||||
@@ -75,7 +75,7 @@
|
||||
locale,
|
||||
datasource: {},
|
||||
// 表格数据接口
|
||||
url: autonomyWaterFunctionTotalUrl,
|
||||
// url: autonomyWaterFunctionTotalUrl,
|
||||
selection: [],
|
||||
tableColumns,
|
||||
// 表格列配置
|
||||
@@ -104,7 +104,8 @@
|
||||
this.visibleWater = true;
|
||||
this.sectionInfo = res.data.data
|
||||
res.data.data.forEach((m) => {
|
||||
this.waterSystemList.push(m.waterBody);
|
||||
this.waterSystemList.push(m.riverLakeLibrary);
|
||||
console.log(this.waterSystemList);
|
||||
})
|
||||
this.waterSystemList = [...new Set(this.waterSystemList)];
|
||||
} else {
|
||||
@@ -116,11 +117,21 @@
|
||||
/* 刷新表格 */
|
||||
reload() {
|
||||
this.loading = true;
|
||||
console.log(this.where);
|
||||
this.$refs.table.reload({
|
||||
where: this.where,
|
||||
});
|
||||
console.log(this.url);
|
||||
// console.log(this.where);
|
||||
// this.$refs.table.reload({
|
||||
// where: this.where,
|
||||
// });
|
||||
// console.log(this.url);
|
||||
autonomyWaterFunctionTotal(this.where).then((res) => {
|
||||
console.log(res.data.data);
|
||||
if (res.data.code == 0) {
|
||||
this.$message.success(res.data.msg);
|
||||
this.datasource=res.data.data;
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
}
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false;
|
||||
},
|
||||
/* 重置搜索 */
|
||||
|
||||
Reference in New Issue
Block a user