|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <div v-show="!commodityManageFormState.show">
|
|
|
|
|
|
+ <div v-show="!(commodityManageFormState.show || interfaceListData.show)">
|
|
<transition name="fade">
|
|
<transition name="fade">
|
|
<el-form ref="queryFormRef" :model="queryParams">
|
|
<el-form ref="queryFormRef" :model="queryParams">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
@@ -56,8 +56,12 @@
|
|
<el-table-column label="支付数" align="center" prop="payAmount" />
|
|
<el-table-column label="支付数" align="center" prop="payAmount" />
|
|
<el-table-column label="销量" align="center" prop="sales" />
|
|
<el-table-column label="销量" align="center" prop="sales" />
|
|
<el-table-column label="退款数" align="center" prop="refundAmount" />
|
|
<el-table-column label="退款数" align="center" prop="refundAmount" />
|
|
- <el-table-column label="接口数" align="center" prop="" />
|
|
|
|
- <el-table-column label="调用数" align="center" prop="" />
|
|
|
|
|
|
+ <el-table-column label="接口数" align="center" prop="interfacesAmount">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-text class="common-btn-text-primary" @click="showInterfaceList(scope.row)">{{ scope.row.interfacesAmount }}</el-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="调用数" align="center" prop="callAmount" />
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-text class="common-btn-text-primary" @click="handleView(scope.row)">查看</el-text>
|
|
<el-text class="common-btn-text-primary" @click="handleView(scope.row)">查看</el-text>
|
|
@@ -66,19 +70,20 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
- <pagination v-show="total > 0" v-model:page="queryParams.page" v-model:limit="queryParams.page_size"
|
|
|
|
- :total="total" @pagination="getList"/>
|
|
|
|
|
|
+ <pagination v-show="total > 0" v-model:page="queryParams.page" v-model:limit="queryParams.page_size" :total="total" @pagination="getList" />
|
|
</div>
|
|
</div>
|
|
<CommodityManageForm
|
|
<CommodityManageForm
|
|
v-if="commodityManageFormState.show"
|
|
v-if="commodityManageFormState.show"
|
|
@onCancel="commodityManageFormState.show = false"
|
|
@onCancel="commodityManageFormState.show = false"
|
|
@onConfirm="handleCommodityManageFormState"
|
|
@onConfirm="handleCommodityManageFormState"
|
|
/>
|
|
/>
|
|
|
|
+ <InterfaceList v-if="interfaceListData.show" :id="interfaceListData.id" @back="handleBack" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup name="CommodityManage">
|
|
<script setup name="CommodityManage">
|
|
import CommodityManageForm from './CommodityManageForm.vue';
|
|
import CommodityManageForm from './CommodityManageForm.vue';
|
|
|
|
+import InterfaceList from './InterfaceList.vue';
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
const queryFormRef = ref();
|
|
const queryFormRef = ref();
|
|
@@ -113,6 +118,7 @@ const commodityManageFormState = ref({
|
|
const getList = () => {
|
|
const getList = () => {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ dataList.value = [{ interfacesAmount: 20 }];
|
|
loading.value = false;
|
|
loading.value = false;
|
|
}, 500);
|
|
}, 500);
|
|
};
|
|
};
|
|
@@ -166,6 +172,25 @@ const handleImport = () => {};
|
|
// 导出
|
|
// 导出
|
|
const handleExport = () => {};
|
|
const handleExport = () => {};
|
|
|
|
|
|
|
|
+//接口列表参数
|
|
|
|
+const interfaceListData = ref({
|
|
|
|
+ show: false,
|
|
|
|
+ id: ''
|
|
|
|
+});
|
|
|
|
+// 接口列表界面
|
|
|
|
+const showInterfaceList = (row) => {
|
|
|
|
+ interfaceListData.value = {
|
|
|
|
+ show: true,
|
|
|
|
+ id: row.id
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+const handleBack = () => {
|
|
|
|
+ interfaceListData.value = {
|
|
|
|
+ show: false,
|
|
|
|
+ id: ''
|
|
|
|
+ };
|
|
|
|
+};
|
|
getList();
|
|
getList();
|
|
</script>
|
|
</script>
|
|
|
|
|