فهرست منبع

耳穴和经络支持拼音查询

张田田 4 روز پیش
والد
کامیت
19e3402a1d
1فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 6 5
      src/views/business/components/AcupointTable.vue

+ 6 - 5
src/views/business/components/AcupointTable.vue

@@ -1163,13 +1163,14 @@ export default {
         console.error("获取穴位列表失败", e);
       }
     },
-    async getMeridianList(keyword = "") {
+    async getMeridianList(keyword = "", serchtype = "") {
       try {
         const res = await collateralChannels({
           mertype: "1",
           pageid: 1,
           pagesize: 999,
           keyword: keyword,
+          serchtype: serchtype,
         });
         if (res.code == 0) {
           this.meridianList = (res.data.meridians || []).map((item) => ({
@@ -1181,9 +1182,9 @@ export default {
         console.error("获取经络列表失败", e);
       }
     },
-    async getEarAcupointList(keyword = "") {
+    async getEarAcupointList(keyword = "", serchtype = "") {
       try {
-        const params = { page: 1, limit: 999 };
+        const params = { page: 1, limit: 999, serchtype };
         if (keyword) params.keyWord = keyword;
         const res = await getAcuMeridianList(params);
         if (res.code == 0) {
@@ -1219,10 +1220,10 @@ export default {
       const serchtype = pinyin.test(query) ? "1" : "";
       switch (type) {
         case "经络":
-          this.getMeridianList(query);
+          this.getMeridianList(query, serchtype);
           break;
         case "耳穴":
-          this.getEarAcupointList(query);
+          this.getEarAcupointList(query, serchtype);
           break;
         default:
           this.getAcupointList(query, serchtype);