|
@@ -3,10 +3,10 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<!-- 搜索条件区 -->
|
|
<!-- 搜索条件区 -->
|
|
<div class="search-section">
|
|
<div class="search-section">
|
|
- <Search :SearchForm="trafficSearchFrom" @query="intData" @reset="reset"/>
|
|
|
|
|
|
+ <Search :SearchForm="trafficSearchFrom" @query="intData" @reset="reset" />
|
|
</div>
|
|
</div>
|
|
<div class="audit-btn">
|
|
<div class="audit-btn">
|
|
- <a-button type="text" @click="dictShowModel(1, null)" v-if="role.getRole == 1">
|
|
|
|
|
|
+ <a-button type="text" @click="dictShowModel(1, false)" v-if="role.getRole == 1">
|
|
<template #icon>
|
|
<template #icon>
|
|
<icon-plus-circle />
|
|
<icon-plus-circle />
|
|
</template>
|
|
</template>
|
|
@@ -60,14 +60,14 @@
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
|
|
<Meal v-model:model-value="modealShow" :traffIds="ids" @submit="intData()" />
|
|
<Meal v-model:model-value="modealShow" :traffIds="ids" @submit="intData()" />
|
|
- <Add v-model:model-value="visible" :type-index="typeCurrent" ref="addDetaile" @submit="intData()"></Add>
|
|
|
|
|
|
+ <Add v-model:model-value="visible" :type-index="typeCurrent" ref="addDetaile" @submit="intData()"></Add>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { onMounted, ref, toRefs, getCurrentInstance } from "vue";
|
|
import { onMounted, ref, toRefs, getCurrentInstance } from "vue";
|
|
import { useRoute } from "vue-router";
|
|
import { useRoute } from "vue-router";
|
|
-import { columns, planColumns ,trafficSearchFrom} from "./config";
|
|
|
|
|
|
+import { columns, planColumns, trafficSearchFrom } from "./config";
|
|
import { deleteTariff, tariffList } from "@/api/path/tariffManagement.api"
|
|
import { deleteTariff, tariffList } from "@/api/path/tariffManagement.api"
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
import { useSystemStore } from '@/store/modules/systemStore'
|
|
import { useSystemStore } from '@/store/modules/systemStore'
|
|
@@ -128,7 +128,7 @@ const {
|
|
const addDetaile = ref(null)
|
|
const addDetaile = ref(null)
|
|
|
|
|
|
const intData = async (item) => {
|
|
const intData = async (item) => {
|
|
- if(item){
|
|
|
|
|
|
+ if (item) {
|
|
searchForm.value = item
|
|
searchForm.value = item
|
|
}
|
|
}
|
|
const param = {
|
|
const param = {
|
|
@@ -148,9 +148,9 @@ const intData = async (item) => {
|
|
let pricingName;
|
|
let pricingName;
|
|
|
|
|
|
if (item.billingMethod == 1) {
|
|
if (item.billingMethod == 1) {
|
|
- pricingName = item.trafficBillingAmount + pricingCurrty
|
|
|
|
|
|
+ pricingName = item.trafficBillingAmount + '/' + pricingCurrty
|
|
} else if (item.billingMethod == 2) {
|
|
} else if (item.billingMethod == 2) {
|
|
- pricingName = item.pricing + pricingCurrty
|
|
|
|
|
|
+ pricingName = item.pricing + '/' + pricingCurrty
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
...item,
|
|
...item,
|
|
@@ -167,8 +167,8 @@ const intData = async (item) => {
|
|
pagination.value.total = data.total
|
|
pagination.value.total = data.total
|
|
}
|
|
}
|
|
|
|
|
|
-const reset = (item)=>{
|
|
|
|
- searchForm.value = item
|
|
|
|
|
|
+const reset = (item) => {
|
|
|
|
+ searchForm.value = item
|
|
pagination.value.current = 1
|
|
pagination.value.current = 1
|
|
intData()
|
|
intData()
|
|
}
|
|
}
|