1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <view class="">
- <MapView calss="mapview"></MapView>
- <van-list class="checklist" v-model="loading" :immediate-check="false" :error.sync="error"
- error-text="请求失败,点击重新加载" finished-text="没有更多了~" @load="getList">
- <view class="list-item" v-for="(item, key) in tableData" :key="key" @click="goDetail(item)">
- <div class="nameTitle">{{ item.name }}</div>
- <div>下发时间:{{ item.jsdw }}</div>
- <div>结束时间:{{ item.jsdw }}</div>
- <div>核查图斑:{{ item.spotsnumber || 0 }}个</div>
- <div>核查人员:{{ item.jsdw }}</div>
- <div @click="navigation">导航</div>
- <div @click="upload">上传</div>
- <view class="status">{{ item.status }}</view>
- </view>
- </van-list>
- </view>
- </template>
- <script>
- import MapView from "./MapView.vue";
- import {
- listPcsjXQList
- } from "@/api/apis.js";
- import {
- handleNavigation
- } from "./mapto.js";
- import {
- chooseImage,
- chooseVideo,
- chooseMedia
- } from "@/utils/choose.js";
- export default {
- name: "check",
- components: {
- MapView,
- },
- data() {
- return {
- queryParams: {
- jcbh: "", //监测编号
- pageNum: 1,
- pageSize: 10,
- pcsjid: "",
- },
- loading: false,
- tableData: [{}],
- };
- },
- mounted() {},
- onShow(options) {
- uni.getStorage({
- key: "my_param",
- success: (res) => {
- this.queryParams.id = res.data.id;
- console.log("获取的参数是:", res.data);
- // this.getList();
- },
- });
- },
- unmounted() {},
- methods: {
- getList() {
- listPcsjXQList(this.queryParams).then((response) => {
- this.tableData = response.rows;
- this.total = response.total;
- // this.open = true;
- // this.title = "修改监管批次数据";
- // this.initVectorLayer("mapDiv");
- // this.initVectorLayer("mapCon1");
- // this.initVectorLayer("mapCon2");
- // this.addGeoJson("mapDiv");
- // this.addGeoJson("mapCon1");
- // this.addGeoJson("mapCon2");
- });
- },
- navigation() {
- console.log("s-xsx");
- handleNavigation({
- latitude: 39.9042,
- longitude: 116.4074,
- name: "地址名称",
- address: "地址详情",
- selfLocation: {},
- });
- },
- upload() {
- console.log(uni, '---', uni.chooseMedia)
- chooseMedia()
- }
- },
- };
- </script>
- <style scoped>
- .checklist {
- width: 100%;
- height: 50vh;
- }
- </style>
|