浏览代码

事项列表加限制

conghelong 1 年之前
父节点
当前提交
a9895e698d

+ 1 - 1
pages/handleAffairs/dept/dept.vue

@@ -50,7 +50,7 @@
 		methods: {
 			onMatters(data){
         console.log(data)
-				uni.setStorageSync('data', {department:data.name,examine:1})
+				uni.setStorageSync('data', {department:data.id,examine:1})
 				uni.navigateTo({
 					url: '/pages/handleAffairs/matterAll/matterAll',
 				});

+ 2 - 2
pages/handleAffairs/index.vue

@@ -180,9 +180,9 @@ import { listDept,collectlist } from '@/api/handleAffairs/matter.js';
 			},
 			getListDept() {
 			    const _that = this;
-			    let query = { yesOrNoShow: "0" };
+
 			    // 获取推荐列表数据
-			    listDept(query).then(res => {
+			    listDept().then(res => {
 			        _that.recommendList = res.rows;
 
 			    });

+ 2 - 0
pages/handleAffairs/matterAll/matterAll.vue

@@ -74,7 +74,9 @@
 			getMatters() {
 				let _that = this
 				listMatters(_that.queryForm).then(res => {
+					
 					_that.dataList = res.rows
+					console.log("5555555555555555",_that.dataList)
 					_that.total = res.total
 
 				})

+ 1 - 0
pages/handleAffairs/mattercontent/mattercontent.vue

@@ -62,6 +62,7 @@
 				const matterId = this.matterlist.id
 				getsc({ matterId , userId }).then(res => {
 					this.isFavorite = res.data;
+					console.log('111111111111111111',this.isFavorite)
 				});
 			},
 		},

+ 1 - 1
pages/handleAffairs/topic/topic.vue

@@ -45,7 +45,7 @@
 		},
 		methods: {
 			onMatters(data){
-				uni.setStorageSync('data', {type:data.deptName,examine:1})
+				uni.setStorageSync('data', {type:data.id,examine:1})
 				uni.navigateTo({
 					url: '/pages/handleAffairs/matterAll/matterAll',
 				});