zhuxinbo 5 rokov pred
rodič
commit
5f0827f6f5

+ 1 - 10
src/views/modules/material/materialList.vue

@@ -688,7 +688,7 @@ export default {
     }
   },
   created() {
-    this.queryParam.type = 'image'
+    this.queryParam.type = 'IMAGE'
     this.queryParam.userId = this.userInfo().id
     this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
     this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
@@ -1015,15 +1015,6 @@ export default {
       //   this.tags = []
     },
     onChange(date, dateString) {},
-    callback(key) {
-      this.checkAll = false
-      this.checkArr = []
-      if (this.form.getFieldValue('projectId')) {
-        this.form.setFieldsValue({ projectId: '' })
-      }
-      this.queryParam.type = key
-      this.loadData()
-    },
     callbackTwo(key) {
       this.checkAll = false
       this.checkArr = []

+ 1 - 10
src/views/modules/material/videoMaterial.vue

@@ -738,7 +738,7 @@ export default {
     }
   },
   created() {
-    this.queryParam.type = 'video'
+    this.queryParam.type = 'VIDEO'
     this.queryParam.userId = this.userInfo().id
     this.queryParam.status = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
     this.active = localStorage.getItem('key') ? localStorage.getItem('key') : '0'
@@ -1046,15 +1046,6 @@ export default {
       //   this.tags = []
     },
     onChange(date, dateString) {},
-    callback(key) {
-      this.checkAll = false
-      this.checkArr = []
-      if (this.form.getFieldValue('projectId')) {
-        this.form.setFieldsValue({ projectId: '' })
-      }
-      this.queryParam.type = key
-      this.loadData()
-    },
     callbackTwo(key) {
       this.checkAll = false
       this.checkArr = []