Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 213f28a4
authored
Mar 22, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yangm_dev_2.0.0' into 'v2.0.0'
fixed See merge request
!36
2 parents
6e1f97d2
ac054a07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
50 deletions
src/config/index.js
src/views/friendGroup/index.vue
src/config/index.js
View file @
213f28a
...
@@ -20,7 +20,7 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -20,7 +20,7 @@ export const fetchConfig = function (isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
// return new Http().get('http
://192.168.3.171:7300
/mock/619c87331072f92988f05a29/marketing/config')
// return new Http().get('http
s://oss-config.dev.glsx.com.cn
/mock/619c87331072f92988f05a29/marketing/config')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/friendGroup/index.vue
View file @
213f28a
...
@@ -323,7 +323,7 @@ export default {
...
@@ -323,7 +323,7 @@ export default {
const
time
=
new
Date
().
getTime
()
const
time
=
new
Date
().
getTime
()
const
sendTime
=
new
Date
(
row
.
sendTime
).
getTime
()
const
sendTime
=
new
Date
(
row
.
sendTime
).
getTime
()
if
(
sendTime
-
time
<
2
*
60
*
1000
)
{
if
(
sendTime
-
time
<
2
*
60
*
1000
)
{
this
.
$message
.
error
(
'
当前数据已经超时了
'
)
this
.
$message
.
error
(
'
任务临近发送时间,无法取消
'
)
return
return
}
}
this
.
$apis
.
friendGroup
this
.
$apis
.
friendGroup
...
@@ -339,14 +339,6 @@ export default {
...
@@ -339,14 +339,6 @@ export default {
// this.$set(this.employeelist[index], 'remindStatus', true)
// this.$set(this.employeelist[index], 'remindStatus', true)
})
})
},
},
handleUpOrDown
(
row
)
{
if
(
row
.
goodsStatus
)
{
this
.
downForm
.
id
=
row
.
id
this
.
dwonVisibleChange
()
return
true
}
this
.
secondConfirm
(
'上架'
,
'是否确认上架该商品?'
,
'proManage'
,
'updateStatusProApi'
,
{
id
:
row
.
id
,
goodsStatus
:
1
})
},
dwonVisibleChange
()
{
dwonVisibleChange
()
{
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
isDownVisible
=
!
this
.
isDownVisible
this
.
isDownVisible
=
!
this
.
isDownVisible
...
@@ -359,34 +351,6 @@ export default {
...
@@ -359,34 +351,6 @@ export default {
goodsStatus
:
0
goodsStatus
:
0
}
}
},
},
handleDownConfirm
()
{
this
.
$refs
.
downRef
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$apis
.
proManage
.
updateStatusProApi
(
this
.
downForm
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleDownClose
()
this
.
handleSearch
()
}
})
}
})
},
// 置顶
handleTop
(
row
)
{
this
.
secondConfirm
(
'置顶'
,
'是否确认置顶该商品?'
,
'proManage'
,
'topProApi'
,
{
id
:
row
.
id
})
},
handleShare
(
row
)
{
this
.
$apis
.
proManage
.
getProShareApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
handleShareClose
()
})
},
handleShareClose
()
{
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
this
.
isShareVisible
=
!
this
.
isShareVisible
},
},
...
@@ -396,22 +360,22 @@ export default {
...
@@ -396,22 +360,22 @@ export default {
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
const temp = {}
const
temp
=
{}
// temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionId
]
=
null
//
temp[this[formName][index].optionLabel] = '全部'
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
this[formName][index].optionList.unshift(temp)
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
}
}
}
else
{
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
const temp = {}
const
temp
=
{}
// temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionId
]
=
null
//
temp[this[formName][index].optionLabel] = '全部'
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
this[formName][index].optionList.unshift(temp)
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
}
}
}
}
})
})
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment