|
@@ -17,76 +17,47 @@
|
|
|
</a-button>
|
|
|
</div>
|
|
|
|
|
|
- <a-table
|
|
|
- row-key="id"
|
|
|
- :data="dataSource"
|
|
|
- :columns="columnsAfter"
|
|
|
- :pagination="pagination"
|
|
|
- :scroll="{ x: 'auto' }"
|
|
|
- @page-change="evChangePage"
|
|
|
- >
|
|
|
+ <a-table row-key="id" :data="dataSource" :columns="columnsAfter" :pagination="pagination" :scroll="{ x: 'auto' }"
|
|
|
+ @page-change="evChangePage">
|
|
|
<template #id="{ record }">
|
|
|
<!-- 修改 -->
|
|
|
- <a
|
|
|
- class="a-link"
|
|
|
- href="javascript:;"
|
|
|
- style="margin-right: 1rem"
|
|
|
- @click="dictShowModel(2, record)"
|
|
|
- v-if="role == 1"
|
|
|
- >{{ $t("form.Edit") }}</a
|
|
|
- >
|
|
|
- <a
|
|
|
- class="a-link"
|
|
|
- href="javascript:;"
|
|
|
- style="margin-right: 1rem"
|
|
|
- @click="handelForewring(record)"
|
|
|
- v-if="role == 1"
|
|
|
- >{{ $t('flowPool.Waring') }}</a
|
|
|
- >
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="dictShowModel(2, record)"
|
|
|
+ v-if="role == 1">{{ $t("form.Edit") }}</a>
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handelForewring(record)"
|
|
|
+ v-if="role == 1">{{ $t('flowPool.Waring') }}</a>
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handelgetCard(record)">导卡</a>
|
|
|
<!-- 删除 -->
|
|
|
- <a-popconfirm
|
|
|
- :content="$t('form.Delete')"
|
|
|
- :ok-text="$t('form.Confirm')"
|
|
|
- :cancel-text="$t('form.Cancel')"
|
|
|
- @ok="handleDel(record.id)"
|
|
|
- v-if="role == 1"
|
|
|
- >
|
|
|
+ <a-popconfirm :content="$t('form.Delete')" :ok-text="$t('form.Confirm')" :cancel-text="$t('form.Cancel')"
|
|
|
+ @ok="handleDel(record.id)" v-if="role == 1">
|
|
|
<a class="a-link" href="javascript:;" style="margin-right: 1rem">{{
|
|
|
$t("form.Delete")
|
|
|
}}</a>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
<template #status="{ record }">
|
|
|
- <a-tag :color="record.status==1?'#00b42a':'#f53f3f'">{{ trafficList.find(val => val.value == record.status)?.label }}</a-tag>
|
|
|
+ <a-tag :color="record.status == 1 ? '#00b42a' : '#f53f3f'">{{ trafficList.find(val => val.value ==
|
|
|
+ record.status)?.label }}</a-tag>
|
|
|
</template>
|
|
|
</a-table>
|
|
|
- <add
|
|
|
- v-model:modelValue="showAdd"
|
|
|
- status="2"
|
|
|
- :typeCurrent="typeCurrent"
|
|
|
- :record="record"
|
|
|
- @submit="intData()"
|
|
|
- ></add>
|
|
|
- <Forewarning
|
|
|
- v-model:modelValue="visibleForewarning"
|
|
|
- ref="forewarning"
|
|
|
- @submit="intData()"
|
|
|
- />
|
|
|
+ <add v-model:modelValue="showAdd" status="2" :typeCurrent="typeCurrent" :record="record" @submit="intData()"></add>
|
|
|
+ <Forewarning v-model:modelValue="visibleForewarning" ref="forewarning" @submit="intData()" />
|
|
|
+ <GuideCard v-model:model-value="ShowOpenExport" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { onMounted, reactive, toRefs } from "vue";
|
|
|
-import { columnsAfter,SearchFormList } from "../config";
|
|
|
+import { columnsAfter, SearchFormList } from "../config";
|
|
|
import { Message } from "@arco-design/web-vue";
|
|
|
import { deleteTrafficPool, lotCatdList } from "@/api/path/flowPool.api";
|
|
|
import { useSystemStore } from "@/store/modules/systemStore";
|
|
|
import add from "../components/add.vue";
|
|
|
import Forewarning from "../components/forewarning.vue";
|
|
|
import { Getdictionary } from "@/mixins/index.js";
|
|
|
-import {useI18n} from 'vue-i18n'
|
|
|
+import { useI18n } from 'vue-i18n'
|
|
|
import Search from '@/components/Search/index.vue'
|
|
|
-const {t} = useI18n();
|
|
|
+import GuideCard from '../components/GuideCard.vue'
|
|
|
+const { t } = useI18n();
|
|
|
const systemStore = useSystemStore();
|
|
|
const state = reactive({
|
|
|
dataSource: [],
|
|
@@ -103,7 +74,8 @@ const state = reactive({
|
|
|
sourceList: [],
|
|
|
trafficList: [],
|
|
|
showAdd: false,
|
|
|
- forewarning:null
|
|
|
+ forewarning: null,
|
|
|
+ ShowOpenExport: false
|
|
|
});
|
|
|
|
|
|
const {
|
|
@@ -117,11 +89,12 @@ const {
|
|
|
sourceList,
|
|
|
trafficList,
|
|
|
showAdd,
|
|
|
- forewarning
|
|
|
+ forewarning,
|
|
|
+ ShowOpenExport
|
|
|
} = toRefs(state);
|
|
|
|
|
|
const intData = async (item) => {
|
|
|
- if(item){
|
|
|
+ if (item) {
|
|
|
searchForm.value = item
|
|
|
}
|
|
|
const param = {
|
|
@@ -149,7 +122,7 @@ const intData = async (item) => {
|
|
|
Activated: Activated,
|
|
|
HaveBeenUsed: HaveBeenUsed,
|
|
|
trafficPoolStatus,
|
|
|
- size:item.size+'/'+item.sizeType
|
|
|
+ size: item.size + '/' + item.sizeType
|
|
|
};
|
|
|
});
|
|
|
pagination.value.total = data.total;
|
|
@@ -195,6 +168,10 @@ const handleDictValue = async () => {
|
|
|
trafficList.value = await Getdictionary("trafficPacketStatus");
|
|
|
};
|
|
|
|
|
|
+const handelgetCard = (item)=>{
|
|
|
+ ShowOpenExport.value = true;
|
|
|
+}
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
await handleDictValue();
|
|
|
await intData();
|