|
@@ -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 })
|