Compare commits

...

2 Commits

  1. 182
      src/views/Main/Dike/components/BaseInfo.vue
  2. 6
      src/views/Main/Dike/components/safetyAppraisal.vue
  3. 1
      src/views/Main/Sluice/components/BaseInfo.vue
  4. 8
      src/views/Main/Sluice/components/safetyAppraisal.vue
  5. 4
      src/views/Main/index.vue

182
src/views/Main/Dike/components/BaseInfo.vue

@ -142,7 +142,7 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="堤防横断面特征值" name="2" v-model="activeName" @tab-click="handleChangeTab" class="sub-tabs"> <el-tab-pane label="堤防横断面特征值" name="2" class="sub-tabs">
<el-table <el-table
:data="hdmzData" :data="hdmzData"
style="color: black" style="color: black"
@ -184,184 +184,14 @@
prop="intrCh" prop="intrCh"
min-width="200" min-width="200"
/> />
<el-table-column
label="至起始断面距离"
align="center"
prop="tointrDs"
min-width="200"
/>
<el-table-column
label="起测点位置"
align="center"
prop="jmsrpnPl"
min-width="200"
/>
<el-table-column
label="起测点高程"
align="center"
prop="jmsrpneLev"
min-width="200"
/>
<el-table-column
label="堤身土质"
align="center"
prop="bnbdSlch"
min-width="200"
/>
<el-table-column
label="堤身防渗形式"
align="center"
prop="bnbdAntp"
min-width="200"
/>
<el-table-column
label="堤基地质"
align="center"
prop="bnbsGl"
min-width="200"
/>
<el-table-column
label="堤基防渗形式"
align="center"
prop="bnbsAntp"
min-width="200"
/>
<el-table-column
label="堤身净高度"
align="center"
prop="bnbdHigh"
min-width="200"
/>
<el-table-column
label="堤顶高程"
align="center"
prop="bntpeLev"
min-width="200"
/>
<el-table-column
label="堤顶超高"
align="center"
prop="bntpFr"
min-width="200"
/>
<el-table-column
label="堤顶宽度"
align="center"
prop="bntpWd"
min-width="200"
/>
<el-table-column
label="迎河面堤脚高程"
align="center"
prop="upbnToel"
min-width="200"
/>
<el-table-column
label="背河面堤脚高程"
align="center"
prop="dwbnToel"
min-width="200"
/>
<el-table-column
label="迎河坡坡比"
align="center"
prop="upslSlrt"
min-width="200"
/>
<el-table-column
label="背河坡坡比"
align="center"
prop="dwslSlrt"
min-width="200"
/>
<el-table-column
label="迎河坡坡比"
align="center"
prop="upslSlrt"
min-width="200"
/>
<el-table-column
label="迎河坡护坡情况"
align="center"
prop="uspsIn"
min-width="200"
/>
<el-table-column
label="背河坡护坡情况"
align="center"
prop="dspsIn"
min-width="200"
/>
<el-table-column
label="迎河面滩地宽度"
align="center"
prop="upbtWide"
min-width="200"
/>
<el-table-column
label="迎河面滩地宽度"
align="center"
prop="upbtWide"
min-width="200"
/>
<el-table-column
label="迎河面平台(前戗)顶高程"
align="center"
prop="ufrteLev"
min-width="200"
/>
<el-table-column
label="迎河面平台(前戗)顶宽"
align="center"
prop="ufrtWide"
min-width="200"
/>
<el-table-column
label="迎河面平台(前戗)坡度"
align="center"
prop="upflRfsl"
min-width="200"
/>
<el-table-column
label="背河面平台(后戗)顶高程"
align="center"
prop="dfrtEl"
min-width="200"
/>
<el-table-column
label="背河面平台(后戗)顶高程"
align="center"
prop="dfrtEl"
min-width="200"
/>
<el-table-column
label="背河面平台(后戗)顶宽"
align="center"
prop="dfrtWide"
min-width="200"
/>
<el-table-column
label="背河面平台(后戗)坡度"
align="center"
prop="dwflRfsl"
min-width="200"
/>
<el-table-column
label="备注"
align="center"
prop="note"
min-width="200"
/>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="历史决溢记录" name="4" v-model="activeName" @tab-click="handleChangeTab" class="sub-tabs"> <el-tab-pane label="历史决溢记录" name="4" class="sub-tabs">
<el-table <el-table
:data="overflows" :data="overflows"
style="color: black" style="color: black"
> >
<el-table-column type="selection" width="55" align="center" fixed />
<el-table-column <el-table-column
label="序号" label="序号"
type="index" type="index"
@ -374,7 +204,9 @@
align="center" align="center"
prop="dikeName" prop="dikeName"
min-width="200" min-width="200"
/> >
{{ form.dikeName }}
</el-table-column>
<el-table-column <el-table-column
label="记录更新时间" label="记录更新时间"
align="center" align="center"
@ -419,7 +251,6 @@ import { getDictLabel } from "@/utils/dictUtils";
const props = defineProps({ const props = defineProps({
resCode: { resCode: {
type: String, type: String,
default: "HP0174401000000148",
}, },
pattOptions: { pattOptions: {
type: Array<{ dictLabel: string; dictValue: string }>, type: Array<{ dictLabel: string; dictValue: string }>,
@ -446,7 +277,6 @@ const hdmzData: any=ref([]);
const overflows: any=ref([]) const overflows: any=ref([])
const form: any = ref({}); const form: any = ref({});
const emits = defineEmits(["getResInfo"]); const emits = defineEmits(["getResInfo"]);
function initBaseInfo() { function initBaseInfo() {
getJbxx(props.resCode).then((res) => { getJbxx(props.resCode).then((res) => {
if (res) { if (res) {
@ -509,6 +339,8 @@ function initBaseAndRsppInfo() {
function initData() { function initData() {
activeName.value = "1"; activeName.value = "1";
initBaseAndRsppInfo(); initBaseAndRsppInfo();
initHdmtzz();
initJyjl()
} }
function handleChangeTab() { function handleChangeTab() {

6
src/views/Main/Dike/components/safetyAppraisal.vue

@ -9,11 +9,11 @@
format="YYYY-MM-DD" format="YYYY-MM-DD"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
placeholder="选择日期" placeholder="选择日期"
@change="initSafe"
style="color: black" style="color: black"
/> />
</div> </div>
<div class="right-options"> <div class="right-options">
<el-button type="primary" class="search-btn !ml-12" @click="handleSearch">查询</el-button>
<el-button @click="resetFilter">重置</el-button> <el-button @click="resetFilter">重置</el-button>
</div> </div>
</div> </div>
@ -139,7 +139,9 @@ const currentRow = reactive({
unitQualification: '', unitQualification: '',
mainIssues: '' mainIssues: ''
}); });
const handleSearch = () => {
initSafe();
};
// Dialog visibility // Dialog visibility
const dialogVisible = ref(false); const dialogVisible = ref(false);

1
src/views/Main/Sluice/components/BaseInfo.vue

@ -428,7 +428,6 @@ import { getDictLabel } from "@/utils/dictUtils";
const props = defineProps({ const props = defineProps({
resCode: { resCode: {
type: String, type: String,
default: "HP0074405150000010",
}, },
projTypeOptions: { projTypeOptions: {
type: Array<{ dictLabel: string; dictValue: string }>, type: Array<{ dictLabel: string; dictValue: string }>,

8
src/views/Main/Sluice/components/safetyAppraisal.vue

@ -9,11 +9,11 @@
format="YYYY-MM-DD" format="YYYY-MM-DD"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
placeholder="选择日期" placeholder="选择日期"
@change="initSafe"
style="color: black" style="color: black"
/> />
</div> </div>
<div class="right-options"> <div class="right-options">
<el-button type="primary" class="search-btn !ml-12" @click="handleSearch">查询</el-button>
<el-button @click="resetFilter">重置</el-button> <el-button @click="resetFilter">重置</el-button>
</div> </div>
</div> </div>
@ -126,6 +126,12 @@ const currentRow = reactive({
unitQualification: '', unitQualification: '',
mainIssues: '' mainIssues: ''
}); });
const handleSearch = () => {
initSafe();
};
const handleOverlayClick = (e: MouseEvent) => {
dialogVisible.value = false;
};
// View function // View function
const handleView = (row: any) => { const handleView = (row: any) => {

4
src/views/Main/index.vue

@ -60,9 +60,9 @@ const showBottomPanel = ref(true);
const showLayerTree = ref(false); const showLayerTree = ref(false);
const showReservoir = ref(false); // const showReservoir = ref(false); //
const reservoirData = ref({}); const reservoirData = ref({});
const showSluice = ref(true); // const showSluice = ref(false); //
const sluiceData = ref({}); const sluiceData = ref({});
const showDike = ref(false); // const showDike = ref(true); //
const dikeData = ref({}); const dikeData = ref({});
function layerTreeChange(val: boolean) { function layerTreeChange(val: boolean) {
showLayerTree.value = val; showLayerTree.value = val;

Loading…
Cancel
Save