Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-17 11:01:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b27c737ab48e0161b46f88c8b2c8a029b622fbe6
b27c737a
1 parent
4c5f7f2c
feat(车辆管理): 添加车辆上架功能按钮并优化状态判断
在车辆管理页面添加独立的上架按钮,优化原有状态判断逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
src/pages/myCar/index.vue
src/pages/myCar/index.vue
View file @
b27c737
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-17 1
0:42:22
* @LastEditTime: 2025-07-17 1
1:00:00
* @FilePath: /jgdl/src/pages/myCar/index.vue
* @Description: 文件描述
-->
...
...
@@ -82,7 +82,15 @@
:type="car.status === 5 ? 'success' : 'warning'"
@click="toggleOffline(car)"
>
{{ car.status === 5 ? '上架' : '下架' }}
{{ car.status === 5 && !car.is_sold ? '上架' : '下架' }}
</nut-button>
<nut-button
v-if="car.review_status === 5"
size="small"
type="success"
@click="toggleOnline(car)"
>
上架
</nut-button>
<nut-button
v-if="car.verification_status === 1 || car.verification_status === 7"
...
...
@@ -233,6 +241,13 @@ const toggleOffline = (car) => {
offlineDialogVisible.value = true
}
// 上架
const toggleOnline = (car) => {
currentOfflineCar.value = car
offlineDialogContent.value = '确认要上架此车源吗?'
offlineDialogVisible.value = true
}
/**
* 确认上下架操作
*/
...
...
Please
register
or
login
to post a comment