|
@@ -50,7 +50,7 @@
|
|
|
size="small"
|
|
|
v-if="scope.row.status < 1"
|
|
|
:icon="Notification"
|
|
|
- plain
|
|
|
+ plain
|
|
|
@click="() => importFilesFun(scope.row.id)"
|
|
|
>
|
|
|
导入文件
|
|
@@ -162,13 +162,13 @@ const onSubmit = () => {
|
|
|
|
|
|
// 轮询结果'
|
|
|
const lunxun = () => {
|
|
|
- if (t) {
|
|
|
- clearInterval(t);
|
|
|
- }
|
|
|
- t = setTimeout(() => {
|
|
|
- getProList()
|
|
|
- }, 5000);
|
|
|
-}
|
|
|
+ if (t) {
|
|
|
+ clearInterval(t);
|
|
|
+ }
|
|
|
+ t = setTimeout(() => {
|
|
|
+ getProList(false);
|
|
|
+ }, 5000);
|
|
|
+};
|
|
|
|
|
|
const create = () => {
|
|
|
importId = '';
|
|
@@ -188,11 +188,14 @@ const change = e => {
|
|
|
getProList();
|
|
|
};
|
|
|
|
|
|
-const getProList = () => {
|
|
|
+const getProList = (noload = true) => {
|
|
|
getList({
|
|
|
- page: page.value,
|
|
|
- pageSize: 10,
|
|
|
- keyword: formInline.value.user
|
|
|
+ data: {
|
|
|
+ page: page.value,
|
|
|
+ pageSize: 10,
|
|
|
+ keyword: formInline.value.user
|
|
|
+ },
|
|
|
+ noload
|
|
|
}).then(res => {
|
|
|
tableData.value = res.records || [];
|
|
|
total.value = res.total;
|
|
@@ -210,7 +213,6 @@ const deleteProject = id => {
|
|
|
};
|
|
|
|
|
|
const createPro = () => {
|
|
|
-
|
|
|
!importId &&
|
|
|
createPlag({
|
|
|
projectName: proName.value
|