江河联动

This commit is contained in:
庞东林
2022-01-10 09:56:26 +08:00
parent 4873ce3b96
commit fe1e0a71d4
17 changed files with 685 additions and 100 deletions

View File

@@ -61,7 +61,7 @@
<template #desc="{ text, record ,index }">
<div class="editable-cell">
<div v-if="editableData[index] && editableData[index].edable=='reason'" class="editable-cell-input-wrapper">
<a-input class="edit-input" v-model:value="editableData[index]['reason']" @pressEnter="save(index)" />
<a-textarea class="edit-input" v-model:value="editableData[index]['reason']" @pressEnter="save(index)" />
<check-outlined class="editable-cell-icon-check" @click="save(index)" />
</div>
<div v-else class="editable-cell-text-wrapper">

View File

@@ -19,6 +19,19 @@
{{text="市区"}}
</template>
<template #checknumber="{ text, record ,index }">
<div class="editable-cell">
<div v-if="editableData[index] && editableData[index].edable=='index1'" class="editable-cell-input-wrapper">
<a-input class="edit-input" v-model:value="editableData[index]['index1']" @pressEnter="save(index)" />
<check-outlined class="editable-cell-icon-check" @click="save(index)" />
</div>
<div v-else class="editable-cell-text-wrapper">
{{ (Array.isArray(text)? text[0]: text) || ' ' }}
<edit-outlined class="editable-cell-icon" @click="edit(record,index,'index1')" />
</div>
</div>
</template>
<template #enumber="{ text, record ,index }">
<div class="editable-cell">
<div v-if="editableData[index] && editableData[index].edable=='index3'" class="editable-cell-input-wrapper">
@@ -48,7 +61,7 @@
<template #desc="{ text, record ,index }">
<div class="editable-cell">
<div v-if="editableData[index] && editableData[index].edable=='index6'" class="editable-cell-input-wrapper">
<a-input class="edit-input" v-model:value="editableData[index]['index6']" @pressEnter="save(index)" />
<a-textarea class="edit-input" v-model:value="editableData[index]['index6']" @pressEnter="save(index)" />
<check-outlined class="editable-cell-icon-check" @click="save(index)" />
</div>
<div v-else class="editable-cell-text-wrapper">
@@ -134,7 +147,9 @@ export default {
{title:"类型",dataIndex:"waterSourceProperty",},
{title:"监测时间",dataIndex:"monitorTime"},
// {title:"监测时间",dataIndex:"reportTime",customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")},
{title:"应当监测项目个数",dataIndex:'index1', },
{title:"应当监测项目个数",dataIndex:'index1',slots: {
customRender: 'checknumber',
} },
{title:"未测个数",dataIndex:"noCheckNum",},
{title:"独立分析项目个数",dataIndex:"index3",
slots: {
@@ -227,6 +242,7 @@ export default {
this.getPageData()
this.columns[6].filters = []
this.columns[6].filterMultiple = false
if(this.where.waterSourceType ==1 ){
// 地表水
this.columns[6].filters = [