yyfang %!s(int64=3) %!d(string=hai) anos
pai
achega
21fd9a626f

+ 6 - 6
src/components/admin/routineMonitor.vue

@@ -108,7 +108,7 @@
 					</el-col>
 					<el-col style="margin-bottom: 5px;">
 						<el-button type="success" size="mini" plain @click="undertakeReport()">承担单位报告</el-button>
-						<el-button type="success" size="mini" plain @click="taskSample()">抽样单</el-button>
+						<el-button type="success" size="mini" plain @click="taskSample(scope.row.id)">抽样单</el-button>
 					</el-col>
 				</template>
 			</el-table-column>
@@ -301,18 +301,18 @@
 			add() {
 				this.$router.push('addTask')
 			},
-			ttaskSample() {
-				this.$router.push('taskSample')
-			},
 			takeTheLeadReport() {
 				this.$router.push('takeTheLeadReportList')
 			},
 			undertakeReport(){
 				this.$router.push('undertakeReport')
 			},
-			taskSample(){
-				this.$router.push('taskSample')
+			taskSample(id){
+				this.$router.push(
+					'taskSample')
+					params:{task_id:id}
 			},
+			
 			// 搜索
 			async searchData() {
 				this.queryInfo.pageNum = 1

+ 1 - 1
src/components/admin/taskSample.vue

@@ -179,7 +179,7 @@
 .block{
 	padding: 10px;
 }
-btns{
+.btns{
 	float:right;
 }
 </style>