Commit 3844e140 authored by yaya's avatar yaya

feat:钱币设置添加暂不处理功能

parent d8abaf84
...@@ -39,3 +39,11 @@ export function deleteGood(params) { ...@@ -39,3 +39,11 @@ export function deleteGood(params) {
data: params data: params
}) })
} }
export function holdOver(params) {
return request({
url: '/item/holdOver',
method: 'post',
data: params
})
}
<template> <template>
<div ref="scrollRef" class="app-container"> <div ref="scrollRef" class="app-container">
<div ref="top" :class="{fixed: isFixed}" class="op-container" style="margin-bottom: 20px"> <div ref="top" :class="{fixed: isFixed}" class="op-container" style="margin-bottom: 20px">
<el-button round type="danger" @click="handleDelete">删除</el-button> <el-button round type="danger" @click="handleDelete">删除</el-button>
<el-button round @click="handleCancel">取消</el-button> <el-button round @click="handleCancel">取消</el-button>
<el-button type="primary" round @click="handlePublish">发布</el-button> <el-button type="primary" round @click="handlePublish">发布</el-button>
<el-button type="primary" style="margin-right: 20px" round @click="handleEdit">编辑</el-button> <el-button type="primary" round @click="handleEdit">编辑</el-button>
<el-button type="primary" style="margin-right: 20px" @click="handleNotOperate">暂不处理</el-button>
<el-button-group> <el-button-group>
<el-button :disabled="previousDisabled" type="primary" icon="el-icon-arrow-left" @click="handlePrevious">上一个 <el-button :disabled="previousDisabled" type="primary" icon="el-icon-arrow-left" @click="handlePrevious">上一个
</el-button> </el-button>
...@@ -184,7 +185,7 @@ import { VuePictureCut, VuePictureCutMask, VuePictureCutMenu } from 'vue-picture ...@@ -184,7 +185,7 @@ import { VuePictureCut, VuePictureCutMask, VuePictureCutMenu } from 'vue-picture
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import SelectImageDialog from './components/selectImageDialog' import SelectImageDialog from './components/selectImageDialog'
import { listCategories } from '@/api/business/goods' import { listCategories } from '@/api/business/goods'
import { detailGoods, editGoods, saveImageBase64, saveCroppingRecord, deleteGood } from '@/api/business/goodsNew' import { detailGoods, editGoods, saveImageBase64, saveCroppingRecord, deleteGood, holdOver } from '@/api/business/goodsNew'
import CheckLargeImageDialog from './components/CheckLargeImageDialog' import CheckLargeImageDialog from './components/CheckLargeImageDialog'
import CutImageDialog from './components/CutImageDialog' import CutImageDialog from './components/CutImageDialog'
import CutEditImageDialog from './components/CutEditImageDialog' import CutEditImageDialog from './components/CutEditImageDialog'
...@@ -345,6 +346,22 @@ export default { ...@@ -345,6 +346,22 @@ export default {
this.compositeImageSrc = '' this.compositeImageSrc = ''
this.categoryIds = [] this.categoryIds = []
}, },
// 暂不处理
handleNotOperate() {
const params = {
id: this.goodsParams.id
}
holdOver(params).then(response => {
this.$message.success('操作成功')
this.handleNext()
}).catch(response => {
this.$notify.error({
title: '失败',
message: response.data.errmsg || '请求失败'
})
})
},
// 删除 // 删除
handleDelete() { handleDelete() {
this.$confirm('删除后不可恢复!', '是否要删除该藏品?', { this.$confirm('删除后不可恢复!', '是否要删除该藏品?', {
......
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 to comment