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 c8033a15
authored
Aug 24, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微接入联调
1 parent
559a486f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
374 additions
and
248 deletions
package-lock.json
package.json
src/config/index.js
src/views/accountInterface/activateDia.vue
src/views/accountInterface/index.vue
src/views/accountInterface/transferDia.vue
src/views/accountInterface/viewConfig.vue
src/views/appConfig/index.vue
src/views/appConfig/viewConfig.vue
package-lock.json
View file @
c8033a1
...
@@ -3085,6 +3085,16 @@
...
@@ -3085,6 +3085,16 @@
"integrity"
:
"sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg=="
,
"integrity"
:
"sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg=="
,
"dev"
:
true
"dev"
:
true
},
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"cliui"
:
{
"cliui"
:
{
"version"
:
"6.0.0"
,
"version"
:
"6.0.0"
,
"resolved"
:
"https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz"
,
...
@@ -3111,12 +3121,24 @@
...
@@ -3111,12 +3121,24 @@
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
"dev"
:
true
},
},
"emojis-list"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/emojis-list/-/emojis-list-3.0.0.tgz"
,
"integrity"
:
"sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q=="
,
"dev"
:
true
},
"fast-deep-equal"
:
{
"fast-deep-equal"
:
{
"version"
:
"3.1.3"
,
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
,
"integrity"
:
"sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
,
"integrity"
:
"sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
,
"dev"
:
true
"dev"
:
true
},
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
},
"is-fullwidth-code-point"
:
{
"is-fullwidth-code-point"
:
{
"version"
:
"3.0.0"
,
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
,
...
@@ -3210,6 +3232,15 @@
...
@@ -3210,6 +3232,15 @@
"strip-ansi"
:
"^6.0.1"
"strip-ansi"
:
"^6.0.1"
}
}
},
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"terser-webpack-plugin"
:
{
"terser-webpack-plugin"
:
{
"version"
:
"2.3.8"
,
"version"
:
"2.3.8"
,
"resolved"
:
"https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz"
,
"resolved"
:
"https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz"
,
...
@@ -3258,6 +3289,30 @@
...
@@ -3258,6 +3289,30 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"loader-utils"
:
{
"version"
:
"2.0.2"
,
"resolved"
:
"https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.2.tgz"
,
"integrity"
:
"sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A=="
,
"dev"
:
true
,
"requires"
:
{
"big.js"
:
"^5.2.2"
,
"emojis-list"
:
"^3.0.0"
,
"json5"
:
"^2.1.2"
}
}
}
},
"wrap-ansi"
:
{
"wrap-ansi"
:
{
"version"
:
"6.2.0"
,
"version"
:
"6.2.0"
,
"resolved"
:
"https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz"
,
...
@@ -7706,9 +7761,9 @@
...
@@ -7706,9 +7761,9 @@
}
}
},
},
"glsx-components"
:
{
"glsx-components"
:
{
"version"
:
"1.
4.6
"
,
"version"
:
"1.
5.2
"
,
"resolved"
:
"https://registry.npm
js.org/glsx-components/-/glsx-components-1.4.6
.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com/glsx-components/-/glsx-components-1.5.2
.tgz"
,
"integrity"
:
"sha512-
U3eNKkIoyEPYe6dY/mOmN2ttPOUbpn0vx7lZ04deIQetiNjQaM8zTmBBOAgRJDpZT7VENjqQpBHTP3T7OSHx6A
=="
,
"integrity"
:
"sha512-
5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg
=="
,
"requires"
:
{
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
...
@@ -7719,7 +7774,7 @@
...
@@ -7719,7 +7774,7 @@
"dependencies"
:
{
"dependencies"
:
{
"element-ui"
:
{
"element-ui"
:
{
"version"
:
"2.15.9"
,
"version"
:
"2.15.9"
,
"resolved"
:
"https://registry.npm
js.org
/element-ui/-/element-ui-2.15.9.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/element-ui/-/element-ui-2.15.9.tgz"
,
"integrity"
:
"sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA=="
,
"integrity"
:
"sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA=="
,
"requires"
:
{
"requires"
:
{
"async-validator"
:
"~1.8.1"
,
"async-validator"
:
"~1.8.1"
,
...
@@ -13282,7 +13337,7 @@
...
@@ -13282,7 +13337,7 @@
},
},
"sortablejs"
:
{
"sortablejs"
:
{
"version"
:
"1.10.2"
,
"version"
:
"1.10.2"
,
"resolved"
:
"https://registry.npm
js.org
/sortablejs/-/sortablejs-1.10.2.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/sortablejs/-/sortablejs-1.10.2.tgz"
,
"integrity"
:
"sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
"integrity"
:
"sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
},
},
"source-list-map"
:
{
"source-list-map"
:
{
...
@@ -14541,85 +14596,6 @@
...
@@ -14541,85 +14596,6 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
},
"emojis-list"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz"
,
"integrity"
:
"sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q=="
,
"dev"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
},
"loader-utils"
:
{
"version"
:
"2.0.2"
,
"resolved"
:
"https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz"
,
"integrity"
:
"sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A=="
,
"dev"
:
true
,
"requires"
:
{
"big.js"
:
"^5.2.2"
,
"emojis-list"
:
"^3.0.0"
,
"json5"
:
"^2.1.2"
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"vue-router"
:
{
"version"
:
"3.1.3"
,
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz"
,
...
@@ -14661,7 +14637,7 @@
...
@@ -14661,7 +14637,7 @@
},
},
"vuedraggable"
:
{
"vuedraggable"
:
{
"version"
:
"2.24.3"
,
"version"
:
"2.24.3"
,
"resolved"
:
"https://registry.npm
js.org
/vuedraggable/-/vuedraggable-2.24.3.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/vuedraggable/-/vuedraggable-2.24.3.tgz"
,
"integrity"
:
"sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g=="
,
"integrity"
:
"sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g=="
,
"requires"
:
{
"requires"
:
{
"sortablejs"
:
"1.10.2"
"sortablejs"
:
"1.10.2"
...
...
package.json
View file @
c8033a1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
4.6
"
,
"glsx-components"
:
"^1.
5.2
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-amap"
:
"^0.5.10"
,
"vue-amap"
:
"^0.5.10"
,
...
...
src/config/index.js
View file @
c8033a1
...
@@ -11,15 +11,15 @@
...
@@ -11,15 +11,15 @@
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// if (isEnv) {
// if (isEnv) {
// let { request } = cfg
// let { request } = cfg
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config'
)
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/accountInterface/activateDia.vue
View file @
c8033a1
This diff is collapsed.
Click to expand it.
src/views/accountInterface/index.vue
View file @
c8033a1
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
v-if=
"scope.scope.isBuyPermit"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
v-if=
"scope.scope.isBuyPermit"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<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>
-->
<!--
<el-button
type=
"text"
@
click=
"handelActivate(scope.scope)"
:loading=
"loading"
>
一键激活许可
</el-button>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
...
@@ -54,6 +54,7 @@ export default {
...
@@ -54,6 +54,7 @@ export default {
Icon
,
Icon
,
loading
:
false
,
loading
:
false
,
syncLoad
:
false
,
syncLoad
:
false
,
dialogActivateVisible
:
false
,
searchForm
:
{
searchForm
:
{
isBuyPermit
:
''
,
isBuyPermit
:
''
,
merchantId
:
''
,
merchantId
:
''
,
...
@@ -215,41 +216,17 @@ export default {
...
@@ -215,41 +216,17 @@ export default {
this
.
$refs
.
accountTable
.
data
.
length
?
(
this
.
$refs
.
accountTable
.
tableHeightValues
=
''
)
:
this
.
$refs
.
accountTable
.
setTableHeightFun
()
this
.
$refs
.
accountTable
.
data
.
length
?
(
this
.
$refs
.
accountTable
.
tableHeightValues
=
''
)
:
this
.
$refs
.
accountTable
.
setTableHeightFun
()
},
},
// 一键激活许可
// 一键激活许可
handelActivate
(
scope
)
{
handelActivate
(
row
)
{
console
.
log
(
this
.
dialogActivateVisible
)
// 获取当前页面
var
pageInfo
=
{
pageSize
:
this
.
$refs
.
accountTable
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
accountTable
.
page
.
pageNum
}
this
.
dialogActivateVisible
=
true
this
.
dialogActivateVisible
=
true
this
.
$refs
.
activateDia
.
init
()
console
.
log
(
this
.
dialogActivateVisible
)
// this.loading = true
// const { corpId, merchantId } = scope
this
.
$refs
.
activateDia
.
init
(
row
,
pageInfo
)
// var params = {
// corpId,
// merchantId
// }
// this.$apis.accountConfig.activeAccount(params).then(res => {
// this.loading = false
// if (res) {
// // <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
// var txt = '<p>已激活 ' + `${res.data ? res.data : 0}` + ' 个</p>'
// this.$confirm(txt, '提示', {
// confirmButtonText: '我知道了',
// dangerouslyUseHTMLString: true,
// 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('激活失败')
// }
// })
},
},
// 同步购买订单
// 同步购买订单
handleSync
()
{
handleSync
()
{
...
...
src/views/accountInterface/transferDia.vue
View file @
c8033a1
<
template
>
<
template
>
<div>
<div>
<GLDialog
:mode=
"'big'"
bigTitle=
"选择激活员工"
:visible
.
sync=
"dialogTransferVisible"
>
<GLDialog
:mode=
"'big'"
:visible
.
sync=
"dialogTransferVisible"
@
close=
"closeDia"
>
<!--
<GLCombiForm
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
-->
<!-- 自定义标题 -->
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
@
submit
.
native
.
prevent
>
<div
slot=
"title"
>
<span
class=
"title-left"
>
选择转移员工
</span>
<span
class=
"title-right"
>
接口有效期至:
{{
transferInfo
.
expireTime
}}
</span>
</div>
<div
class=
"gl-form-min"
>
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
>
<el-form-item
label=
"员工姓名:"
>
<el-form-item
label=
"员工姓名:"
>
<el-input
v-model=
"searchForm.staffName"
:size=
"size"
placeholder=
"输入关键字搜索"
></el-input>
<el-input
v-model=
"searchForm.staffName"
:size=
"size"
placeholder=
"输入关键字搜索"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"部门:"
>
<el-select
v-model=
"searchForm.department"
placeholder=
"全部"
:size=
"size"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"启用状态:"
>
<el-form-item
label=
"启用状态:"
>
<el-select
v-model=
"searchForm.s
tatus"
placeholder=
"全部"
:size=
"size"
>
<el-select
v-model=
"searchForm.openJoinS
tatus"
placeholder=
"全部"
:size=
"size"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
:size=
"size"
class=
"gap8"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
:size=
"size"
class=
"gap8"
@
click=
"findNotActiveStaff
"
>
查询
</el-button>
<el-button
plain
:size=
"size"
class=
"btn-three"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
plain
:size=
"size"
class=
"btn-three"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div>
员工列表
</div>
</div>
<GLTable
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:searchForm=
"searchForm"
v-loading=
"loading"
ref=
"transferTable"
:tableParams=
"tableParams"
:tableData=
"tableTransferData"
:noDataImg=
"url"
>
<div
class=
"table-title"
>
员工列表
</div>
<GLTable
:hasPage=
"false"
:hasNum=
"false"
:searchForm=
"searchForm"
v-loading=
"loading"
ref=
"transferTable"
:tableParams=
"tableParams"
:tableData=
"tableActiveData"
:noDataImg=
"url"
>
<div
slot=
"association"
slot-scope=
"scope"
class=
"association"
>
<div
slot=
"association"
slot-scope=
"scope"
class=
"association"
>
<el-radio
:label=
"scope.scope.id"
v-model=
"associationRadio"
@
change
.
native=
"getCouponInfo()"
></el-radio>
<el-radio
:label=
"scope.scope.id"
v-model=
"associationRadio"
@
change
.
native=
"getTransferInfo()"
></el-radio>
</div>
<div
slot=
"openJoinStatusString"
class=
"dot"
slot-scope=
"scope"
>
<div
:class=
"status[scope.scope.openJoinStatusString]"
></div>
<span
v-if=
"scope.scope.openJoinStatusString == '未开启'"
>
未开启
</span>
<span
v-if=
"scope.scope.openJoinStatusString == '已开启'"
>
已开启
</span>
<span
v-if=
"scope.scope.openJoinStatusString == '未授权'"
>
未授权
</span>
</div>
</div>
</GLTable>
</GLTable>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"closeDia"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"transferStaff"
>
确 定
</el-button>
</span>
</GLDialog>
</GLDialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
const
status
=
{
未开启
:
'dot3'
,
已开启
:
'dot2'
,
未授权
:
'dot3'
}
const
options
=
[
{
value
:
0
,
label
:
'未开启'
},
{
value
:
1
,
label
:
'已开启'
},
{
value
:
2
,
label
:
'未授权'
}
]
export
default
{
export
default
{
name
:
'TransferDia'
,
name
:
'TransferDia'
,
data
()
{
data
()
{
return
{
return
{
url
,
url
,
options
:
options
,
status
,
dialogTransferVisible
:
false
,
dialogTransferVisible
:
false
,
associationRadio
:
''
,
associationRadio
:
''
,
loading
:
false
,
searchForm
:
{
searchForm
:
{
isBuyPermit
:
''
,
openJoinStatus
:
''
,
merchantId
:
''
,
staffName
:
''
merchantName
:
''
},
},
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
...
@@ -52,6 +83,11 @@ export default {
...
@@ -52,6 +83,11 @@ export default {
{
{
prop
:
'association'
,
prop
:
'association'
,
addHtml
:
'association'
,
addHtml
:
'association'
,
width
:
'50'
},
{
label
:
'序号'
,
prop
:
'num'
,
width
:
'100'
width
:
'100'
},
},
{
{
...
@@ -68,61 +104,146 @@ export default {
...
@@ -68,61 +104,146 @@ export default {
},
},
{
{
label
:
'启用状态'
,
label
:
'启用状态'
,
prop
:
'departmentName'
prop
:
'openJoinStatusString'
,
addHtml
:
'openJoinStatusString'
}
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableActiveData
:
[],
tableTransferData
:
[]
transferInfo
:
{},
selectStaff
:
{},
routerInfo
:
{}
}
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
init
()
{
init
(
scope
,
routerInfo
)
{
console
.
log
(
scope
,
routerInfo
)
this
.
transferInfo
=
scope
this
.
routerInfo
=
routerInfo
this
.
dialogTransferVisible
=
true
this
.
dialogTransferVisible
=
true
this
.
listDepartmentTree
(
false
)
this
.
findNotActiveStaff
(
routerInfo
)
},
},
listDepartmentTree
(
isFollowerStaff
)
{
findNotActiveStaff
()
{
const
params
=
{
addChildrensFlag
:
true
}
const
{
corpId
,
merchantId
}
=
this
.
routerInfo
// let pageSize = this.$refs.transferTable.page.pageSize
// let pageNum = this.$refs.transferTable.page.pageNum
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
)),
corpId
,
merchantId
// pageSize,
// pageNum
}
this
.
loading
=
true
this
.
loading
=
true
params
.
isHavCustomer
=
true
this
.
$apis
.
accountConfig
.
findNotActiveStaff
(
params
).
then
(
res
=>
{
params
.
isFollowerStaff
=
isFollowerStaff
console
.
log
(
res
,
'======'
)
this
.
$apis
.
accountConfig
.
listDepartmentTree
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
console
.
log
(
res
)
this
.
tableActiveData
=
res
.
data
let
num
=
0
this
.
tableActiveData
.
forEach
(
item
=>
{
item
.
num
=
++
num
})
console
.
log
(
this
.
tableActiveData
,
'+++++'
)
this
.
loading
=
false
this
.
loading
=
false
if
(
res
)
{
// this.tableEmpData = this.getEmployee(res)
// this.allTreeData = this.getEmployee(res)
// this.currentTreeData = this.getEmployee(res)
// this.treeData = res
// this.$refs.empTable.tableHeightValues = this.tableEmpData.length ? '' : '230px'
// if (this.selectData && this.selectData.length) {
// this.selectData.forEach(item => {
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
// })
// }
}
else
{
}
else
{
this
.
treeData
=
[]
this
.
loading
=
false
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
,
customClass
:
'global-messageZindex'
})
}
}
})
})
},
},
// 搜索框搜索
handleSearch
()
{
this
.
$refs
.
accountTable
.
refreshTable
()
},
// 重置搜索框搜索
// 重置搜索框搜索
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
isBuyPermit
:
''
,
openJoinStatus
:
''
,
merchantId
:
''
,
staffName
:
''
merchantName
:
''
}
this
.
findNotActiveStaff
()
},
// 选择转移员工
getTransferInfo
()
{
console
.
log
(
this
.
associationRadio
)
let
inx
=
this
.
tableActiveData
.
filter
(
value
=>
value
.
id
==
this
.
associationRadio
)
console
.
log
(
inx
)
this
.
selectStaff
=
inx
[
0
]
},
// 转移员工
transferStaff
()
{
this
.
loading
=
true
const
{
merchantId
,
corpId
}
=
this
.
routerInfo
let
params
=
{
merchantId
,
corpId
}
params
.
handoverUserid
=
this
.
transferInfo
.
userid
params
.
takeoverUserid
=
this
.
selectStaff
.
userId
this
.
$apis
.
accountConfig
.
transferLicenseAccount
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
loading
=
false
this
.
$message
({
message
:
'账号转移成功'
,
type
:
'success'
,
customClass
:
'global-messageZindex'
})
this
.
dialogTransferVisible
=
false
this
.
$emit
(
'transferStaff'
)
}
else
{
this
.
loading
=
false
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
,
customClass
:
'global-messageZindex'
})
this
.
dialogTransferVisible
=
false
}
}
this
.
handleSearch
()
})
},
// 关闭转移员工弹窗
closeDia
()
{
this
.
associationRadio
=
''
this
.
selectStaff
=
{}
this
.
dialogTransferVisible
=
false
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.table-title
{
font-size
:
16px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
22px
;
margin-bottom
:
6px
;
}
.title-left
{
font-size
:
20px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
28px
;
margin-right
:
16px
;
}
.title-right
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
}
.association
{
/deep/
.el-radio__label
{
display
:
none
;
}
}
.global-messageZindex
{
z-index
:
3000
!important
;
}
</
style
>
src/views/accountInterface/viewConfig.vue
View file @
c8033a1
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<el-button :size="size" type="primary" @click="transferCount">提交</el-button>
<el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span>
</span>
</GLDialog> -->
</GLDialog> -->
<TransferDia
ref=
"TransferDia"
:dialogTransferVisible=
"dialogTransferVisible"
></TransferDia>
<TransferDia
ref=
"TransferDia"
:dialogTransferVisible=
"dialogTransferVisible"
@
transferStaff=
"getListApi"
></TransferDia>
</div>
</div>
</template>
</template>
...
@@ -180,7 +180,7 @@ export default {
...
@@ -180,7 +180,7 @@ export default {
// 账号许可转移弹窗
// 账号许可转移弹窗
handelTransfer
(
scope
)
{
handelTransfer
(
scope
)
{
this
.
dialogTransferVisible
=
true
this
.
dialogTransferVisible
=
true
this
.
$refs
.
TransferDia
.
init
()
this
.
$refs
.
TransferDia
.
init
(
scope
,
this
.
routerInfo
)
// const { merchantId, corpId } = this.routerInfo
// const { merchantId, corpId } = this.routerInfo
// let params = {
// let params = {
// merchantId,
// merchantId,
...
@@ -189,9 +189,11 @@ export default {
...
@@ -189,9 +189,11 @@ export default {
// this.handoverUserid = scope.userid
// this.handoverUserid = scope.userid
// this.expireTime = scope.expireTime
// this.expireTime = scope.expireTime
// this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
// this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
// if (res
.data
) {
// if (res) {
// this.dialogTransferVisible = true
// this.dialogTransferVisible = true
// this.notActiveStaffList = res.data
// this.$refs.TransferDia.init(scope, res.data)
// // this.notActiveStaffList = res.data
// // console.log(res.data, '+++++')
// } else {
// } else {
// // var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
// // var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
// this.$confirm('无可用的用户转移', '提示', {
// this.$confirm('无可用的用户转移', '提示', {
...
@@ -211,35 +213,35 @@ export default {
...
@@ -211,35 +213,35 @@ export default {
this
.
takeoverUserid
=
id
this
.
takeoverUserid
=
id
},
},
// 账号许可转移
// 账号许可转移
transferCount
()
{
//
transferCount() {
const
{
merchantId
,
corpId
}
=
this
.
routerInfo
//
const { merchantId, corpId } = this.routerInfo
let
params
=
{
//
let params = {
merchantId
,
//
merchantId,
corpId
//
corpId
}
//
}
params
.
handoverUserid
=
this
.
handoverUserid
//
params.handoverUserid = this.handoverUserid
params
.
takeoverUserid
=
this
.
takeoverUserid
//
params.takeoverUserid = this.takeoverUserid
this
.
$apis
.
accountConfig
.
transferLicenseAccount
(
params
).
then
(
res
=>
{
//
this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
if
(
res
.
code
==
0
)
{
//
if (res.code == 0) {
this
.
$message
({
//
this.$message({
message
:
'账号转移成功'
,
//
message: '账号转移成功',
type
:
'success'
,
//
type: 'success',
customClass
:
'global-messageZindex'
//
customClass: 'global-messageZindex'
})
//
})
this
.
getListApi
()
//
this.getListApi()
this
.
dialogTransferVisible
=
false
//
this.dialogTransferVisible = false
this
.
transferForm
.
staff
=
''
//
this.transferForm.staff = ''
}
else
{
//
} else {
this
.
$message
({
//
this.$message({
message
:
'账号转移失败,请联系管理员'
,
//
message: '账号转移失败,请联系管理员',
type
:
'error'
,
//
type: 'error',
customClass
:
'global-messageZindex'
//
customClass: 'global-messageZindex'
})
//
})
this
.
dialogTransferVisible
=
false
//
this.dialogTransferVisible = false
this
.
transferForm
.
staff
=
''
//
this.transferForm.staff = ''
}
//
}
})
//
})
},
//
},
// 关闭弹窗
// 关闭弹窗
handleClose
()
{
handleClose
()
{
this
.
dialogTransferVisible
=
false
this
.
dialogTransferVisible
=
false
...
...
src/views/appConfig/index.vue
View file @
c8033a1
...
@@ -8,11 +8,9 @@
...
@@ -8,11 +8,9 @@
-->
-->
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"container-header"
>
<div>
<span>
代开发应用配置
</span>
<span
class=
"container-header"
>
代开发应用配置
</span>
<el-popover
placement=
"bottom"
width=
"270"
trigger=
"hover"
content=
"提供企微代开发应用的配置管理。"
>
<span
class=
"container-tip"
>
提供企微代开发应用的配置管理
</span>
<img
src=
"@/assets/question.png"
slot=
"reference"
class=
"count-item-question"
/>
</el-popover>
</div>
</div>
<div
class=
"table-box"
>
<div
class=
"table-box"
>
<GLCombiForm
:formObj=
"searchForm.condition"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm.condition"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
...
@@ -166,6 +164,21 @@ export default {
...
@@ -166,6 +164,21 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.container
{
.container
{
&-header
{
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
letter-spacing
:
1px
;
margin-right
:
12px
;
}
&
-tip
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20px
;
}
.table-box
{
.table-box
{
margin
:
20px
0
;
margin
:
20px
0
;
padding
:
20px
;
padding
:
20px
;
...
...
src/views/appConfig/viewConfig.vue
View file @
c8033a1
...
@@ -9,71 +9,76 @@
...
@@ -9,71 +9,76 @@
<
template
>
<
template
>
<div
class=
"config-container"
>
<div
class=
"config-container"
>
<div
class=
"container-header"
>
<div
class=
"config-title-top"
>
<span>
企微自建应用配置管理
</span>
<span
class=
"container-header"
>
企微自建应用配置管理
</span>
<el-popover
placement=
"bottom"
width=
"270"
trigger=
"hover"
content=
"提供企微自建应用的配置管理。"
>
<span
class=
"container-tip"
>
提供企微代开发应用的配置管理
</span>
<img
src=
"@/assets/question.png"
slot=
"reference"
class=
"count-item-question"
/>
</el-popover>
</div>
</div>
<div
class=
"config-content"
>
<div
class=
"config-content"
>
<div
class=
"config-list"
>
<div
class=
"config-list"
>
<div
class=
"config-top"
>
<div
class=
"config-title"
>
使用配置
</div>
<div
class=
"config-title"
>
使用配置
</div>
</div>
<div
class=
"config-item-box"
>
<div
class=
"config-item"
>
<div
class=
"config-item"
>
<div
class=
"item-name"
>
应用主页:
</div>
<div
class=
"item-name"
>
应用主页:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
<el-input
type=
"text"
id=
"appHome"
readonly
class=
"url-input"
v-model=
"configUrl.appHome"
></el-input>
<el-input
type=
"text"
id=
"appHome"
readonly
class=
"url-input"
v-model=
"configUrl.appHome"
></el-input>
<span
class=
"item-copy"
@
click=
"copyUrl('appHome')"
>
<span
class=
"item-copy"
@
click=
"copyUrl('appHome')"
>
复制
<img
src=
"@/assets/copy.png"
alt=
""
/>
<img
src=
"@/assets/copy.png"
alt=
""
/>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-list"
>
<div
class=
"config-list"
>
<div
class=
"config-top"
>
<div
class=
"config-title"
>
消息回调
</div>
<div
class=
"config-title"
>
消息回调
</div>
</div>
<div
class=
"config-item-box"
>
<div
class=
"config-item"
>
<div
class=
"config-item"
>
<div
class=
"item-name"
>
消息回调
URL:
</div>
<div
class=
"item-name"
>
URL:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
<el-input
type=
"text"
id=
"callbackUrl"
readonly
class=
"url-input"
v-model=
"configUrl.callbackUrl"
></el-input>
<el-input
type=
"text"
id=
"callbackUrl"
readonly
class=
"url-input"
v-model=
"configUrl.callbackUrl"
></el-input>
<span
class=
"item-copy"
@
click=
"copyUrl('callbackUrl')"
>
<span
class=
"item-copy"
@
click=
"copyUrl('callbackUrl')"
>
复制
<img
src=
"@/assets/copy.png"
alt=
""
/>
<img
src=
"@/assets/copy.png"
alt=
""
/>
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"config-item"
>
<div
class=
"config-item"
>
<div
class=
"item-name"
>
消息回调
Token:
</div>
<div
class=
"item-name"
>
Token:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
<el-input
type=
"text"
id=
"token"
readonly
class=
"url-input"
v-model=
"configUrl.token"
></el-input>
<el-input
type=
"text"
id=
"token"
readonly
class=
"url-input"
v-model=
"configUrl.token"
></el-input>
<span
class=
"item-copy"
@
click=
"copyUrl('token')"
>
<span
class=
"item-copy"
@
click=
"copyUrl('token')"
>
复制
<img
src=
"@/assets/copy.png"
alt=
""
/>
<img
src=
"@/assets/copy.png"
alt=
""
/>
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"config-item"
>
<div
class=
"config-item"
>
<div
class=
"item-name"
>
消息回调
EncodingAESKey:
</div>
<div
class=
"item-name"
>
EncodingAESKey:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
<el-input
type=
"text"
id=
"encodingAesKey"
readonly
class=
"url-input"
v-model=
"configUrl.encodingAesKey"
></el-input>
<el-input
type=
"text"
id=
"encodingAesKey"
readonly
class=
"url-input"
v-model=
"configUrl.encodingAesKey"
></el-input>
<span
class=
"item-copy"
@
click=
"copyUrl('encodingAesKey')"
>
<span
class=
"item-copy"
@
click=
"copyUrl('encodingAesKey')"
>
复制
<img
src=
"@/assets/copy.png"
alt=
""
/>
<img
src=
"@/assets/copy.png"
alt=
""
/>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-list"
>
<div
class=
"config-list"
>
<div
class=
"config-top"
>
<div
class=
"config-title"
>
应用菜单
</div>
<div
class=
"config-title"
>
应用菜单
</div>
</div>
<div
class=
"config-item-box"
>
<div
class=
"config-item"
v-for=
"(item, index) in configUrl.agentMenuList"
:key=
"index"
>
<div
class=
"config-item"
v-for=
"(item, index) in configUrl.agentMenuList"
:key=
"index"
>
<div
class=
"item-name"
>
{{
item
.
name
}}
:
</div>
<div
class=
"item-name"
>
{{
item
.
name
}}
:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
<el-input
type=
"text"
:id=
"item.name"
readonly
class=
"url-input"
v-model=
"item.url"
></el-input>
<el-input
type=
"text"
:id=
"item.name"
readonly
class=
"url-input"
v-model=
"item.url"
></el-input>
<span
class=
"item-copy"
@
click=
"copyUrl(item.name)"
>
<span
class=
"item-copy"
@
click=
"copyUrl(item.name)"
>
复制
<img
src=
"@/assets/copy.png"
alt=
""
/>
<img
src=
"@/assets/copy.png"
alt=
""
/>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<!--
<div
class=
"config-item"
>
<!--
<div
class=
"config-item"
>
<div
class=
"item-name"
>
工作台:
</div>
<div
class=
"item-name"
>
工作台:
</div>
<div
class=
"item-url"
>
<div
class=
"item-url"
>
...
@@ -130,50 +135,80 @@ export default {
...
@@ -130,50 +135,80 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.config
{
.config
{
&-title-top
{
margin-bottom
:
16px
;
}
&
-container
{
&
-container
{
margin-bottom
:
64px
;
margin-bottom
:
64px
;
.container-header
{
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
letter-spacing
:
1px
;
margin-right
:
12px
;
}
.container-tip
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20px
;
}
}
}
&
-content
{
&
-content
{
margin-top
:
20px
;
//
margin-top
:
20px
;
padding
:
20px
;
//
padding
:
20px
;
background-color
:
#fff
;
//
background-color
:
#fff
;
}
}
&
-title
{
&
-title
{
position
:
relative
;
position
:
relative
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#333333
;
color
:
#333333
;
line-height
:
28
px
;
line-height
:
56
px
;
margin-left
:
16
px
;
margin-left
:
20
px
;
&::before
{
//
&::before
{
content
:
''
;
//
content
:
''
;
display
:
inline-block
;
//
display
:
inline-block
;
position
:
absolute
;
//
position
:
absolute
;
left
:
-16px
;
//
left
:
-16px
;
top
:
50%
;
//
top
:
50%
;
transform
:
translateY
(
-50%
);
//
transform
:
translateY
(
-50%
);
width
:
4px
;
//
width
:
4px
;
height
:
4px
;
//
height
:
4px
;
background-color
:
#5850ff
;
//
background-color
:
#5850ff
;
border-radius
:
50%
;
//
border-radius
:
50%
;
}
//
}
}
}
&
-list
{
&
-list
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
background-color
:
#fff
;
}
}
&
-item
{
&
-top
{
margin-top
:
20px
;
height
:
56px
;
margin-left
:
16px
;
border-bottom
:
1px
solid
#e5e5e5
;
}
&
-item-box
{
padding
:
32px
0
;
font-weight
:
400
;
font-weight
:
400
;
}
&
-item
{
display
:
flex
;
margin-bottom
:
20px
;
&:last-child
{
margin-bottom
:
0
;
}
.item-name
{
.item-name
{
line-height
:
20px
;
width
:
154px
;
line-height
:
36px
;
text-align
:
right
;
color
:
#333333
;
color
:
#333333
;
font-size
:
14px
;
font-size
:
14px
;
margin-bottom
:
10px
;
}
}
.item-url
{
.item-url
{
position
:
relative
;
position
:
relative
;
width
:
55
2px
;
width
:
43
2px
;
//
overflow-x
:
auto
;
//
overflow-x
:
auto
;
//
height
:
36px
;
//
height
:
36px
;
//
border
:
1px
solid
#dce5ed
;
//
border
:
1px
solid
#dce5ed
;
...
@@ -185,7 +220,9 @@ export default {
...
@@ -185,7 +220,9 @@ export default {
.url-input
{
.url-input
{
/deep/
{
/deep/
{
.el-input__inner
{
.el-input__inner
{
padding-right
:
66px
!important
;
padding-right
:
35px
!important
;
height
:
36px
!important
;
line-height
:
36px
!important
;
}
}
}
}
}
}
...
...
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