This commit is contained in:
shijingjing
2023-03-01 14:15:58 +08:00
parent 72900b596b
commit 31881327de
6 changed files with 12 additions and 46 deletions

View File

@@ -115,7 +115,7 @@
}
},
"/hzl": {
"target": "http://192.168.1.87:39000/",
"target": "http://192.168.1.87:39010/",
"changeOrigin": true,
"pathRewrite": {
"^/hzl": "/"

View File

@@ -154,7 +154,7 @@ export default {
},
toDetail(item) {
if(this.tabIndex == 0) {
uni.navigateTo({url: `./cooperationDetail?id=${item.id}&time=${item.createTime}`})
uni.navigateTo({url: `./cooperationDetail?id=${item.id}&type=${this.sendType}`})
} else {
uni.navigateTo({url: `./circleDetail??id=${item.id}&type=${this.sendType}`})
}

View File

@@ -154,40 +154,10 @@ export default {
choiceTime: '', // 定时发送时间
sendScope: '', // 0全部居民群、1按部门选择、2按网格选择
sendType: '0', // 0立即发送、1定时发送
wxGroups: [ // 发送范围
// {
// corpId: "ww596787bb70f08288",
// errorCode: null,
// errorMsg: null,
// groupCount: 1,
// groupIds: "wrytYEDgAAA5MGVJ3Ttb6ycbmxJ2Zv-Q",
// groupNames: "111",
// groupOwnerId: "d41d8cd98f00b204e9800998ecf8427e",
// groupOwnerName: "张硕",
// id: null,
// msgId: null,
// sendStatus: null,
// sendTime: null,
// taskId: null,
// },
// {
// corpId: "ww596787bb70f08288",
// errorCode: null,
// errorMsg: null,
// groupCount: 4,
// groupIds: "wrytYEDgAA-Llt9H1jr40WT1_RfOstWQ,wrytYEDgAADava7QSJGicwZg09nG_GXg,wrytYEDgAAKG6qd39fHWFkrTiT9vsSQQ,wrytYEDgAAPxVpqyzf4kwzwvtdE0nqbQ",
// groupNames: "慧政务需求沟通,临汾市政法委企微项目沟通,淄博企微项目沟通群,未命名群聊",
// groupOwnerId: "XieJin",
// groupOwnerName: "谢晋",
// id: null,
// msgId: null,
// sendStatus: null,
// sendTime: null,
// taskId: null,
// }
], // 送达居民群
wxGroups: [], // 送达居民群
filterCriteria: '',
taskEndTime: '', // 任务结束时间
sendChannel: 0,
},
forms: {
taskTitle: '',

View File

@@ -70,8 +70,6 @@ import echarts from "echarts";
export default {
data() {
return {
tabs: ["成员统计", "居民群统计"],
tabIndex: 0,
pieEcharts: null,
subIndex: 0,
tableData: [],
@@ -129,7 +127,7 @@ export default {
});
this.currentClickTime = +new Date();
let time = this.currentClickTime - this.firstClickTime;
if (time >= 3600000) {
if (time >= 3600000) {
this.$http.post("/app/whchatmomentstask/remindSend", null, {
params: {
id: this.id,

View File

@@ -20,7 +20,7 @@
<div>{{ detail.taskTitle }} <span :class="detail.status==0? 'status0': detail.status==1? 'status1': detail.status==2? 'status2':
detail.status == 3? 'status3':detail.status==4? 'status4': 'status5'">{{ $dict.getLabel('mstStatus', detail.status) }}</span></div>
<div>
创建时间: <span>{{ createTime }}</span>
创建时间: <span>{{ info.createTime }}</span>
</div>
</div>
<div class="header_right" @click="toDetail">查看详情</div>
@@ -108,7 +108,6 @@ export default {
subIndex0: 0,
subIndex1: 0,
tableData: [],
createTime: "",
id: "",
info: {},
current: 1,
@@ -128,6 +127,7 @@ export default {
],
update0: true,
update1: false,
type: '',
};
},
computed: {
@@ -147,7 +147,7 @@ export default {
},
onLoad(o) {
this.id = o.id;
this.createTime = o.time;
this.type = o.type
},
methods: {
tabClick(index) {
@@ -185,7 +185,7 @@ export default {
},
toDetail() {
uni.navigateTo({ url: `./detail?id=${this.id}` });
uni.navigateTo({ url: `./detail?id=${this.id}&type=${this.type}` });
},
// 提醒发送
remindSend() {

View File

@@ -59,7 +59,7 @@ export default {
this.$http.post('/app/appgirdinfo/listByInfo').then((res) => {
if (res?.data) {
let parents = res.data.map(e => e.parentGirdId)
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
this.allData = res.data.map(e => ({...e, isChecked: this.selected.find(i=> i.id == e.id), hasChildren: parents.includes(e.id)}))
this.gridInit()
}
}).then(()=> {
@@ -78,9 +78,7 @@ export default {
},
getGridsAndUsersByParent(id) {
this.treeList = this.allData.filter(e => (e.parentGirdId == id)).map(v=> ({...v,isChecked:this.selected.find(i=>i.id == v.id)}))
this.treeList
this.$forceUpdate()
this.treeList = this.allData.filter(e => (e.parentGirdId == id)).map(v=> ({...v, isChecked: this.selected.find(i=>i.id == v.id)}))
},
girdNameClick(row, index) {
this.userList = []
@@ -97,7 +95,7 @@ export default {
if(row.isChecked) {
this.selected.push(row)
} else {
let index=this.selected.findIndex(item=>row.id===item.id)
let index=this.selected.findIndex(item=>row.id == item.id)
index >= 0 && this.selected.splice(index, 1)
}
uni.setStorageSync('girdSelect', this.selected)