Browse Source

手机端适配修改

master
aBin 4 years ago
parent
commit
8351a0a8dd
  1. 2
      src/App.vue
  2. 54
      src/components/BiologicalSampleSearch/Search.vue
  3. 59
      src/components/Echarts/Categorymap.vue
  4. 53
      src/components/Echarts/CategorymapHos.vue
  5. 6
      src/components/Echarts/Cisualmap.vue
  6. 2
      src/components/Echarts/PatientProgress.vue
  7. 4
      src/components/Echarts/Piemap.vue
  8. 2
      src/components/Echarts/Treemap.vue
  9. 6
      src/components/PatientInfo/PatientAdd.vue
  10. 6
      src/components/PatientInfo/PatientTable.vue
  11. 2
      src/components/PatientInfo/Search.vue
  12. 8
      src/components/TypeTable/TypeTable.vue
  13. 6
      src/store/modules/home/state.js
  14. 4
      src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue
  15. 4
      src/views/BiologicalSamples/BiologicalSamples.vue
  16. 22
      src/views/CaseAnalysis/CaseAnalysis.vue
  17. 456
      src/views/CaseSearch/CaseSearch.vue
  18. 6
      src/views/Index/Index.vue
  19. 136
      src/views/PatientInfo/PatientInfo.vue
  20. 8
      src/views/ProjectAssistant/General.vue
  21. 6
      src/views/ProjectAssistant/Statistics.vue
  22. 6
      src/views/SelectPatient/SelectPatient.vue

2
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: aBin * @LastEditors: aBin
* @LastEditTime: 2021-05-28 16:42:55 * @LastEditTime: 2021-05-31 15:55:52
--> -->
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">

54
src/components/BiologicalSampleSearch/Search.vue

@ -3,39 +3,43 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03 * @Date: 2021-02-22 09:20:03
* @LastEditors: aBin * @LastEditors: aBin
* @LastEditTime: 2021-05-28 09:18:00 * @LastEditTime: 2021-05-31 16:01:39
--> -->
<template> <template>
<!-- search --> <!-- search -->
<div> <div>
<div class="d-flex flex-row flex-nowrap"> <div class="d-flex flex-row flex-nowrap">
<a-form :form="form" @submit="handleSubmit" class="d-flex flex-wrap align-center" layout="inline"> <a-form :form="form" @submit="handleSubmit" class="d-flex flex-wrap align-center" layout="inline">
<a-form-item> <div class="fill-width d-flex">
<a-select placeholder="请选择医院" style="min-width: 200px" v-decorator="['hospital']" allow-clear> <a-form-item>
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option> <a-select placeholder="请选择医院" style="min-width: 200px" v-decorator="['hospital']" allow-clear>
</a-select> <a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option>
</a-form-item> </a-select>
<a-form-item> </a-form-item>
<a-input placeholder="住院号" style="width: 200px" v-decorator="['inpatientNumber']" /> <a-form-item>
</a-form-item> <a-input placeholder="住院号" style="width: 200px" v-decorator="['inpatientNumber']" />
<a-form-item> </a-form-item>
<a-input placeholder="研究编号" style="width: 200px" v-decorator="['code']" /> <a-form-item>
</a-form-item> <a-input placeholder="研究编号" style="width: 200px" v-decorator="['code']" />
<a-form-item> </a-form-item>
<a-select placeholder="请选择采集时间" style="min-width: 200px" v-decorator="['acquisitionTime']" allow-clear> </div>
<a-select-option :key="t.id" :value="t.id" v-for="t in acquisitionTime">{{ t.title }}</a-select-option> <div class="fill-width d-flex">
</a-select> <a-form-item>
</a-form-item> <a-select placeholder="请选择采集时间" style="min-width: 200px" v-decorator="['acquisitionTime']" allow-clear>
<a-form-item> <a-select-option :key="t.id" :value="t.id" v-for="t in acquisitionTime">{{ t.title }}</a-select-option>
<!-- <a-select placeholder="请选择样本类型" style="min-width: 150px" v-decorator="['sampleType']" allow-clear> </a-select>
</a-form-item>
<a-form-item>
<!-- <a-select placeholder="请选择样本类型" style="min-width: 150px" v-decorator="['sampleType']" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in types">{{ item.title }}</a-select-option> <a-select-option :key="item.id" :value="item.id" v-for="item in types">{{ item.title }}</a-select-option>
</a-select> --> </a-select> -->
<span> 样本类型: </span> <span> 样本类型: </span>
<a-checkbox-group @change="changeType"> <a-checkbox-group @change="changeType">
<a-checkbox v-for="item in types" :key="item.id" :value="item.id">{{ item.title }}</a-checkbox> <a-checkbox v-for="item in types" :key="item.id" :value="item.id">{{ item.title }}</a-checkbox>
</a-checkbox-group> </a-checkbox-group>
</a-form-item> </a-form-item>
<a-button class="mr-4" html-type="submit" icon="search" type="primary">搜索</a-button> <a-button class="mr-4" html-type="submit" icon="search" type="primary">搜索</a-button>
</div>
</a-form> </a-form>
<div class="flex-1"></div> <div class="flex-1"></div>
</div> </div>

