updata
This commit is contained in:
parent
5c882cc2f9
commit
1803df3994
@ -434,24 +434,21 @@ export default {
|
||||
// 否则使用默认的reqProductConsult
|
||||
response = await reqProductConsult(submitData)
|
||||
}
|
||||
|
||||
this.handleResponse(response)
|
||||
} catch (error) {
|
||||
console.error('提交咨询失败:', error)
|
||||
this.$message.error(error.message || '提交失败,请稍后再试!')
|
||||
this.$emit('error', error)
|
||||
this.$message.error('提交失败,请稍后再试!')
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
|
||||
// 处理响应结果 - 修改后的方法
|
||||
handleResponse(response) {
|
||||
// 根据你的API响应结构,status为true表示成功
|
||||
if (response && response.status === true) {
|
||||
if (response && response.status === 'true') {
|
||||
this.handleClose()
|
||||
|
||||
this.$message.success(response.msg || response.message || '提交成功')
|
||||
this.$message.success('提交成功')
|
||||
} else {
|
||||
this.$message.error('提交失败,请稍后再试!')
|
||||
}
|
||||
|
||||
@ -11,9 +11,9 @@
|
||||
<div class="solve">
|
||||
<div class="title">智能体医疗行业综合解决方案</div>
|
||||
<ul class="menu">
|
||||
<li @click="currentMenuData=menuData['诊前就医助手']">诊前就医助手</li>
|
||||
<li @click="currentMenuData=menuData['健康管家']">健康管家</li>
|
||||
<li @click="currentMenuData=menuData['报告解读与生成']">报告解读与生成</li>
|
||||
<li @click="currentMenuData = menuData['诊前就医助手']">诊前就医助手</li>
|
||||
<li @click="currentMenuData = menuData['健康管家']">健康管家</li>
|
||||
<li @click="currentMenuData = menuData['报告解读与生成']">报告解读与生成</li>
|
||||
</ul>
|
||||
<div class="menuContent">
|
||||
<div class="leftBox">
|
||||
@ -21,14 +21,12 @@
|
||||
<p class="description">
|
||||
{{ currentMenuData.description }}</p>
|
||||
<ul class="tag">
|
||||
<li v-for="(item,index) in currentMenuData.tags" :key="index">{{ item }}</li>
|
||||
<li v-for="(item, index) in currentMenuData.tags" :key="index">{{ item }}</li>
|
||||
</ul>
|
||||
<div class="btn" @click="openTalk">立即体验</div>
|
||||
</div>
|
||||
<div class="rightBox">
|
||||
<img
|
||||
:src="currentMenuData.image"
|
||||
alt="">
|
||||
<img :src="currentMenuData.image" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -36,7 +34,7 @@
|
||||
<div class="zhinengti">
|
||||
<div class="title">智能体</div>
|
||||
<ul style="margin-top: 50px" class="exampleUl">
|
||||
<li>
|
||||
<!-- <li>
|
||||
<div class="topBox">
|
||||
<span class="title">医学视觉溯源</span>
|
||||
<span class="description">识别各类医学影像图片,自动圈出病灶清晰边际</span>
|
||||
@ -44,12 +42,12 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
<img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=3840&q=75"
|
||||
alt=""> -->
|
||||
alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
</li> -->
|
||||
<!-- <li>
|
||||
<div class="topBox">
|
||||
<span class="title">中医舌诊/面诊</span>
|
||||
<span class="description">AI中医助手支持舌象面部分析</span>
|
||||
@ -57,11 +55,11 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
<img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zyszmz.47a26b39.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
alt="">
|
||||
</div>
|
||||
</li>
|
||||
</li> -->
|
||||
<li>
|
||||
<div class="topBox">
|
||||
<span class="title">健康科普</span>
|
||||
@ -70,9 +68,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-jkkp.bb333447.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/jiankangkepu_8232c9b.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -83,9 +79,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-yxbgjd.1545a7db.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yixuebaogao_6bd884b.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -96,9 +90,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-ypzx.b15e3a64.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yaopinziuxn_97c4d07.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -109,9 +101,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=3840&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/pifubingzixun_011a7a2.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -122,9 +112,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-fdz.2c69db08.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/fendaozhen_b113a82.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@ -136,9 +124,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-ywz.9440eb4a.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yuwenzhen_e09f512.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -149,9 +135,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zskwd.53def0fb.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yilaiozhishiwenda_f0d72c1.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -162,9 +146,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/linchuang_5166494.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -175,9 +157,7 @@
|
||||
<span class="btn" @click="openTalk">立即体验</span>
|
||||
</div>
|
||||
<div class="bottonBox">
|
||||
<!-- <img
|
||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zzzz.fe15b749.png&w=1200&q=75"
|
||||
alt=""> -->
|
||||
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/zhengzhuangzizhen_a6f413b.png" alt="">
|
||||
</div>
|
||||
</li>
|
||||
<li class="lastImg">
|
||||
@ -197,7 +177,7 @@ import Talk from "@/views/homePage/dialog/talk/index.vue";
|
||||
|
||||
export default Vue.extend({
|
||||
name: "hospital",
|
||||
components: {Talk},
|
||||
components: { Talk },
|
||||
data() {
|
||||
return {
|
||||
currentMenuData: {
|
||||
@ -286,7 +266,8 @@ export default Vue.extend({
|
||||
}
|
||||
|
||||
.solve {
|
||||
display: flex;;
|
||||
display: flex;
|
||||
;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
@ -1,28 +1,96 @@
|
||||
<template>
|
||||
<div class="backgroundColor">
|
||||
<el-button size="small" style="margin-bottom: 5px;" type="primary" @click="getTableData('1')">
|
||||
<i class="el-icon-upload2"> </i>
|
||||
全部导出</el-button>
|
||||
<el-table border :data="tableData" style="width: 100%">
|
||||
<div class="consulting-container">
|
||||
<!-- 操作栏 -->
|
||||
<div class="operation-bar">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-upload2"
|
||||
size="small"
|
||||
@click="getTableData('1')"
|
||||
class="export-btn"
|
||||
>
|
||||
全部导出
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<el-table-column prop="name" label="姓名" min-width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="phone" label="手机号" min-width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="email" label="邮箱" min-width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="内容" min-width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="update_time" label="咨询时间" min-width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="update_time" label="反馈状态" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" >{{ scope.row.feedback === '1' ? '已回复' : '未回复' }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 表格区域 -->
|
||||
<div class="table-container">
|
||||
<el-table
|
||||
:data="tableData"
|
||||
border
|
||||
stripe
|
||||
style="width: 100%"
|
||||
class="consulting-table"
|
||||
empty-text="暂无咨询数据"
|
||||
:header-cell-style="{background: '#f5f7fa', color: '#606266'}"
|
||||
>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="phone"
|
||||
label="手机号"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="email"
|
||||
label="邮箱"
|
||||
min-width="180"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="content"
|
||||
label="内容"
|
||||
min-width="200"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="update_time"
|
||||
label="咨询时间"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="反馈状态"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag
|
||||
:type="scope.row.feedback === '1' ? 'success' : 'info'"
|
||||
size="small"
|
||||
effect="plain"
|
||||
>
|
||||
{{ scope.row.feedback === '1' ? '已回复' : '未回复' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reqSearchUserInquiry } from '@/api/ncmatch'
|
||||
import XLSX from 'xlsx'
|
||||
@ -59,4 +127,76 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
||||
<style scoped>
|
||||
.consulting-container {
|
||||
padding: 20px;
|
||||
background: #f0f2f5;
|
||||
min-height: calc(100vh - 84px);
|
||||
}
|
||||
|
||||
.operation-bar {
|
||||
background: #fff;
|
||||
padding: 16px 20px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.export-btn {
|
||||
font-weight: 500;
|
||||
padding: 8px 15px;
|
||||
box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.export-btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px rgba(64, 158, 255, 0.4);
|
||||
}
|
||||
|
||||
.table-container {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.consulting-table {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 表格行悬停效果 */
|
||||
.consulting-table ::v-deep .el-table__body tr:hover > td {
|
||||
background-color: #f5f7fa !important;
|
||||
}
|
||||
|
||||
/* 表格边框优化 */
|
||||
.consulting-table ::v-deep .el-table--border {
|
||||
border: 1px solid #ebeef5;
|
||||
}
|
||||
|
||||
.consulting-table ::v-deep .el-table--border th,
|
||||
.consulting-table ::v-deep .el-table--border td {
|
||||
border-right: 1px solid #ebeef5;
|
||||
}
|
||||
|
||||
/* 表格斑马纹颜色 */
|
||||
.consulting-table ::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
/* 状态标签样式优化 */
|
||||
.consulting-table ::v-deep .el-tag {
|
||||
border-radius: 12px;
|
||||
padding: 0 10px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
/* 内容过长时的省略号样式 */
|
||||
.consulting-table ::v-deep .el-tooltip__popper {
|
||||
max-width: 400px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user