Forráskód Böngészése

会员轨迹类型

ct 2 napja
szülő
commit
4edd20b0b1
2 módosított fájl, 14 hozzáadás és 5 törlés
  1. 9 0
      src/api/his/userOperationLog.js
  2. 5 5
      src/views/his/user/userBehavior.vue

+ 9 - 0
src/api/his/userOperationLog.js

@@ -8,3 +8,12 @@ export function listUserOperationLog(query) {
     params: query
   })
 }
+
+// 查询用户操作日志类型
+export function getOperationType() {
+  return request({
+    url: '/his/userOperationLog/getOperationType',
+    method: 'get'
+  })
+}
+

+ 5 - 5
src/views/his/user/userBehavior.vue

@@ -13,9 +13,9 @@
         >
           <el-option
             v-for="item in typeList"
-            :key="item.dictValue"
-            :label="item.dictLabel"
-            :value="item.dictLabel"
+            :key="item"
+            :label="item"
+            :value="item"
           ></el-option>
         </el-select>
       </div>
@@ -143,7 +143,7 @@
 </template>
 
 <script>
-import { listUserOperationLog} from "@/api/his/userOperationLog";
+import { listUserOperationLog,getOperationType} from "@/api/his/userOperationLog";
 
 export default {
   data() {
@@ -163,7 +163,7 @@ export default {
     };
   },
   created() {
-    this.getDicts("fs_user_operation_type").then(response => {
+    getOperationType().then(response => {
       this.typeList = response.data;
     });
   },