提交 41304f44 编写于 作者: yi.li's avatar yi.li

量表链接修改及小红点样样式修改

上级 cc152ca5
...@@ -21,6 +21,7 @@ export const envConfig = { ...@@ -21,6 +21,7 @@ export const envConfig = {
followUpSC: 'https://dev-sc.yunqueyi.com', followUpSC: 'https://dev-sc.yunqueyi.com',
saasDomainUrl: 'https://dev-saas.yunqueyi.com/', saasDomainUrl: 'https://dev-saas.yunqueyi.com/',
workApiUrl: 'https://dev-work.yunqueyi.com/web', workApiUrl: 'https://dev-work.yunqueyi.com/web',
workApiSrc: 'https://dev-work.yunqueyi.com',
}, },
dev: { dev: {
baseUrl: 'https://dev-sc.yunqueyi.com/', baseUrl: 'https://dev-sc.yunqueyi.com/',
...@@ -34,6 +35,7 @@ export const envConfig = { ...@@ -34,6 +35,7 @@ export const envConfig = {
followUpSC: 'https://dev-sc.yunqueyi.com', followUpSC: 'https://dev-sc.yunqueyi.com',
saasDomainUrl: 'https://dev-saas.yunqueyi.com/', saasDomainUrl: 'https://dev-saas.yunqueyi.com/',
workApiUrl: 'https://dev-work.yunqueyi.com/web', workApiUrl: 'https://dev-work.yunqueyi.com/web',
workApiSrc: 'https://dev-work.yunqueyi.com',
}, },
test: { test: {
baseUrl: 'https://test1-sc.yunqueyi.com/', baseUrl: 'https://test1-sc.yunqueyi.com/',
...@@ -47,6 +49,7 @@ export const envConfig = { ...@@ -47,6 +49,7 @@ export const envConfig = {
yuequeyiIndexUrl: 'https://test1.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://test1.yunqueyi.com/pica_index.html',
saasDomainUrl: 'https://test1.yunqueyi.com/', saasDomainUrl: 'https://test1.yunqueyi.com/',
workApiUrl: 'https://test1-work.yunqueyi.com/web', workApiUrl: 'https://test1-work.yunqueyi.com/web',
workApiSrc: 'https://test1-work.yunqueyi.com',
}, },
test2: { test2: {
baseUrl: 'https://test2-work.yunqueyi.com/sc/', baseUrl: 'https://test2-work.yunqueyi.com/sc/',
...@@ -59,6 +62,7 @@ export const envConfig = { ...@@ -59,6 +62,7 @@ export const envConfig = {
yuequeyiIndexUrl: 'https://test1.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://test1.yunqueyi.com/pica_index.html',
saasDomainUrl: 'https://test2-work.yunqueyi.com/web/', saasDomainUrl: 'https://test2-work.yunqueyi.com/web/',
workApiUrl: 'https://test2-work.yunqueyi.com/web', workApiUrl: 'https://test2-work.yunqueyi.com/web',
workApiSrc: 'https://test2-work.yunqueyi.com',
}, },
uat: { uat: {
baseUrl: 'https://uat-sc.yunqueyi.com/', baseUrl: 'https://uat-sc.yunqueyi.com/',
...@@ -72,6 +76,7 @@ export const envConfig = { ...@@ -72,6 +76,7 @@ export const envConfig = {
yuequeyiIndexUrl: 'https://uat.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://uat.yunqueyi.com/pica_index.html',
saasDomainUrl: 'https://uat.yunqueyi.com/', saasDomainUrl: 'https://uat.yunqueyi.com/',
workApiUrl: 'https://uat-work.yunqueyi.com/web', workApiUrl: 'https://uat-work.yunqueyi.com/web',
workApiSrc: 'https://uat-work.yunqueyi.com',
}, },
pro: { pro: {
baseUrl: 'https://sc.yunqueyi.com/', baseUrl: 'https://sc.yunqueyi.com/',
...@@ -85,5 +90,6 @@ export const envConfig = { ...@@ -85,5 +90,6 @@ export const envConfig = {
yuequeyiIndexUrl: 'https://www.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://www.yunqueyi.com/pica_index.html',
saasDomainUrl: 'https://www.yunqueyi.com/', saasDomainUrl: 'https://www.yunqueyi.com/',
workApiUrl: 'https://work.yunqueyi.com/web', workApiUrl: 'https://work.yunqueyi.com/web',
workApiSrc: 'https://work.yunqueyi.com',
} }
} }
...@@ -196,6 +196,11 @@ export function getSaasApiDomain(url) { ...@@ -196,6 +196,11 @@ export function getSaasApiDomain(url) {
return getConfigByEnvType('apiUrl') + url return getConfigByEnvType('apiUrl') + url
} }
// 获取工作站的域名地址
export function getWorkDomain(url) {
return getConfigByEnvType('workApiSrc') + url
}
// 根据不同环境,生成URL // 根据不同环境,生成URL
function getConfigByEnvType(urlType) { function getConfigByEnvType(urlType) {
return envConfig[process.env.BUILD_ENV][urlType] return envConfig[process.env.BUILD_ENV][urlType]
......
...@@ -217,7 +217,8 @@ export default { ...@@ -217,7 +217,8 @@ export default {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
line-height: 12px; line-height: 12px;
padding: 5px 10px; /*padding: 5px 10px;*/
padding: 2px 5px;
span { span {
display: block; display: block;
} }
......
...@@ -342,6 +342,9 @@ ...@@ -342,6 +342,9 @@
fileLocator: [{required: false,validator: validCode, trigger: ['change'] }], fileLocator: [{required: false,validator: validCode, trigger: ['change'] }],
}, },
setPickerOption: { setPickerOption: {
disabledDate(time) {
return time.getTime() > Date.now();
},
// disabledDate(time) { // disabledDate(time) {
// let curDate = (new Date()).getTime(); // let curDate = (new Date()).getTime();
// let three = 90 * 24 * 3600 * 1000; // let three = 90 * 24 * 3600 * 1000;
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="健康记录" name="second"> <el-tab-pane label="健康记录" name="second">
<div class="health-record-wrap">
<div class="health-record-list" <div class="health-record-list"
v-show="recordList.length" v-show="recordList.length"
v-infinite-scroll="loadMore" v-infinite-scroll="loadMore"
...@@ -101,7 +102,7 @@ ...@@ -101,7 +102,7 @@
<span class="left-label">随访量表:</span> <span class="left-label">随访量表:</span>
<div class="right-item"> <div class="right-item">
<p v-for="(item2, index2) in item.scaleSimpleDtos" :key="index2" v-if="item.scaleSimpleDtos.length">{{item2.name}} <p v-for="(item2, index2) in item.scaleSimpleDtos" :key="index2" v-if="item.scaleSimpleDtos.length">{{item2.name}}
<span class="check-btn" @click="openScaleDetail(item2.url)">查看量表</span> <span class="check-btn" @click="openScaleDetail(item2)">查看量表</span>
</p> </p>
<p v-if="!item.scaleSimpleDtos.length">暂无量表</p> <p v-if="!item.scaleSimpleDtos.length">暂无量表</p>
</div> </div>
...@@ -111,6 +112,7 @@ ...@@ -111,6 +112,7 @@
<p style="text-align: center;padding:10px 0;cursor: pointer" v-if="hasMore">加载中...</p> <p style="text-align: center;padding:10px 0;cursor: pointer" v-if="hasMore">加载中...</p>
<p style="text-align: center;padding:10px 0;cursor: pointer" v-if="!hasMore">没有更多了</p> <p style="text-align: center;padding:10px 0;cursor: pointer" v-if="!hasMore">没有更多了</p>
</div> </div>
</div>
<div class="no-record-content" v-if="!recordList.length"> <div class="no-record-content" v-if="!recordList.length">
<div> <div>
<img src="../../../assets/image/no-content1.png"/> <img src="../../../assets/image/no-content1.png"/>
...@@ -127,6 +129,7 @@ ...@@ -127,6 +129,7 @@
<script> <script>
import BreadCrumb from '@/components/breadcrumb' import BreadCrumb from '@/components/breadcrumb'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { getWorkDomain } from '@/utils/index'
import { getDiseasesList, getPatientDetail, getRemindPatient, deletePatient, savePatientInfo, getHealthRecordList, getNationsList } from '@/utils/patients/patientsapi' import { getDiseasesList, getPatientDetail, getRemindPatient, deletePatient, savePatientInfo, getHealthRecordList, getNationsList } from '@/utils/patients/patientsapi'
export default { export default {
name: "patientDetail", name: "patientDetail",
...@@ -344,8 +347,11 @@ ...@@ -344,8 +347,11 @@
}) })
}, },
//查看量表详情 //查看量表详情
openScaleDetail(url) { openScaleDetail(item) {
window.open(url) // this.$router.push({path: '/followup/record-manage/form-template',
// query: {doctorId: this.enteringInfo.doctorId, scaleNo: val.scaleNo, planPatientsTimesId: this.enteringInfo.planPatientsTimesId,planTimesId : val.planTimesId, showBtn: 1}})
let scaleUrl = getWorkDomain(`/#/followup/record-manage/form-template?doctorId=${item.doctorId}&scaleNo=${item.scaleNo}&planPatientsTimesId=${item.planPatientsTimesId}&planTimesId=${item.planTimesId}&showBtn=1`);
window.open(scaleUrl)
}, },
loadMore() { loadMore() {
// console.log('触发加载页码',this.pageNo); // console.log('触发加载页码',this.pageNo);
...@@ -447,17 +453,17 @@ ...@@ -447,17 +453,17 @@
} }
} }
} }
.health-record-list{ .health-record-wrap{
/*height: 300px;*/ /*height: 300px;*/
overflow-y: auto; overflow-y: auto;
@media screen and (min-width:1240px) and (max-width:1545px){ @media screen and (min-width:1240px) and (max-width:1545px){
height: 300px; height: 350px;
} }
@media screen and (min-width:1545px) and (max-width:1600px){ @media screen and (min-width:1545px) and (max-width:1600px){
height: 500px; height: 580px;
} }
@media screen and (min-width:1600px){ @media screen and (min-width:1600px){
height: 650px; height: 670px;
} }
&::-webkit-scrollbar{ &::-webkit-scrollbar{
width:5px; width:5px;
...@@ -467,6 +473,8 @@ ...@@ -467,6 +473,8 @@
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background: rgba(0,0,0,0.1); background: rgba(0,0,0,0.1);
} }
}
.health-record-list{
.item{ .item{
width: 100%; width: 100%;
margin-bottom: 15px; margin-bottom: 15px;
......
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
import { getNotCompleteList, import { getNotCompleteList,
sendCompleteMessage, sendCompleteMessage,
getNotCompleteCount, getNotCompleteCount,
sendCompleteMessageList} from '../../../utils/patients/patientsapi' sendCompleteMessageList,
getRedNum} from '../../../utils/patients/patientsapi'
export default { export default {
name: "not-complete", name: "not-complete",
components: { components: {
...@@ -103,10 +104,23 @@ ...@@ -103,10 +104,23 @@
} }
}, },
mounted() { mounted() {
this.getRedData();
this.getNotComplete() this.getNotComplete()
this.getNotCompleteNum() this.getNotCompleteNum()
}, },
methods: { methods: {
getRedData() {
getRedNum({
openTime: (new Date()).getTime(),
type: 1,
}).then((data) => {
if(data.code == '000000') {
// vm.redNum = data.data
}
}).catch(error => {
vm.$message.error(error)
})
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.selectList = val; this.selectList = val;
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册