黔西南 协同宣发迁移

This commit is contained in:
liuye
2023-06-12 09:38:05 +08:00
parent bc589c46c8
commit ea10f35e13
29 changed files with 4634 additions and 35 deletions

View File

@@ -10,7 +10,7 @@
<div class="applicationNames">{{ e.userName }}</div>
</div>
</div>
<AiEmpty description="暂无数据" v-if="!userList"/>
<AiEmpty description="暂无数据" v-if="!userList.length"/>
</div>
<div class="subBtn" @click="submit">
<div>确定选择</div>
@@ -22,13 +22,14 @@
import { mapState } from 'vuex'
export default {
// 选择创建人
name: "selectUser",
appName: "选择创建人",
data() {
return {
selected: {},
userList: [],
current: 1,
tabIndex: null,
}
},
computed: {
@@ -37,17 +38,24 @@ export default {
return this.userList?.length > 0
}
},
onLoad() {
onLoad(o) {
this.tabIndex = o.tabIndex
this.selected = uni.getStorageSync('userSelect') || []
this.getCreateUserList()
},
methods: {
isSelected(userId) {
return this.selected.userId === userId
return this.selected.userId===userId
},
getCreateUserList() {
this.userList = []
this.$http.post(`/app/appmasssendingtask/createUserlist`).then(res => {
let url = ''
if(this.tabIndex == 0) {
url = `/app/appmasssendingtask/createUserlist`
} else {
url = `/app/whchatmomentstask/createUserlist`
}
this.$http.post(url).then(res => {
if (res?.data) {
this.userList = res.data.map(e => ({
userId: e.create_user_id,