Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 58ef994e
authored
Feb 27, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微配置
1 parent
92f46928
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
19 deletions
linkwe-ui/src/views/enterpriseWechat/list.vue
linkwe-ui/src/views/enterpriseWechat/part1.vue
linkwe-ui/src/views/enterpriseWechat/part2.vue
linkwe-ui/src/views/enterpriseWechat/part3.vue
linkwe-ui/src/views/enterpriseWechat/part4.vue
linkwe-ui/src/views/enterpriseWechat/list.vue
View file @
58ef994
...
...
@@ -2,7 +2,7 @@
<div>
<el-tabs
v-model=
"currentActive"
align-center
>
<el-tab-pane
label=
"基础配置"
name=
"1"
>
<part1></part1>
<part1
@
submit=
"savePart1"
:data=
"form"
></part1>
</el-tab-pane>
<el-tab-pane
label=
"应用配置"
name=
"2"
>
<part2></part2>
...
...
@@ -57,6 +57,16 @@
mounted
()
{
},
methods
:
{
savePart1
(
data
)
{
api
.
addOrUpdate
(
data
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
// this.dialogVisible = false
this
.
getDetail
()
})
.
catch
(()
=>
{
// this.dialogVisible = false
})
},
getDetail
()
{
this
.
loading
=
true
api
.
getDetail
()
...
...
linkwe-ui/src/views/enterpriseWechat/part1.vue
View file @
58ef994
...
...
@@ -6,13 +6,17 @@
企业配置
</div>
<el-form-item
label=
"企业ID:"
prop=
"corpId"
>
<el-input
style=
"width: 40%;"
:disabled=
"form.id"
v-model=
"form.corpId"
placeholder=
""
></el-input>
<el-input
style=
"width: 40%;"
v-model=
"form.corpId"
placeholder=
""
></el-input>
<div
class=
"tips"
>
企业ID即CorpID,在企微后台->我的企业中获取
</div>
</el-form-item>
<el-form-item
label=
"企业名称:"
required
>
<el-form-item
label=
"企业名称:"
prop=
"companyName"
required
>
<el-input
style=
"width: 40%;"
v-model=
"form.companyName"
disabled
placeholder=
"企业名称"
></el-input>
<div
class=
"tips"
>
根据企业 ID 配置后回显
</div>
</el-form-item>
<el-form-item
label=
"企业logo"
required
prop=
"logoUrl"
>
<upload
class=
"image-uploader"
:fileUrl
.
sync=
"form.logoUrl"
type=
"0"
></upload>
<div
class=
"tips"
>
建议大小 2M 以内,仅支持 png/jpg 等图片类型
</div>
</el-form-item>
</div>
<div
class=
"g-card g-pad20"
>
<div
class=
"my-title"
>
...
...
@@ -21,17 +25,17 @@
<el-form-item
label=
"通讯录Secret:"
prop=
"corpSecret"
>
<div>
<el-input
style=
"width: 40%;"
type=
"password"
v-model=
"form.corpSecret"
placeholder=
"请输入通讯录Secret"
></el-input>
<el-button
style=
"margin-left:20px;"
plain
>
取消
</el-button>
<el-button
type=
"primary"
plain
>
保存
</el-button>
<
!--
<
el-button
style=
"margin-left:20px;"
plain
>
取消
</el-button>
<el-button
type=
"primary"
plain
>
保存
</el-button>
-->
<!--
<el-button
type=
"primary"
plain
v-if=
"form.corpSecret"
>
修改
</el-button>
-->
</div>
<div
class=
"tips"
>
用于同步企微通讯录,在企微后台->管理工具->通讯录同步中获取
</div>
</el-form-item>
<el-form-item
label=
"Token:"
prop=
""
>
<el-input
style=
"width: 40%;"
v-model=
"form.companyName"
placeholder=
"请输入Token"
></el-input>
<el-form-item
label=
"Token:"
required
prop=
""
>
<el-input
style=
"width: 40%;"
placeholder=
"请输入Token"
></el-input>
</el-form-item>
<el-form-item
label=
"EncodingAESKey:"
prop=
""
>
<el-input
style=
"width: 40%;"
v-model=
"form.companyName"
placeholder=
"请输入EncodingAESKey"
></el-input>
<el-form-item
label=
"EncodingAESKey:"
required
prop=
""
>
<el-input
style=
"width: 40%;"
placeholder=
"请输入EncodingAESKey"
></el-input>
</el-form-item>
</div>
<div
class=
"g-card g-pad20"
>
...
...
@@ -55,7 +59,7 @@
</el-form-item>
</div>
<el-form-item
label=
""
class=
"ar"
>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
保存配置
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
保存配置
</el-button>
</el-form-item>
</el-form>
...
...
@@ -67,11 +71,6 @@
data
()
{
return
{
form
:
{
corpId
:
''
,
companyName
:
''
,
corpSecret
:
''
,
contactSecret
:
''
},
rules
:
{
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
...
...
@@ -84,9 +83,24 @@
}
}
},
watch
:
{
data
:
'setData'
,
},
props
:
{
data
:
{
type
:
Object
,
default
:
{}
}
},
methods
:
{
submit
()
{
this
.
$emit
(
'submit'
,
this
.
form
)
},
setData
()
{
if
(
Object
.
keys
(
this
.
data
).
length
)
{
this
.
form
=
this
.
data
// this.$forceUpdate();
}
}
},
mounted
()
{
...
...
linkwe-ui/src/views/enterpriseWechat/part2.vue
View file @
58ef994
...
...
@@ -38,7 +38,7 @@
</el-form-item>
</div>
<el-form-item
label=
""
class=
"ar"
>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
保存配置
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
保存配置
</el-button>
</el-form-item>
</el-form>
</div>
...
...
linkwe-ui/src/views/enterpriseWechat/part3.vue
View file @
58ef994
...
...
@@ -26,7 +26,7 @@
</el-form-item>
</div>
<el-form-item
label=
""
class=
"ar"
>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
保存配置
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
保存配置
</el-button>
</el-form-item>
</el-form>
...
...
linkwe-ui/src/views/enterpriseWechat/part4.vue
View file @
58ef994
...
...
@@ -15,7 +15,7 @@
</el-form-item>
</div>
<el-form-item
label=
""
class=
"ar"
>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
保存配置
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
保存配置
</el-button>
</el-form-item>
</el-form>
...
...
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