Commit bb105c7d by 怪兽?别跑

海报新增直接推广功能

1 parent ca069d70
Showing 15 changed files with 252 additions and 89 deletions
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</el-steps> </el-steps>
</div> </div>
<template v-if="currentActive == 0"> <template v-if="currentActive == 0">
<el-row :gutter="20" type="flex" style="margin-top: 20px"> <el-row :gutter="20" type="flex" style="margin-top: 20px;">
<el-col> <el-col>
<div class="g-card"> <div class="g-card">
<el-form ref="baseForm" :rules="rules" :model="form" label-position="right" label-width="100px"> <el-form ref="baseForm" :rules="rules" :model="form" label-position="right" label-width="100px">
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
placeholder="请输入名称" placeholder="请输入名称"
v-model="form.taskName" v-model="form.taskName"
show-word-limit show-word-limit
clearable></el-input> clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="推广短链:" prop="shortLinkId"> <el-form-item label="推广短链:" prop="shortLinkId">
<el-button type="primary" icon="el-icon-plus" @click="showShortLink = true"> <el-button type="primary" icon="el-icon-plus" @click="showShortLink = true">
...@@ -26,11 +27,12 @@ ...@@ -26,11 +27,12 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@click="$router.push('/drainageCode/publicCustomer/IntelligentShortLink/index')"> @click="$router.push('/drainageCode/publicCustomer/IntelligentShortLink/index')"
>
去新建 去新建
</el-button> </el-button>
<div style="margin-top: 10px"> <div style="margin-top: 10px;">
<ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue> <ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue>
</div> </div>
</el-form-item> </el-form-item>
...@@ -46,10 +48,10 @@ ...@@ -46,10 +48,10 @@
<el-button type="primary" icon="el-icon-plus" @click="choseDialog = true"> <el-button type="primary" icon="el-icon-plus" @click="choseDialog = true">
{{ form.materialId ? '编辑' : '选择' }}海报 {{ form.materialId ? '编辑' : '选择' }}海报
</el-button> </el-button>
<div style="margin-top: 10px" v-if="posterUrl"> <div style="margin-top: 10px;" v-if="posterUrl">
<ul class="el-upload-list el-upload-list--picture-card"> <ul class="el-upload-list el-upload-list--picture-card">
<li class="el-upload-list__item is-success"> <li class="el-upload-list__item is-success">
<img style="width: 100%; height: 100%" :src="posterUrl" /> <img style="width: 100%; height: 100%;" :src="posterUrl" />
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-delete"> <span class="el-upload-list__item-delete">
<el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete> <el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete>
...@@ -61,13 +63,13 @@ ...@@ -61,13 +63,13 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="g-card" style="text-align: right"> <div class="g-card" style="text-align: right;">
<el-button plain @click="$router.go(-1)">取消</el-button> <el-button plain @click="$router.go(-1)">取消</el-button>
<el-button type="primary" @click="gotoNext">下一步</el-button> <el-button type="primary" @click="gotoNext">下一步</el-button>
</div> </div>
</el-col> </el-col>
<el-col style="flex-basis: 370px"> <el-col style="flex-basis: 370px;">
<div class="g-card" style="height: 100%"> <div class="g-card" style="height: 100%;">
<div class="info_title">消息预览</div> <div class="info_title">消息预览</div>
<Preview :value="posterUrl"></Preview> <Preview :value="posterUrl"></Preview>
</div> </div>
...@@ -93,8 +95,8 @@ ...@@ -93,8 +95,8 @@
<div class="unit"> <div class="unit">
<div class="unit-item" :class="{ active_item: form.type == 0 }" @click="setTypeFn(0)"> <div class="unit-item" :class="{ active_item: form.type == 0 }" @click="setTypeFn(0)">
<div> <div>
<img v-if="form.type == 0" class="icon-style" src="./assets/customer_active.png" alt="" /> <img v-if="form.type == 0" class="icon-style" src="@/assets/image/customer_active.png" alt="" />
<img v-else class="icon-style" src="./assets/customer.png" alt="" /> <img v-else class="icon-style" src="@/assets/image/customer.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发客户</div> <div class="item-title">群发客户</div>
...@@ -103,8 +105,8 @@ ...@@ -103,8 +105,8 @@
</div> </div>
<div class="unit-item" :class="{ active_item: form.type == 1 }" @click="setTypeFn(1)"> <div class="unit-item" :class="{ active_item: form.type == 1 }" @click="setTypeFn(1)">
<div> <div>
<img v-if="form.type == 1" class="icon-style" src="./assets/group_active.png" alt="" /> <img v-if="form.type == 1" class="icon-style" src="@/assets/image/group_active.png" alt="" />
<img v-else class="icon-style" src="./assets/group.png" alt="" /> <img v-else class="icon-style" src="@/assets/image/group.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发客户群</div> <div class="item-title">群发客户群</div>
...@@ -113,8 +115,8 @@ ...@@ -113,8 +115,8 @@
</div> </div>
<div class="unit-item" :class="{ active_item: form.type == 2 }" @click="setTypeFn(2)"> <div class="unit-item" :class="{ active_item: form.type == 2 }" @click="setTypeFn(2)">
<div> <div>
<img v-if="form.type == 2" class="icon-style" src="./assets/friends_active.png" alt="" /> <img v-if="form.type == 2" class="icon-style" src="@/assets/image/friends_active.png" alt="" />
<img v-else class="icon-style" src="./assets/friends.png" alt="" /> <img v-else class="icon-style" src="@/assets/image/friends.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">群发朋友圈</div> <div class="item-title">群发朋友圈</div>
...@@ -123,8 +125,8 @@ ...@@ -123,8 +125,8 @@
</div> </div>
<div class="unit-item" :class="{ active_item: form.type == 3 }" @click="setTypeFn(3)"> <div class="unit-item" :class="{ active_item: form.type == 3 }" @click="setTypeFn(3)">
<div> <div>
<img v-if="form.type == 3" class="icon-style" src="./assets/app_active.png" alt="" /> <img v-if="form.type == 3" class="icon-style" src="@/assets/image/app_active.png" alt="" />
<img v-else class="icon-style" src="./assets/app.png" alt="" /> <img v-else class="icon-style" src="@/assets/image/app.png" alt="" />
</div> </div>
<div> <div>
<div class="item-title">应用消息</div> <div class="item-title">应用消息</div>
...@@ -133,7 +135,7 @@ ...@@ -133,7 +135,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="g-card" style="text-align: right"> <div class="g-card" style="text-align: right;">
<el-button plain @click="currentActive = 0">上一步</el-button> <el-button plain @click="currentActive = 0">上一步</el-button>
<el-button plain @click="saveFn" v-loading="loading">保存,暂不推广</el-button> <el-button plain @click="saveFn" v-loading="loading">保存,暂不推广</el-button>
<el-button type="primary" @click="currentActive = 2">下一步</el-button> <el-button type="primary" @click="currentActive = 2">下一步</el-button>
...@@ -151,21 +153,21 @@ ...@@ -151,21 +153,21 @@
</div> </div>
</template> </template>
<script> <script>
import SelectPosterSingle from './components/SelectPosterSingle.vue' import SelectPosterSingle from './components/SelectPosterSingle.vue'
import Preview from './components/PreviewInPhone.vue' import Preview from './components/PreviewInPhone.vue'
import SelectShortLink from '@/components/SelectShortLink' import SelectShortLink from '@/components/SelectShortLink'
import Step3 from './components/Step3.vue' import Step3 from './components/Step3.vue'
import ShowShortLinkVue from './components/ShowShortLink.vue' import ShowShortLinkVue from './components/ShowShortLink.vue'
import { getDetail, savePromotion } from './api' import { getDetail, savePromotion } from './api'
export default { export default {
name: 'short-link-popularize-add', name: 'short-link-popularize-add',
components: { components: {
Preview, Preview,
SelectPosterSingle, SelectPosterSingle,
SelectShortLink, SelectShortLink,
ShowShortLinkVue, ShowShortLinkVue,
Step3, Step3
}, },
data() { data() {
return { return {
...@@ -186,10 +188,10 @@ export default { ...@@ -186,10 +188,10 @@ export default {
userIds: '', userIds: '',
sendType: 0, sendType: 0,
taskSendTime: '', taskSendTime: '',
taskEndTime: '', taskEndTime: ''
}, },
attachments: [], attachments: [],
senderList: [], senderList: []
}, },
currentActive: 0, currentActive: 0,
choseDialog: false, choseDialog: false,
...@@ -202,31 +204,31 @@ export default { ...@@ -202,31 +204,31 @@ export default {
{ {
required: true, required: true,
message: '请输入任务名称', message: '请输入任务名称',
trigger: 'blur', trigger: 'blur'
}, }
], ],
shortLinkId: [ shortLinkId: [
{ {
required: true, required: true,
message: '请选择短链', message: '请选择短链',
trigger: 'blur', trigger: 'blur'
}, }
], ],
style: [ style: [
{ {
required: true, required: true,
message: '请选择推广样式', message: '请选择推广样式',
trigger: 'blur', trigger: 'blur'
}, }
], ],
materialId: [ materialId: [
{ {
required: true, required: true,
message: '请选择海报', message: '请选择海报',
trigger: 'blur', trigger: 'blur'
}, }
], ]
}, }
} }
}, },
methods: { methods: {
...@@ -294,7 +296,7 @@ export default { ...@@ -294,7 +296,7 @@ export default {
this.posterObj = this.form.weMaterial this.posterObj = this.form.weMaterial
this.posterUrl = this.posterObj.materialUrl this.posterUrl = this.posterObj.materialUrl
} }
}, }
}, },
created() { created() {
this.id = this.$route.query.id this.id = this.$route.query.id
...@@ -304,30 +306,30 @@ export default { ...@@ -304,30 +306,30 @@ export default {
if (this.id) { if (this.id) {
this.getDetailFn() this.getDetailFn()
} }
}, }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: #1d2129;
margin-bottom: 10px; margin-bottom: 10px;
} }
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
} }
.title { .title {
font-size: 16px; font-size: 16px;
font-family: PingFang SC-Bold, PingFang SC; font-family: PingFang SC-Bold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #1d2129; color: #1d2129;
margin: 24px 0; margin: 24px 0;
} }
.unit { .unit {
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -373,5 +375,5 @@ export default { ...@@ -373,5 +375,5 @@ export default {
border: 1px solid rgba(7, 193, 96, 1); border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255); background-color: rgba(7, 193, 96, 0.09019607843137255);
} }
} }
</style> </style>
<script> <script>
import MaPage from '@/views/contentCenter/components/MaPage' import MaPage from '@/views/contentCenter/components/MaPage'
import PicTitContent from '@/views/contentCenter/components/PicTitContent' import PicTitContent from '@/views/contentCenter/components/PicTitContent'
export default { import { tsThisType } from '@babel/types'
export default {
name: 'MImageText', name: 'MImageText',
components: { MaPage, PicTitContent }, components: { MaPage, PicTitContent },
data() { data() {
return { return {
srcList: [], srcList: [],
ids: [], // 选中数组 ids: [], // 选中数组
dialogVisible: false,
currentType: 0,
poster: ''
} }
}, },
watch: {}, watch: {},
...@@ -20,11 +24,53 @@ export default { ...@@ -20,11 +24,53 @@ export default {
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id) this.ids = selection.map((item) => item.id)
}, },
gotoSend(data) {
console.log(data)
this.dialogVisible = true
this.poster = data
}, },
} setTypeFn(type) {
this.currentType = type
},
gotoRoute() {
if (this.currentType == 0) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 1
}
})
} else if (this.currentType == 1) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 2
}
})
} else if (this.currentType == 2) {
this.$router.push({
path: '/customerMaintain/friendCircle/publish',
query: {
posterId: this.poster.id
}
})
} else {
this.$router.push({
path: '/enterpriseManage/internalCollaborate/appManage',
query: {
posterId: this.poster.materialUrl
}
})
}
}
}
}
</script> </script>
<template> <template>
<div>
<MaPage ref="page" type="5" @listChange="listChange" :selected="ids" v-slot="{ list }"> <MaPage ref="page" type="5" @listChange="listChange" :selected="ids" v-slot="{ list }">
<el-table :data="list" @selection-change="handleSelectionChange"> <el-table :data="list" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center" /> <el-table-column type="selection" width="50" align="center" />
...@@ -118,14 +164,113 @@ export default { ...@@ -118,14 +164,113 @@ export default {
</el-button> </el-button>
<el-button text @click="$refs.page.edit(scope.row)">编辑</el-button> <el-button text @click="$refs.page.edit(scope.row)">编辑</el-button>
<el-button text @click="$refs.page.remove(scope.row.id)">删除</el-button> <el-button text @click="$refs.page.remove(scope.row.id)">删除</el-button>
<el-button text @click="gotoSend(scope.row)">推广</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</MaPage> </MaPage>
<el-dialog title="推广方式" :close-on-click-modal="false" :show-close="false" v-model="dialogVisible" width="40%">
<div class="unit">
<div class="unit-item" :class="{ active_item: currentType == 0 }" @click="setTypeFn(0)">
<div>
<img v-if="currentType == 0" class="icon-style" src="@/assets/image/customer_active.png" alt="" />
<img v-else class="icon-style" src="@/assets/image/customer.png" alt="" />
</div>
<div>
<div class="item-title">群发客户</div>
<div class="item-text">员工将推广内容一键群发给客户</div>
</div>
</div>
<div class="unit-item" :class="{ active_item: currentType == 1 }" @click="setTypeFn(1)">
<div>
<img v-if="currentType == 1" class="icon-style" src="@/assets/image/group_active.png" alt="" />
<img v-else class="icon-style" src="@/assets/image/group.png" alt="" />
</div>
<div>
<div class="item-title">群发客户群</div>
<div class="item-text">员工将推广内容一键群发给客户群</div>
</div>
</div>
<div class="unit-item" :class="{ active_item: currentType == 2 }" @click="setTypeFn(2)">
<div>
<img v-if="currentType == 2" class="icon-style" src="@/assets/image/friends_active.png" alt="" />
<img v-else class="icon-style" src="@/assets/image/friends.png" alt="" />
</div>
<div>
<div class="item-title">群发朋友圈</div>
<div class="item-text">员工将推广内容一键群发到朋友圈</div>
</div>
</div>
<div class="unit-item" :class="{ active_item: currentType == 3 }" @click="setTypeFn(3)">
<div>
<img v-if="currentType == 3" class="icon-style" src="@/assets/image/app_active.png" alt="" />
<img v-else class="icon-style" src="@/assets/image/app.png" alt="" />
</div>
<div>
<div class="item-title">应用消息</div>
<div class="item-text">员工收到应用消息,选择客户发送</div>
</div>
</div>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="gotoRoute">去推广</el-button>
</span>
</template>
</el-dialog>
</div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.img-wrap { .unit {
margin: 0 auto;
display: flex;
flex-wrap: wrap;
width: 580px;
justify-content: space-between;
.unit-item {
width: 280px;
height: 80px;
border-width: 1px;
border-style: solid;
border-color: rgba(242, 242, 242, 1);
border-radius: 5px;
display: flex;
padding: 17px;
margin-bottom: 20px;
cursor: pointer;
.icon-style {
margin-right: 10px;
margin-top: 7px;
font-size: 22px;
width: 24px;
// height: 20px;
}
.item-title {
margin-top: 4px;
font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #1d2129;
}
.item-text {
margin-top: 6px;
font-size: 12px;
color: #aaaaaa;
line-height: 24px;
}
&:hover {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
}
.active_item {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
}
.img-wrap {
position: relative; position: relative;
height: 0; height: 0;
padding: 70% 0 0 0; padding: 70% 0 0 0;
...@@ -133,8 +278,8 @@ export default { ...@@ -133,8 +278,8 @@ export default {
&:hover .actions { &:hover .actions {
opacity: 1; opacity: 1;
} }
} }
.actions { .actions {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 50px; height: 50px;
...@@ -149,9 +294,9 @@ export default { ...@@ -149,9 +294,9 @@ export default {
.el-icon-EditPen { .el-icon-EditPen {
margin-right: 20px; margin-right: 20px;
} }
} }
.el-image { .el-image {
width: 80px; width: 80px;
height: 80px; height: 80px;
} }
</style> </style>
<script> <script>
var validateHttp = (rule, value, callback) => { var validateHttp = (rule, value, callback) => {
if (/^https?:\/\//gi.test(value)) { if (/^https?:\/\//gi.test(value)) {
callback() callback()
} else { } else {
callback(new Error('必须以 http://或 https://开头')) callback(new Error('必须以 http://或 https://开头'))
} }
} }
export default { export default {
name: '', name: '',
components: {}, components: {},
props: { props: {
data: { data: {
type: Object, type: Object,
default: () => ({}), default: () => ({})
}, },
disabled: { disabled: {
type: Boolean, type: Boolean
}, }
}, },
data() { data() {
...@@ -33,18 +33,18 @@ export default { ...@@ -33,18 +33,18 @@ export default {
sendTime: [{ required: true, message: '不能为空', trigger: 'blur' }], sendTime: [{ required: true, message: '不能为空', trigger: 'blur' }],
linkUrl: [ linkUrl: [
{ required: true, message: '不能为空', trigger: 'blur' }, { required: true, message: '不能为空', trigger: 'blur' },
{ validator: validateHttp, trigger: 'blur' }, { validator: validateHttp, trigger: 'blur' }
], ]
}), }),
typeDict: { typeDict: {
text: '文本', text: '文本',
image: '图片', image: '图片',
news: '图文', news: '图文',
video: '视频', video: '视频',
file: '文件', file: '文件'
}, },
dialogVisible: false, dialogVisible: false
} }
}, },
computed: {}, computed: {},
...@@ -52,8 +52,11 @@ export default { ...@@ -52,8 +52,11 @@ export default {
'form.weMessageTemplate.msgType'(val, oldVal) { 'form.weMessageTemplate.msgType'(val, oldVal) {
if (!this.disabled) { if (!this.disabled) {
this.form.weMessageTemplate = { msgType: val } this.form.weMessageTemplate = { msgType: val }
if (this.$route.query.posterId && val == 'image') {
this.form.weMessageTemplate.picUrl = this.$route.query.posterId
}
}
} }
},
}, },
created() { created() {
if (!this.form.toParty) { if (!this.form.toParty) {
...@@ -68,6 +71,10 @@ export default { ...@@ -68,6 +71,10 @@ export default {
// 机器人消息没有视频类型 // 机器人消息没有视频类型
delete this.typeDict.video delete this.typeDict.video
} }
if (this.$route.query.posterId) {
this.form.weMessageTemplate.msgType = 'image'
this.form.weMessageTemplate.picUrl = this.$route.query.posterId
}
}, },
mounted() {}, mounted() {},
methods: { methods: {
...@@ -105,13 +112,13 @@ export default { ...@@ -105,13 +112,13 @@ export default {
this.$emit('submit', form) this.$emit('submit', form)
} }
} }
}, }
}, }
} }
</script> </script>
<template> <template>
<div style="margin: 0 20px" :class="disabled && 'detail-form'"> <div style="margin: 0 20px;" :class="disabled && 'detail-form'">
<!-- 应用消息 --> <!-- 应用消息 -->
<el-form <el-form
class="mb20" class="mb20"
...@@ -120,11 +127,12 @@ export default { ...@@ -120,11 +127,12 @@ export default {
:model="form" :model="form"
:rules="rules" :rules="rules"
:disabled="disabled" :disabled="disabled"
label-width="100px"> label-width="100px"
>
<div class=""> <div class="">
<div class="title"> <div class="title">
<span>消息设置</span> <span>消息设置</span>
<span style="font-size: 12px; margin-left: 10px"> <span style="font-size: 12px; margin-left: 10px;">
将通过应用 将通过应用
<span class="theme">【{{ form.agentName }}】</span> <span class="theme">【{{ form.agentName }}】</span>
发送消息 发送消息
...@@ -143,7 +151,8 @@ export default { ...@@ -143,7 +151,8 @@ export default {
<el-button v-if="!disabled" class="mr10" text @click="dialogVisible = true">选择范围</el-button> <el-button v-if="!disabled" class="mr10" text @click="dialogVisible = true">选择范围</el-button>
<TagEllipsis <TagEllipsis
v-if="form.toPartyName.concat(form.toUserName).length" v-if="form.toPartyName.concat(form.toUserName).length"
:list="form.toPartyName.concat(form.toUserName)" /> :list="form.toPartyName.concat(form.toUserName)"
/>
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="发送类型" prop="sendType"> <el-form-item label="发送类型" prop="sendType">
...@@ -162,8 +171,9 @@ export default { ...@@ -162,8 +171,9 @@ export default {
disabledDate(time) { disabledDate(time) {
let date = new Date() let date = new Date()
return time.getTime() < date.setDate(date.getDate() - 1) return time.getTime() < date.setDate(date.getDate() - 1)
}, }
}"></el-date-picker> }"
></el-date-picker>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -177,7 +187,8 @@ export default { ...@@ -177,7 +187,8 @@ export default {
:model="form" :model="form"
:rules="rules" :rules="rules"
:disabled="disabled" :disabled="disabled"
label-width="100px"> label-width="100px"
>
<el-form-item label="消息标题" prop="msgTitle"> <el-form-item label="消息标题" prop="msgTitle">
<el-input v-model="form.msgTitle" placeholder="请输入标题" maxlength="30" show-word-limit></el-input> <el-input v-model="form.msgTitle" placeholder="请输入标题" maxlength="30" show-word-limit></el-input>
</el-form-item> </el-form-item>
...@@ -199,7 +210,8 @@ export default { ...@@ -199,7 +210,8 @@ export default {
:autosize="{ minRows: 2, maxRows: 50 }" :autosize="{ minRows: 2, maxRows: 50 }"
placeholder="请输入内容" placeholder="请输入内容"
maxlength="2000" maxlength="2000"
show-word-limit></el-input> show-word-limit
></el-input>
</el-form-item> </el-form-item>
<!-- 图片 --> <!-- 图片 -->
...@@ -215,7 +227,8 @@ export default { ...@@ -215,7 +227,8 @@ export default {
<el-input <el-input
v-model="form.weMessageTemplate.linkUrl" v-model="form.weMessageTemplate.linkUrl"
type="text" type="text"
placeholder="请输入图文地址,以http://或https://开头"></el-input> placeholder="请输入图文地址,以http://或https://开头"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="图文标题" prop="title"> <el-form-item label="图文标题" prop="title">
<el-input <el-input
...@@ -223,7 +236,8 @@ export default { ...@@ -223,7 +236,8 @@ export default {
type="text" type="text"
:maxlength="60" :maxlength="60"
show-word-limit show-word-limit
placeholder="请输入图文标题"></el-input> placeholder="请输入图文标题"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="图文描述" prop="description"> <el-form-item label="图文描述" prop="description">
<el-input <el-input
...@@ -232,7 +246,8 @@ export default { ...@@ -232,7 +246,8 @@ export default {
:maxlength="100" :maxlength="100"
show-word-limit show-word-limit
:autosize="{ minRows: 2, maxRows: 50 }" :autosize="{ minRows: 2, maxRows: 50 }"
placeholder="请输入"></el-input> placeholder="请输入"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="图文封面"> <el-form-item label="图文封面">
<Upload v-model:fileUrl="form.weMessageTemplate.picUrl" type="0"> <Upload v-model:fileUrl="form.weMessageTemplate.picUrl" type="0">
...@@ -270,15 +285,16 @@ export default { ...@@ -270,15 +285,16 @@ export default {
:isSigleSelect="false" :isSigleSelect="false"
:destroy-on-close="false" :destroy-on-close="false"
:defaultValues="form.toParty.concat(form.toUser)" :defaultValues="form.toParty.concat(form.toUser)"
@success="selectedUser"></SelectUser> @success="selectedUser"
></SelectUser>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.theme { .theme {
color: var(--color); color: var(--color);
} }
::v-deep.detail-form { ::v-deep.detail-form {
.el-input.is-disabled .el-input__inner, .el-input.is-disabled .el-input__inner,
.el-textarea.is-disabled .el-textarea__inner { .el-textarea.is-disabled .el-textarea__inner {
background-color: transparent; background-color: transparent;
...@@ -318,5 +334,5 @@ export default { ...@@ -318,5 +334,5 @@ export default {
// .el-input__prefix { // .el-input__prefix {
// display: none; // display: none;
// } // }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!