Commit 8aeaf156 by 孙美琪

问题修改

parent 097c5a07
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ElLoading } from 'element-plus' import { ElLoading } from 'element-plus'
import LoginFormTitle from './LoginFormTitle.vue' // import LoginFormTitle from './LoginFormTitle.vue'
import type { RouteLocationNormalizedLoaded } from 'vue-router' import type { RouteLocationNormalizedLoaded } from 'vue-router'
import { useIcon } from '@/hooks/web/useIcon' import { useIcon } from '@/hooks/web/useIcon'
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<el-table-column label="描述内容" align="center" prop="description" /> <el-table-column label="描述内容" align="center" prop="description" />
<el-table-column label="状态" align="center" prop="showStatus"> <el-table-column label="状态" align="center" prop="showStatus">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.HOME_INFO_STATUS" :value="scope.row.showStatus" /> <dict-tag :type="DICT_TYPE.HOME_INFO_STATUS" :value="Number(scope.row.showStatus)" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<el-table-column label="链接地址" align="center" prop="url" /> <el-table-column label="链接地址" align="center" prop="url" />
<el-table-column label="状态" align="center" prop="showStatus"> <el-table-column label="状态" align="center" prop="showStatus">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.HOME_INFO_STATUS" :value="scope.row.showStatus" /> <dict-tag :type="DICT_TYPE.HOME_INFO_STATUS" :value="Number(scope.row.showStatus)" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
:key="index" :key="index"
:label="item.label" :label="item.label"
align="center" align="center"
min-width="120" min-width="100"
> >
<template #default="{ row }"> <template #default="{ row }">
<span style="font-weight: bold; color: #40aaff"> <span style="font-weight: bold; color: #40aaff">
...@@ -28,9 +28,27 @@ ...@@ -28,9 +28,27 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="鉴权信息" prop="auth" align="center" /> <el-table-column label="鉴权信息" prop="auth" align="center">
<el-table-column label="有效期(单位:天)" prop="expTime" align="center" min-width="100" /> <template #default="{ row }">
<el-table-column label="费用描述" prop="feeInfo" align="center" /> <el-input v-model="row.auth" class="w-100%" />
</template>
</el-table-column>
<el-table-column label="有效期(单位:天)" prop="expDuration" align="center" min-width="160">
<template #default="{ row }">
<el-input-number
v-model="row.expDuration"
:min="0"
:step="1"
class="w-100%"
controls-position="right"
/>
</template>
</el-table-column>
<el-table-column label="费用描述" prop="feeInfo" align="center">
<template #default="{ row }">
<el-input v-model="row.feeInfo" class="w-100%" />
</template>
</el-table-column>
</template> </template>
<el-table-column align="center" label="销售价" min-width="168"> <el-table-column align="center" label="销售价" min-width="168">
<template #default="{ row }"> <template #default="{ row }">
...@@ -278,7 +296,10 @@ const skuList = ref<Sku[]>([ ...@@ -278,7 +296,10 @@ const skuList = ref<Sku[]>([
picUrl: '', // 图片地址 picUrl: '', // 图片地址
stock: 0, // 库存 stock: 0, // 库存
weight: 0, // 商品重量 weight: 0, // 商品重量
volume: 0 // 商品体积 volume: 0, // 商品体积
auth: '',
expDuration: '365',
feeInfo: '元/年'
// firstBrokeragePrice: 0, // 一级分销的佣金 // firstBrokeragePrice: 0, // 一级分销的佣金
// secondBrokeragePrice: 0 // 二级分销的佣金 // secondBrokeragePrice: 0 // 二级分销的佣金
} }
...@@ -410,6 +431,9 @@ const generateTableData = (propertyList: any[]) => { ...@@ -410,6 +431,9 @@ const generateTableData = (propertyList: any[]) => {
stock: 0, stock: 0,
weight: 0, weight: 0,
volume: 0, volume: 0,
auth: '',
expDuration: '365',
feeInfo: '元/年'
// firstBrokeragePrice: 0, // firstBrokeragePrice: 0,
// secondBrokeragePrice: 0 // secondBrokeragePrice: 0
} }
...@@ -483,7 +507,10 @@ watch( ...@@ -483,7 +507,10 @@ watch(
picUrl: '', picUrl: '',
stock: 0, stock: 0,
weight: 0, weight: 0,
volume: 0 volume: 0,
auth: '',
expDuration: '365',
feeInfo: '元/年'
// firstBrokeragePrice: 0, // firstBrokeragePrice: 0,
// secondBrokeragePrice: 0 // secondBrokeragePrice: 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment