|
|
@@ -48,6 +48,15 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="责任部门" prop="relationDept">
|
|
|
+ <DeptSelect
|
|
|
+ v-model="queryParams.relationDept"
|
|
|
+ placeholder="请选择责任部门"
|
|
|
+ clearable
|
|
|
+ class="!w-240px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<!-- 区域 -->
|
|
|
<el-form-item label="区域" prop="equipDistrict">
|
|
|
<AreaSelect v-model="queryParams.equipDistrict"
|
|
|
@@ -125,6 +134,14 @@
|
|
|
@click="handleSyncCity"
|
|
|
>
|
|
|
<Icon icon="ep:refresh" class="mr-5px" /> 同步市局
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="handleExport"
|
|
|
+ :loading="exportLoading"
|
|
|
+ >
|
|
|
+ <Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -219,8 +236,10 @@ import { EquipPipeApi, EquipPipeVO } from '@/api/pressure2/equippipe'
|
|
|
import PipeEquipmentDetailList from './components/PipeEquipmentDetailList.vue'
|
|
|
import AreaSelect from '@/views/system/equipcontainer/components/AreaSelect.vue'
|
|
|
import StreetSelect from '@/views/system/equipcontainer/components/StreetSelect.vue'
|
|
|
+import DeptSelect from "@/views/pressure2/equipboilerscheduling/components/DeptSelect.vue";
|
|
|
import { getStrDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
import { dateFormatter2 } from '@/utils/formatTime'
|
|
|
+import download from '@/utils/download'
|
|
|
import {useRoute, useRouter} from 'vue-router'
|
|
|
import PipeEquipmentOperationRecord from './components/PipeEquipmentOperationRecord.vue'
|
|
|
|
|
|
@@ -245,6 +264,7 @@ const queryParams = reactive({
|
|
|
useProjectName: undefined,
|
|
|
pipeCategory: undefined,
|
|
|
useStatus: undefined,
|
|
|
+ relationDept: undefined,
|
|
|
})
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
|
|
|
@@ -297,6 +317,18 @@ const resetQuery = () => {
|
|
|
handleQuery()
|
|
|
}
|
|
|
|
|
|
+/** 导出按钮操作 */
|
|
|
+const exportLoading = ref(false)
|
|
|
+const handleExport = async () => {
|
|
|
+ exportLoading.value = true
|
|
|
+ try {
|
|
|
+ const data =await EquipPipeApi.exportEquipPipe(queryParams)
|
|
|
+ download.excel(data, '管道设备.xls')
|
|
|
+ } finally {
|
|
|
+ exportLoading.value = false
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/** 添加/修改操作 */
|
|
|
const openForm = (type: string, id?: number) => {
|
|
|
const query: any = { type }
|