Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
integrate-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
integrate-admin
Commits
57765f67
提交
57765f67
authored
12月 01, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
e982ce95
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
platformProducts.vue
src/views/manage/platformProducts.vue
+9
-8
没有找到文件。
src/views/manage/platformProducts.vue
浏览文件 @
57765f67
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</el-row>
</el-row>
</div>
</div>
<el-dialog
v-model=
"showAddDialog"
title=
"选择产品
"
width=
"50%"
:beforeClose=
"handleClose"
>
<el-dialog
v-model=
"showAddDialog"
:title=
"title
"
width=
"50%"
:beforeClose=
"handleClose"
>
<el-row
justify=
"start"
style=
"padding: 0 10%"
>
<el-row
justify=
"start"
style=
"padding: 0 10%"
>
<el-col
:span=
"6"
style=
"text-align: center"
>
<el-col
:span=
"6"
style=
"text-align: center"
>
<el-button
type=
"primary"
:disabled=
"disabled"
circle
style=
"width: 100px; height: 100px"
<el-button
type=
"primary"
:disabled=
"disabled"
circle
style=
"width: 100px; height: 100px"
...
@@ -121,7 +121,7 @@ const previewProductAfterRef = ref()
...
@@ -121,7 +121,7 @@ const previewProductAfterRef = ref()
const
previewProductBeforeRef
=
ref
()
const
previewProductBeforeRef
=
ref
()
const
enableRef
=
ref
()
const
enableRef
=
ref
()
const
disabled
=
ref
(
false
)
// 选择产品是否禁用
const
disabled
=
ref
(
false
)
// 选择产品是否禁用
const
title
=
ref
(
'选择产品'
)
const
afterTitle
=
computed
(()
=>
{
const
afterTitle
=
computed
(()
=>
{
if
(
productAfterCode
.
value
)
{
if
(
productAfterCode
.
value
)
{
let
title
=
''
let
title
=
''
...
@@ -145,6 +145,7 @@ const beforeTitle = computed(() => {
...
@@ -145,6 +145,7 @@ const beforeTitle = computed(() => {
// 添加产品
// 添加产品
let
addProductShow
=
()
=>
{
let
addProductShow
=
()
=>
{
disabled
.
value
=
false
disabled
.
value
=
false
title
.
value
=
'选择产品'
showAddDialog
.
value
=
true
showAddDialog
.
value
=
true
}
}
...
@@ -252,6 +253,7 @@ const selectScene = (id: string) => {
...
@@ -252,6 +253,7 @@ const selectScene = (id: string) => {
const
editProduct
=
(
row
:
any
)
=>
{
const
editProduct
=
(
row
:
any
)
=>
{
showAddDialog
.
value
=
true
showAddDialog
.
value
=
true
disabled
.
value
=
true
disabled
.
value
=
true
title
.
value
=
'编辑产品'
productAfterCode
.
value
=
row
.
productAfterCode
productAfterCode
.
value
=
row
.
productAfterCode
productBeforeCode
.
value
=
row
.
productBeforeCode
productBeforeCode
.
value
=
row
.
productBeforeCode
nextTick
(()
=>
{
nextTick
(()
=>
{
...
@@ -297,12 +299,10 @@ const onConfirm = () => {
...
@@ -297,12 +299,10 @@ const onConfirm = () => {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
saveCommonParam
(
productBeforeCode
.
value
,
productBeforeData
.
value
)
saveCommonParam
(
productBeforeCode
.
value
,
productBeforeData
.
value
)
saveCommonParam
(
productAfterCode
.
value
,
productAfterData
.
value
)
saveCommonParam
(
productAfterCode
.
value
,
productAfterData
.
value
)
createPlatformProduct
(
data
).
then
((
res
:
any
)
=>
{
if
(
title
.
value
===
'选择产品'
)
createPlatformProduct
(
data
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
init
()
init
()
productAfterCode
.
value
=
''
handleClose
()
productBeforeCode
.
value
=
''
showAddDialog
.
value
=
false
ElMessage
({
type
:
'success'
,
message
:
'保存成功'
})
ElMessage
({
type
:
'success'
,
message
:
'保存成功'
})
}
}
})
})
...
@@ -311,8 +311,9 @@ const onConfirm = () => {
...
@@ -311,8 +311,9 @@ const onConfirm = () => {
const
saveCommonParam
=
(
code
:
string
,
data
:
any
)
=>
{
const
saveCommonParam
=
(
code
:
string
,
data
:
any
)
=>
{
postCommonParam
({
code
,
data
}).
then
((
res
:
any
)
=>
{
postCommonParam
({
code
,
data
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
&&
code
===
productAfterCode
.
value
&&
title
.
value
===
'编辑产品'
)
{
console
.
log
(
res
)
handleClose
()
ElMessage
({
type
:
'success'
,
message
:
'保存成功'
})
}
}
})
})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论