添加全部解析

This commit is contained in:
RenCheng 2025-04-15 22:37:16 +08:00
parent e51cd036bd
commit 8badf8b271
3 changed files with 31 additions and 1 deletions

View File

@ -20,6 +20,7 @@
<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="handleAdd" icon="upload" style="margin-left: 8px;left: 10px">上传</a-button>
<a-button type="primary" @click="allprocess" icon="upload" style="margin-left: 8px;left: 10px">全部解析</a-button>
</a-col>
</span>
@ -199,6 +200,15 @@
}
});
},
allprocess:function(){
getAction("/fileDataLink/processAllFile?dataLinkType=3",{}).then((res) => {
if (res.success) {
this.$message.success(res.message);
} else {
this.$message.warning(res.message);
}
});
},
processFile: function (record) {
var that = this;
isDataLinkFileParsed({fileId:record.fileId}).then((res) => {

View File

@ -20,6 +20,7 @@
<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="handleAdd" icon="upload" style="margin-left: 8px;left: 10px">上传</a-button>
<a-button type="primary" @click="allprocess" icon="upload" style="margin-left: 8px;left: 10px">全部解析</a-button>
</a-col>
</span>
@ -194,6 +195,15 @@
}
});
},
allprocess:function(){
getAction("/fileDataLink/processAllFile?dataLinkType=2",{}).then((res) => {
if (res.success) {
this.$message.success(res.message);
} else {
this.$message.warning(res.message);
}
});
},
handleDelete: function (id) {
var that = this;
deleteAction("/fileDataLink/delete?id="+id,{}).then((res) => {

View File

@ -20,6 +20,7 @@
<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="handleAdd" icon="upload" style="margin-left: 8px;left: 10px">上传</a-button>
<a-button type="primary" @click="allprocess" icon="upload" style="margin-left: 8px;left: 10px">全部解析</a-button>
</a-col>
</span>
@ -70,7 +71,7 @@
import { getFileLinkInfo,processFile,fileDataLinkDelete,isDataLinkFileParsed } from '@/api/fileDataLink'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JEllipsis from "@/components/jeecg/JEllipsis";
import {deleteAction, postAction} from '@/api/manage'
import {deleteAction, postAction,getAction} from '@/api/manage'
export default {
name: "waterDocuments",
mixins:[JeecgListMixin],
@ -189,6 +190,15 @@
}
});
},
allprocess:function(){
getAction("/fileDataLink/processAllFile?dataLinkType=1",{}).then((res) => {
if (res.success) {
this.$message.success(res.message);
} else {
this.$message.warning(res.message);
}
});
},
handleDelete: function (id) {
var that = this;
deleteAction("/fileDataLink/delete?id="+id,{}).then((res) => {