Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 cb41399b
authored
Nov 08, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.11.0' into 'v2.11.0'
修复bug See merge request
!33
2 parents
b1b3a99b
da745d56
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
13 deletions
package-lock.json
package.json
src/views/collocation/index.vue
src/views/wechatGroup/addWechatGroup.vue
src/views/wechatGroup/index.vue
package-lock.json
View file @
cb41399
...
@@ -12963,6 +12963,11 @@
...
@@ -12963,6 +12963,11 @@
"integrity"
:
"sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
,
"integrity"
:
"sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
,
"dev"
:
true
"dev"
:
true
},
},
"set-promise-interval"
:
{
"version"
:
"1.0.8"
,
"resolved"
:
"https://registry.npmjs.org/set-promise-interval/-/set-promise-interval-1.0.8.tgz"
,
"integrity"
:
"sha512-5wo1ft1mOaYCUhxFfbWeqKj7brn95KWaqex/si+4b6N6E/aKpq0dsSm+lAwKBXAMqsAUgcWT7asZeXNq7+fULA=="
},
"set-value"
:
{
"set-value"
:
{
"version"
:
"2.0.1"
,
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz"
,
"resolved"
:
"https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz"
,
...
...
package.json
View file @
cb41399
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.2"
,
"glsx-components"
:
"^1.5.2"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"set-promise-interval"
:
"^1.0.8"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-amap"
:
"^0.5.10"
,
"vue-amap"
:
"^0.5.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/views/collocation/index.vue
View file @
cb41399
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
<img
class=
"qrIMG"
:src=
"qrcodeUrl"
/>
<img
class=
"qrIMG"
:src=
"qrcodeUrl"
/>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"refreshQrcode"
>
刷新
</el-button>
<el-button
size=
"small"
disabled
v-if=
"!show"
class=
"count"
>
{{
count
}}
s
</el-button>
<el-button
type=
"primary"
size=
"small"
v-if=
"show"
@
click=
"getCode"
>
刷新
</el-button>
</span>
</span>
</GLDialog>
</GLDialog>
</div>
</div>
...
@@ -39,6 +40,8 @@
...
@@ -39,6 +40,8 @@
<
script
>
<
script
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
setPromiseInterval
,
{
clearPromiseInterval
}
from
'set-promise-interval'
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
export
default
{
export
default
{
...
@@ -46,6 +49,9 @@ export default {
...
@@ -46,6 +49,9 @@ export default {
data
()
{
data
()
{
return
{
return
{
url
,
url
,
show
:
true
,
count
:
''
,
timer
:
null
,
verifyQRCodeFailsToOpen
:
false
,
verifyQRCodeFailsToOpen
:
false
,
addLoading
:
false
,
addLoading
:
false
,
qrCodeInterval
:
null
,
qrCodeInterval
:
null
,
...
@@ -164,20 +170,39 @@ export default {
...
@@ -164,20 +170,39 @@ export default {
})
})
},
},
clearAllInterval
()
{
clearAllInterval
()
{
console
.
log
(
this
.
qrCodeIntervalList
)
this
.
qrCodeIntervalList
.
length
&&
this
.
qrCodeIntervalList
.
forEach
(
item
=>
{
this
.
qrCodeIntervalList
.
length
&&
this
.
qrCodeIntervalList
.
forEach
(
item
=>
{
clearInterval
(
item
)
;
clearInterval
(
item
)
})
})
clearPromiseInterval
(
this
.
qrCodeInterval
)
this
.
qrCodeIntervalList
=
[];
this
.
qrCodeIntervalList
=
[];
this
.
qrCodeInterval
=
null
;
this
.
qrCodeInterval
=
null
;
},
},
verifyQRCodeIsInvalid
()
{
verifyQRCodeIsInvalid
()
{
this
.
qrCodeInterval
=
setInterval
(()
=>
{
this
.
qrCodeInterval
=
setPromiseInterval
(()
=>
this
.
qrcodeTimeoutApi
(),
15000
)
this
.
qrcodeTimeoutApi
()
},
15000
)
this
.
qrCodeIntervalList
.
push
(
this
.
qrCodeInterval
)
this
.
qrCodeIntervalList
.
push
(
this
.
qrCodeInterval
)
},
},
qrcodeTimeoutApi
()
{
getCode
()
{
this
.
$apis
.
collocation
.
getQcCodeDetail
({
id
:
this
.
qrcodeId
}).
then
(
res
=>
{
this
.
clearAllInterval
()
this
.
handleqrCode
()
const
TIME_COUNT
=
10
;
if
(
!
this
.
timer
)
{
this
.
count
=
TIME_COUNT
;
this
.
show
=
false
;
this
.
timer
=
setInterval
(()
=>
{
if
(
this
.
count
>
0
&&
this
.
count
<=
TIME_COUNT
)
{
this
.
count
--
;
}
else
{
this
.
show
=
true
;
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
}
},
1000
)
}
},
async
qrcodeTimeoutApi
()
{
await
this
.
$apis
.
collocation
.
getQcCodeDetail
({
id
:
this
.
qrcodeId
}).
then
(
res
=>
{
if
(
res
==
true
)
{
if
(
res
==
true
)
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
@@ -188,10 +213,7 @@ export default {
...
@@ -188,10 +213,7 @@ export default {
return
return
}
}
})
})
},
}
refreshQrcode
:
utils
.
debounce
(
function
()
{
this
.
handleqrCode
()
},
5000
)
},
},
computed
:
{
computed
:
{
listenChange
()
{
listenChange
()
{
...
...
src/views/wechatGroup/addWechatGroup.vue
View file @
cb41399
...
@@ -392,7 +392,7 @@ export default {
...
@@ -392,7 +392,7 @@ export default {
// 提交
// 提交
async
handleSubmit
()
{
async
handleSubmit
()
{
const
params
=
this
.
getBaseInfo
()
const
params
=
this
.
getBaseInfo
()
if
(
this
.
groupNumber
==
'0'
){
// 统计群发人数
await
this
.
$apis
.
wechatGroup
await
this
.
$apis
.
wechatGroup
.
batchmessagingCustomercount
(
params
)
.
batchmessagingCustomercount
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -403,7 +403,6 @@ export default {
...
@@ -403,7 +403,6 @@ export default {
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
groupNumber
=
0
this
.
groupNumber
=
0
})
})
}
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
basicForm
.
selectType
==
'1'
&&
!
this
.
taggingList
.
length
)
{
if
(
this
.
basicForm
.
selectType
==
'1'
&&
!
this
.
taggingList
.
length
)
{
...
...
src/views/wechatGroup/index.vue
View file @
cb41399
...
@@ -232,6 +232,9 @@ export default {
...
@@ -232,6 +232,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-drawer.rtl
{
overflow
:
scroll
;
}
/
deep
/
{
/
deep
/
{
.el-table
th
>
.cell
{
.el-table
th
>
.cell
{
padding
:
0
16px
;
padding
:
0
16px
;
...
...
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