Commit 1759cfb5 authored by 刘怀志's avatar 刘怀志

暂存-2

parent 086c36c8
...@@ -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() {
......
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