添加页面优化

This commit is contained in:
RenCheng 2025-02-22 16:09:12 +08:00
parent d2a7f52bb7
commit dabd7e5cda
4 changed files with 28 additions and 10 deletions

View File

@ -60,7 +60,7 @@
<!-- table区域-end -->
<!-- 表单区域 -->
<uploadModal ref="modalForm"></uploadModal>
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
</a-card>
</template>
@ -123,6 +123,11 @@
align:"tableName",
dataIndex: 'tableName',
},
{
title: '解析进度',
align:"center",
dataIndex: 'percent',
},
{
title: '解析时间开始',
align:"analyzeStartTime",

View File

@ -42,12 +42,9 @@
<!-- :locale="myLocale"-->
<!-- 字符串超长截取省略号显示-->
<span slot="name" slot-scope="text">
<j-ellipsis :value="text" :length="20" />
</span>
<span slot="describe" slot-scope="text">
<j-ellipsis :value="text" :length="20" />
</span>
<template slot="percent" slot-scope="text">
<span>{{ percent(text) }}</span>
</template>
<span slot="action" slot-scope="text, record">
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
<a-divider type="vertical" v-has="'cont:btn'" />
@ -60,7 +57,7 @@
<!-- table区域-end -->
<!-- 表单区域 -->
<uploadModal ref="modalForm"></uploadModal>
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
</a-card>
</template>
@ -123,6 +120,11 @@
align:"tableName",
dataIndex: 'tableName',
},
{
title: '解析进度',
align:"center",
dataIndex: 'percent',
},
{
title: '解析时间开始',
align:"analyzeStartTime",
@ -160,6 +162,9 @@
this.ipagination = pagination;
this.loadData();
},
percent(val){
return (parseFloat(val)*100)+"%";
},
loadData() {
getFileLinkInfo(this.queryParam).then((res) => {
if (res.success) {

View File

@ -52,19 +52,22 @@ import SliceUpload from './SliceUpload'
methods: {
add () {
this.visible =true;
this.$refs.technicalUpload.deleteFile();
},
onOk(value) {
this.model.startDate = moment(value[0],dateFormat);
this.model.endDate = moment(value[1],dateFormat);
},
close () {
this.$emit('close');
this.$emit('ok');
this.visible = false;
},
handleOk () {
this.$emit('ok');
this.close();
},
handleCancel () {
this.$emit('ok');
this.close()
},
}

View File

@ -60,7 +60,7 @@
<!-- table区域-end -->
<!-- 表单区域 -->
<uploadModal ref="modalForm"></uploadModal>
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
</a-card>
</template>
@ -123,6 +123,11 @@
align:"tableName",
dataIndex: 'tableName',
},
{
title: '解析进度',
align:"center",
dataIndex: 'percent',
},
{
title: '解析时间开始',
align:"analyzeStartTime",