wxy 4 ماه پیش
والد
کامیت
5e6055cab6

+ 3 - 0
src/views/flowPool/components/forewarning.vue

@@ -192,6 +192,9 @@ onMounted(() => {
           <a-form-item field="clientSingleCardWarn"  :label="$t('forewarning.SingleCardUsage')">
             <a-input-number v-model="formWarning.clientSingleCardWarn" :style="{ width: '320px' }" :placeholder="$t('forewarning.PleaseEnter')"
               allow-clear hide-button>
+              <template #suffix>
+                %
+              </template>
             </a-input-number>
             <a-checkbox v-model="formWarning.clientSingleCardWarnSwitch">{{ $t('forewarning.reach') }}</a-checkbox>
           </a-form-item>

+ 1 - 2
src/views/flowPool/config.js

@@ -1,5 +1,5 @@
 export const columns = [
-    { title: window.$t('flowPool.poolNumber'), dataIndex: 'id', align: 'center', width: 200 ,tooltip:true,ellipsis:true},
+    { title: window.$t('flowPool.poolNumber'), dataIndex: 'id', align: 'center', ellipsis:true,width: 50 },
     { title: window.$t('flowPool.label'), dataIndex: 'label', align: 'center', width: 200 ,tooltip:true,ellipsis:true},
     // { title: window.$t('flowPool.userId'), dataIndex: 'user_id', align: 'center', width: 200 },
     // { title: window.$t('flowPool.trafficPoolType'), dataIndex: 'trafficPoolType', align: 'center', width: 200 },
@@ -18,7 +18,6 @@ export const columns = [
     { title: window.$t('flowPool.updated_at'), dataIndex: 'updatedAt', align: 'center', width: 200,tooltip:true,ellipsis:true },
     {
         title: window.$t('global.common.operations'),
-        dataIndex: 'id',
         slotName: 'id',
         align: 'center',
         width: 250,

+ 4 - 4
src/views/flowPool/rearFlowPool/index.vue

@@ -103,10 +103,9 @@
             $t("form.Delete")
           }}</a>
         </a-popconfirm>
-        <!-- 导卡 -->
-        <!--        <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="dictShowModel(3, record)">{{-->
-        <!--            $t('flowPool.exportCard')-->
-        <!--          }}</a>-->
+      </template>
+      <template #status="{ record }">
+        <a-tag :color="record.status==1?'#00b42a':'#f53f3f'">{{ trafficList.find(val => val.value == record.status)?.label }}</a-tag>
       </template>
     </a-table>
     <add
@@ -240,6 +239,7 @@ const handelForewring = (item) => {
 
 const handleDictValue = async () => {
   sourceList.value = await Getdictionary("source");
+  trafficList.value = await Getdictionary("trafficPacketStatus");
 };
 
 onMounted(async () => {

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

@@ -106,8 +106,10 @@ const handleOk = () => {
 const addUpate = async (item) => {
     item.period = Number(item.period)
     let res;
+
+
     if (item.id == '') {
-        res = await addTariffPackage({ TrafficId: traffIds.value, price: item.price, currency: item.currency, period: item.period, label: item.label })
+        res = await addTariffPackage({ TrafficId: String(traffIds.value), price: item.price, currency: item.currency, period: item.period, label: item.label })
     } else {
         res = await UpdateTariffTtems(item)
     }