Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-admin
Commits
01bbaf34
提交
01bbaf34
authored
8月 25, 2022
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc隐藏相应模块
上级
0206dcfe
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
26 行删除
+29
-26
common.js
src/api/common.js
+1
-1
audio.js
src/api/resource/audio.js
+1
-1
component.vue
src/views/resource_manage/annex_module/component.vue
+24
-24
component.vue
src/views/resource_manage/paperbook_module/component.vue
+3
-0
没有找到文件。
src/api/common.js
浏览文件 @
01bbaf34
...
...
@@ -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
,
...
...
src/api/resource/audio.js
浏览文件 @
01bbaf34
...
...
@@ -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
})
...
...
src/views/resource_manage/annex_module/component.vue
浏览文件 @
01bbaf34
...
...
@@ -379,32 +379,9 @@ 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('保存成功');
...
...
@@ -414,7 +391,30 @@ export default {
// 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
(
"有未通过的验证"
);
...
...
src/views/resource_manage/paperbook_module/component.vue
浏览文件 @
01bbaf34
...
...
@@ -341,6 +341,9 @@ export default {
{
pattern
:
/^
\d
+$/
,
message
:
'请输入整数'
},
{
max
:
9
,
message
:
'基础销量长度不能大于9位'
}
],
stock
:
[
{
pattern
:
/^
\d
+$/
,
message
:
'请输入整数'
},
],
},
sending
:
false
,
defaultProps
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论