详情
This commit is contained in:
@@ -18,9 +18,12 @@
|
||||
有卫生部门人士表示:“疾病预防控制中心表示,下午2点左右系统将修复并恢复运行,但截止下午2时30分,还是没有恢复。”
|
||||
</div>
|
||||
|
||||
<!-- <img :src="item.url" v-for="(item,index) in data.files" :key="index" alt=""
|
||||
@click="preview(data.files, item.url)"> -->
|
||||
|
||||
<div class="btn_box">
|
||||
<div class="del" @click="deleteBtn">删除</div>
|
||||
<div class="edit" @click="editBtn">修改</div>
|
||||
<div class="del" @click="deleteBtn()">删除</div>
|
||||
<div class="edit" @click="linkTo(`./answerAdd`)">修改</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -33,14 +36,21 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
deleteBtn() {
|
||||
deleteBtn(id) {
|
||||
this.$confirm('确定要删除该回答吗?').then(()=> {
|
||||
this.$http.post(`/app/applearningquestion/deleteAnswer?id=${id}`,null, {
|
||||
params: {
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
preview(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
editBtn() {
|
||||
uni.navigateTo({url: './'})
|
||||
}
|
||||
},
|
||||
onShow() {},
|
||||
|
||||
|
||||
@@ -37,23 +37,33 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'answerList',
|
||||
appName: '学习问答',
|
||||
data() {
|
||||
return {
|
||||
|
||||
id: '',
|
||||
answersArr: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/applearningquestion/queryDetailById?id=${this.id}`).then(res=> {
|
||||
if(res?.data) {
|
||||
console.log(res);
|
||||
this.answersArr = res.data.answers
|
||||
}
|
||||
})
|
||||
},
|
||||
toDetail() {
|
||||
uni.navigateTo({url: `./answerDetail`})
|
||||
},
|
||||
toEdit() {},
|
||||
deleteBtn() {},
|
||||
toAdd() {
|
||||
uni.navigateTo({url: `./answerAdd`})
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.getDetail()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user