Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_manage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
intel_promotion_manage
Commits
1759cfb5
Commit
1759cfb5
authored
Jun 12, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存-2
parent
086c36c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
index.vue
src/views/contentManagement/newsInformation/index.vue
+16
-2
No files found.
src/views/contentManagement/newsInformation/index.vue
View file @
1759cfb5
...
@@ -447,7 +447,7 @@ export default {
...
@@ -447,7 +447,7 @@ export default {
this
.
loadData
()
this
.
loadData
()
clearInterval
(
this
.
intervalId
)
clearInterval
(
this
.
intervalId
)
}
else
if
(
res
.
data
.
status
===
'2'
)
{
}
else
if
(
res
.
data
.
status
===
'2'
)
{
this
.
$message
.
success
(
'
失败'
)
this
.
$message
.
warning
(
'抓取
失败'
)
this
.
webLoading
=
false
this
.
webLoading
=
false
this
.
imgLoading
=
false
this
.
imgLoading
=
false
this
.
loadData
()
this
.
loadData
()
...
@@ -467,7 +467,7 @@ export default {
...
@@ -467,7 +467,7 @@ export default {
this
.
webLoading
=
false
this
.
webLoading
=
false
})
})
},
},
/** 修改密码确定操作*/
/** 修改密码确定
操作*/
handleShareShopSure
()
{
handleShareShopSure
()
{
this
.
$refs
.
ruleForm
.
validate
(
pass
=>
{
this
.
$refs
.
ruleForm
.
validate
(
pass
=>
{
if
(
pass
)
{
if
(
pass
)
{
...
@@ -493,13 +493,27 @@ export default {
...
@@ -493,13 +493,27 @@ export default {
}
}
})
})
},
},
/**
* 处理分享店铺的操作
* @param {Object} row - 行数据,包含店铺相关信息
* @param {string} row.unitId - 店铺ID的字符串表示,用于获取具体的店铺信息
* @param {string} row.businessId - 业务ID,用于记录当前操作所关联的业务
*
* 此函数主要用于在进行店铺分享操作前,准备必要的数据。
* 它会根据传入的店铺行数据,来设置分享对话框中显示的店铺列表,
* 以及当前操作所针对的业务ID。如果店铺ID存在,则解析该ID以获取店铺列表;
* 否则,清空店铺列表。随后,打开或关闭分享对话框,以便用户进行操作。
*/
handleShareShop
(
row
)
{
handleShareShop
(
row
)
{
// 根据row.unitId是否存在来决定是否解析并设置店铺列表
if
(
row
.
unitId
)
{
if
(
row
.
unitId
)
{
this
.
ruleForm
.
shops
=
JSON
.
parse
(
row
.
unitId
)
this
.
ruleForm
.
shops
=
JSON
.
parse
(
row
.
unitId
)
}
else
{
}
else
{
this
.
ruleForm
.
shops
=
[]
this
.
ruleForm
.
shops
=
[]
}
}
// 设置当前操作所针对的业务ID
this
.
ruleForm
.
row
=
row
.
businessId
this
.
ruleForm
.
row
=
row
.
businessId
// 切换分享对话框的显示状态
this
.
shareShopDiaLog
=
!
this
.
shareShopDiaLog
this
.
shareShopDiaLog
=
!
this
.
shareShopDiaLog
},
},
roleFunction
()
{
roleFunction
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment