Commit b7494fc7 by 胡悦

修改样式

1 parent 3dbf2410
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width"> <el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:modal-append-to-body="false"
:width="width"
class="app-dialog"
>
<el-scrollbar v-if="hasScroll"> <el-scrollbar v-if="hasScroll">
<span slot="title"> <span slot="title">
<span class="main-title">{{ title }}</span> <span class="main-title">{{ title }}</span>
...@@ -23,9 +32,24 @@ ...@@ -23,9 +32,24 @@
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">{{btnCloseLabel}}</el-button> <el-button
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button> :type="typeName"
<el-button type="primary" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button> v-if="!noClose"
:size="btnSize"
@click="handleClose"
>{{btnCloseLabel}}</el-button>
<el-button
type="default"
v-if="!noCancel"
:size="btnSize"
@click="handleClose"
>{{ btnCancelLabel }}</el-button>
<el-button
type="primary"
v-if="!noBtnOk"
:size="btnSize"
@click="handleConfirm"
>{{ btnOkLabel }}</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </el-dialog>
...@@ -39,7 +63,7 @@ export default { ...@@ -39,7 +63,7 @@ export default {
return {} return {}
}, },
props: { props: {
hasScroll:{ hasScroll: {
type: Boolean, type: Boolean,
default: true default: true
}, },
...@@ -53,9 +77,9 @@ export default { ...@@ -53,9 +77,9 @@ export default {
}, },
showClose: { showClose: {
type: Boolean, type: Boolean,
default: true default: false
}, },
btnCloseLabel:{ btnCloseLabel: {
type: String, type: String,
default: '关闭' default: '关闭'
}, },
...@@ -79,9 +103,9 @@ export default { ...@@ -79,9 +103,9 @@ export default {
type: Boolean, type: Boolean,
default: true default: true
}, },
typeName:{ typeName: {
type:String, type: String,
default:'' default: 'default'
}, },
// modalAppendToBody:{ // modalAppendToBody:{
// type: Boolean, // type: Boolean,
...@@ -93,7 +117,7 @@ export default { ...@@ -93,7 +117,7 @@ export default {
}, },
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'small'
} }
}, },
...@@ -107,7 +131,7 @@ export default { ...@@ -107,7 +131,7 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss">
.dialog-sub-title { .dialog-sub-title {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
...@@ -122,4 +146,21 @@ export default { ...@@ -122,4 +146,21 @@ export default {
// height: 60vh; // height: 60vh;
// overflow: auto; // overflow: auto;
// } // }
// .app-dialog {
// // .el-dialog__header {
// // padding: 15px;
// // }
// .el-dialog__body {
// border-top: 1px solid #eaeefb;
// border-bottom: 1px solid #eaeefb;
// }
// .el-dialog__footer {
// padding: 15px;
// // .el-button--small {
// // padding: 9px 21px;
// // font-size: 14px;
// // border-radius: 4px;
// // }
// }
// }
</style> </style>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px"> <el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList"> <el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label> <label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :eventBus="eventBus"></WelcomeWords> <WelcomeWords ref="welcome" :form="'customer'" :eventBus="eventBus"></WelcomeWords>
</el-form-item> </el-form-item>
<el-form-item label="发送时间" prop="sendType"> <el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType"> <el-radio-group v-model="basicForm.sendType">
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
}" }"
> >
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button> <el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel> <SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
</div> </div>
...@@ -308,8 +308,8 @@ export default { ...@@ -308,8 +308,8 @@ export default {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
}, },
handleCancel() { handleCancel() {
// this.$router.push('/customerTransform/index') this.$router.push('/customerTransform/index')
this.$router.go(-1) // this.$router.go(-1)
}, },
// 成员弹窗 // 成员弹窗
handleConfirm() { handleConfirm() {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px"> <el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList"> <el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label> <label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :eventBus="eventBus"></WelcomeWords> <WelcomeWords ref="welcome" :form="'customerGroup'" :eventBus="eventBus"></WelcomeWords>
</el-form-item> </el-form-item>
<el-form-item label="发送时间" prop="sendType"> <el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType"> <el-radio-group v-model="basicForm.sendType">
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
}" }"
> >
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button> <el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
<glsx-dialog <glsx-dialog
:title="'选择成员'" :title="'选择成员'"
...@@ -197,7 +197,8 @@ export default { ...@@ -197,7 +197,8 @@ export default {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
}, },
handleCancel() { handleCancel() {
this.$router.go(-1) // this.$router.go(-1)
this.$router.push('/customerTransform/index')
}, },
// 成员弹窗 // 成员弹窗
handleConfirm() { handleConfirm() {
......
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
</div> </div>
<div class="tips-text"> <div class="tips-text">
<img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt /> <img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt />
<span>客户每个月最多接收来自同一企业的管理员的 4 条群发消息,4条消息可在同一天发送,达到上限后,无法再接收管理员的群发消息。</span> <span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每位客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div> </div>
</div> </div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel> <ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
...@@ -107,7 +108,7 @@ export default { ...@@ -107,7 +108,7 @@ export default {
ActivityModel, ActivityModel,
wTextarea wTextarea
}, },
props: { eventBus: Object }, props: ['eventBus', 'form'],
data() { data() {
return { return {
loading: false, loading: false,
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
}" }"
> >
<!-- <el-button type="primary" @click="handleNext">确定</el-button> --> <!-- <el-button type="primary" @click="handleNext">确定</el-button> -->
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -161,7 +161,8 @@ export default { ...@@ -161,7 +161,8 @@ export default {
}, },
methods: { methods: {
handleCancel() { handleCancel() {
this.$router.go(-1) // this.$router.go(-1)
this.$router.push('/customerTransform/index')
}, },
remind(data) { remind(data) {
this.$apis.customerTransform this.$apis.customerTransform
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
> >
<!-- <el-button type="primary" @click="handle <!-- <el-button type="primary" @click="handle
Next">确定</el-button>--> Next">确定</el-button>-->
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -140,7 +140,8 @@ export default { ...@@ -140,7 +140,8 @@ export default {
this.getCustomerList(val) this.getCustomerList(val)
}, },
handleCancel() { handleCancel() {
this.$router.go(-1) // this.$router.go(-1)
this.$router.push('/customerTransform/index')
}, },
remind(data, index) { remind(data, index) {
if (!data.remindStatus) { if (!data.remindStatus) {
......
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
<style lang="scss" scope> <style lang="scss" scope>
.send-assistant { .send-assistant {
margin-top: 26px; // margin-top: 26px;
.menu-sub { .menu-sub {
.menu-sub-item { .menu-sub-item {
display: inline-block; display: inline-block;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!