59
src/components/Echarts/Categorymap.vue

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @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: aBin
* @LastEditTime: 2021-05-20 18:48:35 * @LastEditTime: 2021-05-31 15:40:11
--> -->
<template> <template>
<!-- <div>数据统计组件</div> --> <!-- <div>数据统计组件</div> -->
@ -29,10 +29,12 @@ export default {
cList: [], // cList: [], //
dList: [], // dList: [], //
eList: [], // eList: [], //
widthNum: 0,
}; };
}, },
mounted() { mounted() {
this.init(this.drawLine); this.init(this.drawLine);
this.widthNum = document.getElementsByClassName('chart-box')[0].offsetWidth;
const that = this; const that = this;
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
@ -58,12 +60,53 @@ export default {
legend: { data: ['新建', '数据收集按时完成', '数据收集中', '废弃', '数据收集超时'] }, legend: { data: ['新建', '数据收集按时完成', '数据收集中', '废弃', '数据收集超时'] },
xAxis: [ xAxis: [
{ {
axisLabel: {
//
formatter: function(params) {
var newParamsName = ''; //
var paramsNameNumber = params.length; //
var wNum = document.getElementsByClassName('chart-box')[0].offsetWidth;
var provideNumber = wNum > 550 ? 20 : 4; //
var rowNumber = Math.ceil(paramsNameNumber / provideNumber); //
/**
* 判断标签的个数是否大于规定的个数 如果大于则进行换行处理 如果不大于即等于或小于就返回原标签
*/
// rowNumber>1
if (paramsNameNumber > provideNumber) {
/** 循环每一行,p表示行 */
for (var p = 0; p < rowNumber; p++) {
var tempStr = ''; //
var start = p * provideNumber; //
var end = start + provideNumber; //
//
if (p === rowNumber - 1) {
//
tempStr = params.substring(start, paramsNameNumber);
} else {
//
tempStr = params.substring(start, end) + '\n';
}
newParamsName += tempStr; //
}
} else {
//
newParamsName = params;
}
return newParamsName;
},
},
type: 'category', type: 'category',
axisTick: { show: false }, axisTick: { show: false },
data: this.xDataList, data: this.xDataList,
}, },
], ],
yAxis: [{ type: 'value' }], yAxis: [{ type: 'value' }],
grid: {
x: this.widthNum > 550 ? 60 : 40,
y: 60,
x2: this.widthNum > 550 ? 40 : 20,
y2: this.widthNum > 550 ? 60 : 90,
},
series: [ series: [
{ {
name: '新建', name: '新建',
@ -72,7 +115,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.aList, data: this.aList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -103,7 +146,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.bList, data: this.bList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -134,7 +177,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.cList, data: this.cList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -165,7 +208,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.dList, data: this.dList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -196,7 +239,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.eList, data: this.eList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -253,4 +296,4 @@ export default {
}; };
</script> </script>
<style lang="stylus" scoped ></style> <style lang="stylus" scoped></style>

53
src/components/Echarts/CategorymapHos.vue

@ -22,11 +22,13 @@ export default {
cList: [], // cList: [], //
dList: [], // dList: [], //
eList: [], // eList: [], //
widthNum: 0,
}; };
}, },
computed: mapState('home', ['hospitalId']), computed: mapState('home', ['hospitalId']),
mounted() { mounted() {
this.init(this.drawLine); this.init(this.drawLine);
this.widthNum = document.getElementsByClassName('chart-box')[0].offsetWidth;
const that = this; const that = this;
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
@ -45,12 +47,53 @@ export default {
legend: { data: ['新建', '数据收集按时完成', '数据收集中', '废弃', '数据收集超时'] }, legend: { data: ['新建', '数据收集按时完成', '数据收集中', '废弃', '数据收集超时'] },
xAxis: [ xAxis: [
{ {
axisLabel: {
//
formatter: function(params) {
var newParamsName = ''; //
var paramsNameNumber = params.length; //
var wNum = document.getElementsByClassName('chart-box')[0].offsetWidth;
var provideNumber = wNum > 550 ? 20 : 4; //
var rowNumber = Math.ceil(paramsNameNumber / provideNumber); //
/**
* 判断标签的个数是否大于规定的个数 如果大于则进行换行处理 如果不大于即等于或小于就返回原标签
*/
// rowNumber>1
if (paramsNameNumber > provideNumber) {
/** 循环每一行,p表示行 */
for (var p = 0; p < rowNumber; p++) {
var tempStr = ''; //
var start = p * provideNumber; //
var end = start + provideNumber; //
//
if (p === rowNumber - 1) {
//
tempStr = params.substring(start, paramsNameNumber);
} else {
//
tempStr = params.substring(start, end) + '\n';
}
newParamsName += tempStr; //
}
} else {
//
newParamsName = params;
}
return newParamsName;
},
},
type: 'category', type: 'category',
axisTick: { show: false }, axisTick: { show: false },
data: this.xDataList, data: this.xDataList,
}, },
], ],
yAxis: [{ type: 'value' }], yAxis: [{ type: 'value' }],
grid: {
x: this.widthNum > 550 ? 60 : 40,
y: 60,
x2: this.widthNum > 550 ? 40 : 20,
y2: this.widthNum > 550 ? 60 : 90,
},
series: [ series: [
{ {
name: '新建', name: '新建',
@ -59,7 +102,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.aList, data: this.aList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -90,7 +133,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.bList, data: this.bList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -121,7 +164,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.cList, data: this.cList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -152,7 +195,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.dList, data: this.dList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -183,7 +226,7 @@ export default {
// label: labelOption, // label: labelOption,
emphasis: { focus: 'series' }, emphasis: { focus: 'series' },
data: this.eList, data: this.eList,
barWidth: 20, barWidth: this.widthNum > 550 ? 20 : 10,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {

6
src/components/Echarts/Cisualmap.vue

@ -26,12 +26,12 @@ export default {
}; };
}, },
computed: { computed: {
...mapState('home', ['ptProps', 'hospitalId']), ...mapState('home', ['ptProps', 'hospitalId', 'user']),
option1() { option1() {
return { return {
title: { title: {
left: 'center', left: 'center',
text: '新建病例', text: '进行中病例',
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
@ -137,7 +137,7 @@ export default {
const params = { const params = {
param: { param: {
hospitalId: this.hospitalId ? this.hospitalId : '', hospitalId: this.hospitalId ? this.hospitalId : '',
userId: this.ptProps && this.ptProps.userId ? this.ptProps.userId : '', userId: this.user && this.user.id ? this.user.id : '',
}, },
}; };
const res = await countCase(params); const res = await countCase(params);

2
src/components/Echarts/PatientProgress.vue

@ -32,7 +32,7 @@ export default {
}, },
watch: { watch: {
lists() { lists() {
console.log(this.lists); // console.log(this.lists);
this.nameList = []; this.nameList = [];
this.dataList = []; this.dataList = [];
this.series = []; this.series = [];

4
src/components/Echarts/Piemap.vue

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @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: aBin
* @LastEditTime: 2021-05-12 11:49:10 * @LastEditTime: 2021-05-31 15:09:50
--> -->
<template> <template>
<!-- <div>数据统计组件</div> --> <!-- <div>数据统计组件</div> -->

2
src/components/Echarts/Treemap.vue

@ -84,7 +84,7 @@ export default {
const params = { const params = {
param: { param: {
hospitalId: this.hospitalId ? this.hospitalId : '', hospitalId: this.hospitalId ? this.hospitalId : '',
userId: this.ptProps && this.ptProps.userId ? this.ptProps.userId : '', userId: this.user && this.user.id ? this.user.id : '',
}, },
}; };
const res = await complete(params); const res = await complete(params);

6
src/components/PatientInfo/PatientAdd.vue

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03 * @Date: 2021-02-22 09:20:03
* @LastEditors: wally * @LastEditors: aBin
* @LastEditTime: 2021-05-06 16:47:25 * @LastEditTime: 2021-05-31 09:46:52
--> -->
<template> <template>
<div class="d-flex flex-wrap pb-3"> <div class="d-flex flex-wrap pb-3">
@ -96,7 +96,7 @@ export default {
throw msg; throw msg;
} }
} catch (error) { } catch (error) {
console.log('error: ', error); // console.log('error: ', error);
this.$message.error(error || '添加失败'); this.$message.error(error || '添加失败');
} }
} }

6
src/components/PatientInfo/PatientTable.vue

@ -295,9 +295,9 @@ export default {
}; };
const res = await checkPatientComplete(params); const res = await checkPatientComplete(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
console.log(data); // console.log(data);
if (code === 200) { if (code === 200) {
console.log(data); // console.log(data);
localStorage.setItem('reportId', data.id); localStorage.setItem('reportId', data.id);
} }
if (localStorage.getItem('patientId') && localStorage.getItem('hospitalization')) { if (localStorage.getItem('patientId') && localStorage.getItem('hospitalization')) {
@ -305,7 +305,7 @@ export default {
this.setShowTable(1); this.setShowTable(1);
} }
} catch (error) { } catch (error) {
console.log(error); // console.log(error);
} }
}, },
// //

2
src/components/PatientInfo/Search.vue

@ -62,7 +62,7 @@ export default {
e.preventDefault(); e.preventDefault();
this.form.validateFields(async (err, values) => { this.form.validateFields(async (err, values) => {
if (!err) { if (!err) {
console.log('values: ', values); // console.log('values: ', values);
this.$emit('searchPatientMes', values); this.$emit('searchPatientMes', values);
} }
}); });

8
src/components/TypeTable/TypeTable.vue

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-04-20 17:44:23 * @Date: 2021-04-20 17:44:23
* @LastEditors: wally * @LastEditors: aBin
* @LastEditTime: 2021-04-26 15:55:24 * @LastEditTime: 2021-05-31 09:47:15
--> -->
<template> <template>
<div> <div>
@ -54,8 +54,8 @@ export default {
const data = JSON.parse(this.remark); const data = JSON.parse(this.remark);
this.changeRow(data.param); this.changeRow(data.param);
this.changeCol(data.param); this.changeCol(data.param);
console.log('list:', this.list); // console.log('list:', this.list);
console.log('remark:', this.remark); // console.log('remark:', this.remark);
}, },
methods: { methods: {
/** /**

6
src/store/modules/home/state.js

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @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: aBin
* @LastEditTime: 2021-05-26 10:07:28 * @LastEditTime: 2021-05-31 15:43:25
*/ */
const state = { const state = {
anyringToken: '', anyringToken: '',
@ -13,7 +13,7 @@ const state = {
hospitalization: '', // 病患住院号 hospitalization: '', // 病患住院号
recordCode: '', // 病例研究编号 recordCode: '', // 病例研究编号
previewInfo: { host: '', place: '', startTime: '', endTime: '', participants: '', meetingMinutes: '', discussionContent: '' }, // 预览信息 previewInfo: { host: '', place: '', startTime: '', endTime: '', participants: '', meetingMinutes: '', discussionContent: '' }, // 预览信息
ptProps: { userId: '1' }, // 接受PT传过来的 pluginId,projectId,roleId,taskId,userId ptProps: { userId: '' }, // 接受PT传过来的 pluginId,projectId,roleId,taskId,userId
hospitalId: '', // 医院Id hospitalId: '', // 医院Id
caseData: null, // 病例 搜索/分析 下的认知量表所做的每道题,每次改变重新存一次 caseData: null, // 病例 搜索/分析 下的认知量表所做的每道题,每次改变重新存一次
showTable: 0, showTable: 0,

4
src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue

@ -2,8 +2,8 @@
* @Author: wally * @Author: wally
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-02-19 16:04:48 * @Date: 2021-02-19 16:04:48
* @LastEditors: wally * @LastEditors: aBin
* @LastEditTime: 2021-05-20 10:33:12 * @LastEditTime: 2021-05-31 16:02:07
--> -->
<template> <template>
<div class="d-flex flex-column"> <div class="d-flex flex-column">

4
src/views/BiologicalSamples/BiologicalSamples.vue

@ -109,7 +109,7 @@ export default {
}, },
methods: { methods: {
chanegType(e) { chanegType(e) {
console.log(e); // console.log(e);
this.sampleType = e; this.sampleType = e;
}, },
// //
@ -117,7 +117,7 @@ export default {
e.preventDefault(); e.preventDefault();
this.form.validateFieldsAndScroll(async (err, values) => { this.form.validateFieldsAndScroll(async (err, values) => {
if (!err) { if (!err) {
console.log(values); // console.log(values);
if (this.sampleType && this.sampleType.length === 0) { if (this.sampleType && this.sampleType.length === 0) {
this.$message.error('请填写完整信息'); this.$message.error('请填写完整信息');
return; return;

22
src/views/CaseAnalysis/CaseAnalysis.vue

@ -1795,7 +1795,7 @@ export default {
}; };
contentList.push(obj); contentList.push(obj);
this.contentList = [...contentList]; this.contentList = [...contentList];
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
ergodicList(id) { ergodicList(id) {
@ -1823,13 +1823,13 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
inputChange1(id, e, value, recordId, list, str) { inputChange1(id, e, value, recordId, list, str) {
let listArr = this.getList(list); let listArr = this.getList(list);
console.log(listArr); // console.log(listArr);
console.log(id); // console.log(id);
let numkg = 0; let numkg = 0;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
if (this.contentList[i].testQuestionsId === id) { if (this.contentList[i].testQuestionsId === id) {
@ -1864,7 +1864,7 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
explainChange(id, e, recordId) { explainChange(id, e, recordId) {
@ -1885,7 +1885,7 @@ export default {
}, },
// //
fileChange(info, id, recordId) { fileChange(info, id, recordId) {
console.log(info); // console.log(info);
this.spinning = true; this.spinning = true;
if (info.file.status === 'done') { if (info.file.status === 'done') {
this.fileList = info.fileList; this.fileList = info.fileList;
@ -1903,8 +1903,8 @@ export default {
this.contentList.push(obj); this.contentList.push(obj);
} }
this.spinning = false; this.spinning = false;
console.log(this.contentList); // console.log(this.contentList);
console.log(this.fileList); // console.log(this.fileList);
} else if (info.file.status === 'removed') { } else if (info.file.status === 'removed') {
this.fileList = info.fileList; this.fileList = info.fileList;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
@ -1941,7 +1941,7 @@ export default {
* 选择组别 * 选择组别
*/ */
changeList(value) { changeList(value) {
console.log(`Selected: ${value}`); // console.log(`Selected: ${value}`);
this.inpatientList = []; this.inpatientList = [];
for (let i = 0; i < value.length; i++) { for (let i = 0; i < value.length; i++) {
this.inpatientList.push(parseInt(value[i])); this.inpatientList.push(parseInt(value[i]));
@ -1998,7 +1998,7 @@ export default {
this.list = [...list]; this.list = [...list];
this.spinning = false; this.spinning = false;
} else { } else {
console.log(msg); // console.log(msg);
this.spinning = false; this.spinning = false;
} }
} }
@ -2137,7 +2137,7 @@ export default {
this.caseList = data; this.caseList = data;
} }
} catch (error) { } catch (error) {
console.log(error); // console.log(error);
} }
}, },
}, },

456
src/views/CaseSearch/CaseSearch.vue

@ -148,8 +148,8 @@
> >
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
@ -340,7 +340,7 @@
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -404,222 +404,208 @@
></a-textarea> ></a-textarea>
<div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative"> <div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative">
<a-form-item <a-form-item
:label-col="formItemLayout1.labelCol" :label="h.question"
:wrapper-col="formItemLayout1.wrapperCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-form-item <a-input
:label="h.question" :max-length="500"
:label-col="formItemLayout.labelCol" @change="onChange($event, h.type, h.id, h.recordId)"
:wrapper-col="formItemLayout.wrapperCol" style="width: 100%"
class="d-flex align-center mb-3" v-if="h.type === 1"
v-model="h.answer"
/>
<a-textarea
@change="onChange($event, h.type, h.id)"
style="height: 150px; width: 100%"
v-else-if="h.type === 2"
v-model="h.answer"
/>
<a-select
@change="onChange($event, h.type, h.id, h.recordId)"
style="width: 120px"
v-else-if="h.type === 5"
v-model="h.answer"
> >
<a-input <a-select-option :key="c" :value="b.showValue" v-for="(b, c) in h.optionVos">{{ b.showValue }}</a-select-option>
:max-length="500" </a-select>
@change="onChange($event, h.type, h.id, h.recordId)" <a-date-picker
style="width: 100%" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
v-if="h.type === 1" @change="onChange($event, h.type, h.id, h.recordId)"
v-model="h.answer" placeholder="日期选择"
/> :input-read-only="true"
<a-textarea show-time
@change="onChange($event, h.type, h.id)" style="width: 100%"
style="height: 150px; width: 100%" v-else-if="h.type === 6"
v-else-if="h.type === 2" />
v-model="h.answer" <a-upload
/> :action="action"
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
:before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
<a-button
v-show="
!contentList.find(item => {
return item.testQuestionsId === h.id;
})
"
>
<a-icon type="upload" />点击上传
</a-button>
</a-upload>
<div v-else-if="h.type === 10">
<a-select <a-select
:default-value="getAnswer(h.answer)"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
style="width: 120px" style="width: 100%"
v-else-if="h.type === 5"
v-model="h.answer"
> >
<a-select-option :key="c" :value="b.showValue" v-for="(b, c) in h.optionVos">{{ <a-select-option :key="c" :value="b.showValue" v-for="(b, c) in h.optionVos">{{
b.showValue b.showValue
}}</a-select-option> }}</a-select-option>
</a-select> </a-select>
<a-date-picker <div :key="c" v-for="(b, c) in h.optionVos">
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" <div
@change="onChange($event, h.type, h.id, h.recordId)" v-if="
placeholder="日期选择" (contentList.find(item => {
:input-read-only="true" return item.testQuestionsId === h.id && item.contents === `${b.showValue}`;
show-time }) &&
style="width: 100%" b.afterOperation === 1) ||
v-else-if="h.type === 6" (b.afterOperation === 1 &&
/> !contentList.find(item => {
<a-upload return item.testQuestionsId === h.id;
:action="action" }))
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
:before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
<a-button
v-show="
!contentList.find(item => {
return item.testQuestionsId === h.id;
})
" "
> >
<a-icon type="upload" />点击上传 <a-form-item class="d-flex align-center mb-3">
</a-button>
</a-upload>
<div v-else-if="h.type === 10">
<a-select
:default-value="getAnswer(h.answer)"
@change="onChange($event, h.type, h.id, h.recordId)"
style="width: 100%"
>
<a-select-option :key="c" :value="b.showValue" v-for="(b, c) in h.optionVos">{{
b.showValue
}}</a-select-option>
</a-select>
<div :key="c" v-for="(b, c) in h.optionVos">
<div
v-if="
(contentList.find(item => {
return item.testQuestionsId === h.id && item.contents === `${b.showValue}`;
}) &&
b.afterOperation === 1) ||
(b.afterOperation === 1 &&
!contentList.find(item => {
return item.testQuestionsId === h.id;
}))
"
>
<a-form-item class="d-flex align-center mb-3">
<a-input
:max-length="500"
@change="inputChange(h.id, $event, b.showValue)"
style="width: 100%"
v-model="b.otherInformation"
></a-input>
</a-form-item>
</div>
</div>
</div>
<div v-else-if="h.type === 4">
<a-checkbox-group
:default-value="getList(h.optionVos)"
@change="onChange($event, h.type, h.id, h.recordId)"
class="d-flex flex-row flex-wrap"
style="width: 100%"
>
<a-row class="flex-1 flex-wrap">
<div style="width: 100%" :key="indexNum" :span="24" v-for="(ques, indexNum) in h.optionVos">
<a-col>
<a-checkbox :value="ques.submitValue">{{ ques.showValue }}</a-checkbox>
</a-col>
<a-col>
<div
v-if="
(contentList.find(item => {
return item.testQuestionsId === h.id && item.contents === `${ques.showValue}`;
}) &&
ques.afterOperation > 0) ||
(ques.afterOperation > 0 && ques.choose === 1)
"
>
<!-- <div v-if="ques.afterOperation > 0"> -->
<a-input
:max-length="500"
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)"
style="width: 100%"
v-model="ques.otherInformation"
v-if="ques.afterOperation === 1"
/>
<a-textarea
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)"
style="width: 100%; height: 150px"
:max-length="500"
v-else-if="ques.afterOperation === 2"
/>
<div v-else-if="ques.afterOperation === 3">当前程序已无法嵌套</div>
</div>
</a-col>
</div>
</a-row>
</a-checkbox-group>
</div>
<!-- 当类型为12时为单选+关联 -->
<div v-else-if="h.type === 3">
<a-radio-group
@change="onChange($event, h.type, h.id, h.recordId)"
class="d-flex flex-row flex-wrap"
v-model="h.answer"
>
<a-radio :key="g" :style="radioStyle" :value="f.showValue" v-for="(f, g) in h.optionVos">{{
f.showValue
}}</a-radio>
</a-radio-group>
<div :key="n" v-for="(m, n) in h.optionVos">
<div
v-if="
contentList.find(item => {
return item.testQuestionsId === h.id && item.contents === `${m.showValue}`;
}) && m.afterOperation > 0
"
>
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange(h.id, $event, m.showValue)" @change="inputChange(h.id, $event, b.showValue)"
style="width: 200px" style="width: 100%"
v-if="m.afterOperation === 1" v-model="b.otherInformation"
></a-input> ></a-input>
<a-textarea </a-form-item>
:max-length="500" </div>
style="width: 100%; height: 150px" </div>
@change="inputChange(h.id, $event, m.showValue)" </div>
v-else-if="m.afterOperation === 2" <div v-else-if="h.type === 4">
></a-textarea> <a-checkbox-group
<div v-else-if="m.afterOperation === 3" :key="q" v-for="(p, q) in m.questionVos"> :default-value="getList(h.optionVos)"
<a-form-item @change="onChange($event, h.type, h.id, h.recordId)"
:label="p.question" class="d-flex flex-row flex-wrap"
:label-col="formItemLayout.labelCol" style="width: 100%"
:wrapper-col="formItemLayout.wrapperCol" >
class="d-flex align-center mb-3" <a-row class="flex-1 flex-wrap">
<div style="width: 100%" :key="indexNum" :span="24" v-for="(ques, indexNum) in h.optionVos">
<a-col>
<a-checkbox :value="ques.submitValue">{{ ques.showValue }}</a-checkbox>
</a-col>
<a-col>
<div
v-if="
(contentList.find(item => {
return item.testQuestionsId === h.id && item.contents === `${ques.showValue}`;
}) &&
ques.afterOperation > 0) ||
(ques.afterOperation > 0 && ques.choose === 1)
"
> >
<div>当前程序已无法嵌套</div> <!-- <div v-if="ques.afterOperation > 0"> -->
</a-form-item> <a-input
</div> :max-length="500"
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)"
style="width: 100%"
v-model="ques.otherInformation"
v-if="ques.afterOperation === 1"
/>
<a-textarea
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)"
style="width: 100%; height: 150px"
:max-length="500"
v-else-if="ques.afterOperation === 2"
/>
<div v-else-if="ques.afterOperation === 3">当前程序已无法嵌套</div>
</div>
</a-col>
</div>
</a-row>
</a-checkbox-group>
</div>
<!-- 当类型为12时为单选+关联 -->
<div v-else-if="h.type === 3">
<a-radio-group
@change="onChange($event, h.type, h.id, h.recordId)"
class="d-flex flex-row flex-wrap"
v-model="h.answer"
>
<a-radio :key="g" :style="radioStyle" :value="f.showValue" v-for="(f, g) in h.optionVos">{{
f.showValue
}}</a-radio>
</a-radio-group>
<div :key="n" v-for="(m, n) in h.optionVos">
<div
v-if="
contentList.find(item => {
return item.testQuestionsId === h.id && item.contents === `${m.showValue}`;
}) && m.afterOperation > 0
"
>
<a-input
:max-length="500"
@change="inputChange(h.id, $event, m.showValue)"
style="width: 200px"
v-if="m.afterOperation === 1"
></a-input>
<a-textarea
:max-length="500"
style="width: 100%; height: 150px"
@change="inputChange(h.id, $event, m.showValue)"
v-else-if="m.afterOperation === 2"
></a-textarea>
<div v-else-if="m.afterOperation === 3" :key="q" v-for="(p, q) in m.questionVos">
<a-form-item
:label="p.question"
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
class="d-flex align-center mb-3"
>
<div>当前程序已无法嵌套</div>
</a-form-item>
</div> </div>
</div> </div>
</div> </div>
<div v-else-if="h.type === 13"> </div>
<a-input-number <div v-else-if="h.type === 13">
@change="onChange($event, h.type, h.id, h.recordId)" <a-input-number @change="onChange($event, h.type, h.id, h.recordId)" style="width: 200px%" v-model="h.answer" />
style="width: 200px%" </div>
v-model="h.answer" <div v-else-if="h.type === 15">
/> <a-time-picker placeholder="时间选择" @change="onChange($event, h.type, h.id, h.recordId)" />
</div> </div>
<div v-else-if="h.type === 15"> <div v-else-if="h.type === 16">
<a-time-picker placeholder="时间选择" @change="onChange($event, h.type, h.id, h.recordId)" /> <a-date-picker
</div> placeholder="日期时间选择"
<div v-else-if="h.type === 16"> :input-read-only="true"
<a-date-picker @change="onChange($event, h.type, h.id, h.recordId)"
placeholder="日期时间选择" :show-time="{ format: 'HH:mm' }"
:input-read-only="true" />
@change="onChange($event, h.type, h.id, h.recordId)" </div>
show-time <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
/> <a-input v-if="h.type === 1" v-model="h.domList[domIndex]"></a-input>
</div> <a-textarea v-else-if="h.type === 2" v-model="h.domList[domIndex]"></a-textarea>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> </div>
<a-input v-if="h.type === 1" v-model="h.domList[domIndex]"></a-input> <div v-if="h.remark && JSON.parse(h.remark).type === 'desc'">
<a-textarea v-else-if="h.type === 2" v-model="h.domList[domIndex]"></a-textarea> 说明
</div> <a-textarea @change="explainChange(h.id, $event)" v-model="h.explains" />
<div v-if="h.remark && JSON.parse(h.remark).type === 'desc'"> </div>
说明 <p class="units-position" style="margin-left: 10px">
<a-textarea @change="explainChange(h.id, $event)" v-model="h.explains" /> <span v-if="h.units">{{ h.units }}</span>
</div> <span v-if="typeof h.referenceLower === 'number'"> ({{ h.referenceLower + '-' }}{{ h.referenceUpper }}) </span>
<p class="units-position" style="margin-left: 10px"> </p>
<span v-if="h.units">{{ h.units }}</span>
<span v-if="typeof h.referenceLower === 'number'">
({{ h.referenceLower + '-' }}{{ h.referenceUpper }})
</span>
</p>
</a-form-item>
</a-form-item> </a-form-item>
<a-button <a-button
v-if="h.remark && JSON.parse(h.remark).type === 'add'" v-if="h.remark && JSON.parse(h.remark).type === 'add'"
@ -643,7 +629,7 @@
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, a.type, a.id, a.recordId)" @change="onChange($event, a.type, a.id, a.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in a.domList" :key="domIndex"> <div v-for="(dom, domIndex) in a.domList" :key="domIndex">
@ -816,8 +802,8 @@
> >
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
@ -1008,7 +994,7 @@
placeholder="日期时间选择" placeholder="日期时间选择"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
:input-read-only="true" :input-read-only="true"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -1078,8 +1064,8 @@
<div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative"> <div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative">
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
@ -1270,7 +1256,7 @@
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -1364,11 +1350,11 @@ import TypeTable from 'components/TypeTable/TypeTable.vue';
const formItemLayout = { const formItemLayout = {
labelCol: { span: 6 }, labelCol: { span: 6 },
wrapperCol: { span: 9 }, wrapperCol: { span: 12 },
}; };
const formItemLayout1 = { const formItemLayout1 = {
labelCol: { span: 0 }, labelCol: { span: 0 },
wrapperCol: { span: 24 }, wrapperCol: { span: 18 },
}; };
const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } }; const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } };
export default { export default {
@ -1438,6 +1424,7 @@ export default {
caseList: [], caseList: [],
caseAnswer: [], // caseAnswer: [], //
spinning: false, spinning: false,
widthNum: 0,
}; };
}, },
computed: { computed: {
@ -1499,6 +1486,11 @@ export default {
} }
}, },
}, },
mounted() {
this.widthNum = document.getElementsByClassName('main')[0].offsetWidth;
},
created() { created() {
this.getControlGroups(); this.getControlGroups();
this.handleSearchCriteriaList(); this.handleSearchCriteriaList();
@ -1773,7 +1765,7 @@ export default {
}; };
contentList.push(obj); contentList.push(obj);
this.contentList = [...contentList]; this.contentList = [...contentList];
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
ergodicList(id) { ergodicList(id) {
@ -1801,13 +1793,13 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
inputChange1(id, e, value, recordId, list, str) { inputChange1(id, e, value, recordId, list, str) {
let listArr = this.getList(list); let listArr = this.getList(list);
console.log(listArr); // console.log(listArr);
console.log(id); // console.log(id);
let numkg = 0; let numkg = 0;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
if (this.contentList[i].testQuestionsId === id) { if (this.contentList[i].testQuestionsId === id) {
@ -1842,7 +1834,7 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
explainChange(id, e, recordId) { explainChange(id, e, recordId) {
@ -1864,7 +1856,7 @@ export default {
// //
fileChange(info, id, recordId) { fileChange(info, id, recordId) {
this.spinning = true; this.spinning = true;
console.log(info); // console.log(info);
if (info.file.status === 'done') { if (info.file.status === 'done') {
this.fileList = info.fileList; this.fileList = info.fileList;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
@ -1881,8 +1873,8 @@ export default {
this.contentList.push(obj); this.contentList.push(obj);
} }
this.spinning = false; this.spinning = false;
console.log(this.contentList); // console.log(this.contentList);
console.log(this.fileList); // console.log(this.fileList);
} else if (info.file.status === 'removed') { } else if (info.file.status === 'removed') {
this.fileList = info.fileList; this.fileList = info.fileList;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
@ -1944,7 +1936,7 @@ export default {
this.list = [...list]; this.list = [...list];
this.spinning = false; this.spinning = false;
} else { } else {
console.log(msg); // console.log(msg);
this.spinning = false; this.spinning = false;
} }
} }
@ -2067,7 +2059,7 @@ export default {
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
this.lists = data; this.lists = data;
console.log(this.lists); // console.log(this.lists);
this.spinning = false; this.spinning = false;
} else { } else {
this.$message.error('搜索失败'); this.$message.error('搜索失败');
@ -2088,7 +2080,7 @@ export default {
this.caseList = data; this.caseList = data;
} }
} catch (error) { } catch (error) {
console.log(error); // console.log(error);
} }
}, },
}, },
@ -2114,4 +2106,28 @@ export default {
right: -10px; right: -10px;
transform: translate3d(100%, -100%, 0); transform: translate3d(100%, -100%, 0);
} }
@media (max-width: 575px) {
/deep/.ant-form-item-label .ant-form-item-control-wrapper {
display: block;
width: 50%;
}
.add-btn {
position: absolute;
right: 0;
top: -3px;
}
/deep/span.ant-radio + * {
padding-right: 12px;
padding-left: 4px;
}
.choose-btn {
position: fixed;
top: 58px;
right: 6px;
}
}
</style> </style>

6
src/views/Index/Index.vue

@ -52,4 +52,8 @@ export default {
}; };
</script> </script>
<style lang="stylus" scoped></style> <style lang="stylus" scoped>
/deep/ .ant-card-body {
padding: 24px 4px !important;
}
</style>

136
src/views/PatientInfo/PatientInfo.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="flex-column"> <div class="flex-column main">
<div :style="{ width: width }"> <div :style="{ width: width }">
<a-tabs @change="callback" tab-position="top"> <a-tabs @change="callback" tab-position="top">
<a-tab-pane :key="item" :tab="typeof item === 'number' ? item + '天' : item" v-for="item in tabList" width="100" /> <a-tab-pane :key="item" :tab="typeof item === 'number' ? item + '天' : item" v-for="item in tabList" width="100" />
@ -28,6 +28,7 @@
<a-date-picker <a-date-picker
:default-value="a.answer ? $moment(a.answer, dateFormat) : ''" :default-value="a.answer ? $moment(a.answer, dateFormat) : ''"
@change="onChange($event, a.type, a.id)" @change="onChange($event, a.type, a.id)"
format="YYYY-MM-DD HH:mm"
placeholder="日期选择" placeholder="日期选择"
style="width: 100%" style="width: 100%"
:input-read-only="true" :input-read-only="true"
@ -86,7 +87,7 @@
style="width: 100%" style="width: 100%"
> >
<a-row class="flex-1 flex-wrap"> <a-row class="flex-1 flex-wrap">
<div style="width: 60%" :key="indexNum" :span="24" v-for="(ques, indexNum) in a.optionVos"> <div class="fill-width" :key="indexNum" :span="24" v-for="(ques, indexNum) in a.optionVos">
<a-col> <a-col>
<a-checkbox :value="ques.submitValue">{{ ques.showValue }}</a-checkbox> <a-checkbox :value="ques.submitValue">{{ ques.showValue }}</a-checkbox>
</a-col> </a-col>
@ -97,7 +98,11 @@
return item.testQuestionsId === a.id && item.contents === `${ques.showValue}`; return item.testQuestionsId === a.id && item.contents === `${ques.showValue}`;
}) && }) &&
ques.afterOperation > 0) || ques.afterOperation > 0) ||
(ques.afterOperation > 0 && ques.choose === 1) (ques.afterOperation > 0 &&
ques.choose === 1 &&
!contentList.find(item => {
return item.testQuestionsId === a.id;
}))
" "
> >
<!-- <div v-if="ques.afterOperation > 0"> --> <!-- <div v-if="ques.afterOperation > 0"> -->
@ -122,8 +127,8 @@
> >
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout1.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
@ -150,6 +155,7 @@
</a-select> </a-select>
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
placeholder="日期选择" placeholder="日期选择"
show-time show-time
@ -238,13 +244,13 @@
<!-- <div v-if="quesA.afterOperation > 0"> --> <!-- <div v-if="quesA.afterOperation > 0"> -->
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange1(h.id, $event, quesA.showValue, h.recordId, h.optionVos, quesA.id)" @change="inputChange1(h.id, $event, quesA.showValue, h.optionVos, quesA.id)"
style="width: 100%" style="width: 100%"
v-model="quesA.otherInformation" v-model="quesA.otherInformation"
v-if="quesA.afterOperation === 1" v-if="quesA.afterOperation === 1"
/> />
<a-textarea <a-textarea
@change="inputChange1(h.id, $event, quesA.showValue, h.recordId, h.optionVos, quesA.id)" @change="inputChange1(h.id, $event, quesA.showValue, h.optionVos, quesA.id)"
style="width: 100%; height: 150px" style="width: 100%; height: 150px"
:max-length="500" :max-length="500"
v-else-if="quesA.afterOperation === 2" v-else-if="quesA.afterOperation === 2"
@ -316,10 +322,11 @@
<div v-else-if="h.type === 16"> <div v-else-if="h.type === 16">
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -393,7 +400,12 @@
@change="inputChange(a.id, $event, j.showValue)" @change="inputChange(a.id, $event, j.showValue)"
></a-textarea> ></a-textarea>
<div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative"> <div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative">
<a-form-item :label="h.question" class="d-flex align-center mb-3"> <a-form-item
:label="h.question"
class="d-flex align-center mb-3"
:label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="widthNum > 575 ? formItemLayout1.wrapperCol : {}"
>
<a-input <a-input
:max-length="500" :max-length="500"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
@ -417,6 +429,7 @@
</a-select> </a-select>
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
placeholder="日期选择" placeholder="日期选择"
:input-read-only="true" :input-read-only="true"
@ -501,13 +514,13 @@
<!-- <div v-if="ques.afterOperation > 0"> --> <!-- <div v-if="ques.afterOperation > 0"> -->
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)" @change="inputChange1(h.id, $event, ques.showValue, h.optionVos, ques.id)"
style="width: 100%" style="width: 100%"
v-model="ques.otherInformation" v-model="ques.otherInformation"
v-if="ques.afterOperation === 1" v-if="ques.afterOperation === 1"
/> />
<a-textarea <a-textarea
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)" @change="inputChange1(h.id, $event, ques.showValue, h.optionVos, ques.id)"
style="width: 100%; height: 150px" style="width: 100%; height: 150px"
:max-length="500" :max-length="500"
v-else-if="ques.afterOperation === 2" v-else-if="ques.afterOperation === 2"
@ -576,10 +589,11 @@
<div v-else-if="h.type === 16"> <div v-else-if="h.type === 16">
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -615,10 +629,11 @@
<div v-else-if="a.type === 16"> <div v-else-if="a.type === 16">
<a-date-picker <a-date-picker
:default-value="a.answer ? $moment(a.answer, dateFormat) : ''" :default-value="a.answer ? $moment(a.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, a.type, a.id)" @change="onChange($event, a.type, a.id)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in a.domList" :key="domIndex"> <div v-for="(dom, domIndex) in a.domList" :key="domIndex">
@ -691,6 +706,7 @@
<a-date-picker <a-date-picker
:default-value="e.answer ? $moment(e.answer, dateFormat) : ''" :default-value="e.answer ? $moment(e.answer, dateFormat) : ''"
@change="onChange($event, e.type, e.id, e.recordId)" @change="onChange($event, e.type, e.id, e.recordId)"
format="YYYY-MM-DD HH:mm"
placeholder="日期选择" placeholder="日期选择"
:input-read-only="true" :input-read-only="true"
show-time show-time
@ -766,18 +782,22 @@
return item.testQuestionsId === e.id && item.contents === `${ques.showValue}`; return item.testQuestionsId === e.id && item.contents === `${ques.showValue}`;
}) && }) &&
ques.afterOperation > 0) || ques.afterOperation > 0) ||
(ques.afterOperation > 0 && ques.choose === 1) (ques.afterOperation > 0 &&
ques.choose === 1 &&
!contentList.find(item => {
return item.testQuestionsId === e.id;
}))
" "
> >
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange1(e.id, $event, ques.showValue, e.recordId, e.optionVos, ques.id)" @change="inputChange1(e.id, $event, ques.showValue, e.optionVos, ques.id)"
style="width: 100%" style="width: 100%"
v-model="ques.otherInformation" v-model="ques.otherInformation"
v-if="ques.afterOperation === 1" v-if="ques.afterOperation === 1"
/> />
<a-textarea <a-textarea
@change="inputChange1(e.id, $event, ques.showValue, e.recordId, e.optionVos, ques.id)" @change="inputChange1(e.id, $event, ques.showValue, e.optionVos, ques.id)"
style="width: 100%; height: 150px" style="width: 100%; height: 150px"
:max-length="500" :max-length="500"
v-else-if="ques.afterOperation === 2" v-else-if="ques.afterOperation === 2"
@ -790,13 +810,13 @@
> >
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
:max-length="500" :max-length="500"
@change="onChange($event, h.type, h.id, h.h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
v-if="h.type === 1" v-if="h.type === 1"
v-model="h.answer" v-model="h.answer"
/> />
@ -819,6 +839,7 @@
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
format="YYYY-MM-DD HH:mm"
placeholder="日期选择" placeholder="日期选择"
:input-read-only="true" :input-read-only="true"
show-time show-time
@ -911,13 +932,13 @@
<!-- <div v-if="quesA.afterOperation > 0"> --> <!-- <div v-if="quesA.afterOperation > 0"> -->
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange1(h.id, $event, quesA.showValue, h.recordId, h.optionVos, quesA.id)" @change="inputChange1(h.id, $event, quesA.showValue, h.optionVos, quesA.id)"
style="width: 100%" style="width: 100%"
v-model="quesA.otherInformation" v-model="quesA.otherInformation"
v-if="quesA.afterOperation === 1" v-if="quesA.afterOperation === 1"
/> />
<a-textarea <a-textarea
@change="inputChange1(h.id, $event, quesA.showValue, h.recordId, h.optionVos, quesA.id)" @change="inputChange1(h.id, $event, quesA.showValue, h.optionVos, quesA.id)"
style="width: 100%; height: 150px" style="width: 100%; height: 150px"
:max-length="500" :max-length="500"
v-else-if="quesA.afterOperation === 2" v-else-if="quesA.afterOperation === 2"
@ -989,10 +1010,11 @@
<div v-else-if="h.type === 16"> <div v-else-if="h.type === 16">
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
:input-read-only="true" :input-read-only="true"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -1067,13 +1089,13 @@
<div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative"> <div v-else-if="j.afterOperation === 3" :key="i" v-for="(h, i) in j.questionVos" style="position: relative">
<a-form-item <a-form-item
:label="h.question" :label="h.question"
:label-col="formItemLayout.labelCol" :label-col="widthNum > 575 ? formItemLayout.labelCol : {}"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}"
class="d-flex align-center mb-3" class="d-flex align-center mb-3"
> >
<a-input <a-input
:max-length="500" :max-length="500"
@change="onChange($event, h.type, h.id, h.h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
v-if="h.type === 1" v-if="h.type === 1"
v-model="h.answer" v-model="h.answer"
/> />
@ -1096,6 +1118,7 @@
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
format="YYYY-MM-DD HH:mm"
placeholder="日期选择" placeholder="日期选择"
:input-read-only="true" :input-read-only="true"
show-time show-time
@ -1183,13 +1206,13 @@
<!-- <div v-if="ques.afterOperation > 0"> --> <!-- <div v-if="ques.afterOperation > 0"> -->
<a-input <a-input
:max-length="500" :max-length="500"
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)" @change="inputChange1(h.id, $event, ques.showValue, h.optionVos, ques.id)"
style="width: 100%" style="width: 100%"
v-model="ques.otherInformation" v-model="ques.otherInformation"
v-if="ques.afterOperation === 1" v-if="ques.afterOperation === 1"
/> />
<a-textarea <a-textarea
@change="inputChange1(h.id, $event, ques.showValue, h.recordId, h.optionVos, ques.id)" @change="inputChange1(h.id, $event, ques.showValue, h.optionVos, ques.id)"
style="width: 100%; height: 150px" style="width: 100%; height: 150px"
:max-length="500" :max-length="500"
v-else-if="ques.afterOperation === 2" v-else-if="ques.afterOperation === 2"
@ -1261,10 +1284,11 @@
<div v-else-if="h.type === 16"> <div v-else-if="h.type === 16">
<a-date-picker <a-date-picker
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" :default-value="h.answer ? $moment(h.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> <div v-for="(dom, domIndex) in h.domList" :key="domIndex">
@ -1306,10 +1330,11 @@
<div v-else-if="e.type === 16"> <div v-else-if="e.type === 16">
<a-date-picker <a-date-picker
:default-value="e.answer ? $moment(e.answer, dateFormat) : ''" :default-value="e.answer ? $moment(e.answer, dateFormat) : ''"
format="YYYY-MM-DD HH:mm"
placeholder="日期时间选择" placeholder="日期时间选择"
:input-read-only="true" :input-read-only="true"
@change="onChange($event, e.type, e.id, e.recordId)" @change="onChange($event, e.type, e.id, e.recordId)"
show-time :show-time="{ format: 'HH:mm' }"
/> />
</div> </div>
<div v-for="(dom, domIndex) in e.domList" :key="domIndex"> <div v-for="(dom, domIndex) in e.domList" :key="domIndex">
@ -1401,7 +1426,7 @@ const formItemLayout = {
}; };
const formItemLayout1 = { const formItemLayout1 = {
labelCol: { span: 0 }, labelCol: { span: 0 },
wrapperCol: { span: 24 }, wrapperCol: { span: 18 },
}; };
const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } }; const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } };
export default { export default {
@ -1468,7 +1493,7 @@ export default {
action: upload, // action: upload, //
fileList: [], // fileList: [], //
files: '', // Id files: '', // Id
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm',
dateChoose: new Date(), dateChoose: new Date(),
subDateTime: '', subDateTime: '',
getCode: '', getCode: '',
@ -1481,6 +1506,7 @@ export default {
lists: {}, lists: {},
height: '', height: '',
width: '', width: '',
widthNum: 0,
queryPath: '', queryPath: '',
coordinate: { coordinate: {
client: {}, client: {},
@ -1505,15 +1531,15 @@ export default {
} }
}, },
activeKey(val) { activeKey(val) {
window,scrollTo(0,0) window, scrollTo(0, 0);
} },
}, },
mounted() { mounted() {
this.height = document.getElementsByClassName('main')[0].offsetHeight + 'px'; this.height = document.getElementsByClassName('main')[0].offsetHeight + 'px';
this.width = document.getElementsByClassName('main')[0].offsetWidth - 6 + 'px'; this.width = document.getElementsByClassName('main')[0].offsetWidth - 6 + 'px';
console.log(this.width); this.widthNum = document.getElementsByClassName('main')[0].offsetWidth;
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.user.id}`;
this.rzlbcpSrc = `https://sxzxyzzlm.tall.wiki/ht-common?code=KT&userId=${this.ptProps.userId}`; this.rzlbcpSrc = `https://sxzxyzzlm.tall.wiki/ht-common?code=KT&userId=${this.user.id}`;
window.addEventListener('scroll', this.handleScroll); window.addEventListener('scroll', this.handleScroll);
}, },
@ -1615,7 +1641,7 @@ export default {
status: 'done', status: 'done',
name: `${0}`, name: `${0}`,
}; };
console.log([{ ...obj }, ...arr]); // console.log([{ ...obj }, ...arr]);
return [{ ...obj }, ...arr]; return [{ ...obj }, ...arr];
} else { } else {
return [...arr]; return [...arr];
@ -1656,7 +1682,7 @@ export default {
} }
quesObj.domList.push(''); quesObj.domList.push('');
this.list = [...list]; this.list = [...list];
console.log(this.list); // console.log(this.list);
}, },
addDomB(type, index, indexB, id, quesIndex, quesId) { addDomB(type, index, indexB, id, quesIndex, quesId) {
const { list } = this; const { list } = this;
@ -1720,20 +1746,20 @@ export default {
} }
} }
} else { } else {
console.log(msg); // console.log(msg);
} }
} catch (error) { } catch (error) {
console.log(error); // console.log(error);
} }
this.spinning = false; this.spinning = false;
}, },
onChange(e, type, id) { onChange(e, type, id) {
console.log(e); // console.log(e);
// //
if (this.contentList.find(item => item.testQuestionsId === id)) { if (this.contentList.find(item => item.testQuestionsId === id)) {
if (type === 1) { if (type === 1) {
// //
console.log(e); // console.log(e);
this.forFn(id, e.target.value); this.forFn(id, e.target.value);
} else if (type === 2) { } else if (type === 2) {
// //
@ -1875,13 +1901,13 @@ export default {
this.failFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss')); this.failFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'));
} }
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// + // +
getRadioAnswer(options) { getRadioAnswer(options) {
for (let i = 0; i < options.length; i++) { for (let i = 0; i < options.length; i++) {
if (options[i].choose - 0 === 1) { if (options[i].choose - 0 === 1) {
console.log(options[i].submitValue); // console.log(options[i].submitValue);
return options[i].submitValue; return options[i].submitValue;
} }
} }
@ -1919,7 +1945,7 @@ export default {
}; };
contentList.push(obj); contentList.push(obj);
this.contentList = [...contentList]; this.contentList = [...contentList];
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
ergodicList(id) { ergodicList(id) {
@ -1947,13 +1973,13 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
inputChange1(id, e, value, list, str) { inputChange1(id, e, value, list, str) {
let listArr = this.getList(list); let listArr = this.getList(list);
console.log(listArr); // console.log(listArr);
console.log(id); // console.log(id);
let numkg = 0; let numkg = 0;
for (let i = 0; i < this.contentList.length; i++) { for (let i = 0; i < this.contentList.length; i++) {
if (this.contentList[i].testQuestionsId === id) { if (this.contentList[i].testQuestionsId === id) {
@ -1988,7 +2014,7 @@ export default {
}; };
this.contentList.push(obj); this.contentList.push(obj);
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
explainChange(id, e) { explainChange(id, e) {
@ -2017,7 +2043,7 @@ export default {
// this.contentList.splice(i, 1); // this.contentList.splice(i, 1);
// } // }
// } // }
console.log(info.fileList); // console.log(info.fileList);
if (info.fileList.length > 0) { if (info.fileList.length > 0) {
let obj = { let obj = {
testQuestionsId: id, testQuestionsId: id,
@ -2036,14 +2062,14 @@ export default {
} }
this.spinning = false; this.spinning = false;
} }
console.log(this.contentList); // console.log(this.contentList);
}, },
// //
async handleChange(info, title, indexA, indexB) { async handleChange(info, title, indexA, indexB) {
this.spinning = true; this.spinning = true;
if (info.file.status === 'done') { if (info.file.status === 'done') {
const { list } = this; const { list } = this;
console.log(list, indexA); // console.log(list, indexA);
const objList = list[indexA].subReportCodes[indexB]; const objList = list[indexA].subReportCodes[indexB];
const params = { const params = {
param: { param: {
@ -2089,7 +2115,7 @@ export default {
list[indexA].subReportCodes[indexB] = { ...objList }; list[indexA].subReportCodes[indexB] = { ...objList };
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') { } else if (info.file.status === 'removed') {
@ -2290,7 +2316,7 @@ export default {
const res = await queryByPatient(params); const res = await queryByPatient(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
console.log(data); // console.log(data);
this.lists = data; this.lists = data;
} else { } else {
this.$message.error(msg); this.$message.error(msg);
@ -2332,7 +2358,7 @@ export default {
} }
@media (max-width: 575px) { @media (max-width: 575px) {
/deep/.ant-form-item-label, .ant-form-item-control-wrapper { /deep/.ant-form-item-label .ant-form-item-control-wrapper {
display: block; display: block;
width: 50%; width: 50%;
} }

8
src/views/ProjectAssistant/General.vue

@ -2,7 +2,7 @@
<div class="flex-1 flex-wrap"> <div class="flex-1 flex-wrap">
<div style="width: 100%"> <div style="width: 100%">
<a-form :form="form" class="d-flex flex-wrap align-center" layout="inline"> <a-form :form="form" class="d-flex flex-wrap align-center" layout="inline">
<div class="fill-width"> <div class="fill-width d-flex">
<a-form-item> <a-form-item>
<a-select placeholder="请选择医院" style="width: 180px" @change="changeHospitalId" allow-clear> <a-select placeholder="请选择医院" style="width: 180px" @change="changeHospitalId" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option> <a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option>
@ -174,7 +174,7 @@ export default {
...mapActions('home', ['getDoctor', 'getControlGroups']), ...mapActions('home', ['getDoctor', 'getControlGroups']),
// //
changeHospitalId(e) { changeHospitalId(e) {
console.log(typeof e); // console.log(typeof e);
if (typeof e === 'string') { if (typeof e === 'string') {
this.HospitalId = e; this.HospitalId = e;
} else { } else {
@ -188,7 +188,7 @@ export default {
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
this.hospitals = data; this.hospitals = data;
console.log(data); // console.log(data);
} else { } else {
this.$message.error('查询医院列表失败'); this.$message.error('查询医院列表失败');
} }
@ -220,7 +220,7 @@ export default {
}; };
const res = await selPatientMes(params); const res = await selPatientMes(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
console.log('获取列表'); // console.log('');
if (code === 200) { if (code === 200) {
let { lists } = this; let { lists } = this;
lists = { ...data }; lists = { ...data };

6
src/views/ProjectAssistant/Statistics.vue

@ -83,15 +83,15 @@ export default {
}, },
}; };
const res = await getHospitalTask(params); const res = await getHospitalTask(params);
console.log(res); // console.log(res);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
this.objList = { ...data }; this.objList = { ...data };
console.log(data); // console.log(data);
this.loading = false; this.loading = false;
} }
} catch (error) { } catch (error) {
console.log(error); // console.log(error);
} }
}, },
getTableData(pagination) { getTableData(pagination) {

6
src/views/SelectPatient/SelectPatient.vue

@ -76,7 +76,7 @@ export default {
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?code=KT&userId=${this.ptProps.userId}`; this.rzlbSrc = `https://sxzxyzzlm.tall.wiki/ht-common?code=KT&userId=${this.user.id}`;
}, },
created() { created() {
@ -114,7 +114,7 @@ export default {
}; };
const res = await selPatientMes(params); const res = await selPatientMes(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
console.log('获取列表'); // console.log('');
if (code === 200) { if (code === 200) {
this.lists = data; this.lists = data;
} else { } else {
@ -148,7 +148,7 @@ export default {
changeShow() { changeShow() {
this.isShow = !this.isShow; this.isShow = !this.isShow;
console.log(this.isShow); // console.log(this.isShow);
}, },
}, },
}; };

Loading…
Cancel
Save