Browse Source

北江大堤需求

master_tdsql
zth 1 month ago
parent
commit
1bd082b8a9
  1. 1
      src/components/linkNameSelect/linkDike.vue
  2. 1
      src/components/linkNameSelect/linkSluice.vue
  3. 2
      src/components/myUpload/index.vue
  4. 4
      src/utils/request.js
  5. 239
      src/views/dike/engineeringCondition/dikeBaseInfo/options/historyOverflowsRecords.vue
  6. 32
      src/views/dike/engineeringCondition/dikeBaseInfo/options/index.vue
  7. 2
      src/views/dike/safetyManage/declarationManage/declare/components/listPage/index.vue
  8. 4
      src/views/dike/safetyManage/declarationManage/declare/index.vue

1
src/components/linkNameSelect/linkDike.vue

@ -61,6 +61,7 @@ export default {
pageSize: 10, pageSize: 10,
ids: null, ids: null,
data: { data: {
status:6,
dikeName: null, dikeName: null,
dikeCode: null, dikeCode: null,
}, },

1
src/components/linkNameSelect/linkSluice.vue

@ -106,6 +106,7 @@ export default {
pageSize: 10, pageSize: 10,
ids: null, ids: null,
data: { data: {
status:6,
wagaName: null, wagaName: null,
wagaCode: null, wagaCode: null,
}, },

2
src/components/myUpload/index.vue

@ -63,7 +63,7 @@ export default {
// //
handlePreview(file) { handlePreview(file) {
// console.log(file); console.log(file);
getFileStream({ fileName: file.fileName }).then((res) => { getFileStream({ fileName: file.fileName }).then((res) => {
const blob = new Blob([res], { const blob = new Blob([res], {
// type // type

4
src/utils/request.js

@ -48,7 +48,7 @@ service.interceptors.response.use(
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
location.href = '/'; location.href = 'https://210.76.82.26/wr-portal';
}); });
}); });
} }
@ -59,7 +59,7 @@ service.interceptors.response.use(
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
location.href = '/'; location.href = 'https://210.76.82.26/wr-portal';
}); });
}); });
} else if (code !== 200) { } else if (code !== 200) {

239
src/views/dike/engineeringCondition/dikeBaseInfo/options/historyOverflowsRecords.vue

@ -1,53 +1,195 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-descriptions <!-- <el-descriptions-->
class="margin-top" <!-- class="margin-top"-->
:column="2" <!-- :column="2"-->
border <!-- border-->
:labelStyle="{ <!-- :labelStyle="{-->
'text-align': 'left', <!-- 'text-align': 'left',-->
width: '180px', <!-- width: '180px',-->
height: '50px', <!-- height: '50px',-->
}" <!-- }"-->
:contentStyle="{ minWidth: '350px' }" <!-- :contentStyle="{ minWidth: '350px' }"-->
> <!-- >-->
<el-descriptions-item> <!-- <el-descriptions-item>-->
<template slot="label"> 堤防代码 </template> <!-- <template slot="label"> 堤防代码 </template>-->
{{ dikeCode }} <!-- {{ dikeCode }}-->
</el-descriptions-item> <!-- </el-descriptions-item>-->
<el-descriptions-item> <!-- <el-descriptions-item>-->
<template slot="label"> 记录更新时间 </template> <!-- <template slot="label"> 记录更新时间 </template>-->
{{ this.form.updateDate }} <!-- {{ this.form.updateDate }}-->
</el-descriptions-item> <!-- </el-descriptions-item>-->
<el-descriptions-item> <!-- <el-descriptions-item>-->
<template slot="label"> 决溢地点 </template> <!-- <template slot="label"> 决溢地点 </template>-->
{{ this.form.brspPl }} <!-- {{ this.form.brspPl }}-->
</el-descriptions-item> <!-- </el-descriptions-item>-->
<el-descriptions-item>
<template slot="label"> 决溢时间 </template>
{{ this.form.brspDatetime }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 决溢形式 </template>
{{ this.form.brspForm }}
</el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 决溢损失 </template>--> <!-- <template slot="label"> 决溢时间 </template>-->
<!-- {{ this.form.brspLs }}--> <!-- {{ this.form.brspDatetime }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 修复日期 </template>--> <!-- <template slot="label"> 决溢形式 </template>-->
<!-- {{ this.form.rpTime }}--> <!-- {{ this.form.brspForm }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!--&lt;!&ndash; <el-descriptions-item>&ndash;&gt;-->
<!--&lt;!&ndash; <template slot="label"> 决溢损失 </template>&ndash;&gt;-->
<!--&lt;!&ndash; {{ this.form.brspLs }}&ndash;&gt;-->
<!--&lt;!&ndash; </el-descriptions-item>&ndash;&gt;-->
<!--&lt;!&ndash; <el-descriptions-item>&ndash;&gt;-->
<!--&lt;!&ndash; <template slot="label"> 修复日期 </template>&ndash;&gt;-->
<!--&lt;!&ndash; {{ this.form.rpTime }}&ndash;&gt;-->
<!--&lt;!&ndash; </el-descriptions-item>&ndash;&gt;-->
<!--&lt;!&ndash; <el-descriptions-item>&ndash;&gt;-->
<!--&lt;!&ndash; <template slot="label"> 淹没范围 </template>&ndash;&gt;-->
<!--&lt;!&ndash; {{ this.form.inRn }}&ndash;&gt;-->
<!--&lt;!&ndash; </el-descriptions-item>&ndash;&gt;-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 淹没范围 </template>--> <!-- <template slot="label"> 备注 </template>-->
<!-- {{ this.form.inRn }}--> <!-- {{ this.form.note }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <!-- </el-descriptions>-->
<template slot="label"> 备注 </template> <el-dialog
{{ this.form.note }} :title="viewTitle"
</el-descriptions-item> :visible.sync="viewOpen"
</el-descriptions> width="1200px"
append-to-body
:close-on-click-modal="false"
>
<el-descriptions
class="margin-top"
:column="2"
border
:labelStyle="{
'text-align': 'left',
width: '180px',
height: '50px',
}"
:contentStyle="{ minWidth: '350px' }"
>
<el-descriptions-item>
<template slot="label"> 堤防代码 </template>
{{ dikeCode }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 记录更新时间 </template>
{{ this.form.updateDate }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 决溢地点 </template>
{{ this.form.brspPl }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 决溢时间 </template>
{{ this.form.brspDatetime }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 决溢形式 </template>
{{ this.form.brspForm }}
</el-descriptions-item>
<!-- <el-descriptions-item>-->
<!-- <template slot="label"> 决溢损失 </template>-->
<!-- {{ this.form.brspLs }}-->
<!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>-->
<!-- <template slot="label"> 修复日期 </template>-->
<!-- {{ this.form.rpTime }}-->
<!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>-->
<!-- <template slot="label"> 淹没范围 </template>-->
<!-- {{ this.form.inRn }}-->
<!-- </el-descriptions-item>-->
<el-descriptions-item>
<template slot="label"> 备注 </template>
{{ this.form.note }}
</el-descriptions-item>
</el-descriptions>
</el-dialog>
<el-table
v-loading="loading"
:data="tableData"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" fixed />
<el-table-column
label="序号"
type="index"
width="50"
align="center"
fixed
/>
<el-table-column
label="堤防代码"
align="center"
prop="dikeCode"
min-width="120"
/>
<el-table-column
label="记录更新时间"
align="center"
prop="updateDate"
min-width="120"
/>
<el-table-column
label="决溢地点"
align="center"
prop="brspPl"
min-width="120"
/>
<el-table-column
label="决溢时间"
align="center"
prop="brspDatetime"
min-width="120"
/>
<el-table-column
label=""
align="决溢形式"
prop="brspForm"
min-width="120"
/>
<!-- <el-table-column
label="责任人类型"
align="center"
prop="personResponsibleType"
:formatter="personResponsibleTypeFormat"
min-width="120"
/> -->
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="180"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="viewInFo(scope.row)"
v-hasPermi="['yg:fzr:view']"
>查看</el-button
>
<!-- <el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['yg:fzr:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['yg:fzr:remove']"
>删除</el-button
> -->
</template>
</el-table-column>
</el-table>
<!-- <div class="btnList"> <!-- <div class="btnList">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -72,7 +214,7 @@ export default {
data() { data() {
return { return {
// //
loading: true, loading: false,
// //
ids: [], ids: [],
// //
@ -81,6 +223,10 @@ export default {
multiple: true, multiple: true,
// //
showSearch: true, showSearch: true,
tableData:[],
viewTitle: "",
//
viewOpen: false,
// //
total: 0, total: 0,
// //
@ -128,12 +274,19 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
viewInFo(row) {
this.form = row;
this.viewTitle = "历史决溢记录信息";
this.viewOpen = true;
},
/** 查询决溢记录列表 */ /** 查询决溢记录列表 */
getList() { getList() {
this.queryParams.data.dikeCode = this.dikeCode; this.queryParams.data.dikeCode = this.dikeCode;
listJyjl(this.queryParams).then((response) => { listJyjl(this.queryParams).then((response) => {
if (response.records[0]) { if (response.records[0]) {
this.form = response.records[0]; this.form = response.records[0];
this.tableData=response.record;
this.loading=false
} }
}); });
}, },

32
src/views/dike/engineeringCondition/dikeBaseInfo/options/index.vue

@ -27,14 +27,14 @@
<basePage ref="basePage" /> <basePage ref="basePage" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane <!-- <el-tab-pane-->
label="堤防横断面" <!-- label="堤防横断面"-->
name="dikeCrossSection" <!-- name="dikeCrossSection"-->
:disabled="!routeList[1].isEdit" <!-- :disabled="!routeList[1].isEdit"-->
:lazy="true" <!-- :lazy="true"-->
> <!-- >-->
<dikeCrossSection :dikeCode="this.formData.dikeCode" /> <!-- <dikeCrossSection :dikeCode="this.formData.dikeCode" />-->
</el-tab-pane> <!-- </el-tab-pane>-->
<el-tab-pane <el-tab-pane
label="堤防横断面特征值" label="堤防横断面特征值"
name="dikeCrossSectionTrait" name="dikeCrossSectionTrait"
@ -43,14 +43,14 @@
> >
<dikeCrossSectionTrait :dikeCode="this.formData.dikeCode" /> <dikeCrossSectionTrait :dikeCode="this.formData.dikeCode" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane <!-- <el-tab-pane-->
label="水文特征" <!-- label="水文特征"-->
name="hydrologicalCharacteristics" <!-- name="hydrologicalCharacteristics"-->
:disabled="!routeList[1].isEdit" <!-- :disabled="!routeList[1].isEdit"-->
:lazy="true" <!-- :lazy="true"-->
> <!-- >-->
<hydrologicalCharacteristics :dikeCode="this.formData.dikeCode" /> <!-- <hydrologicalCharacteristics :dikeCode="this.formData.dikeCode" />-->
</el-tab-pane> <!-- </el-tab-pane>-->
<el-tab-pane <el-tab-pane
label="管理体制" label="管理体制"

2
src/views/dike/safetyManage/declarationManage/declare/components/listPage/index.vue

@ -1338,7 +1338,7 @@ export default {
} }
}); });
} else { } else {
this.chartEleGetData(); // this.chartEleGetData();
addJbxx(this.form).then((response) => { addJbxx(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");

4
src/views/dike/safetyManage/declarationManage/declare/index.vue

@ -11,7 +11,7 @@
</el-breadcrumb-item> </el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<!-- <dataCharts ref="dataCharts" />--> <!-- <dataCharts ref="dataCharts" />-->
<listPage :chartEleGetData="chartEleGetData" /> <listPage />
</div> </div>
</template> </template>
<script> <script>
@ -42,7 +42,7 @@ export default {
// }, // },
// }, // },
mounted() { mounted() {
this.chartEleGetData = this.$refs.dataCharts?.getData; // this.chartEleGetData = this.$refs.dataCharts?.getData;
}, },
}; };
</script> </script>

Loading…
Cancel
Save