liyongli 1 rok temu
rodzic
commit
d2c3e4737a
2 zmienionych plików z 17 dodań i 14 usunięć
  1. 2 1
      src/api/plagiarismCheck.js
  2. 15 13
      src/view/plagiarismCheck/index.vue

+ 2 - 1
src/api/plagiarismCheck.js

@@ -27,7 +27,8 @@ export function getList(ori) {
   return ajax({
     api: '/bid/project/list',
     base: 'videoProcessing',
-    data: ori,
+    data: ori.data,
+    noload: ori.noload,
     method: 'POST',
     headers: {
       Authorization: localStorage.getItem('token')

+ 15 - 13
src/view/plagiarismCheck/index.vue

@@ -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