Parcourir la source

解决参数传错问题

liyangzheng il y a 1 an
Parent
commit
78f390f2cf

+ 3 - 3
pagesA/fire/fire_station/fireStation_details/fireStation_details.vue

@@ -27,9 +27,9 @@
 				<button @click="goWorkNum" class="manyBtn">查看值班人</button>
 			</view>
 			<view class="buju">
-				<text class="miaoshu">负责人 :</text>
+				<text class="miaoshu">站长 :</text>
 				<text>{{ tableData.charger }}</text>
-				<button @click="goBigNum" class="manyBtn">查看负责人</button>
+				<button @click="goBigNum" class="manyBtn">查看站长</button>
 			</view>
 			<view class="buju">
 				<text class="miaoshu">建站日期 :</text>
@@ -223,7 +223,7 @@
 	}
 	.manyBtn{
 		display: inline-block;
-		width: 100rpx;
+		width: 180rpx;
 		height: 40rpx;
 		font-size: 20rpx;
 		line-height: 40rpx;

+ 7 - 4
pagesA/fire/fire_station/people_fireStation/people_fireStation.vue

@@ -226,6 +226,7 @@
 			addSure() {
 				if (this.$route.query.addId) {
 					if (!this.userRules && !this.phoneRules && !this.nameRules) {
+						console.log(this.membersList[0].worker,'988');
 						creatFirePeople({
 							empName: this.membersList[0].name,
 							empType: this.membersList[0].worker,
@@ -272,10 +273,12 @@
 				}
 			},
 			change(e) {
+				this.membersList[0].worker = e
 				// console.log("e:", e);
 			},
 			change1(e) {
-				// console.log("e:", e);
+				this.membersList[0].worker = e
+				// console.log("e1:", e);
 			},
 			getbackid() {
 				let x = localStorage.getItem('getUserInfo_key')
@@ -296,7 +299,7 @@
 						pageNo: 1,
 						pageSize: 10,
 						microstationid: this.fireStationId,
-						duty: num
+						empType: num
 					}).then(res => {
 						// console.log(res, '888');
 						this.tableList = res.data.list
@@ -307,7 +310,7 @@
 						pageNo: 1,
 						pageSize: 10,
 						microstationid: this.fireStationId,
-						duty: num
+						empType: num
 					}).then(res => {
 						// console.log(res, '888');
 						this.tableList = res.data.list
@@ -318,7 +321,7 @@
 						pageNo: 1,
 						pageSize: 10,
 						microstationid: this.fireStationId,
-						duty: num
+						empType: num
 					}).then(res => {
 						// console.log(res, '888');
 						this.tableList = res.data.list