2022-08-30 11:22:08 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="addPropaganda">
|
|
|
|
|
<div class="task_name">
|
|
|
|
|
<div><span class="color_red">*</span><span class="title">任务名称</span></div>
|
|
|
|
|
<u-input v-model="value" type="text" placeholder="请输入" maxlength="15" class="inpt"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="send_scope">
|
|
|
|
|
<div><span class="color_red">*</span><span class="title">发送范围</span></div>
|
2022-08-30 18:08:25 +08:00
|
|
|
<div @click="toSleectScoped">
|
2022-08-30 16:35:45 +08:00
|
|
|
<span>请选择</span><span><u-icon name="arrow-right" color="#CCD0D3"></u-icon></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="send_content">
|
|
|
|
|
<div class="content_title">
|
|
|
|
|
<div><span class="color_red">*</span><span class="title">发送内容</span></div>
|
|
|
|
|
<div style="color: #3399FF;">预览</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content_text">
|
|
|
|
|
<u-input v-model="value" type="textarea" height="372" :auto-height="true" placeholder="请输入政策、活动、节日问候等内容" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content_fodder">
|
2022-08-31 13:43:21 +08:00
|
|
|
<!-- <div style="color: #8E8F91;">添加素材</div> -->
|
2022-08-30 16:35:45 +08:00
|
|
|
<div class="fodder_alls">
|
2022-08-31 13:43:21 +08:00
|
|
|
<!-- <div class="fodder_add"><u-icon name="plus" color="#CCD0D3" size="32"></u-icon></div> -->
|
|
|
|
|
<AiUploader v-model="form.files" placeholder="添加素材" type="file" :limit="9" multiple action="/admin/file/add2"></AiUploader>
|
2022-08-30 16:35:45 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-08-30 11:22:08 +08:00
|
|
|
|
2022-08-30 16:35:45 +08:00
|
|
|
<div class="isExamine">
|
|
|
|
|
<div class="examineChange">
|
|
|
|
|
<div>宣发需要审批</div>
|
|
|
|
|
<u-switch v-model="checked" size="40" @change="checked = !!checked"></u-switch>
|
2022-08-30 11:22:08 +08:00
|
|
|
</div>
|
2022-08-31 13:43:21 +08:00
|
|
|
<div class="examine_person" v-if="checked == true" @click="getDeptUser">
|
2022-08-30 16:35:45 +08:00
|
|
|
<div><span class="color_red">*</span><span class="title">审批人</span></div>
|
|
|
|
|
<div>
|
2022-08-31 13:43:21 +08:00
|
|
|
<span v-if="userList.length">请选择人员</span><span><u-icon name="arrow-right" color="#CCD0D3"></u-icon></span>
|
|
|
|
|
<div v-if="!userList.length">
|
|
|
|
|
<AiOpenData type="departmentName" :openid="departmentId"/>
|
|
|
|
|
</div>
|
2022-08-30 16:35:45 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="btn">
|
2022-08-30 18:08:25 +08:00
|
|
|
<div class="submitBtn">发送</div>
|
2022-08-30 11:22:08 +08:00
|
|
|
</div>
|
2022-08-30 16:35:45 +08:00
|
|
|
|
2022-08-30 11:22:08 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-08-31 13:43:21 +08:00
|
|
|
import { mapActions } from "vuex";
|
2022-08-30 11:22:08 +08:00
|
|
|
export default {
|
|
|
|
|
name: "addPropaganda",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
type: '',
|
2022-08-30 16:35:45 +08:00
|
|
|
value: '',
|
|
|
|
|
checked: false,
|
2022-08-31 13:43:21 +08:00
|
|
|
form: {
|
|
|
|
|
files: []
|
|
|
|
|
},
|
|
|
|
|
userList: [],
|
2022-08-30 11:22:08 +08:00
|
|
|
}
|
|
|
|
|
},
|
2022-08-30 16:35:45 +08:00
|
|
|
methods: {
|
2022-08-31 13:43:21 +08:00
|
|
|
...mapActions(['selectEnterpriseContact']),
|
2022-08-30 18:08:25 +08:00
|
|
|
toSleectScoped() {
|
|
|
|
|
uni.navigateTo({url: `./sendScoped?type=${this.type}`})
|
2022-08-31 13:43:21 +08:00
|
|
|
},
|
|
|
|
|
getDeptUser() {
|
|
|
|
|
this.selectEnterpriseContact({
|
|
|
|
|
fromDepartmentId: 0,
|
|
|
|
|
mode: "multi",
|
|
|
|
|
type: ["user"],
|
|
|
|
|
// selectedDepartmentIds: this.departList?.map(e => e.id)
|
|
|
|
|
selectedUserIds: this.userList?.map(e => e.id)
|
|
|
|
|
}).then((res)=>{
|
|
|
|
|
// if(res?.departmentList) {
|
|
|
|
|
// this.departmentId = res.departmentList[0].id
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
).catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
})
|
2022-08-30 18:08:25 +08:00
|
|
|
}
|
2022-08-30 16:35:45 +08:00
|
|
|
},
|
2022-08-30 11:22:08 +08:00
|
|
|
onShow() {
|
|
|
|
|
},
|
|
|
|
|
onLoad(o) {
|
|
|
|
|
this.type = o.index;
|
|
|
|
|
document.title = this.type==0? "群发居民群": this.type==1? "群发居民": "群发朋友圈"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.addPropaganda {
|
|
|
|
|
font-size: 32px !important;
|
2022-08-31 17:05:17 +08:00
|
|
|
padding-bottom: 140px;
|
2022-08-30 16:35:45 +08:00
|
|
|
box-sizing: border-box;
|
2022-08-30 11:22:08 +08:00
|
|
|
.task_name,
|
2022-08-30 16:35:45 +08:00
|
|
|
.send_scope,
|
|
|
|
|
.send_content {
|
2022-08-30 11:22:08 +08:00
|
|
|
background: #FFF;
|
|
|
|
|
padding: 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
box-shadow: inset 0px -1px 0px 0px #DDDDDD;
|
|
|
|
|
.title {
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-30 16:35:45 +08:00
|
|
|
.send_scope {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
2022-08-30 11:22:08 +08:00
|
|
|
|
2022-08-30 16:35:45 +08:00
|
|
|
.send_content {
|
|
|
|
|
.content_title {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
.content_text {
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
border-bottom: 1px solid #DDD;
|
|
|
|
|
}
|
|
|
|
|
.content_fodder {
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
.fodder_alls {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
.fodder_add {
|
|
|
|
|
border: 2px solid #DBDCDF;
|
|
|
|
|
padding: 20px 24px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.isExamine {
|
|
|
|
|
background: #FFF;
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
box-shadow: inset 0px -1px 0px 0px #DDDDDD;
|
|
|
|
|
|
|
|
|
|
.examineChange,
|
|
|
|
|
.examine_person {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 26px 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.examine_person {
|
|
|
|
|
border-top: 2px solid #DDD;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-30 11:22:08 +08:00
|
|
|
.color_red {
|
|
|
|
|
color: #FF4466;
|
|
|
|
|
}
|
|
|
|
|
.inpt {
|
|
|
|
|
margin-left: 14px;
|
|
|
|
|
}
|
2022-08-30 16:35:45 +08:00
|
|
|
.btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 128px;
|
|
|
|
|
padding: 24px 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background: #FFF;
|
2022-08-30 18:08:25 +08:00
|
|
|
.submitBtn {
|
|
|
|
|
background: #1365DD;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 80px;
|
|
|
|
|
line-height: 80px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
2022-08-30 16:35:45 +08:00
|
|
|
}
|
2022-08-30 11:22:08 +08:00
|
|
|
}
|
|
|
|
|
</style>
|