Browse Source

检索导入时切换数据库选项没更新

zhuliu 1 year ago
parent
commit
1126030154

+ 12 - 2
src/views/components/dialog/nodeCopy.vue

@@ -210,7 +210,12 @@ export default {
         var params = {
             ...this.queryParams,
             searchQuery:this.$commonJS.objectToString(this.searchOption),//检索条件
-            orderDTOList: this.sort,//排序
+            orderDTOList: [
+                {
+                    "orderBy": "category_createTime",
+                    "orderType": 1
+                }
+            ],//排序
         }
         this.loading = true
         this.$api.queryProductCategory(params).then(response=>{
@@ -230,7 +235,12 @@ export default {
         var params = {
             ...this.queryParams,
             searchQuery:this.$commonJS.objectToString(this.searchOption),//检索条件
-            orderDTOList: this.sort,//排序
+            orderDTOList: [
+                {
+                    "orderBy": "product_createTime",
+                    "orderType": 1
+                }
+            ],//排序
         }
         this.loading = true
         this.$api.queryProduct(params).then(response=>{

+ 4 - 0
src/views/components/import/conditionImport/components/projectListDialog.vue

@@ -437,6 +437,10 @@ export default {
     
     //切换项目
     changeProjectId(val) {
+      if(!val){
+        this.remoteMethod(val)
+        return
+      }
       if(this.form.importToId && this.form.importToType != 2){
         this.customFieldId = ''
             //获取所有栏位