|
@@ -1,77 +1,77 @@
|
|
<template>
|
|
<template>
|
|
- <div class="system-dic-container">
|
|
|
|
- <el-card shadow="hover">
|
|
|
|
- <div class="system-user-search mb15">
|
|
|
|
- <el-form :model="tableData.param" ref="queryRef" :inline="true" label-width="68px">
|
|
|
|
- <el-form-item label="" prop="">
|
|
|
|
- <el-radio-group v-model="radioValue" size="default">
|
|
|
|
- <el-radio-button label="换热站" />
|
|
|
|
- <el-radio-button label="环路" />
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="环路名称" prop="name">
|
|
|
|
- <el-select v-model="tableData.param.name" placeholder="环路名称" clearable size="default" style="width: 240px">
|
|
|
|
- <el-option label="已发布" :value="1" />
|
|
|
|
- <el-option label="未发布" :value="0" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="环路编号" prop="name">
|
|
|
|
- <el-select v-model="tableData.param.name" placeholder="环路编号" clearable size="default" style="width: 240px">
|
|
|
|
- <el-option label="已发布" :value="1" />
|
|
|
|
- <el-option label="未发布" :value="0" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-button size="default" type="primary" class="ml10" @click="typeList">
|
|
|
|
- <el-icon>
|
|
|
|
- <ele-Search />
|
|
|
|
- </el-icon>
|
|
|
|
- 查询
|
|
|
|
- </el-button>
|
|
|
|
- <el-button size="default" @click="resetQuery(queryRef)">
|
|
|
|
- <el-icon>
|
|
|
|
- <ele-Refresh />
|
|
|
|
- </el-icon>
|
|
|
|
- 重置
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
- <el-table :data="tableData.data" style="width: 100%" @selection-change="handleSelectionChange" v-loading="tableData.loading">
|
|
|
|
- <!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
|
- <el-table-column type="index" width="55" align="center" />
|
|
|
|
- <el-table-column label="日期" prop="key" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column :label="radioValue === '换热站' ? '换热站' : '环路名称'" prop="name" :show-overflow-tooltip="true">
|
|
|
|
- <template #default="{ row }">
|
|
|
|
- <el-button type="text" @click="goPage(row)">
|
|
|
|
- {{ radioValue === '换热站' ? '换热站' : '环路名称' }}
|
|
|
|
- </el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column :label="radioValue === '换热站' ? '换热站编号' : '环路编号'" prop="name" min-width="120" :show-overflow-tooltip="true">
|
|
|
|
- <template #default>
|
|
|
|
- {{ radioValue === '换热站' ? '换热站编号' : '环路编号' }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="一网供水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="一网供水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="一网供水温度" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="一网回水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="一网回水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="一网回水温度" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="二网供水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="二网供水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
|
|
+ <div class="system-dic-container">
|
|
|
|
+ <el-card shadow="hover">
|
|
|
|
+ <div class="system-user-search mb15">
|
|
|
|
+ <el-form :model="tableData.param" ref="queryRef" :inline="true" label-width="68px">
|
|
|
|
+ <el-form-item label="" prop="">
|
|
|
|
+ <el-radio-group v-model="radioValue" size="default">
|
|
|
|
+ <el-radio-button label="换热站" />
|
|
|
|
+ <el-radio-button label="环路" />
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="环路名称" prop="name">
|
|
|
|
+ <el-select v-model="tableData.param.name" placeholder="环路名称" clearable size="default" style="width: 240px">
|
|
|
|
+ <el-option label="已发布" :value="1" />
|
|
|
|
+ <el-option label="未发布" :value="0" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="环路编号" prop="name">
|
|
|
|
+ <el-select v-model="tableData.param.name" placeholder="环路编号" clearable size="default" style="width: 240px">
|
|
|
|
+ <el-option label="已发布" :value="1" />
|
|
|
|
+ <el-option label="未发布" :value="0" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button size="default" type="primary" class="ml10" @click="typeList">
|
|
|
|
+ <el-icon>
|
|
|
|
+ <ele-Search />
|
|
|
|
+ </el-icon>
|
|
|
|
+ 查询
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button size="default" @click="resetQuery(queryRef)">
|
|
|
|
+ <el-icon>
|
|
|
|
+ <ele-Refresh />
|
|
|
|
+ </el-icon>
|
|
|
|
+ 重置
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <el-table :data="tableData.data" style="width: 100%" @selection-change="handleSelectionChange" v-loading="tableData.loading">
|
|
|
|
+ <!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
|
+ <el-table-column type="index" width="55" align="center" />
|
|
|
|
+ <el-table-column label="日期" prop="key" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column :label="radioValue === '换热站' ? '换热站' : '环路名称'" prop="name" :show-overflow-tooltip="true">
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
+ <el-button type="text" @click="goPage(row)">
|
|
|
|
+ {{ radioValue === '换热站' ? '换热站' : '环路名称' }}
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="radioValue === '换热站' ? '换热站编号' : '环路编号'" prop="name" min-width="120" :show-overflow-tooltip="true">
|
|
|
|
+ <template #default>
|
|
|
|
+ {{ radioValue === '换热站' ? '换热站编号' : '环路编号' }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="一网供水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="一网供水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="一网供水温度" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="一网回水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="一网回水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="一网回水温度" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="二网供水流量" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
+ <el-table-column label="二网供水压力" prop="value" min-width="120" :show-overflow-tooltip="true" />
|
|
|
|
|
|
- <!-- <el-table-column prop="status" label="状态" width="100" align="center">
|
|
|
|
|
|
+ <!-- <el-table-column prop="status" label="状态" width="100" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-tag type="success" size="small" v-if="scope.row.status">已发布</el-tag>
|
|
<el-tag type="success" size="small" v-if="scope.row.status">已发布</el-tag>
|
|
<el-tag type="info" size="small" v-else>未发布</el-tag>
|
|
<el-tag type="info" size="small" v-else>未发布</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
- </el-table>
|
|
|
|
- <pagination v-show="tableData.total>0" :total="tableData.total" v-model:page="tableData.param.pageNum" v-model:limit="tableData.param.pageSize" @pagination="typeList" />
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </el-table>
|
|
|
|
+ <pagination v-show="tableData.total > 0" :total="tableData.total" v-model:page="tableData.param.pageNum" v-model:limit="tableData.param.pageSize" @pagination="typeList" />
|
|
|
|
+ </el-card>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -113,9 +113,9 @@ export default defineComponent({
|
|
const addDicRef = ref();
|
|
const addDicRef = ref();
|
|
const editDicRef = ref();
|
|
const editDicRef = ref();
|
|
const queryRef = ref();
|
|
const queryRef = ref();
|
|
- const router = useRouter()
|
|
|
|
|
|
+ const router = useRouter()
|
|
const state = reactive({
|
|
const state = reactive({
|
|
- radioValue: '换热站',
|
|
|
|
|
|
+ radioValue: '换热站',
|
|
ids: [],
|
|
ids: [],
|
|
tableData: {
|
|
tableData: {
|
|
data: [{ name: '换热站', key: '2022-10-25', value: 1 }],
|
|
data: [{ name: '换热站', key: '2022-10-25', value: 1 }],
|
|
@@ -174,7 +174,7 @@ export default defineComponent({
|
|
typeList();
|
|
typeList();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
- .catch(() => {});
|
|
|
|
|
|
+ .catch(() => { });
|
|
};
|
|
};
|
|
// 页面加载时
|
|
// 页面加载时
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -191,13 +191,13 @@ export default defineComponent({
|
|
// state.ids = selection.map((item) => item.id);
|
|
// state.ids = selection.map((item) => item.id);
|
|
};
|
|
};
|
|
|
|
|
|
- const goPage = (row: TableDataRow) => {
|
|
|
|
- if (state.radioValue === '换热站') {
|
|
|
|
- router.push('/monitor/loopSupervision/list/heatStationDetail')
|
|
|
|
- } else {
|
|
|
|
- router.push('/monitor/loopSupervision/list/loopDetail')
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ const goPage = (row: TableDataRow) => {
|
|
|
|
+ if (state.radioValue === '换热站') {
|
|
|
|
+ router.push('/heating/monitor/loopSupervision/list/heatStationDetail')
|
|
|
|
+ } else {
|
|
|
|
+ router.push('/heating/monitor/loopSupervision/list/loopDetail')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return {
|
|
return {
|
|
addDicRef,
|
|
addDicRef,
|
|
editDicRef,
|
|
editDicRef,
|
|
@@ -209,7 +209,7 @@ export default defineComponent({
|
|
resetQuery,
|
|
resetQuery,
|
|
handleSelectionChange,
|
|
handleSelectionChange,
|
|
...toRefs(state),
|
|
...toRefs(state),
|
|
- goPage
|
|
|
|
|
|
+ goPage
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|