吴sir hai 2 meses
pai
achega
a651b7bca4
Modificáronse 2 ficheiros con 7 adicións e 25 borrados
  1. 7 19
      src/views/SetMeal/addSetMeal.vue
  2. 0 6
      src/views/SetMeal/config.js

+ 7 - 19
src/views/SetMeal/addSetMeal.vue

@@ -5,7 +5,7 @@
         </div>
 
         <div class="addSetMeal">
-            <a-button  @click="breakFlos">返回</a-button>
+            <a-button @click="breakFlos">返回</a-button>
         </div>
 
         <div class="table">
@@ -27,7 +27,7 @@ import { CheckTariffPackages } from '@/api/path/tariffManagement.api'
 import { Getdictionary, tableFunction, filterDict } from '@/mixins/index.js'
 import Search from '@/components/Search/index.vue'
 import { columnsTarrit } from './config'
-import { tariffList} from "@/api/path/tariffManagement.api"
+import { tariffList } from "@/api/path/tariffManagement.api"
 const props = defineProps({
     id: [Array, String]
 })
@@ -41,15 +41,10 @@ const state = ref({
         current: 1,
         simTerminalId: null
     },
-    visible: false,
-    puyType: [],
-    cyciy: [],
-    Currency: [],
     tariffListData: [],
     billingMethodList: [],
-    Type: true,
 })
-const { pagination, visible, puyType, Currency, cyciy, tariffListData, formRef, billingMethodList, Type } = toRefs(state.value)
+const { pagination, tariffListData, billingMethodList, } = toRefs(state.value)
 
 
 const processData = (data) => {
@@ -69,19 +64,12 @@ const processData = (data) => {
 const { tableData, evChangePage, initData, reset } = tableFunction(pagination.value, CheckTariffPackages, processData)
 
 
-const breakFlos = ()=>{
-   emits('break',true)
+const breakFlos = () => {
+    emits('break', true)
 }
 
 onMounted(async () => {
-    let dict = await Getdictionary(['RechargeType', 'PuyCycle', 'currencyType', 'billingMethod'])
-    puyType.value = dict[0]
-    Form.value.type = puyType.value[0]?.value
-    cyciy.value = dict[1]
-    Form.value.timeUnit = cyciy.value[0]?.value
-    Currency.value = dict[2]
-    Form.value.currency = Currency.value[0]?.value
-    billingMethodList.value = dict[3]
+    billingMethodList.value = await Getdictionary('billingMethod')
     let res = await tariffList({ current: 1, size: 99999 })
     if (res.code === 200) {
         tariffListData.value = (res.data.records || []).map(item => {
@@ -103,7 +91,7 @@ onMounted(async () => {
     margin-top: 20px;
 }
 
-.addSetMeal{
+.addSetMeal {
     display: flex;
     justify-content: space-between;
 }

+ 0 - 6
src/views/SetMeal/config.js

@@ -189,10 +189,4 @@ export const columnsTarrit = [
     align: "center",
     ellipsis: true,
   },
-  {
-    title: "操作",
-    align: "center",
-    slotName: 'options',
-    fixed: 'right'
-  },
 ]