This commit is contained in:
shijingjing
2022-09-02 14:47:43 +08:00
parent da6c0dd07d
commit 4e36d686f1
2 changed files with 13 additions and 8 deletions

View File

@@ -38,9 +38,9 @@
<div>宣发需要审批</div> <div>宣发需要审批</div>
<u-switch v-model="enableExamine" size="40" @change="enableExamine = !!enableExamine"></u-switch> <u-switch v-model="enableExamine" size="40" @change="enableExamine = !!enableExamine"></u-switch>
</div> </div>
<div class="examine_person" v-if="enableExamine == true" @click="getDeptUser"> <div class="examine_person" v-if="enableExamine == true" >
<div><span class="color_red">*</span><span class="title">审批人</span></div> <div><span class="color_red">*</span><span class="title">审批人</span></div>
<div> <div @click="getDeptUser">
<span v-if="!userList.length">请选择人员 <u-icon name="arrow-right" color="#CCD0D3"/></span> <span v-if="!userList.length">请选择人员 <u-icon name="arrow-right" color="#CCD0D3"/></span>
<div v-if="userList.length"> <div v-if="userList.length">
<AiOpenData type="departmentName" :openid="departmentId"/> <AiOpenData type="departmentName" :openid="departmentId"/>
@@ -51,7 +51,7 @@
<div>定时发送</div> <div>定时发送</div>
<u-switch v-model="isTimedTask" size="40" @change="isTimedTask = !!isTimedTask"></u-switch> <u-switch v-model="isTimedTask" size="40" @change="isTimedTask = !!isTimedTask"></u-switch>
</div> </div>
<div class="examine_person" v-if="isTimedTask == true" @click="getDeptUser"> <div class="examine_person" v-if="isTimedTask == true">
<div><span class="color_red">*</span><span class="title">发送时间</span></div> <div><span class="color_red">*</span><span class="title">发送时间</span></div>
<div @click="showTaskTime = true"> <div @click="showTaskTime = true">
<span style="color: '#CCD0D3'" v-if="!form.choiceTime.length">请选择</span> <span style="color: '#CCD0D3'" v-if="!form.choiceTime.length">请选择</span>
@@ -187,13 +187,17 @@ export default {
confirm() { confirm() {
if(this.flag) return if(this.flag) return
this.form.contents = [ const firstContent = [
{ {
content: this.content, content: this.content,
msgType: '0' msgType: '0'
}, },
...this.files
] ]
this.form.contents.push(...firstContent)
const fileLists = this.files.map(item=> {
if(this.getExtension(item.name)==)
})
if(!this.form.contents.length) { if(!this.form.contents.length) {
return this.$u.toast("请输入发送内容") return this.$u.toast("请输入发送内容")

View File

@@ -60,6 +60,7 @@ export default {
endTime: '', endTime: '',
sex: "0", sex: "0",
userList: [], userList: [],
userListIds: [],
} }
}, },
methods: { methods: {
@@ -82,9 +83,9 @@ export default {
selectedUserIds: this.userList?.map(e => e.id) selectedUserIds: this.userList?.map(e => e.id)
}).then((res)=>{ }).then((res)=>{
console.log(res); console.log(res);
// if(res?.departmentList) { if(res?.userList) {
// this.departmentId = res.departmentList[0].id this.userListIds = res.userList.map(e => e.id)
// } }
} }
).catch((err) => { ).catch((err) => {
console.log(err); console.log(err);