From fb98e10c76d7e6c2d01f3a9f8c1b727f905cbdca Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期一, 05 二月 2024 15:30:50 +0800 Subject: [PATCH] 代码更新 --- src/views/Archive/index.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/Archive/index.vue b/src/views/Archive/index.vue index ba3fc61..66fcff7 100644 --- a/src/views/Archive/index.vue +++ b/src/views/Archive/index.vue @@ -2568,7 +2568,7 @@ this.listData.dirs = ""; this.listData.types = "" if (this.formInline.category.length != 0) { - this.listData.dirs += this.formInline.category.toString(); + // this.listData.dirs += this.formInline.category.toString(); } var val_data = this.formInline.category; @@ -2618,7 +2618,9 @@ this.listData.dirs = ""; if (this.formInline.category.length != 0) { - this.listData.dirs += this.formInline.category.toString(); + this.listData.types = this.formInline.category.toString(); + }else{ + this.listData.types=null; } if (this.formInline.item.length != 0) { if (this.listData.dirs.length != 0) { @@ -2677,12 +2679,22 @@ }, //鑾峰彇璧勬枡绫诲埆鏁版嵁 async getCategorySelectData() { - const data = await dataLib_selectDirTypes(); - if (data.code != 200) { - this.$message.error('璧勬枡绫诲埆鍒楄〃璋冪敤澶辫触'); - } + // const data = await dataLib_selectDirTypes(); + // if (data.code != 200) { + // this.$message.error('璧勬枡绫诲埆鍒楄〃璋冪敤澶辫触'); + // } - this.categoryOptions = data.result; + this.categoryOptions = [ + {key:'鍩虹娴嬬粯',value:'鍩虹娴嬬粯'}, + {key:'鍩虹鍦扮伨',value:'鍩虹鍦扮伨'}, + {key:'鍩虹鍕樺療',value:'鍩虹鍕樺療'}, + {key:'鍚堣鏁版嵁',value:'鍚堣鏁版嵁'}, + {key:'绠$悊鏁版嵁',value:'绠$悊鏁版嵁'}, + {key:'娴嬬粯锛圗SV锛�',value:'娴嬬粯锛圗SV锛�'}, + {key:'鍕樺療锛圗GE锛�',value:'鍕樺療锛圗GE锛�'}, + {key:'鍦扮伨锛圗GD锛�',value:'鍦扮伨锛圗GD锛�'}, + {key:'娲炲簱锛圗GD锛�',value:'娲炲簱锛圗GD锛�'}, + ]; }, //鍏抽敭瀛楁煡璇� setSearchKeyWords() { -- Gitblit v1.9.3