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 1105df04
authored
May 08, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微配置图片上传问题
1 parent
2268d6df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
28 deletions
linkwe-pc/src/views/enterpriseWechat/part1.vue
linkwe-pc/src/views/enterpriseWechat/part1.vue
View file @
1105df0
...
@@ -4,15 +4,15 @@
...
@@ -4,15 +4,15 @@
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"my-title"
>
企业配置
</div>
<div
class=
"my-title"
>
企业配置
</div>
<el-form-item
label=
"企业ID:"
prop=
"corpId"
>
<el-form-item
label=
"企业ID:"
prop=
"corpId"
>
<el-input
style=
"width: 40%"
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>
<div
class=
"tips"
>
企业ID即CorpID,在企微后台->我的企业中获取
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"企业名称:"
prop=
"companyName"
required
>
<el-form-item
label=
"企业名称:"
prop=
"companyName"
required
>
<el-input
style=
"width: 40%"
v-model=
"form.companyName"
placeholder=
"企业名称"
></el-input>
<el-input
style=
"width: 40%
;
"
v-model=
"form.companyName"
placeholder=
"企业名称"
></el-input>
<div
class=
"tips"
>
根据企业 ID 配置后回显
</div>
<div
class=
"tips"
>
根据企业 ID 配置后回显
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"企业logo"
required
prop=
"logoUrl"
>
<el-form-item
label=
"企业logo"
required
prop=
"logoUrl"
>
<upload
class=
"image-uploader"
:fileUrl
.
sync=
"form.logoUrl"
type=
"0"
></upload
>
<upload
-to-cos
class=
"image-uploader"
:fileUrl
.
sync=
"form.logoUrl"
type=
"0"
></upload-to-cos
>
<div
class=
"tips"
>
建议大小 2M 以内,仅支持 png/jpg 等图片类型
</div>
<div
class=
"tips"
>
建议大小 2M 以内,仅支持 png/jpg 等图片类型
</div>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -22,20 +22,22 @@
...
@@ -22,20 +22,22 @@
<div>
<div>
<el-input
<el-input
:disabled=
"!corpSecretEditState"
:disabled=
"!corpSecretEditState"
style=
"width: 40%"
style=
"width: 40%
;
"
:type=
"corpSecretEditState ? 'text' : 'password'"
:type=
"corpSecretEditState ? 'text' : 'password'"
v-model=
"form.corpSecret"
v-model=
"form.corpSecret"
placeholder=
"请输入通讯录Secret"
></el-input>
placeholder=
"请输入通讯录Secret"
<el-button
style=
"margin-left: 20px"
plain
v-if=
"corpSecretEditState"
@
click=
"cancelEditCorpSecret"
>
></el-input>
<el-button
style=
"margin-left: 20px;"
plain
v-if=
"corpSecretEditState"
@
click=
"cancelEditCorpSecret"
>
取消
取消
</el-button>
</el-button>
<el-button
type=
"primary"
plain
v-if=
"corpSecretEditState"
@
click=
"submitEditCorpSecret"
>
保存
</el-button>
<el-button
type=
"primary"
plain
v-if=
"corpSecretEditState"
@
click=
"submitEditCorpSecret"
>
保存
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
style=
"margin-left: 20px"
style=
"margin-left: 20px
;
"
plain
plain
v-if=
"!corpSecretEditState"
v-if=
"!corpSecretEditState"
@
click=
"editCorpSecret"
>
@
click=
"editCorpSecret"
>
修改
修改
</el-button>
</el-button>
</div>
</div>
...
@@ -48,11 +50,12 @@
...
@@ -48,11 +50,12 @@
<div>
<div>
<el-input
<el-input
:disabled=
"!contactSecretEditState"
:disabled=
"!contactSecretEditState"
style=
"width: 40%"
style=
"width: 40%
;
"
:type=
"contactSecretEditState ? 'text' : 'password'"
:type=
"contactSecretEditState ? 'text' : 'password'"
v-model=
"form.contactSecret"
v-model=
"form.contactSecret"
placeholder=
"请输入客户联系Secret"
></el-input>
placeholder=
"请输入客户联系Secret"
<el-button
style=
"margin-left: 20px"
plain
v-if=
"contactSecretEditState"
@
click=
"cancelEditContactSecret"
>
></el-input>
<el-button
style=
"margin-left: 20px;"
plain
v-if=
"contactSecretEditState"
@
click=
"cancelEditContactSecret"
>
取消
取消
</el-button>
</el-button>
<el-button
type=
"primary"
plain
v-if=
"contactSecretEditState"
@
click=
"submitEditContactSecret"
>
<el-button
type=
"primary"
plain
v-if=
"contactSecretEditState"
@
click=
"submitEditContactSecret"
>
...
@@ -60,10 +63,11 @@
...
@@ -60,10 +63,11 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
style=
"margin-left: 20px"
style=
"margin-left: 20px
;
"
plain
plain
v-if=
"!contactSecretEditState"
v-if=
"!contactSecretEditState"
@
click=
"editContactSecret"
>
@
click=
"editContactSecret"
>
修改
修改
</el-button>
</el-button>
</div>
</div>
...
@@ -73,10 +77,10 @@
...
@@ -73,10 +77,10 @@
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"my-title"
>
回调配置
</div>
<div
class=
"my-title"
>
回调配置
</div>
<el-form-item
label=
"Token:"
prop=
"token"
>
<el-form-item
label=
"Token:"
prop=
"token"
>
<el-input
style=
"width: 40%"
v-model=
"form.token"
placeholder=
"请输入Token"
></el-input>
<el-input
style=
"width: 40%
;
"
v-model=
"form.token"
placeholder=
"请输入Token"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"EncodingAESKey:"
prop=
"encodingAesKey"
>
<el-form-item
label=
"EncodingAESKey:"
prop=
"encodingAesKey"
>
<el-input
style=
"width: 40%"
v-model=
"form.encodingAesKey"
placeholder=
"请输入EncodingAESKey"
></el-input>
<el-input
style=
"width: 40%
;
"
v-model=
"form.encodingAesKey"
placeholder=
"请输入EncodingAESKey"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<el-form-item
label=
""
class=
"ar"
>
<el-form-item
label=
""
class=
"ar"
>
...
@@ -86,7 +90,9 @@
...
@@ -86,7 +90,9 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
import
UploadToCos
from
'../../components/UploadToCos.vue'
export
default
{
components
:
{
UploadToCos
},
name
:
'enterprise-wechat-part1'
,
name
:
'enterprise-wechat-part1'
,
data
()
{
data
()
{
return
{
return
{
...
@@ -102,18 +108,18 @@ export default {
...
@@ -102,18 +108,18 @@ export default {
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
logoUrl
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
logoUrl
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
token
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
token
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
encodingAesKey
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
encodingAesKey
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}]
},
}
}
}
},
},
watch
:
{
watch
:
{
data
:
'setData'
,
data
:
'setData'
},
},
props
:
{
props
:
{
data
:
{
data
:
{
type
:
Object
,
type
:
Object
,
default
:
{},
default
:
{}
},
}
},
},
methods
:
{
methods
:
{
editContactSecret
()
{
editContactSecret
()
{
...
@@ -158,17 +164,17 @@ export default {
...
@@ -158,17 +164,17 @@ export default {
if
(
Object
.
keys
(
this
.
data
).
length
)
{
if
(
Object
.
keys
(
this
.
data
).
length
)
{
this
.
form
=
this
.
data
this
.
form
=
this
.
data
}
}
},
}
},
},
mounted
()
{},
mounted
()
{},
created
()
{},
created
()
{}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.my-title
{
.my-title
{
}
}
.tips
{
.tips
{
color
:
#aaa
;
color
:
#aaa
;
font-size
:
12px
;
font-size
:
12px
;
}
}
</
style
>
</
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