فهرست منبع

修改变量名称

wxy 3 ماه پیش
والد
کامیت
42824879d9
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/tariffManagement/Management/add.vue

+ 3 - 3
src/views/tariffManagement/Management/add.vue

@@ -1,6 +1,6 @@
 <template>
     <!--资费 弹框 -->
-    <a-modal :title="typeIndex == 1 ? $t('form.Add') : $t('form.Edit')" v-model:visible="modelValue"
+    <a-modal :title="typeIndexSet == 1 ? $t('form.Add') : $t('form.Edit')" v-model:visible="modelValue"
         @onCancel="resetForm" centered :maskClosable="false" :footer="null" width="700px" :closable="false">
         <a-form ref="formRef" :rules="rules" :model="formState" @submit="handleSubmit">
             <div class="formTitle">{{ $t('tariffManagement.BasicInformation') }}</div>
@@ -213,7 +213,7 @@ const handleSubmit = ({ values, errors }) => {
             formVal.pricing = Number(values.pricing)
 
 
-            if (typeIndex.value === 2) {
+            if (typeIndexSet.value === 2) {
                 const { code, data } = await updateTariff(formVal)
 
                 if (code == 200) {
@@ -315,7 +315,7 @@ watch(() => FormDataList.value, val => {
 }, { immediate: true })
 
 
-watch(() => props.typeIndex, val => {
+watch(() => typeIndexSet.value, val => {
     if (val == null) return
     typeIndexSet.value = val
 }, { immediate: true })