Browse Source

修改默认绑定资费空字段

吴sir 2 months ago
parent
commit
e2f442b21e

+ 39 - 0
src/components/Steps/index.vue

@@ -0,0 +1,39 @@
+<template>
+    <a-steps changeable :current="current" @change="setCurrent">
+        <a-step description="This is a description">Succeeded</a-step>
+        <a-step description="This is a description">Processing</a-step>
+        <a-step description="This is a description">Pending</a-step>
+    </a-steps>
+    <div :style="{
+        width: '100%',
+        height: '200px',
+        textAlign: 'center',
+        background: 'var(--color-bg-2)',
+        color: '#C2C7CC',
+    }">
+        <a-space size="large">
+            <a-button type="secondary" :disabled="current <= 1" @click="onPrev">
+                <IconLeft /> Back
+            </a-button>
+            <a-button type="primary" :disabled="current >= 3" @click="onNext">
+                Next
+                <IconRight />
+            </a-button>
+        </a-space>
+    </div>
+</template>
+<script setup>
+import { reactive } from 'vue'
+     const current = reactive(1)
+        onPrev() {
+            current = Math.max(1, this.current - 1)
+        }
+
+        onNext() {
+            current = Math.min(3, this.current + 1)
+        }
+
+        setCurrent(current) {
+            current = current
+        }
+</script>

+ 1 - 1
src/views/admin/tariffManagement/SetMeal/index.vue

@@ -25,7 +25,7 @@
             {{ filterDict(SetMealList, record.isRecharge) }}
           </template>
           <template #defaultTrafficName="{ record }">
-            {{ record.defaultTraffic.label }}
+            {{ record.defaultTraffic?.label || ''}}
           </template>
         </a-table>
       </div>

+ 1 - 7
src/views/admin/trafficList/config.js

@@ -39,7 +39,7 @@ export const SearchFormList = [
   {
     type: "input",
     label: "流量包名称",
-    field: "userName", 
+    field: "name", 
     value: "", // 双向绑定的值
   },
   {
@@ -54,12 +54,6 @@ export const SearchFormList = [
     field: "userName", 
     value: "", // 双向绑定的值
   },
-  {
-    type: "input",
-    label: "套餐可用流量",
-    field: "userName", 
-    value: "", // 双向绑定的值
-  },
   {
     type: "input",
     label: "默认限速",

+ 1 - 1
src/views/user/SetMeal/index.vue

@@ -21,7 +21,7 @@
             {{ filterDict(SetMealList, record.isRecharge) }}
           </template>
           <template #defaultTrafficName="{ record }">
-            {{ record.defaultTraffic.label }}
+            {{ record.defaultTraffic?.label || ''}}
           </template>
         </a-table>
       </div>