添加页面优化
This commit is contained in:
parent
d2a7f52bb7
commit
dabd7e5cda
|
@ -60,7 +60,7 @@
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<uploadModal ref="modalForm"></uploadModal>
|
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -123,6 +123,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '解析进度',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'percent',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析时间开始',
|
title: '解析时间开始',
|
||||||
align:"analyzeStartTime",
|
align:"analyzeStartTime",
|
||||||
|
|
|
@ -42,12 +42,9 @@
|
||||||
<!-- :locale="myLocale"-->
|
<!-- :locale="myLocale"-->
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
<!-- 字符串超长截取省略号显示-->
|
||||||
<span slot="name" slot-scope="text">
|
<template slot="percent" slot-scope="text">
|
||||||
<j-ellipsis :value="text" :length="20" />
|
<span>{{ percent(text) }}</span>
|
||||||
</span>
|
</template>
|
||||||
<span slot="describe" slot-scope="text">
|
|
||||||
<j-ellipsis :value="text" :length="20" />
|
|
||||||
</span>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
<a @click="processFile(record)" v-has="'cont:btn'">解析</a>
|
||||||
<a-divider type="vertical" v-has="'cont:btn'" />
|
<a-divider type="vertical" v-has="'cont:btn'" />
|
||||||
|
@ -60,7 +57,7 @@
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<uploadModal ref="modalForm"></uploadModal>
|
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -123,6 +120,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '解析进度',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'percent',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析时间开始',
|
title: '解析时间开始',
|
||||||
align:"analyzeStartTime",
|
align:"analyzeStartTime",
|
||||||
|
@ -160,6 +162,9 @@
|
||||||
this.ipagination = pagination;
|
this.ipagination = pagination;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
|
percent(val){
|
||||||
|
return (parseFloat(val)*100)+"%";
|
||||||
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
getFileLinkInfo(this.queryParam).then((res) => {
|
getFileLinkInfo(this.queryParam).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|
|
@ -52,19 +52,22 @@ import SliceUpload from './SliceUpload'
|
||||||
methods: {
|
methods: {
|
||||||
add () {
|
add () {
|
||||||
this.visible =true;
|
this.visible =true;
|
||||||
|
this.$refs.technicalUpload.deleteFile();
|
||||||
},
|
},
|
||||||
onOk(value) {
|
onOk(value) {
|
||||||
this.model.startDate = moment(value[0],dateFormat);
|
this.model.startDate = moment(value[0],dateFormat);
|
||||||
this.model.endDate = moment(value[1],dateFormat);
|
this.model.endDate = moment(value[1],dateFormat);
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
this.$emit('close');
|
this.$emit('ok');
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
},
|
||||||
handleOk () {
|
handleOk () {
|
||||||
|
this.$emit('ok');
|
||||||
this.close();
|
this.close();
|
||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
|
this.$emit('ok');
|
||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<uploadModal ref="modalForm"></uploadModal>
|
<uploadModal ref="modalForm" @ok="loadData"></uploadModal>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -123,6 +123,11 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '解析进度',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'percent',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '解析时间开始',
|
title: '解析时间开始',
|
||||||
align:"analyzeStartTime",
|
align:"analyzeStartTime",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user