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

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

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