Browse Source

细节修改

master
aBin 4 years ago
parent
commit
c5465e560c
  1. 10
      src/App.vue
  2. 6
      src/components/CaseTable/CaseTable.vue
  3. 3
      src/components/Echarts/Categorymap.vue
  4. 22
      src/components/PatientInfo/PatientTable.vue
  5. 16
      src/views/PatientInfo/PatientInfo.vue
  6. 6
      src/views/ProjectAssistant/Examine.vue
  7. 6
      src/views/ProjectAssistant/General.vue

10
src/App.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-04-19 10:23:19 * @Date: 2021-04-19 10:23:19
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-13 18:05:36 * @LastEditTime: 2021-05-14 09:33:48
--> -->
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
@ -40,10 +40,10 @@ export default {
}, },
created() { created() {
// async created() { // async created() {
// const userId = '1390209035248209925'; // const userId = '1390209035248209925';
// const params = { userId }; // const params = { userId };
// await this.getUserId(params); // await this.getUserId(params);
// await this.getToken(); // await this.getToken();
if (localStorage.getItem('patientId')) { if (localStorage.getItem('patientId')) {
this.setPatientId(localStorage.getItem('patientId')); this.setPatientId(localStorage.getItem('patientId'));
} }

6
src/components/CaseTable/CaseTable.vue

@ -136,7 +136,11 @@ export default {
this.setPatientId(Id); this.setPatientId(Id);
this.setHospitalization(hospitalization); this.setHospitalization(hospitalization);
this.setRecordCode(code); this.setRecordCode(code);
this.$router.push('/patientInfo'); const path = this.$route.path;
this.$router.push({
path: '/patientInfo',
query: { path },
});
}, },
showEditModal(id, inputStatus) { showEditModal(id, inputStatus) {
this.recordId = id; this.recordId = id;

3
src/components/Echarts/Categorymap.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-01-29 14:45:02 * @Date: 2021-01-29 14:45:02
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-12 11:24:23 * @LastEditTime: 2021-05-14 09:46:26
--> -->
<template> <template>
<!-- <div>数据统计组件</div> --> <!-- <div>数据统计组件</div> -->
@ -33,6 +33,7 @@ export default {
}, },
mounted() { mounted() {
this.init(this.drawLine); this.init(this.drawLine);
const that = this;
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
that.init(this.drawLine); that.init(this.drawLine);

22
src/components/PatientInfo/PatientTable.vue

@ -26,7 +26,7 @@
: record.inputStatus === 2 : record.inputStatus === 2
? '数据收集按时完成' ? '数据收集按时完成'
: record.inputStatus === 3 : record.inputStatus === 3
? '数据收集超时' ? '数据收集超时'
: record.inputStatus === 4 : record.inputStatus === 4
? '废弃' ? '废弃'
: record.inputStatus === 5 : record.inputStatus === 5
@ -45,14 +45,20 @@
您是否要为<br />住院号为{{ hospitalization }} , 研究编号为: {{ recordCode }}<br />的病例进行信息录入 您是否要为<br />住院号为{{ hospitalization }} , 研究编号为: {{ recordCode }}<br />的病例进行信息录入
</div> </div>
</template> </template>
<a-button @click="showModal(record.id, record.hospitalization, record.code)" size="small" type="primary"> 选择 </a-button> <a-button
v-if="record.inputStatus < 5"
@click="showModal(record.id, record.hospitalization, record.code)"
size="small"
type="primary"
class="mb-4"
>
选择
</a-button>
</a-popconfirm> </a-popconfirm>
<!-- <a-button @click="showModal(record.id, record.hospitalization, record.code)" class="mr-4" size="small" type="primary"> <!-- <a-button @click="showModal(record.id, record.hospitalization, record.code)" class="mr-4" size="small" type="primary">
选择 选择
</a-button> --> </a-button> -->
<a-button type="primary" size="small" class="mt-4" @click="details(record.id, record.hospitalization, record.code)"> <a-button type="primary" size="small" @click="details(record.id, record.hospitalization, record.code)"> 查看详情 </a-button>
查看详情
</a-button>
<a-popconfirm placement="left" ok-text="确定" cancel-text="取消" @confirm="submit(record.id)"> <a-popconfirm placement="left" ok-text="确定" cancel-text="取消" @confirm="submit(record.id)">
<!-- <a-icon slot="icon" type="none" /> --> <!-- <a-icon slot="icon" type="none" /> -->
<a-icon slot="icon" type="exclamation-circle" /> <a-icon slot="icon" type="exclamation-circle" />
@ -262,7 +268,11 @@ export default {
localStorage.setItem('patientId', Id); localStorage.setItem('patientId', Id);
localStorage.setItem('hospitalization', hospitalization); localStorage.setItem('hospitalization', hospitalization);
localStorage.setItem('recordCode', code); localStorage.setItem('recordCode', code);
this.$router.push('/patientInfo'); const path = this.$route.path;
this.$router.push({
path: '/patientInfo',
query: { path },
});
}, },
}, },
}; };

