Kaynağa Gözat

修改套餐添加id错误

wxy 4 ay önce
ebeveyn
işleme
1824816ada

+ 1 - 2
src/views/tariffManagement/Management/meal.vue

@@ -106,8 +106,6 @@ const handleOk = () => {
 const addUpate = async (item) => {
     item.period = Number(item.period)
     let res;
-
-
     if (item.id == '') {
         res = await addTariffPackage({ TrafficId: String(traffIds.value), price: item.price, currency: item.currency, period: item.period, label: item.label })
     } else {
@@ -157,6 +155,7 @@ watch(() => modelValue.value, async (val, newVal) => {
     }
 }, { deep: true })
 
+
 onMounted(() => {
     handeDict()
 })

+ 1 - 1
src/views/tariffManagement/config.js

@@ -1,5 +1,5 @@
 export let columns = [
-    { title: window.$t('tariffManagement.id'), dataIndex: 'id', align: 'center', width: 200, ellipsis: true },
+    { title: window.$t('tariffManagement.id'), dataIndex: 'Number', align: 'center', width: 200, ellipsis: true },
     // { title: window.$t('tariffManagement.feeCode'), dataIndex: 'feeCode', align: 'center', width: 200 },
     { title: window.$t('tariffManagement.userName'), dataIndex: 'userName', align: 'center', width: 200, ellipsis: true },
     { title: window.$t('tariffManagement.label'), dataIndex: 'label', align: 'center', width: 200, ellipsis: true },

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

@@ -190,7 +190,7 @@ const intData = async () => {
       status: "正常",
       bagSize,
       billingMethodName,
-      id: index + 1
+      Number: index + 1
     }
   })
   pagination.value.total = data.total