This commit is contained in:
yanran200730
2023-06-09 13:44:23 +08:00
parent 27e6fe0eb2
commit fc0f92a7de
4 changed files with 8 additions and 131 deletions

View File

@@ -168,7 +168,7 @@ export default {
},
getWechatList () {
this.instance.post(`/wxmpconfig/list?size=1000`).then(res => {
this.instance.post(`/api/wxmpconfig/list?size=1000`).then(res => {
if (res.code == 0) {
this.wechatList = res.data.records.map(v => {
return {

View File

@@ -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>

View File

@@ -126,7 +126,7 @@
methods: {
getList () {
this.instance.post(`/wxmpconfig/list`, null, {
this.instance.post(`/api/wxmpconfig/list`, null, {
params: {
...this.search
}
@@ -168,7 +168,7 @@
onAmountConfirm () {
this.$refs.amountForm.validate((valid) => {
if (valid) {
this.instance.post(`/wxmpconfig/updateSettledAmount`, null, {
this.instance.post(`/api/wxmpconfig/updateSettledAmount`, null, {
params: {
...this.amountForm,
id: this.id
@@ -188,7 +188,7 @@
onConfirm () {
this.$refs.form.validate((valid) => {
if (valid) {
this.instance.post(`/wxmpconfig/addOrUpdate`, {
this.instance.post(`/api/wxmpconfig/addOrUpdate`, {
...this.form,
id: this.id || ''
}).then(res => {
@@ -205,7 +205,7 @@
remove (id) {
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) {
this.$message.success('删除成功!')
this.getList()

View File

@@ -120,7 +120,7 @@
},
getInfo () {
this.instance.post(`wxmppublisheradposgeneral/statistics`, null, {
this.instance.post(`/api/wxmppublisheradposgeneral/statistics`, null, {
params: {
...this.search,
startTime: this.search.type === '3' ? this.date[0] : '',
@@ -136,7 +136,7 @@
},
getList () {
this.instance.post(`/wxmppublisheradposgeneral/list`, null, {
this.instance.post(`/api/wxmppublisheradposgeneral/list`, null, {
params: {
...this.search,
startTime: this.search.type === '3' ? this.date[0] : '',
@@ -151,7 +151,7 @@
},
getWechatList () {
this.instance.post(`/wxmpconfig/list?size=1000`).then(res => {
this.instance.post(`/api/wxmpconfig/list?size=1000`).then(res => {
if (res.code == 0) {
this.wechatList = res.data.records.map(v => {
return {