修复1-4问题

This commit is contained in:
庞东林
2022-01-05 17:59:03 +08:00
parent 19b5a12146
commit 42e2757b12
2 changed files with 33 additions and 16 deletions

View File

@@ -18,6 +18,19 @@
<template #county="{text}">
{{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">
@@ -133,7 +146,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: {
@@ -296,7 +311,8 @@ export default {
.edit-input{
margin-right: 5px;
width: 200px;
min-width: 200px;
width: 100%;
}
}
.editable-cell-text-wrapper{