bug
This commit is contained in:
@@ -168,7 +168,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getWechatList () {
|
getWechatList () {
|
||||||
this.instance.post(`/wxmpconfig/list?size=1000`).then(res => {
|
this.instance.post(`/api/wxmpconfig/list?size=1000`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.wechatList = res.data.records.map(v => {
|
this.wechatList = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
<template>
|
|
||||||
<ai-detail>
|
|
||||||
<template slot="title">
|
|
||||||
<ai-title title="详情" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
|
|
||||||
</ai-title>
|
|
||||||
</template>
|
|
||||||
<template slot="content">
|
|
||||||
<ai-card title="问答信息">
|
|
||||||
<template #content>
|
|
||||||
<p class="title">{{info.content}}</p>
|
|
||||||
<div class="title-text">{{info.createUserName}}发布于{{info.createTime}} <span>已有{{info.answerCount || 0}}个回答</span></div>
|
|
||||||
<div class="item" v-for="(item, index) in info.answers" :key="index">
|
|
||||||
<div class="flex">
|
|
||||||
<img :src="item.createUserAvatar" alt="">
|
|
||||||
<div class="user-info">
|
|
||||||
<h3>{{item.createUserName}}</h3>
|
|
||||||
<p>{{item.createUserDeptName}}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content" v-html="item.content"></div>
|
|
||||||
<ai-uploader :instance="instance" disabled v-model="item.files"></ai-uploader>
|
|
||||||
<p class="time"><span>发布于 </span>{{item.createTime}}</p>
|
|
||||||
</div>
|
|
||||||
<ai-empty v-if="!info.answers.length">暂无回答</ai-empty>
|
|
||||||
</template>
|
|
||||||
</ai-card>
|
|
||||||
</template>
|
|
||||||
</ai-detail>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'Detail',
|
|
||||||
props: {
|
|
||||||
instance: Function,
|
|
||||||
dict: Object,
|
|
||||||
params: Object
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
info: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.getInfo()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getInfo () {
|
|
||||||
this.instance.post(`/app/applearningquestion/queryDetailById?id=${this.params.id}`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
if (res.data) {
|
|
||||||
this.info = {...res.data}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancel () {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'List',
|
|
||||||
isRefresh: true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.title {
|
|
||||||
font-size: 22px;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 44px;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
.title-text {
|
|
||||||
color: #999!important;
|
|
||||||
margin-bottom: 24px;
|
|
||||||
font-size: 14px;
|
|
||||||
span {
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item {
|
|
||||||
margin-bottom: 32px;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
.flex {
|
|
||||||
display: flex;
|
|
||||||
img {
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
margin-right: 16px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
h3 {
|
|
||||||
line-height: 20px;
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 400;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.content {
|
|
||||||
margin: 16px 0;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
line-height: 30px;
|
|
||||||
color: #999;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.time {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
.img-list {
|
|
||||||
img {
|
|
||||||
width: 300px;
|
|
||||||
height: 300px;
|
|
||||||
margin: 0 8px 8px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item:nth-last-of-type(1) {
|
|
||||||
border-bottom: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () {
|
||||||
this.instance.post(`/wxmpconfig/list`, null, {
|
this.instance.post(`/api/wxmpconfig/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search
|
||||||
}
|
}
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
onAmountConfirm () {
|
onAmountConfirm () {
|
||||||
this.$refs.amountForm.validate((valid) => {
|
this.$refs.amountForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.instance.post(`/wxmpconfig/updateSettledAmount`, null, {
|
this.instance.post(`/api/wxmpconfig/updateSettledAmount`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.amountForm,
|
...this.amountForm,
|
||||||
id: this.id
|
id: this.id
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
onConfirm () {
|
onConfirm () {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.instance.post(`/wxmpconfig/addOrUpdate`, {
|
this.instance.post(`/api/wxmpconfig/addOrUpdate`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
id: this.id || ''
|
id: this.id || ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
|
|
||||||
remove (id) {
|
remove (id) {
|
||||||
this.$confirm('删除后不可恢复,确定删除该数据?').then(() => {
|
this.$confirm('删除后不可恢复,确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/wxmpconfig/delete?ids=${id}`).then(res => {
|
this.instance.post(`/api/wxmpconfig/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -120,7 +120,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getInfo () {
|
getInfo () {
|
||||||
this.instance.post(`wxmppublisheradposgeneral/statistics`, null, {
|
this.instance.post(`/api/wxmppublisheradposgeneral/statistics`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
startTime: this.search.type === '3' ? this.date[0] : '',
|
startTime: this.search.type === '3' ? this.date[0] : '',
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getList () {
|
getList () {
|
||||||
this.instance.post(`/wxmppublisheradposgeneral/list`, null, {
|
this.instance.post(`/api/wxmppublisheradposgeneral/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
startTime: this.search.type === '3' ? this.date[0] : '',
|
startTime: this.search.type === '3' ? this.date[0] : '',
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getWechatList () {
|
getWechatList () {
|
||||||
this.instance.post(`/wxmpconfig/list?size=1000`).then(res => {
|
this.instance.post(`/api/wxmpconfig/list?size=1000`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.wechatList = res.data.records.map(v => {
|
this.wechatList = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user