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 367f655c
authored
Jul 27, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
664b8584
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
81 additions
and
27 deletions
package-lock.json
package.json
src/App.vue
src/api/modules/accountConfig.js
src/assets/css/public.scss
src/setup/qiankun.js
src/views/accountInterface/index.vue
src/views/accountInterface/viewConfig.vue
package-lock.json
View file @
367f655
This diff could not be displayed because it is too large.
package.json
View file @
367f655
...
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.4.
2
"
,
"glsx-components"
:
"^1.4.
6
"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue-amap"
:
"^0.5.10"
,
...
...
src/App.vue
View file @
367f655
...
...
@@ -26,8 +26,9 @@
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
<!--
<keep-alive
exclude=
"viewConfig"
>
-->
<router-view
/>
<!--
</keep-alive>
-->
</div>
</
template
>
...
...
src/api/modules/accountConfig.js
View file @
367f655
...
...
@@ -53,7 +53,8 @@ const transferLicenseAccount = params => {
url
:
'rop-scrm-wechat/router'
,
method
:
'post'
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
}
...
...
src/assets/css/public.scss
View file @
367f655
...
...
@@ -70,4 +70,18 @@ $base-color: '#5850FF';
.dot6
{
background-color
:
#5850FF
;
}
}
\ No newline at end of file
}
.confirm-btn
{
.confirmbtn
{
border-color
:
var
(
--
primaryColor
,
#5850ff
)
!
important
;
color
:
#fff
!
important
;
background-color
:
var
(
--
primaryColor
,
#5850ff
)
!
important
;
&
:hover
{
background-color
:
#8883fd
;
}
&
:active
{
background-color
:
#3a32e1
;
}
}
}
src/setup/qiankun.js
View file @
367f655
...
...
@@ -9,7 +9,7 @@
import
Vue
from
'vue'
import
{
message
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
GLButton
,
GLTable
,
GLCombiForm
,
GLFooter
,
GLTableButton
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLCombiForm
,
GLFooter
,
GLTableButton
,
GLDialog
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
ElementUI
from
'element-ui'
import
'glsx-components/dist/glsx-components.css'
...
...
@@ -23,6 +23,7 @@ Vue.use(GLTable)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
sign_common
,
secret
,
request_common
}
=
await
fetchConfig
(
true
)
//globalState.configSwitch
Vue
.
prototype
.
$history
=
history
...
...
@@ -30,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/accountInterface/index.vue
View file @
367f655
...
...
@@ -10,7 +10,7 @@
<div
class=
"container"
>
<div
class=
"container-header"
>
<span>
帐号接口许可
</span>
<el-popover
placement=
"bottom"
width=
"280"
trigger=
"hover"
content=
"企微代开发应用的帐号接口许可管理
。
"
>
<el-popover
placement=
"bottom"
width=
"280"
trigger=
"hover"
content=
"企微代开发应用的帐号接口许可管理"
>
<img
src=
"@/assets/icon-tip.png"
slot=
"reference"
class=
"count-item-question"
/>
</el-popover>
</div>
...
...
@@ -30,7 +30,7 @@
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
v-if=
"scope.scope.isBuyPermit"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<
!--
<el-button
type=
"text"
@
click=
"viewConfig(scope.scope)"
>
查看
</el-button>
--
>
<
el-button
type=
"text"
@
click=
"viewConfig(scope.scope)"
>
查看
</el-button
>
<!--
<el-button
type=
"text"
@
click=
"handelActivate(scope.scope)"
:loading=
"loading"
>
一键激活许可
</el-button>
-->
</
template
>
</GLTable>
...
...
@@ -89,7 +89,7 @@ export default {
name
:
'merchantId'
,
type
:
'input'
,
isClear
:
true
,
placeholder
:
'
输入关键字搜索
'
,
placeholder
:
'
请输入商户号
'
,
listeners
:
{
input
:
value
=>
{
this
.
searchForm
.
condition
.
merchantId
=
value
.
replace
(
/
[^\d]
/g
,
''
)
...
...
@@ -102,7 +102,8 @@ export default {
tableColumns
:
[
{
label
:
'商户号'
,
prop
:
'merchantId'
prop
:
'merchantId'
,
width
:
'120'
},
{
label
:
'商户名称'
,
...
...
@@ -111,7 +112,8 @@ export default {
},
{
label
:
'关联企业微信名称'
,
prop
:
'corpFullName'
prop
:
'corpFullName'
,
width
:
'300'
},
{
label
:
'是否已购许可'
,
...
...
@@ -166,7 +168,8 @@ export default {
return
'一键激活许可'
},
attrs
:
{
type
:
'text'
type
:
'text'
,
loading
:
this
.
loading
},
listeners
:
{
click
:
row
=>
this
.
handelActivate
(
row
)
...
...
@@ -216,14 +219,28 @@ export default {
}
this
.
$apis
.
accountConfig
.
activeAccount
(
params
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
code
==
-
1
)
{
var
txt
=
'<i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i><p>已激活 '
+
`
${
res
.
data
?
res
.
data
:
0
}
`
+
' 个</p>'
this
.
$confirm
(
txt
,
'提示'
,
{
if
(
res
)
{
// <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
var
txt
=
'<p>已激活 '
+
`
${
res
.
data
?
res
.
data
:
0
}
`
+
' 个</p>'
this
.
$alert
(
txt
,
'提示'
,
{
confirmButtonText
:
'我知道了'
,
dangerouslyUseHTMLString
:
true
,
showClose
:
true
,
showCancelButton
:
false
// showCancelButton: false,
confirmButtonClass
:
'confirmbtn'
,
type
:
'success'
,
customClass
:
'gl-message-box confirm-btn'
,
callback
:
action
=>
{
if
(
res
.
data
&&
res
.
data
>
0
)
{
var
pras
=
{
pageSize
:
this
.
$refs
.
accountTable
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
accountTable
.
page
.
pageNum
}
this
.
$apis
.
accountConfig
.
listCustomizedAgentWithPage
(
pras
).
then
(
res
=>
{})
}
}
})
}
else
{
this
.
$message
.
error
(
'激活失败'
)
}
})
},
...
...
@@ -245,6 +262,9 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-button
.el-button--default
.el-button--small
.el-button--primary
.confirmbtn
{
color
:
red
!important
;
}
.container
{
.table-box
{
margin
:
20px
0
;
...
...
@@ -270,7 +290,9 @@ export default {
border
:
1px
solid
#5850ff
;
}
}
/
deep
/
.el-table
th
>
.cell
{
padding
:
0
16px
;
/
deep
/
{
.el-table
th
>
.cell
{
padding
:
0
16px
;
}
}
</
style
>
src/views/accountInterface/viewConfig.vue
View file @
367f655
...
...
@@ -25,7 +25,7 @@
</GLTable>
</div>
</div>
<
el-dialog
class=
"trans-dia"
title=
"帐号接口许可转移"
:visible
.
sync=
"dialogTransferVisible"
width=
"50%
"
>
<
GLDialog
class=
"trans-dia"
title=
"帐号接口许可转移"
:visible
.
sync=
"dialogTransferVisible
"
>
<el-form
:model=
"transferForm"
>
<el-form-item
label=
"转移员工:"
>
<el-select
@
change=
"selectTransferStaff"
v-model=
"transferForm.staff"
filterable
:size=
"size"
placeholder=
"请选择或输入关键字搜索"
>
...
...
@@ -38,7 +38,7 @@
<el-button
:size=
"size"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"transferCount"
>
提交
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</div>
</template>
...
...
@@ -184,14 +184,17 @@ export default {
this
.
$apis
.
accountConfig
.
findNotActiveStaff
(
params
).
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
dialogTransferVisible
=
true
this
.
notActiveStaffList
=
res
this
.
notActiveStaffList
=
res
.
data
}
else
{
var
txt
=
'<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
this
.
$confirm
(
txt
,
'提示'
,
{
//
var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
this
.
$confirm
(
'无可用的用户转移'
,
'提示'
,
{
confirmButtonText
:
'我知道了'
,
dangerouslyUseHTMLString
:
true
,
showClose
:
true
,
showCancelButton
:
false
showCancelButton
:
false
,
confirmButtonClass
:
'confirmbtn'
,
type
:
'warning'
,
customClass
:
'gl-message-box confirm-btn'
})
}
})
...
...
@@ -210,14 +213,23 @@ export default {
params
.
handoverUserid
=
this
.
handoverUserid
params
.
takeoverUserid
=
this
.
takeoverUserid
this
.
$apis
.
accountConfig
.
transferLicenseAccount
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
.
code
==
0
)
{
this
.
$message
({
message
:
'账号转移成功'
,
type
:
'success'
type
:
'success'
,
customClass
:
'global-messageZindex'
})
this
.
getListApi
()
this
.
dialogTransferVisible
=
false
this
.
transferForm
.
staff
=
''
}
else
{
this
.
$message
({
message
:
'账号转移失败,请联系管理员'
,
type
:
'error'
,
customClass
:
'global-messageZindex'
})
this
.
dialogTransferVisible
=
false
this
.
transferForm
.
staff
=
''
}
})
},
...
...
@@ -275,4 +287,7 @@ export default {
/
deep
/
.el-dialog__title
{
font-weight
:
600
;
}
.global-messageZindex
{
z-index
:
3000
!important
;
}
</
style
>
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