updata
This commit is contained in:
parent
5c882cc2f9
commit
1803df3994
@ -434,24 +434,21 @@ export default {
|
|||||||
// 否则使用默认的reqProductConsult
|
// 否则使用默认的reqProductConsult
|
||||||
response = await reqProductConsult(submitData)
|
response = await reqProductConsult(submitData)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.handleResponse(response)
|
this.handleResponse(response)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('提交咨询失败:', error)
|
console.error('提交咨询失败:', error)
|
||||||
this.$message.error(error.message || '提交失败,请稍后再试!')
|
this.$message.error('提交失败,请稍后再试!')
|
||||||
this.$emit('error', error)
|
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 处理响应结果 - 修改后的方法
|
|
||||||
handleResponse(response) {
|
handleResponse(response) {
|
||||||
// 根据你的API响应结构,status为true表示成功
|
// 根据你的API响应结构,status为true表示成功
|
||||||
if (response && response.status === true) {
|
if (response && response.status === 'true') {
|
||||||
this.handleClose()
|
this.handleClose()
|
||||||
|
|
||||||
this.$message.success(response.msg || response.message || '提交成功')
|
this.$message.success('提交成功')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('提交失败,请稍后再试!')
|
this.$message.error('提交失败,请稍后再试!')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,9 +11,9 @@
|
|||||||
<div class="solve">
|
<div class="solve">
|
||||||
<div class="title">智能体医疗行业综合解决方案</div>
|
<div class="title">智能体医疗行业综合解决方案</div>
|
||||||
<ul class="menu">
|
<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>
|
</ul>
|
||||||
<div class="menuContent">
|
<div class="menuContent">
|
||||||
<div class="leftBox">
|
<div class="leftBox">
|
||||||
@ -21,14 +21,12 @@
|
|||||||
<p class="description">
|
<p class="description">
|
||||||
{{ currentMenuData.description }}</p>
|
{{ currentMenuData.description }}</p>
|
||||||
<ul class="tag">
|
<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>
|
</ul>
|
||||||
<div class="btn" @click="openTalk">立即体验</div>
|
<div class="btn" @click="openTalk">立即体验</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBox">
|
<div class="rightBox">
|
||||||
<img
|
<img :src="currentMenuData.image" alt="">
|
||||||
:src="currentMenuData.image"
|
|
||||||
alt="">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -36,7 +34,7 @@
|
|||||||
<div class="zhinengti">
|
<div class="zhinengti">
|
||||||
<div class="title">智能体</div>
|
<div class="title">智能体</div>
|
||||||
<ul style="margin-top: 50px" class="exampleUl">
|
<ul style="margin-top: 50px" class="exampleUl">
|
||||||
<li>
|
<!-- <li>
|
||||||
<div class="topBox">
|
<div class="topBox">
|
||||||
<span class="title">医学视觉溯源</span>
|
<span class="title">医学视觉溯源</span>
|
||||||
<span class="description">识别各类医学影像图片,自动圈出病灶清晰边际</span>
|
<span class="description">识别各类医学影像图片,自动圈出病灶清晰边际</span>
|
||||||
@ -44,12 +42,12 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<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"
|
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=3840&q=75"
|
||||||
alt=""> -->
|
alt="">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li> -->
|
||||||
<li>
|
<!-- <li>
|
||||||
<div class="topBox">
|
<div class="topBox">
|
||||||
<span class="title">中医舌诊/面诊</span>
|
<span class="title">中医舌诊/面诊</span>
|
||||||
<span class="description">AI中医助手支持舌象面部分析</span>
|
<span class="description">AI中医助手支持舌象面部分析</span>
|
||||||
@ -57,11 +55,11 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<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"
|
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zyszmz.47a26b39.png&w=1200&q=75"
|
||||||
alt=""> -->
|
alt="">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li> -->
|
||||||
<li>
|
<li>
|
||||||
<div class="topBox">
|
<div class="topBox">
|
||||||
<span class="title">健康科普</span>
|
<span class="title">健康科普</span>
|
||||||
@ -70,9 +68,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/jiankangkepu_8232c9b.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-jkkp.bb333447.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -83,9 +79,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yixuebaogao_6bd884b.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-yxbgjd.1545a7db.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -96,9 +90,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yaopinziuxn_97c4d07.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-ypzx.b15e3a64.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -109,9 +101,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/pifubingzixun_011a7a2.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=3840&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -122,9 +112,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/fendaozhen_b113a82.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-fdz.2c69db08.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@ -136,9 +124,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yuwenzhen_e09f512.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-ywz.9440eb4a.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -149,9 +135,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/yilaiozhishiwenda_f0d72c1.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zskwd.53def0fb.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -162,9 +146,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/linchuang_5166494.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-lcfzjc.62ee97da.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -175,9 +157,7 @@
|
|||||||
<span class="btn" @click="openTalk">立即体验</span>
|
<span class="btn" @click="openTalk">立即体验</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottonBox">
|
<div class="bottonBox">
|
||||||
<!-- <img
|
<img src="https://bce.bdstatic.com/p3m/common-service/uploads/zhengzhuangzizhen_a6f413b.png" alt="">
|
||||||
src="https://01.baidu.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fagent-img-zzzz.fe15b749.png&w=1200&q=75"
|
|
||||||
alt=""> -->
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="lastImg">
|
<li class="lastImg">
|
||||||
@ -197,7 +177,7 @@ import Talk from "@/views/homePage/dialog/talk/index.vue";
|
|||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
name: "hospital",
|
name: "hospital",
|
||||||
components: {Talk},
|
components: { Talk },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentMenuData: {
|
currentMenuData: {
|
||||||
@ -286,7 +266,8 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.solve {
|
.solve {
|
||||||
display: flex;;
|
display: flex;
|
||||||
|
;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@ -1,28 +1,96 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="backgroundColor">
|
<div class="consulting-container">
|
||||||
<el-button size="small" style="margin-bottom: 5px;" type="primary" @click="getTableData('1')">
|
<!-- 操作栏 -->
|
||||||
<i class="el-icon-upload2"> </i>
|
<div class="operation-bar">
|
||||||
全部导出</el-button>
|
<el-button
|
||||||
<el-table border :data="tableData" style="width: 100%">
|
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>
|
<div class="table-container">
|
||||||
<el-table-column prop="phone" label="手机号" min-width="180">
|
<el-table
|
||||||
</el-table-column>
|
:data="tableData"
|
||||||
<el-table-column prop="email" label="邮箱" min-width="180">
|
border
|
||||||
</el-table-column>
|
stripe
|
||||||
<el-table-column prop="content" label="内容" min-width="180">
|
style="width: 100%"
|
||||||
</el-table-column>
|
class="consulting-table"
|
||||||
<el-table-column prop="update_time" label="咨询时间" min-width="180">
|
empty-text="暂无咨询数据"
|
||||||
</el-table-column>
|
:header-cell-style="{background: '#f5f7fa', color: '#606266'}"
|
||||||
<el-table-column prop="update_time" label="反馈状态" min-width="180">
|
>
|
||||||
<template slot-scope="scope">
|
<el-table-column
|
||||||
<el-button type="text" >{{ scope.row.feedback === '1' ? '已回复' : '未回复' }}</el-button>
|
prop="name"
|
||||||
</template>
|
label="姓名"
|
||||||
</el-table-column>
|
min-width="120"
|
||||||
</el-table>
|
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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { reqSearchUserInquiry } from '@/api/ncmatch'
|
import { reqSearchUserInquiry } from '@/api/ncmatch'
|
||||||
import XLSX from 'xlsx'
|
import XLSX from 'xlsx'
|
||||||
@ -59,4 +127,76 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</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