|
@@ -3,7 +3,7 @@
|
|
|
<view class="gpfwNav">
|
|
|
<ul >
|
|
|
<li v-for="(item,index) in gridtTypeLits" :key="index" >
|
|
|
- <image :src="loadImgSrc(item.fileUrl)" @click="querygrid">{{item.name}}</image>
|
|
|
+ <image :src="'http://127.0.0.1:8080'+item.fileUrl" @click="querygrid(item)">{{item.name}}</image>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</view>
|
|
@@ -14,7 +14,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
getList
|
|
|
- } from '@/api/handleAffairs/handleAffairs.js';
|
|
|
+ } from '@/api/handleAffairs/gridType.js';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -26,33 +26,23 @@
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
- querygrid(){
|
|
|
- console.log(1)
|
|
|
+ querygrid(item){
|
|
|
+ console.log(item)
|
|
|
+ uni.setStorageSync('id', item.id)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/gridQuery/gridQuery',
|
|
|
+
|
|
|
+ });
|
|
|
},
|
|
|
getList() {
|
|
|
const _that = this
|
|
|
- // getList().then(res =>{
|
|
|
- // this.gridtTypeLits = res
|
|
|
- // console.log(res)
|
|
|
- // });
|
|
|
- uni.request({
|
|
|
- url: 'http://localhost:88/dev-api/jnb/gridType/list',
|
|
|
- header: {Authorization:"Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjNjNWZjYTQzLTYyN2ItNGYwMC04MGJlLWU0YjBkMjA3Y2U2ZiJ9.o0mAHq3FPNIyVk3cewMMzWdLZRAC5EG4eUNzKq2K8Gq_A9s5TUJYn0vWMzVtbdm0BnAUOrxnwvyEvNXcRj3f0w"},
|
|
|
- data: {
|
|
|
- yesOrNoShow: "0"
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- _that.gridtTypeLits = res.data.rows
|
|
|
- // this.gridtTypeLits = res.data.rows
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
+ let query = {yesOrNoShow: "0"};
|
|
|
+ getList(query).then(res =>{
|
|
|
+ _that.gridtTypeLits = res.rows
|
|
|
+ console.log(res)
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
- // go() {
|
|
|
- // uni.navigateTo({
|
|
|
- // url: '/pages/themeType/themeType'
|
|
|
- // });
|
|
|
- // }
|
|
|
}
|
|
|
}
|
|
|
</script>
|