Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</u-tr>
|
</u-tr>
|
||||||
<u-tr v-for="(row,j) in data" :key="j">
|
<u-tr v-for="(row,j) in data" :key="j">
|
||||||
<u-td v-for="(col,i) in colConfigs" :key="i" :width="col.width">
|
<u-td v-for="(col,i) in colConfigs" :key="i" :width="col.width">
|
||||||
<slot v-if="col.slot" :name="col.slot"/>
|
<slot v-if="col.slot" :name="col.slot" :row="row"/>
|
||||||
<p v-else-if="col.dict">{{ $dict.getLabel(col.dict, row[col.prop]) }}</p>
|
<p v-else-if="col.dict">{{ $dict.getLabel(col.dict, row[col.prop]) }}</p>
|
||||||
<p v-else>{{ row[col.prop] || "-" }}</p>
|
<p v-else>{{ row[col.prop] || "-" }}</p>
|
||||||
</u-td>
|
</u-td>
|
||||||
|
|||||||
@@ -129,32 +129,29 @@ export default {
|
|||||||
this.startTime = '',
|
this.startTime = '',
|
||||||
this.endTime = ''
|
this.endTime = ''
|
||||||
this.userIdList = []
|
this.userIdList = []
|
||||||
// uni.clearStorageSync('userSelect') //清空会导致状态字典出问题
|
this.createUserId = ''
|
||||||
|
uni.clearStorageSync('userSelect')
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
this.getList()
|
this.$dict.load(['mstStatus']).then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
this.filterShow = false
|
||||||
},
|
},
|
||||||
|
|
||||||
selectConfirm() {
|
selectConfirm() {
|
||||||
if(this.userIdList.length) {
|
if(this.userIdList.length) {
|
||||||
this.createUserId = this.userIdList?.[0].userId
|
this.createUserId = this.userIdList?.[0].userId
|
||||||
console.log(this.userIdList,'userIdList');
|
|
||||||
console.log(this.createUserId,'createUserId');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// let arr = this.userIdList
|
|
||||||
// console.log(arr[0],222);
|
|
||||||
// console.log(this.userIdList,111);
|
|
||||||
|
|
||||||
|
|
||||||
this.start = this.startTime,
|
this.start = this.startTime,
|
||||||
this.end = this.endTime
|
this.end = this.endTime
|
||||||
let startTmp = this.start.split("-");
|
let startTmp = this.start.split("-");
|
||||||
let endTmp = this.end.split("-");
|
let endTmp = this.end.split("-");
|
||||||
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
||||||
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
||||||
if (stT.getTime() >= edT.getTime()) {
|
if (stT.getTime() > edT.getTime()) {
|
||||||
this.$u.toast("开始日期不能大于或等于结束日期!");
|
this.$u.toast("开始日期不能大于结束日期!");
|
||||||
this.filterShow = true
|
this.filterShow = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -172,7 +169,6 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '群发居民群'
|
document.title = '群发居民群'
|
||||||
this.getList()
|
|
||||||
this.$dict.load(['mstStatus']).then(() => {
|
this.$dict.load(['mstStatus']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -65,11 +65,9 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:colConfigs="tabIndex==0? colConfigs0 : colConfigs1"
|
:colConfigs="tabIndex==0? colConfigs0 : colConfigs1"
|
||||||
v-if="tableData.length">
|
v-if="tableData.length">
|
||||||
<u-td slot="groupOwnerId" align="center">
|
<u-td slot="groupOwnerId" slot-scope="{row}">
|
||||||
<template #slot="{ row }">
|
<!-- <p>{{row.groupOwnerId}}</p> -->
|
||||||
<p>{{row}}</p>
|
<AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/>
|
||||||
<AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/>
|
|
||||||
</template>
|
|
||||||
</u-td>
|
</u-td>
|
||||||
</AiTable>
|
</AiTable>
|
||||||
<AiEmpty v-if="!tableData.length" description="暂无数据"></AiEmpty>
|
<AiEmpty v-if="!tableData.length" description="暂无数据"></AiEmpty>
|
||||||
@@ -115,7 +113,7 @@ export default {
|
|||||||
return [
|
return [
|
||||||
{ label: "居民群",prop: "groupName" },
|
{ label: "居民群",prop: "groupName" },
|
||||||
{ label: "群人数", prop: "memberCount"},
|
{ label: "群人数", prop: "memberCount"},
|
||||||
{ slot: "groupOwnerId",label: "群主"}
|
{ slot: "groupOwnerId",label: "群主" }
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 小程序 -->
|
<!-- 小程序 -->
|
||||||
<div class="miniapp" v-show="miniapp.length">
|
<div class="miniapp" v-show="miniapp.length">
|
||||||
<p>小程序地址</p>
|
<p>小程序</p>
|
||||||
<div v-for="(item, index) in miniapp" :key="index">{{item.mpTitle}}</div>
|
<div v-for="(item, index) in miniapp" :key="index">{{item.mpTitle}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<div class="header-middle">
|
<div class="header-middle">
|
||||||
<div class="userCards" v-for="e in userList" :key="e.userId">
|
<div class="userCards" v-for="e in userList" :key="e.userId">
|
||||||
<div class="imges">
|
<div class="imges">
|
||||||
<div class="imgselect" :class="{ checked: e.isChecked }" @click.stop="itemCheck(e)" />
|
<div class="imgselect" :class="{ 'checked': e.isChecked }" @click.stop="itemCheck(e)" />
|
||||||
<img src="./images/tx@2x.png" alt="" class="avatras"/> {{e.userId}}
|
<img src="./images/tx@2x.png" alt="" class="avatras"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="rights fill">
|
<div class="rights fill">
|
||||||
<div class="applicationNames">
|
<div class="applicationNames">
|
||||||
@@ -41,11 +41,10 @@ export default {
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
this.selected = uni.getStorageSync('userSelect') || []
|
this.selected = uni.getStorageSync('userSelect') || []
|
||||||
this.getDeptsAndUsersByParent()
|
this.getDeptsAndUsersByParent()
|
||||||
console.log(this.selected);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isSelected(id) {
|
isSelected(id) {
|
||||||
return !!this.selected.find(e => e.id == id)
|
return this.selected.userId===id
|
||||||
},
|
},
|
||||||
getDeptsAndUsersByParent() {
|
getDeptsAndUsersByParent() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
@@ -53,8 +52,7 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.id)}))
|
let userArr = res.data.records.map(e => ({userId: e.createUserId, isChecked: this.isSelected(e.createUserId)}))
|
||||||
// 数组去重
|
|
||||||
this.userList = []
|
this.userList = []
|
||||||
userArr.forEach(item=> {
|
userArr.forEach(item=> {
|
||||||
if(!this.userList.find(o=> o.userId === item.userId)) {
|
if(!this.userList.find(o=> o.userId === item.userId)) {
|
||||||
@@ -66,15 +64,17 @@ export default {
|
|||||||
},
|
},
|
||||||
itemCheck(row) {
|
itemCheck(row) {
|
||||||
this.userList.forEach(e => e.isChecked = false)
|
this.userList.forEach(e => e.isChecked = false)
|
||||||
row.isChecked = !row.isChecked
|
const index = this.userList.findIndex(o => {
|
||||||
this.selected[0] = this.userList.filter(e => e.isChecked == true)
|
return row.userId===o.userId
|
||||||
this.$forceUpdate()
|
})
|
||||||
|
this.userList[index].isChecked = true
|
||||||
|
this.selected = this.userList[index]
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if(!this.selected.length) {
|
if(!this.selected.userId) {
|
||||||
return this.$u.toast('请选择创建人')
|
return this.$u.toast('请选择创建人')
|
||||||
}
|
}
|
||||||
uni.$emit("pagePicker:custom", this.selected)
|
uni.$emit("pagePicker:custom", [this.selected])
|
||||||
uni.setStorageSync('userSelect', this.selected)
|
uni.setStorageSync('userSelect', this.selected)
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export default {
|
|||||||
nowDate: "",
|
nowDate: "",
|
||||||
calendarList: [],
|
calendarList: [],
|
||||||
colData: {},
|
colData: {},
|
||||||
detailType: '0',
|
detailType: 0,
|
||||||
timeType: "",
|
timeType: "",
|
||||||
departId: "",
|
departId: "",
|
||||||
startTime: "",
|
startTime: "",
|
||||||
@@ -255,7 +255,7 @@ export default {
|
|||||||
...mapState(['user'])
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['initOpenData', 'transCanvas']),
|
...mapActions(['initOpenData', 'transCanvas','selectEnterpriseContact']),
|
||||||
checkTime(index) {
|
checkTime(index) {
|
||||||
if (index == 3) {
|
if (index == 3) {
|
||||||
this.timeSelect = index;
|
this.timeSelect = index;
|
||||||
@@ -278,6 +278,8 @@ export default {
|
|||||||
this.end = "";
|
this.end = "";
|
||||||
this.departId = "";
|
this.departId = "";
|
||||||
this.departmentId = "";
|
this.departmentId = "";
|
||||||
|
this.getBrokenDate()
|
||||||
|
this.filterShow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
selectConfirm() {
|
selectConfirm() {
|
||||||
@@ -286,7 +288,7 @@ export default {
|
|||||||
this.start = this.startTime;
|
this.start = this.startTime;
|
||||||
this.end = this.endTime;
|
this.end = this.endTime;
|
||||||
} else {
|
} else {
|
||||||
this.detailType = this.timeSelect;
|
this.detailType = this.timeSelect || 0;
|
||||||
}
|
}
|
||||||
this.departId = this.departmentId
|
this.departId = this.departmentId
|
||||||
this.getBrokenDate();
|
this.getBrokenDate();
|
||||||
@@ -308,8 +310,8 @@ export default {
|
|||||||
let endTmp = this.end.split("-");
|
let endTmp = this.end.split("-");
|
||||||
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
let stT = new Date(startTmp[0], startTmp[1], startTmp[2]);
|
||||||
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
let edT = new Date(endTmp[0], endTmp[1], endTmp[2]);
|
||||||
if (stT.getTime() >= edT.getTime()) {
|
if (stT.getTime() > edT.getTime()) {
|
||||||
this.$u.toast("开始日期不能大于或等于结束日期!");
|
this.$u.toast("开始日期不能大于结束日期!");
|
||||||
this.customShow = true
|
this.customShow = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -561,24 +563,26 @@ export default {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if(res?.data) {
|
if (res.code ===0) {
|
||||||
let items = [], xData = [], yData = []
|
if(res.data && res.data.length) {
|
||||||
res.data.map((item) => {
|
let items = [], xData = [], yData = []
|
||||||
const i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
res.data.forEach((item) => {
|
||||||
items.push(i)
|
const i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||||
yData.push(item.taskCount)
|
items.push(i)
|
||||||
})
|
yData.push(item.taskCount)
|
||||||
|
|
||||||
this.initOpenData({canvas:true})
|
|
||||||
|
|
||||||
this.transCanvas(items).then((data) => {
|
|
||||||
console.log(data.items,"data.items");
|
|
||||||
data.items.map((a) => {
|
|
||||||
xData.push(a.data)
|
|
||||||
})
|
})
|
||||||
console.log(xData, yData, '111222');
|
|
||||||
this.getColumnarEcharts(xData, yData)
|
this.initOpenData({canvas:true})
|
||||||
})
|
setTimeout(() => {
|
||||||
|
this.transCanvas(items).then((data) => {
|
||||||
|
data.items.map((a) => {
|
||||||
|
xData.push(a.data)
|
||||||
|
})
|
||||||
|
this.getColumnarEcharts(xData, yData)
|
||||||
|
})
|
||||||
|
},600)
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -627,9 +631,7 @@ export default {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 选择部门
|
// 选择部门
|
||||||
...mapActions(['selectEnterpriseContact']),
|
|
||||||
getDept() {
|
getDept() {
|
||||||
this.selectEnterpriseContact({
|
this.selectEnterpriseContact({
|
||||||
fromDepartmentId: 0,
|
fromDepartmentId: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user