提交 01bbaf34 authored 作者: 翟畅's avatar 翟畅

zc隐藏相应模块

上级 0206dcfe
......@@ -62,7 +62,7 @@ export function deleteFileAPI(data) {
//文件上传
export function uploadFileAPI(data,config={}) {
return request({
url: `${requestPath.file}/upload/info`,
url: `${requestPath.file}upload/info`,
method: 'post',
data,
...config,
......
......@@ -66,7 +66,7 @@ export function importAPI(data) { //导入
export function getFileAPI(params) { //audio-file
return request({
url: `${requestPath.file}/getFilePath`,
url: `${requestPath.file}getFilePath`,
method: 'get',
params
})
......
......@@ -379,42 +379,42 @@ export default {
return
}
}
if(this.dataForm.priceOption == '0'){
this.dataForm.realPrice == null
}
pictureSaveAPI(this.dataForm).then(res =>{
if (res.data.code === 0) {
this.$message.success('保存成功');
this.goBack()
} else {
this.$message.error(res.data.msg);
this.sending = false
}
})
// if(this.dataForm.id){
// if(this.dataForm.priceOption == '0'){
// this.dataForm.realPrice == null
// }
// pictureUpdateAPI(this.dataForm).then(res =>{
// if (res.data.code === 0) {
// this.$message.success('保存成功');
// this.goBack()
// } else {
// this.$message.error(res.data.msg);
// this.sending = false
// }
// })
// }else{
// pictureSaveAPI(this.dataForm).then(res =>{
// if (res.data.code === 0) {
// this.$message.success('保存成功');
// this.goBack()
// } else {
// this.$message.error(res.data.msg);
// this.sending = false
// }
// })
// if(this.dataForm.priceOption == '0'){
// this.dataForm.realPrice == null
// }
// pictureSaveAPI(this.dataForm).then(res =>{
// if (res.data.code === 0) {
// this.$message.success('保存成功');
// this.goBack()
// } else {
// this.$message.error(res.data.msg);
// this.sending = false
// }
// })
if(this.dataForm.id){
if(this.dataForm.priceOption == '0'){
this.dataForm.realPrice == null
}
pictureBatchUpdateAPI(this.dataForm).then(res =>{
if (res.data.code === 0) {
this.$message.success('保存成功');
this.goBack()
} else {
this.$message.error(res.data.msg);
this.sending = false
}
})
}else{
pictureSaveAPI(this.dataForm).then(res =>{
if (res.data.code === 0) {
this.$message.success('保存成功');
this.goBack()
} else {
this.$message.error(res.data.msg);
this.sending = false
}
})
}
} else {
this.sending = false
this.$message.warning("有未通过的验证");
......
......@@ -341,6 +341,9 @@ export default {
{pattern:/^\d+$/,message: '请输入整数'},
{ max: 9, message: '基础销量长度不能大于9位' }
],
stock: [
{pattern:/^\d+$/,message: '请输入整数'},
],
},
sending: false,
defaultProps: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论