优化管理端促销相关文本,操作条件
parent
f4b7068cd6
commit
0a5563e5e2
|
@ -59,7 +59,7 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus !== 'START'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
size="small"
|
||||||
@click="see(row)"
|
@click="see(row)"
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
class="ml_5"
|
class="ml_5"
|
||||||
v-if="row.promotionStatus === 'CLOSE'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'"
|
||||||
type="error"
|
type="error"
|
||||||
size="small"
|
size="small"
|
||||||
@click="remove(row)"
|
@click="remove(row)"
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<Button type="info" size="small" @click="view(row)">查看</Button>
|
<Button type="info" size="small" @click="view(row)">查看</Button>
|
||||||
<Button
|
<Button
|
||||||
type="error"
|
type="error"
|
||||||
v-if="row.promotionStatus === 'START'"
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'START'"
|
||||||
style="margin-left: 5px"
|
style="margin-left: 5px"
|
||||||
size="small"
|
size="small"
|
||||||
@click="openOrClose(row)"
|
@click="openOrClose(row)"
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
||||||
// 请求参数
|
// 请求参数
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
sort: "startTime",
|
sort: "createTime",
|
||||||
order: "desc",
|
order: "desc",
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
|
|
|
@ -97,20 +97,20 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus != 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
size="small"
|
|
||||||
style="margin-right: 10px"
|
|
||||||
@click="edit(row, 'onlyView')"
|
|
||||||
>查看
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
v-if="row.promotionStatus === 'NEW'"
|
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
size="small"
|
||||||
style="margin-right: 10px"
|
style="margin-right: 10px"
|
||||||
@click="edit(row)"
|
@click="edit(row)"
|
||||||
>编辑
|
>编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
v-else
|
||||||
|
size="small"
|
||||||
|
style="margin-right: 10px"
|
||||||
|
@click="edit(row, 'onlyView')"
|
||||||
|
>查看
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'END'"
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'END'"
|
||||||
type="error"
|
type="error"
|
||||||
|
@ -161,7 +161,7 @@ export default {
|
||||||
// 搜索框初始化对象
|
// 搜索框初始化对象
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "startTime", // 默认排序字段
|
sort: "createTime", // 默认排序字段
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
goodsName: "",
|
goodsName: "",
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<Button
|
<Button
|
||||||
type="error"
|
type="error"
|
||||||
size="small"
|
size="small"
|
||||||
:disabled="row.promotionStatus == 'END' || row.promotionStatus == 'CLOSE'"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
@click="close(row)"
|
@click="close(row)"
|
||||||
>关闭
|
>关闭
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
// 搜索框初始化对象
|
// 搜索框初始化对象
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "startTime",
|
sort: "createTime",
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus !== 'START'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
size="small"
|
||||||
@click="edit(row.id)"
|
@click="edit(row.id)"
|
||||||
|
@ -125,6 +125,7 @@
|
||||||
type="error"
|
type="error"
|
||||||
size="small"
|
size="small"
|
||||||
@click="close(row.id)"
|
@click="close(row.id)"
|
||||||
|
style="margin-right: 5px"
|
||||||
>删除</Button
|
>删除</Button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
@ -168,7 +169,7 @@ export default {
|
||||||
// 搜索框初始化对象
|
// 搜索框初始化对象
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "create_time",
|
sort: "createTime",
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
},
|
},
|
||||||
statusList: [
|
statusList: [
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
size="small"
|
||||||
class="mr_5"
|
class="mr_5"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
@click="edit(row)"
|
@click="edit(row)"
|
||||||
>编辑</Button
|
>编辑</Button
|
||||||
>
|
>
|
||||||
|
@ -90,13 +90,13 @@
|
||||||
v-if="row.promotionStatus == 'START' || row.promotionStatus == 'NEW'"
|
v-if="row.promotionStatus == 'START' || row.promotionStatus == 'NEW'"
|
||||||
class="mr_5"
|
class="mr_5"
|
||||||
@click="off(row)"
|
@click="off(row)"
|
||||||
>下架</Button
|
>关闭</Button
|
||||||
>
|
>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
type="error"
|
type="error"
|
||||||
size="small"
|
size="small"
|
||||||
v-if="row.promotionStatus == 'CLOSE'"
|
v-if="row.promotionStatus == 'CLOSE' || row.promotionStatus == 'END'"
|
||||||
ghost
|
ghost
|
||||||
@click="expire(row)"
|
@click="expire(row)"
|
||||||
>删除</Button
|
>删除</Button
|
||||||
|
@ -146,7 +146,7 @@ export default {
|
||||||
// 搜索框初始化对象
|
// 搜索框初始化对象
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "startTime",
|
sort: "createTime",
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
},
|
},
|
||||||
setupFlag: false, //默认不请求设置
|
setupFlag: false, //默认不请求设置
|
||||||
|
|
Loading…
Reference in New Issue