随手拍
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
<span class="card-left">照片</span>
|
<span class="card-left">照片</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img :src="item.url" alt="" v-for="(item, i) in data.files" :key="i" />
|
<img :src="item.url" alt="" v-for="(item, i) in data.files" :key="i" @click="previewImage(data.files, item.url)" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="header-bottom">
|
<div class="header-bottom">
|
||||||
@@ -171,6 +171,12 @@ export default {
|
|||||||
toContent(number) {
|
toContent(number) {
|
||||||
uni.navigateTo({ url: `./Content?number=${number}&groupId=${this.data.groupId}&groupName=${this.data.groupName}&id=${this.id}` })
|
uni.navigateTo({ url: `./Content?number=${number}&groupId=${this.data.groupId}&groupName=${this.data.groupName}&id=${this.id}` })
|
||||||
},
|
},
|
||||||
|
previewImage(images, img) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: images.map(v => v.url),
|
||||||
|
current: img
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
||||||
<div class="select-top">
|
<div class="select-top">
|
||||||
<div class="tab-item" @click="toGirdList">
|
<div class="tab-item" @click="show = true">
|
||||||
<span class="color-666">所属网格</span>
|
<span class="color-666">{{girdNameText}}</span>
|
||||||
<img src="./components/img/down-icon.png" alt="" />
|
<img src="./components/img/down-icon.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<u-select v-model="show" :list="myGirdList" value-name="id" label-name="girdName" @confirm="confirm"></u-select>
|
<u-select v-model="show" :list="myGirdList" value-name="id" label-name="girdName" @confirm="confirm"></u-select>
|
||||||
|
|
||||||
<div class="tab-item" @click="showType = true">
|
<div class="tab-item" @click="showType = true">
|
||||||
<span class="color-666">办件状态</span>
|
<span class="color-666">{{eventStatusText}}</span>
|
||||||
<img src="./components/img/down-icon.png" alt="" />
|
<img src="./components/img/down-icon.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -67,19 +67,17 @@ export default {
|
|||||||
name: '办件历史',
|
name: '办件历史',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
currentTabs: 0,
|
currentTabs: 0,
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
|
||||||
pages: 0,
|
pages: 0,
|
||||||
|
|
||||||
show: false,
|
show: false,
|
||||||
myGirdList: [],
|
myGirdList: [],
|
||||||
girdName: '',
|
girdId: '',
|
||||||
|
girdNameText: '所属网格',
|
||||||
showType: false,
|
showType: false,
|
||||||
listType: [],
|
listType: [],
|
||||||
eventStatus: '',
|
eventStatus: '',
|
||||||
|
eventStatusText: '办件状态'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -93,11 +91,20 @@ export default {
|
|||||||
this.current = 1
|
this.current = 1
|
||||||
this.girdList()
|
this.girdList()
|
||||||
this.getList()
|
this.getList()
|
||||||
|
uni.$on('nextList', ()=>{
|
||||||
|
this.current ++
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('clapEventStatus').then(() => {
|
this.$dict.load('clapEventStatus').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.listType = this.$dict.getDict('clapEventStatus')
|
this.listType = this.$dict.getDict('clapEventStatus')
|
||||||
|
var all = {
|
||||||
|
dictValue: '',
|
||||||
|
dictName: '全部'
|
||||||
|
}
|
||||||
|
this.listType.unshift(all)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -109,7 +116,7 @@ export default {
|
|||||||
current: this.current,
|
current: this.current,
|
||||||
searchType: this.currentTabs == 1 ? '1' : '0',
|
searchType: this.currentTabs == 1 ? '1' : '0',
|
||||||
eventStatus: this.eventStatus,
|
eventStatus: this.eventStatus,
|
||||||
girdName: this.girdName,
|
girdId: this.girdId
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -121,41 +128,36 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toGirdList() {
|
|
||||||
this.show = true
|
|
||||||
},
|
|
||||||
|
|
||||||
girdList() {
|
girdList() {
|
||||||
this.$http
|
this.$http.post(`/app/appgirdmemberinfo/queryMyGirdList`, null, {
|
||||||
.post(`/app/appgirdmemberinfo/queryMyGirdList`, null, {
|
params: {
|
||||||
params: {
|
size: 9999,
|
||||||
size: 9999,
|
},
|
||||||
},
|
})
|
||||||
})
|
.then((res) => {
|
||||||
.then((res) => {
|
if (res.code == 0) {
|
||||||
if (res.code == 0) {
|
this.myGirdList = res.data
|
||||||
this.myGirdList = res.data
|
var all = {
|
||||||
|
id: '',
|
||||||
|
girdName: '全部'
|
||||||
}
|
}
|
||||||
})
|
this.myGirdList.unshift(all)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
if (this.show) {
|
if (this.show) {
|
||||||
if (e[0].value) {
|
this.girdNameText = e[0].label
|
||||||
console.log(e)
|
this.girdId = e[0].value
|
||||||
|
|
||||||
this.girdName = e[0].label
|
|
||||||
this.current = 1
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.showType) {
|
if (this.showType) {
|
||||||
console.log(e)
|
|
||||||
|
|
||||||
this.eventStatus = e[0].value
|
this.eventStatus = e[0].value
|
||||||
this.current = 1
|
this.eventStatusText = e[0].label
|
||||||
this.getList()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
goDetail(item) {
|
goDetail(item) {
|
||||||
@@ -166,7 +168,9 @@ export default {
|
|||||||
this.current = 1
|
this.current = 1
|
||||||
this.datas = []
|
this.datas = []
|
||||||
this.eventStatus = ''
|
this.eventStatus = ''
|
||||||
this.girdName = ''
|
this.girdId = ''
|
||||||
|
this.girdNameText = '所属网格'
|
||||||
|
this.eventStatusText = '办件状态'
|
||||||
this.currentTabs = index
|
this.currentTabs = index
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@@ -175,10 +179,6 @@ export default {
|
|||||||
uni.navigateTo({ url })
|
uni.navigateTo({ url })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
|
||||||
this.current = this.current + 1
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user