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 284f1701
authored
May 22, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除uploadToCos,替换为upload
1 parent
1b70635a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
151 additions
and
203 deletions
linkwe-pc/src/components/ContentCenter/AddMaterial.vue
linkwe-pc/src/components/MessageContentForm.vue
linkwe-pc/src/components/UploadToCos.vue
linkwe-pc/src/components/common/QuillEditor.vue
linkwe-pc/src/main.js
linkwe-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
linkwe-pc/src/views/contentCenter/basicMaterial/detail.vue
linkwe-pc/src/views/contentCenter/components/MaPage.vue
linkwe-pc/src/views/contentCenter/components/PosterAdd.vue
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
linkwe-pc/src/views/drainageCode/components/IdentityAttachment.vue
linkwe-pc/src/views/enterpriseWechat/part1.vue
linkwe-pc/src/components/ContentCenter/AddMaterial.vue
View file @
284f170
...
@@ -199,7 +199,6 @@ import { templateAdd, templateDetail } from '@/api/contentCenter/modleCenter'
...
@@ -199,7 +199,6 @@ import { templateAdd, templateDetail } from '@/api/contentCenter/modleCenter'
import
DragTable
from
'@/components/DragTable'
import
DragTable
from
'@/components/DragTable'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
{
string
}
from
'clipboard'
import
{
string
}
from
'clipboard'
import
UploadToCos
from
'@/components/UploadToCos'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
MessageContentForm
from
'@/components/MessageContentForm'
import
MessageContentForm
from
'@/components/MessageContentForm'
...
@@ -209,7 +208,6 @@ export default {
...
@@ -209,7 +208,6 @@ export default {
PreviewInPhone
,
PreviewInPhone
,
DragTable
,
DragTable
,
MaterialCenter
,
MaterialCenter
,
UploadToCos
,
getPosterInfo
,
getPosterInfo
,
TemplateLibrary
,
TemplateLibrary
,
MessageContentForm
,
MessageContentForm
,
...
...
linkwe-pc/src/components/MessageContentForm.vue
View file @
284f170
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<!-- 图片 -->
<!-- 图片 -->
<
template
v-else-if=
"type === '0'"
>
<
template
v-else-if=
"type === '0'"
>
<el-form-item
label=
"图片"
prop=
"weMaterialImgAoList"
v-if=
"!isedit"
>
<el-form-item
label=
"图片"
prop=
"weMaterialImgAoList"
v-if=
"!isedit"
>
<Upload
ToCos
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
:fileList
.
sync=
"form.weMaterialImgAoList"
:fileList
.
sync=
"form.weMaterialImgAoList"
:maxSize=
"20"
:maxSize=
"20"
...
@@ -46,17 +46,17 @@
...
@@ -46,17 +46,17 @@
:multiple=
"true"
:multiple=
"true"
:limit=
"picMaxlength"
>
:limit=
"picMaxlength"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多
{{
picMaxlength
}}
张批量上传
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多
{{
picMaxlength
}}
张批量上传
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片"
prop=
"materialUrl"
v-else
>
<el-form-item
label=
"图片"
prop=
"materialUrl"
v-else
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:maxSize=
"20"
:maxSize=
"20"
type=
"0"
type=
"0"
v-if=
"dialogVisible"
>
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -86,9 +86,9 @@
...
@@ -86,9 +86,9 @@
placeholder="请输入图文描述">
</el-input>
placeholder="请输入图文描述">
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图文封面"
>
<el-form-item
label=
"图文封面"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -130,22 +130,22 @@
...
@@ -130,22 +130,22 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-else-if=
"type === '1'"
>
<
template
v-else-if=
"type === '1'"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName || '点击上传'"
:fileName
.
sync=
"form.materialName || '点击上传'"
:type=
"type"
:type=
"type"
:format=
"audioType"
>
:format=
"audioType"
>
<div
slot=
"tip"
>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div>
<div
slot=
"tip"
>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"名称"
prop=
"materialName"
>
<el-form-item
label=
"名称"
prop=
"materialName"
>
<el-input
v-model=
"form.materialName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"form.materialName"
placeholder=
"请输入"
></el-input>
...
@@ -170,14 +170,14 @@
...
@@ -170,14 +170,14 @@
show-word-limit
></el-input>
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
>
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:type=
"type"
:type=
"type"
@
getPicUrl=
"getPicUrl"
@
getPicUrl=
"getPicUrl"
v-if=
"dialogVisible"
>
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
...
@@ -200,13 +200,13 @@
...
@@ -200,13 +200,13 @@
:autosize=
"
{ minRows: 2, maxRows: 10 }">
</el-input>
:autosize=
"
{ minRows: 2, maxRows: 10 }">
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
>
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:type=
"type"
:type=
"type"
v-if=
"dialogVisible"
>
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<!-- 文章 -->
<!-- 文章 -->
...
...
linkwe-pc/src/components/UploadToCos.vue
deleted
100644 → 0
View file @
1b70635
This diff is collapsed.
Click to expand it.
linkwe-pc/src/components/common/QuillEditor.vue
View file @
284f170
<
template
>
<
template
>
<div
class=
"quill-wrap"
v-loading=
"uploadLoading"
>
<div
class=
"quill-wrap"
v-loading=
"uploadLoading"
>
<quill-editor
v-model=
"content"
ref=
"quill"
@
change=
"onEditorChange($event)"
:options=
"editorOption"
></quill-editor>
<quill-editor
v-model=
"content"
ref=
"quill"
@
change=
"onEditorChange($event)"
:options=
"editorOption"
></quill-editor>
<UploadToCos
<Upload
v-show=
"false"
:fileUrl
.
sync=
"imgUrl"
type=
"0"
@
loadingChange=
"(val) => (uploadLoading = val)"
></Upload>
v-show=
"false"
:fileUrl
.
sync=
"imgUrl"
type=
"0"
@
loadingChange=
"(val) => (uploadLoading = val)"
></UploadToCos>
<SelectEmoji
ref=
"emoji"
@
select=
"insertContent"
/>
<SelectEmoji
ref=
"emoji"
@
select=
"insertContent"
/>
</div>
</div>
</
template
>
</
template
>
...
...
linkwe-pc/src/main.js
View file @
284f170
...
@@ -27,7 +27,6 @@ import './permission' // permission control
...
@@ -27,7 +27,6 @@ import './permission' // permission control
Vue
.
component
(
'Pagination'
,
()
=>
import
(
'@/components/Pagination'
))
Vue
.
component
(
'Pagination'
,
()
=>
import
(
'@/components/Pagination'
))
Vue
.
component
(
'RightToolbar'
,
()
=>
import
(
'@/components/RightToolbar'
))
Vue
.
component
(
'RightToolbar'
,
()
=>
import
(
'@/components/RightToolbar'
))
Vue
.
component
(
'Upload'
,
()
=>
import
(
'@/components/Upload'
))
Vue
.
component
(
'Upload'
,
()
=>
import
(
'@/components/Upload'
))
Vue
.
component
(
'UploadToCos'
,
()
=>
import
(
'@/components/UploadToCos'
))
Vue
.
component
(
'ButtonSync'
,
()
=>
import
(
'@/components/ButtonSync'
))
Vue
.
component
(
'ButtonSync'
,
()
=>
import
(
'@/components/ButtonSync'
))
Vue
.
component
(
'TagEllipsis'
,
()
=>
import
(
'@/components/TagEllipsis'
))
Vue
.
component
(
'TagEllipsis'
,
()
=>
import
(
'@/components/TagEllipsis'
))
Vue
.
component
(
'SelectUser'
,
()
=>
import
(
'@/components/SelectUser'
))
Vue
.
component
(
'SelectUser'
,
()
=>
import
(
'@/components/SelectUser'
))
...
...
linkwe-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
View file @
284f170
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/contentCenter/basicMaterial/detail.vue
View file @
284f170
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<div
v-if=
"type === '0'"
>
<div
v-if=
"type === '0'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<!--
<el-form-item
label=
"图片"
>
<!--
<el-form-item
label=
"图片"
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:maxSize=
"20"
:maxSize=
"20"
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<div
slot=
"tip"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多10张批量上传
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多10张批量上传
</div>
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
-->
</el-form-item>
-->
</div>
</div>
<div
v-else
>
<div
v-else
>
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
<div
v-if=
"type === '9'"
>
<div
v-if=
"type === '9'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<el-form-item
label=
"图文封面"
>
<el-form-item
label=
"图文封面"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图文描述"
>
<el-form-item
label=
"图文描述"
>
<el-input
<el-input
...
@@ -119,9 +119,9 @@
...
@@ -119,9 +119,9 @@
<div
v-if=
"type === '11'"
>
<div
v-if=
"type === '11'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"小程序ID"
prop=
"digest"
>
<el-form-item
label=
"小程序ID"
prop=
"digest"
>
<el-input
v-model=
"form.digest"
placeholder=
"小程序AppID"
></el-input>
<el-input
v-model=
"form.digest"
placeholder=
"小程序AppID"
></el-input>
...
...
linkwe-pc/src/views/contentCenter/components/MaPage.vue
View file @
284f170
...
@@ -12,7 +12,6 @@ import { delAndRemoves } from '@/api/contentCenter/common'
...
@@ -12,7 +12,6 @@ import { delAndRemoves } from '@/api/contentCenter/common'
import
{
importTemplate
,
importData
}
from
'@/api/contentCenter/basicMaterials'
import
{
importTemplate
,
importData
}
from
'@/api/contentCenter/basicMaterials'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
import
{
download
,
toFormData
}
from
'@/utils/common'
import
{
download
,
toFormData
}
from
'@/utils/common'
import
UploadToCos
from
'@/components/UploadToCos'
import
{
dateFormat
}
from
'@/utils/index'
import
{
dateFormat
}
from
'@/utils/index'
var
validateHtml
=
(
rule
,
value
,
callback
)
=>
{
var
validateHtml
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -35,7 +34,6 @@ export default {
...
@@ -35,7 +34,6 @@ export default {
quillEditor
,
quillEditor
,
Voice
,
Voice
,
PreviewInPhone
,
PreviewInPhone
,
UploadToCos
,
},
},
props
:
{
props
:
{
// 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file), 4 文本, 5 海报, 6 活码, 7 人群, 8 旅程,9 图文,10 链接,11 小程序
// 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file), 4 文本, 5 海报, 6 活码, 7 人群, 8 旅程,9 图文,10 链接,11 小程序
...
@@ -686,7 +684,7 @@ export default {
...
@@ -686,7 +684,7 @@ export default {
<!-- 图片 -->
<!-- 图片 -->
<
template
v-else-if=
"type === '0'"
>
<
template
v-else-if=
"type === '0'"
>
<el-form-item
label=
"图片"
prop=
"weMaterialImgAoList"
v-if=
"!form.id"
>
<el-form-item
label=
"图片"
prop=
"weMaterialImgAoList"
v-if=
"!form.id"
>
<Upload
ToCos
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
:fileList
.
sync=
"form.weMaterialImgAoList"
:fileList
.
sync=
"form.weMaterialImgAoList"
:maxSize=
"20"
:maxSize=
"20"
...
@@ -694,7 +692,7 @@ export default {
...
@@ -694,7 +692,7 @@ export default {
:multiple=
"true"
:multiple=
"true"
:limit=
"10"
>
:limit=
"10"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多10张批量上传
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,图片大小不超过20M,支持最多10张批量上传
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片标题"
prop=
"materialName"
v-else
>
<el-form-item
label=
"图片标题"
prop=
"materialName"
v-else
>
<el-input
<el-input
...
@@ -732,9 +730,9 @@ export default {
...
@@ -732,9 +730,9 @@ export default {
placeholder="请输入图文描述">
</el-input>
placeholder="请输入图文描述">
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图文封面"
>
<el-form-item
label=
"图文封面"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议200*200
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"内容"
>
<!--
<el-form-item
label=
"内容"
>
富文本content
富文本content
...
@@ -782,22 +780,22 @@ export default {
...
@@ -782,22 +780,22 @@ export default {
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<el-form-item
label=
"封面"
prop=
"coverUrl"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<Upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
v-if=
"dialogVisible"
>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
<div
slot=
"tip"
>
支持jpg/jpeg/png格式,建议520*416
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-else-if=
"type === '1'"
>
<
template
v-else-if=
"type === '1'"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName || '点击上传'"
:fileName
.
sync=
"form.materialName || '点击上传'"
:type=
"type"
:type=
"type"
:format=
"audioType"
>
:format=
"audioType"
>
<div
slot=
"tip"
>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div>
<div
slot=
"tip"
>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"名称"
prop=
"materialName"
>
<el-form-item
label=
"名称"
prop=
"materialName"
>
<el-input
v-model=
"form.materialName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"form.materialName"
placeholder=
"请输入"
></el-input>
...
@@ -822,7 +820,7 @@ export default {
...
@@ -822,7 +820,7 @@ export default {
show-word-limit>
</el-input>
show-word-limit>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
v-if=
"!form.id"
>
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
v-if=
"!form.id"
>
<Upload
ToCos
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
...
@@ -830,7 +828,7 @@ export default {
...
@@ -830,7 +828,7 @@ export default {
@
getPicUrl=
"getPicUrl"
@
getPicUrl=
"getPicUrl"
:type=
"type"
>
:type=
"type"
>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"封面"
>
<!--
<el-form-item
label=
"封面"
>
<upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
<upload
:fileUrl
.
sync=
"form.coverUrl"
type=
"0"
>
...
@@ -858,14 +856,14 @@ export default {
...
@@ -858,14 +856,14 @@ export default {
:autosize=
"
{ minRows: 3, maxRows: 10 }">
</el-input>
:autosize=
"
{ minRows: 3, maxRows: 10 }">
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
v-if=
"!form.id"
>
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
v-if=
"!form.id"
>
<Upload
ToCos
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:type=
"type"
:type=
"type"
:format=
"['doc', 'docx', 'pdf', 'ppt', 'pptx', 'pps', 'pptsx']"
>
:format=
"['doc', 'docx', 'pdf', 'ppt', 'pptx', 'pps', 'pptsx']"
>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-form>
</el-form>
...
...
linkwe-pc/src/views/contentCenter/components/PosterAdd.vue
View file @
284f170
...
@@ -44,11 +44,7 @@
...
@@ -44,11 +44,7 @@
<!--
<div
class=
"tips upload"
>
<!--
<div
class=
"tips upload"
>
<i
class=
"el-icon-plus"
></i><span>
本地上传
</span>
<i
class=
"el-icon-plus"
></i><span>
本地上传
</span>
</div>
-->
</div>
-->
<UploadToCos
<Upload
:fileUrl
.
sync=
"form.backgroundImgPath"
:maxSize=
"20"
type=
"0"
@
upSuccess=
"upSuccess"
></Upload>
:fileUrl
.
sync=
"form.backgroundImgPath"
:maxSize=
"20"
type=
"0"
@
upSuccess=
"upSuccess"
></UploadToCos>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
...
@@ -224,7 +220,7 @@
...
@@ -224,7 +220,7 @@
fit=
"fit"
></el-image>
fit=
"fit"
></el-image>
</div>
</div>
<div
class=
"up-style"
v-else
>
<div
class=
"up-style"
v-else
>
<Upload
ToCos
:fileUrl
.
sync=
"formDate.imgUrl"
:maxSize=
"20"
type=
"0"
></UploadToCos
>
<Upload
:fileUrl
.
sync=
"formDate.imgUrl"
:maxSize=
"20"
type=
"0"
></Upload
>
<el-button
size=
"mini"
type=
"text"
style=
"margin-left: 10px"
@
click=
"addObj('imageShow')"
>
<el-button
size=
"mini"
type=
"text"
style=
"margin-left: 10px"
@
click=
"addObj('imageShow')"
>
从素材库中选取
从素材库中选取
</el-button>
</el-button>
...
@@ -436,6 +432,8 @@ export default {
...
@@ -436,6 +432,8 @@ export default {
materialName
:
data
.
materialName
,
materialName
:
data
.
materialName
,
digest
:
data
.
digest
,
digest
:
data
.
digest
,
backgroundImgPath
:
data
.
backgroundImgPath
,
backgroundImgPath
:
data
.
backgroundImgPath
,
width
:
data
.
width
,
height
:
data
.
height
,
posterJSON
:
JSON
.
parse
(
data
.
otherField
),
posterJSON
:
JSON
.
parse
(
data
.
otherField
),
}
}
this
.
posterSubassemblyList
=
data
.
posterSubassemblyList
||
[]
this
.
posterSubassemblyList
=
data
.
posterSubassemblyList
||
[]
...
@@ -671,10 +669,15 @@ export default {
...
@@ -671,10 +669,15 @@ export default {
scaleY
:
canvas
.
width
/
img
.
width
,
scaleY
:
canvas
.
width
/
img
.
width
,
})
})
canvas
.
setWidth
(
375
)
canvas
.
setWidth
(
375
)
canvas
.
setHeight
(
img
.
height
*
(
canvas
.
width
/
img
.
width
))
let
height
=
img
.
height
*
(
canvas
.
width
/
img
.
width
)
canvas
.
setHeight
(
height
)
this
.
form
.
width
=
375
this
.
form
.
height
=
height
}
else
{
}
else
{
canvas
.
setWidth
(
img
.
width
)
canvas
.
setWidth
(
img
.
width
)
canvas
.
setHeight
(
img
.
height
)
canvas
.
setHeight
(
img
.
height
)
this
.
form
.
width
=
img
.
width
this
.
form
.
height
=
img
.
height
}
}
canvas
.
setBackgroundImage
(
img
,
canvas
.
renderAll
.
bind
(
canvas
))
canvas
.
setBackgroundImage
(
img
,
canvas
.
renderAll
.
bind
(
canvas
))
...
...
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
View file @
284f170
...
@@ -38,13 +38,13 @@
...
@@ -38,13 +38,13 @@
<div
v-if=
"type === '2'"
>
<div
v-if=
"type === '2'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<!--
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
>
<!--
<el-form-item
label=
"上传视频"
prop=
"materialUrl"
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:type=
"type"
:type=
"type"
>
>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
<div
slot=
"tip"
>
支持mp4/mov格式,视频大小不超过100M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"视频描述"
>
<el-form-item
label=
"视频描述"
>
<el-input
<el-input
...
@@ -74,13 +74,13 @@
...
@@ -74,13 +74,13 @@
<div
v-if=
"type === '3'"
>
<div
v-if=
"type === '3'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<!--
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
>
<!--
<el-form-item
label=
"上传文件"
prop=
"materialUrl"
>
<Upload
ToCos
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:fileName
.
sync=
"form.materialName"
:type=
"type"
:type=
"type"
>
>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"文件描述"
>
<el-form-item
label=
"文件描述"
>
<el-input
<el-input
...
@@ -138,9 +138,9 @@
...
@@ -138,9 +138,9 @@
<div
v-if=
"type === '5'"
>
<div
v-if=
"type === '5'"
>
<div
v-if=
"!disabled"
>
<div
v-if=
"!disabled"
>
<el-form-item
label=
"封面"
prop=
"materialUrl"
>
<el-form-item
label=
"封面"
prop=
"materialUrl"
>
<Upload
ToCos
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:type=
"type"
>
<Upload
:fileUrl
.
sync=
"form.materialUrl"
:fileName
.
sync=
"form.materialName"
:type=
"type"
>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
<div
slot=
"tip"
>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div>
</Upload
ToCos
>
</Upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"文件描述"
>
<el-form-item
label=
"文件描述"
>
<el-input
<el-input
...
...
linkwe-pc/src/views/drainageCode/components/IdentityAttachment.vue
View file @
284f170
<
template
>
<
template
>
<div>
<div>
<el-form-item
<el-form-item
:label=
"lableOne"
required
style=
"margin-right: 200px !important"
:error=
"templateInfo"
>
:label=
"lableOne"
required
style=
"margin-right: 200px !important"
:error=
"templateInfo"
>
<div
v-if=
"showModle"
style=
"margin-bottom: 10px"
>
<div
v-if=
"showModle"
style=
"margin-bottom: 10px"
>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
</div>
</div>
...
@@ -18,17 +13,12 @@
...
@@ -18,17 +13,12 @@
:autosize=
"
{ minRows: 5, maxRows: 20 }"
:autosize=
"
{ minRows: 5, maxRows: 20 }"
clearable
clearable
:autofocus="true"
:autofocus="true"
@input="changeInfo"
@input="changeInfo" />
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<div
slot=
"label"
class=
"title"
v-if=
"otherType !== 3"
>
<div
slot=
"label"
class=
"title"
v-if=
"otherType !== 3"
>
{{
titleTwo
}}
{{
titleTwo
}}
<el-popover
<el-popover
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个素材'"
placement=
"top-start"
>
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个素材'"
placement=
"top-start"
>
<i
slot=
"reference"
class=
"el-icon-question"
></i>
<i
slot=
"reference"
class=
"el-icon-question"
></i>
</el-popover>
</el-popover>
</div>
</div>
...
@@ -37,23 +27,13 @@
...
@@ -37,23 +27,13 @@
<div
style=
"text-align: left"
class=
"flex"
>
<div
style=
"text-align: left"
class=
"flex"
>
<el-popover
<el-popover
trigger=
"hover"
trigger=
"hover"
:content=
"
:content=
"'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
'最多添加' +
maxlength +
'个' +
fontType +
',如需修改请删除已有' +
fontType +
'后重新尝试'
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length
< maxlength
"
:disabled=
"talkList.length
< maxlength
"
>
>
<el-dropdown
<el-dropdown
slot=
"reference"
slot=
"reference"
@
command=
"moveGroup"
@
command=
"moveGroup"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
>
>
<el-button
type=
"primary"
>
+
{{
'新建'
+
fontType
}}
</el-button>
<el-button
type=
"primary"
>
+
{{
'新建'
+
fontType
}}
</el-button>
<el-dropdown-menu
slot=
"dropdown"
trigger=
"click"
>
<el-dropdown-menu
slot=
"dropdown"
trigger=
"click"
>
<!--
<el-dropdown-item
:command=
"'4'"
v-if=
"!this.templateType && this.moduleType !== 4"
>
<!--
<el-dropdown-item
:command=
"'4'"
v-if=
"!this.templateType && this.moduleType !== 4"
>
...
@@ -85,23 +65,13 @@
...
@@ -85,23 +65,13 @@
</el-popover>
</el-popover>
<el-popover
<el-popover
trigger=
"hover"
trigger=
"hover"
:content=
"
:content=
"'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
'最多添加' +
maxlength +
'个' +
fontType +
',如需修改请删除已有' +
fontType +
'后重新尝试'
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length
< maxlength
"
:disabled=
"talkList.length
< maxlength
"
>
>
<div
slot=
"reference"
class=
"ml20"
>
<div
slot=
"reference"
class=
"ml20"
>
<el-button
<el-button
@
click=
"choseCenter"
@
click=
"choseCenter"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
>
>
从素材中心选择
从素材中心选择
</el-button>
</el-button>
</div>
</div>
...
@@ -112,12 +82,7 @@
...
@@ -112,12 +82,7 @@
</el-form-item>
</el-form-item>
<div
style=
"margin-top: 10px; margin-left: 150px"
v-show=
"talkList.length"
>
<div
style=
"margin-top: 10px; margin-left: 150px"
v-show=
"talkList.length"
>
<DragTable
<DragTable
:tableData2=
"talkList"
@
setData=
"setData"
@
getEdit=
"getEdit"
:dargAble=
"[2].includes(moduleType)"
/>
:tableData2=
"talkList"
@
setData=
"setData"
@
getEdit=
"getEdit"
:dargAble=
"[2].includes(moduleType)"
/>
</div>
</div>
<!--
<el-col
:span=
"8"
class=
"g-card"
style=
"margin-top: 20px; padding: 20px;"
v-if=
"showPhone"
>
<!--
<el-col
:span=
"8"
class=
"g-card"
style=
"margin-top: 20px; padding: 20px;"
v-if=
"showPhone"
>
<PreviewInPhone
:list=
"talkList"
:templateInfo=
"talkForm.templateInfo"
:liveUrl=
"liveUrl"
/>
<PreviewInPhone
:list=
"talkList"
:templateInfo=
"talkForm.templateInfo"
:liveUrl=
"liveUrl"
/>
...
@@ -131,8 +96,7 @@
...
@@ -131,8 +96,7 @@
@
dialogClose=
"dialogClose"
@
dialogClose=
"dialogClose"
:materialTalkList=
"talkList"
:materialTalkList=
"talkList"
:moduleType=
"moduleType"
:moduleType=
"moduleType"
:maxlength=
"maxlength"
:maxlength=
"maxlength"
/>
/>
<!-- 模板库 -->
<!-- 模板库 -->
<el-dialog
<el-dialog
:title=
"otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
:title=
"otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
...
@@ -140,8 +104,7 @@
...
@@ -140,8 +104,7 @@
width=
"60%"
width=
"60%"
append-to-body
append-to-body
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
v-if=
"welcomVisible"
v-if=
"welcomVisible"
>
>
<TemplateLibrary
@
changeObj=
"changeObj"
:isGroup=
"otherType === 2"
/>
<TemplateLibrary
@
changeObj=
"changeObj"
:isGroup=
"otherType === 2"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"selectModle"
:loading=
"libraryLoading"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"selectModle"
:loading=
"libraryLoading"
>
确 定
</el-button>
...
@@ -156,14 +119,12 @@
...
@@ -156,14 +119,12 @@
:tplType=
"tplType"
:tplType=
"tplType"
:moduleType=
"moduleType"
:moduleType=
"moduleType"
:maxlength=
"maxlength"
:maxlength=
"maxlength"
:noApplets=
"otherType === 3"
:noApplets=
"otherType === 3"
/>
/>
<SelectUser
<SelectUser
:defaultValues=
"selectedUserList"
:defaultValues=
"selectedUserList"
:visible
.
sync=
"dialogVisibleSelectUser"
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择使用员工"
title=
"选择使用员工"
@
success=
"selectedUser"
@
success=
"selectedUser"
></SelectUser>
></SelectUser>
</div>
</div>
</
template
>
</
template
>
...
@@ -175,7 +136,6 @@ import { templateAdd, templateDetail } from '@/api/contentCenter/modleCenter'
...
@@ -175,7 +136,6 @@ import { templateAdd, templateDetail } from '@/api/contentCenter/modleCenter'
import
DragTable
from
'@/components/DragTable'
import
DragTable
from
'@/components/DragTable'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
{
string
}
from
'clipboard'
import
{
string
}
from
'clipboard'
import
UploadToCos
from
'@/components/UploadToCos'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
MessageContentForm
from
'@/components/MessageContentForm'
import
MessageContentForm
from
'@/components/MessageContentForm'
...
@@ -185,7 +145,6 @@ export default {
...
@@ -185,7 +145,6 @@ export default {
PreviewInPhone
,
PreviewInPhone
,
DragTable
,
DragTable
,
MaterialCenter
,
MaterialCenter
,
UploadToCos
,
getPosterInfo
,
getPosterInfo
,
TemplateLibrary
,
TemplateLibrary
,
MessageContentForm
,
MessageContentForm
,
...
...
linkwe-pc/src/views/enterpriseWechat/part1.vue
View file @
284f170
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
<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"
>
...
@@ -22,22 +22,20 @@
...
@@ -22,22 +22,20 @@
<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"
placeholder=
"请输入通讯录Secret"
></el-input>
></el-input>
<el-button
style=
"margin-left: 20px"
plain
v-if=
"corpSecretEditState"
@
click=
"cancelEditCorpSecret"
>
<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>
...
@@ -50,12 +48,11 @@
...
@@ -50,12 +48,11 @@
<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"
placeholder=
"请输入客户联系Secret"
></el-input>
></el-input>
<el-button
style=
"margin-left: 20px"
plain
v-if=
"contactSecretEditState"
@
click=
"cancelEditContactSecret"
>
<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"
>
...
@@ -63,11 +60,10 @@
...
@@ -63,11 +60,10 @@
</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>
...
@@ -77,10 +73,10 @@
...
@@ -77,10 +73,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"
>
...
@@ -90,91 +86,90 @@
...
@@ -90,91 +86,90 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
UploadToCos
from
'../../components/UploadToCos.vue'
export
default
{
export
default
{
components
:
{},
components
:
{
UploadToCos
},
name
:
'enterprise-wechat-part1'
,
name
:
'enterprise-wechat-part1'
,
data
()
{
data
()
{
return
{
return
{
corpSecretCopy
:
''
,
corpSecretCopy
:
''
,
corpSecretEditState
:
false
,
corpSecretEditState
:
false
,
contactSecretCopey
:
''
,
contactSecretCopey
:
''
,
contactSecretEditState
:
false
,
contactSecretEditState
:
false
,
form
:
{},
form
:
{},
rules
:
{
rules
:
{
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
companyName
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
companyName
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
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
:
{
data
:
'setData'
,
},
props
:
{
data
:
{
type
:
Object
,
default
:
{},
},
},
watch
:
{
},
data
:
'setData'
methods
:
{
editContactSecret
()
{
this
.
contactSecretEditState
=
true
this
.
contactSecretCopy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
contactSecret
))
this
.
form
.
contactSecret
=
''
},
},
props
:
{
cancelEditContactSecret
()
{
data
:
{
this
.
contactSecretEditState
=
false
type
:
Object
,
this
.
form
.
contactSecret
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
contactSecretCopy
))
default
:
{}
}
},
},
methods
:
{
submitEditContactSecret
()
{
editContactSecret
()
{
if
(
this
.
form
.
contactSecret
)
{
this
.
contactSecretEditState
=
true
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
contactSecretCopy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
contactSecret
))
this
.
form
.
contactSecret
=
''
},
cancelEditContactSecret
()
{
this
.
contactSecretEditState
=
false
this
.
contactSecretEditState
=
false
this
.
form
.
contactSecret
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
contactSecretCopy
))
}
},
},
submitEditContactSecret
()
{
if
(
this
.
form
.
contactSecret
)
{
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
contactSecretEditState
=
false
}
},
editCorpSecret
()
{
editCorpSecret
()
{
this
.
corpSecretEditState
=
true
this
.
corpSecretEditState
=
true
this
.
corpSecretCopy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
corpSecret
))
this
.
corpSecretCopy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
corpSecret
))
this
.
form
.
corpSecret
=
''
this
.
form
.
corpSecret
=
''
},
},
cancelEditCorpSecret
()
{
cancelEditCorpSecret
()
{
this
.
corpSecretEditState
=
false
this
.
form
.
corpSecret
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
corpSecretCopy
))
},
submitEditCorpSecret
()
{
if
(
this
.
form
.
corpSecret
)
{
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
corpSecretEditState
=
false
this
.
corpSecretEditState
=
false
this
.
form
.
corpSecret
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
corpSecretCopy
))
}
},
},
submitEditCorpSecret
()
{
submit
()
{
if
(
this
.
form
.
corpSecret
)
{
this
.
$refs
[
'form'
].
validate
((
validate
)
=>
{
if
(
validate
)
{
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
corpSecretEditState
=
false
}
},
submit
()
{
this
.
$refs
[
'form'
].
validate
((
validate
)
=>
{
if
(
validate
)
{
this
.
$emit
(
'submit'
,
this
.
form
)
}
})
},
setData
()
{
if
(
Object
.
keys
(
this
.
data
).
length
)
{
this
.
form
=
this
.
data
}
}
})
},
setData
()
{
if
(
Object
.
keys
(
this
.
data
).
length
)
{
this
.
form
=
this
.
data
}
}
},
},
mounted
()
{},
},
created
()
{}
mounted
()
{},
}
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