修改列表状态显示
This commit is contained in:
parent
3ccc209479
commit
1650b67ece
|
@ -109,11 +109,6 @@
|
||||||
align:"fileName",
|
align:"fileName",
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'fileName',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '创建时间',
|
|
||||||
align:"createTime",
|
|
||||||
dataIndex: 'createTime'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '模式名称',
|
title: '模式名称',
|
||||||
align:"schemaName",
|
align:"schemaName",
|
||||||
|
@ -124,10 +119,16 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
align:"createTime",
|
||||||
|
dataIndex: 'createTime'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
align:"parseStatus",
|
align:"center",
|
||||||
dataIndex: 'parseStatus',
|
dataIndex: 'parseStatus',
|
||||||
|
scopedSlots: { customRender: 'parseStatus' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
|
@ -197,12 +198,18 @@
|
||||||
},
|
},
|
||||||
processFile: function (record) {
|
processFile: function (record) {
|
||||||
var that = this;
|
var that = this;
|
||||||
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
isDataLinkFileParsed({fileId:record.fileId}).then((res) => {
|
||||||
if (res.success) {
|
if (res) {
|
||||||
this.$message.success(res.message);
|
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
||||||
that.loadData();
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
that.loadData();
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning("解析中请勿重复点击");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import uploadModal from './modules/uploadModal'
|
import uploadModal from './modules/uploadModal'
|
||||||
import { getFileLinkInfo,processFile,fileDataLinkDelete } from '@/api/fileDataLink'
|
import { getFileLinkInfo,processFile,fileDataLinkDelete,isDataLinkFileParsed } from '@/api/fileDataLink'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
import JEllipsis from "@/components/jeecg/JEllipsis";
|
||||||
import {deleteAction, postAction} from '@/api/manage'
|
import {deleteAction, postAction} from '@/api/manage'
|
||||||
|
@ -112,11 +112,6 @@
|
||||||
align:"fileName",
|
align:"fileName",
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'fileName',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '创建时间',
|
|
||||||
align:"createTime",
|
|
||||||
dataIndex: 'createTime'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '模式名称',
|
title: '模式名称',
|
||||||
align:"schemaName",
|
align:"schemaName",
|
||||||
|
@ -127,10 +122,16 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
align:"createTime",
|
||||||
|
dataIndex: 'createTime'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
align:"parseStatus",
|
align:"center",
|
||||||
dataIndex: 'parseStatus',
|
dataIndex: 'parseStatus',
|
||||||
|
scopedSlots: { customRender: 'parseStatus' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
|
@ -203,12 +204,18 @@
|
||||||
},
|
},
|
||||||
processFile: function (record) {
|
processFile: function (record) {
|
||||||
var that = this;
|
var that = this;
|
||||||
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
isDataLinkFileParsed({fileId:record.fileId}).then((res) => {
|
||||||
if (res.success) {
|
if (res) {
|
||||||
this.$message.success(res.message);
|
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
||||||
that.loadData();
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
that.loadData();
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning("解析中请勿重复点击");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<!-- :locale="myLocale"-->
|
<!-- :locale="myLocale"-->
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
<!-- 字符串超长截取省略号显示-->
|
||||||
<template slot="parseStatus" slot-scope="text,record">
|
<template slot="parseStatus" slot-scope="text">
|
||||||
<span style="color:black;" v-if="text === 0" >未解析</span>
|
<span style="color:black;" v-if="text === 0" >未解析</span>
|
||||||
<span style="color:darkorange;" v-if="text === 1">解析中</span>
|
<span style="color:darkorange;" v-if="text === 1">解析中</span>
|
||||||
<span style="color:#87d068;" v-if="text === 2">解析完成</span>
|
<span style="color:#87d068;" v-if="text === 2">解析完成</span>
|
||||||
|
@ -109,11 +109,6 @@
|
||||||
align:"fileName",
|
align:"fileName",
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'fileName',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '创建时间',
|
|
||||||
align:"createTime",
|
|
||||||
dataIndex: 'createTime'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '模式名称',
|
title: '模式名称',
|
||||||
align:"schemaName",
|
align:"schemaName",
|
||||||
|
@ -124,10 +119,16 @@
|
||||||
align:"tableName",
|
align:"tableName",
|
||||||
dataIndex: 'tableName',
|
dataIndex: 'tableName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
align:"createTime",
|
||||||
|
dataIndex: 'createTime'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
align:"center",
|
align:"center",
|
||||||
dataIndex: 'parseStatus',
|
dataIndex: 'parseStatus',
|
||||||
|
scopedSlots: { customRender: 'parseStatus' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '解析进度',
|
title: '解析进度',
|
||||||
|
@ -197,12 +198,18 @@
|
||||||
},
|
},
|
||||||
processFile: function (record) {
|
processFile: function (record) {
|
||||||
var that = this;
|
var that = this;
|
||||||
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
isDataLinkFileParsed({fileId:record.fileId}).then((res) => {
|
||||||
if (res.success) {
|
if (res) {
|
||||||
this.$message.success(res.message);
|
postAction("/fileDataLink/processFile?dataLinkId="+record.id,{}).then((res) => {
|
||||||
that.loadData();
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
that.loadData();
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning("解析中请勿重复点击");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
<a-col :md="6" :sm="24" >
|
<a-col :md="6" :sm="24" >
|
||||||
<a-button type="primary" style="left: 10px" @click="loadData" icon="search">查询</a-button>
|
<a-button type="primary" style="left: 10px" @click="loadData" icon="search">查询</a-button>
|
||||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px;left: 10px">重置</a-button>
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px;left: 10px">重置</a-button>
|
||||||
<a-button type="primary" @click="handleAdd" icon="upload" style="margin-left: 8px;left: 10px">上传</a-button>
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user