16
src/views/PatientInfo/PatientInfo.vue

@ -1459,6 +1459,7 @@ export default {
rzlbcpSrc: '', rzlbcpSrc: '',
lists: {}, lists: {},
height: '', height: '',
queryPath: '',
}; };
}, },
@ -1478,8 +1479,6 @@ export default {
} }
}, },
}, },
mounted() {},
mounted() { mounted() {
this.height = document.getElementsByClassName('main')[0].offsetHeight + 'px'; this.height = document.getElementsByClassName('main')[0].offsetHeight + 'px';
this.rzlbSrc = `https://sxzxyzzlm.tall.wiki/ht-common/home/reportHistory?code=LSBGD&userId=${this.ptProps.userId}`; this.rzlbSrc = `https://sxzxyzzlm.tall.wiki/ht-common/home/reportHistory?code=LSBGD&userId=${this.ptProps.userId}`;
@ -1487,7 +1486,8 @@ export default {
}, },
async created() { async created() {
console.log(this.patientId); const { query } = this.$route;
this.queryPath = query.path;
this.spinning = true; this.spinning = true;
this.getCode = ''; this.getCode = '';
this.tabNums = 0; this.tabNums = 0;
@ -1529,7 +1529,6 @@ export default {
console.log([{ ...obj }, ...arr]); console.log([{ ...obj }, ...arr]);
return [{ ...obj }, ...arr]; return [{ ...obj }, ...arr];
} else { } else {
console.log(arr);
return [...arr]; return [...arr];
} }
}, },
@ -1537,7 +1536,11 @@ export default {
* 重新选择病例 * 重新选择病例
*/ */
choosePatient() { choosePatient() {
this.$router.push('/selectPatient'); if (this.queryPath) {
this.$router.push(`${this.queryPath}`);
} else {
this.$router.push('/selectPatient');
}
}, },
// 'AB',a.id, index,k,h.id // 'AB',a.id, index,k,h.id
addDom(type, id, index, quesIndex, quesId) { addDom(type, id, index, quesIndex, quesId) {
@ -1974,8 +1977,11 @@ export default {
this.list = [...list]; this.list = [...list];
} else { } else {
console.log(msg); console.log(msg);
this.spinning = false; this.spinning = false;
} }
} else if (info.file.status === 'removed') {
this.spinning = false;
} }
}, },
// //

6
src/views/ProjectAssistant/Examine.vue

@ -210,7 +210,11 @@ export default {
localStorage.setItem('patientId', Id); localStorage.setItem('patientId', Id);
localStorage.setItem('hospitalization', hospitalization); localStorage.setItem('hospitalization', hospitalization);
localStorage.setItem('recordCode', code); localStorage.setItem('recordCode', code);
this.$router.push('/patientInfo'); const path = this.$route.path;
this.$router.push({
path: '/patientInfo',
query: { path },
});
}, },
// //
showStatus(inputStatus) { showStatus(inputStatus) {

6
src/views/ProjectAssistant/General.vue

@ -241,7 +241,11 @@ export default {
localStorage.setItem('patientId', Id); localStorage.setItem('patientId', Id);
localStorage.setItem('hospitalization', hospitalization); localStorage.setItem('hospitalization', hospitalization);
localStorage.setItem('recordCode', code); localStorage.setItem('recordCode', code);
this.$router.push('/patientInfo'); const path = this.$route.path;
this.$router.push({
path: '/patientInfo',
query: { path },
});
}, },
// //
showStatus(inputStatus) { showStatus(inputStatus) {

Loading…
Cancel
Save