Browse Source

项目完善

master
aBin 4 years ago
parent
commit
5fda573f8f
  1. 162
      package-lock.json
  2. 31
      src/App.vue
  3. 2
      src/common/portrait.styl
  4. 36
      src/components/BiologicalSampleSearch/Search.vue
  5. 2
      src/components/Echarts/Categorymap.vue
  6. 2
      src/components/Echarts/Cisualmap.vue
  7. 2
      src/components/Echarts/Piemap.vue
  8. 39
      src/components/Echarts/Treemap.vue
  9. 18
      src/components/PatientInfo/PatientTable.vue
  10. 15
      src/components/PatientInfo/Search.vue
  11. 5
      src/config/api.js
  12. 9
      src/store/modules/home/mutations.js
  13. 1
      src/store/modules/home/state.js
  14. 133
      src/views/PatientInfo/PatientInfo.vue

162
package-lock.json

@ -1808,6 +1808,16 @@
"integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"cacache": {
"version": "13.0.1",
"resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1594427999421&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz",
@ -1840,6 +1850,34 @@
"integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=",
"dev": true
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"css-loader": {
"version": "3.6.0",
"resolved": "https://registry.npm.taobao.org/css-loader/download/css-loader-3.6.0.tgz?cache=0&sync_timestamp=1604507107408&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-loader%2Fdownload%2Fcss-loader-3.6.0.tgz",
@ -1893,6 +1931,13 @@
"universalify": "^0.1.0"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"icss-utils": {
"version": "4.1.1",
"resolved": "https://registry.npm.taobao.org/icss-utils/download/icss-utils-4.1.1.tgz?cache=0&sync_timestamp=1602527330977&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ficss-utils%2Fdownload%2Ficss-utils-4.1.1.tgz",
@ -2007,6 +2052,16 @@
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": {
"version": "2.3.8",
"resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1603881757308&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz",
@ -2023,6 +2078,32 @@
"terser": "^4.6.12",
"webpack-sources": "^1.4.3"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.2",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz",
"integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
}
}
},
@ -12596,87 +12677,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.2",
"resolved": "https://registry.npm.taobao.org/vue-loader/download/vue-loader-16.1.2.tgz",
"integrity": "sha1-XAO2xQ0qX5g8fOuhXFDXjKKymPQ=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1611327117754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/chalk/download/chalk-4.1.0.tgz?cache=0&sync_timestamp=1591686984650&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchalk%2Fdownload%2Fchalk-4.1.0.tgz",
"integrity": "sha1-ThSHCmGNni7dl92DRf2dncMVZGo=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/loader-utils/download/loader-utils-2.0.0.tgz",
"integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1611394043517&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-quill-editor": {
"version": "3.0.6",
"resolved": "https://registry.npm.taobao.org/vue-quill-editor/download/vue-quill-editor-3.0.6.tgz",

31
src/App.vue

@ -1,10 +1,3 @@
<!--
* @Author: wally
* @email: 18603454788@163.com
* @Date: 2021-02-19 17:44:32
* @LastEditors: wally
* @LastEditTime: 2021-02-20 09:15:41
-->
<template>
<a-config-provider :locale="zh_CN">
<div class="d-flex flex-row flex-nowrap" id="app">
@ -18,6 +11,7 @@
import { mapState, mapActions, mapMutations } from 'vuex';
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import BtnCon from 'components/BtnCom/BtnCon.vue';
import { getHId } from 'config/api';
export default {
name: 'App',
@ -38,9 +32,10 @@ export default {
},
created() {
// const userId = '1218763410024566784';
// const params = { userId };
// this.getUserId(params);
const userId = '1218763410024566784';
const params = { userId };
this.getUserId(params);
this.getHospitalId();
const that = this;
window.plugin = window.TallPlugin.init();
// created created便
@ -54,7 +49,21 @@ export default {
methods: {
...mapActions('home', ['getUserId']),
...mapMutations('home', ['setPtProps']),
...mapMutations('home', ['setPtProps', 'setHospitalId']),
async getHospitalId() {
try {
const res = await getHId(1);
const { code, msg, data } = res.data;
if (code === 200) {
this.setHospitalId(data.id);
} else {
this.$message.error('医院查询失败');
}
} catch (error) {
this.$message.error(error);
}
},
},
};
</script>

2
src/common/portrait.styl

@ -183,6 +183,8 @@
.white--text{
color: #fff;
width: 200px;
margin: 0 auto
}

36
src/components/BiologicalSampleSearch/Search.vue

@ -5,7 +5,7 @@
<a-form :form="form" @submit="handleSubmit" class="d-flex flex-nowrap align-center" layout="inline">
<a-form-item>
<a-select placeholder="请选择医院" style="min-width: 150px" v-decorator="['hospital']">
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.title }}</a-select-option>
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
<a-form-item>
@ -29,29 +29,13 @@
</template>
<script>
import { getHList } from 'config/api';
export default {
name: 'Search',
data() {
return {
form: this.$form.createForm(this, { name: 'search' }),
hospitals: [
{
id: 1,
title: '山西中医大学附属医院',
},
{
id: 2,
title: '山西人民医院',
},
{
id: 3,
title: '大同第五人民医院',
},
{
id: 4,
title: '大同国药同煤总医院',
},
],
hospitals: [],
types: [
{
id: 0,
@ -86,7 +70,19 @@ export default {
],
};
},
async created() {
try {
const res = await getHList();
const { code, msg, data } = res.data;
if (code === 200) {
this.hospitals = data;
} else {
this.$message.error('查询医院列表失败');
}
} catch (error) {
this.$message.error('查询医院列表失败');
}
},
methods: {
//
handleSubmit(e) {

2
src/components/Echarts/Categorymap.vue

@ -47,7 +47,7 @@ export default {
clearInterval(this.timer);
},
methods: {
async drawLine() {
drawLine() {
// domecharts
let myChart = this.$echarts.init(document.getElementById('Categorymap'));
//

2
src/components/Echarts/Cisualmap.vue

@ -38,7 +38,7 @@ export default {
};
},
methods: {
async drawLine() {
drawLine() {
// domecharts
let myChart1 = this.$echarts.init(document.getElementById('Cisualmap1'));
let myChart2 = this.$echarts.init(document.getElementById('Cisualmap2'));

2
src/components/Echarts/Piemap.vue

@ -38,7 +38,7 @@ export default {
clearInterval(this.timer);
},
methods: {
async drawLine() {
drawLine() {
// domecharts
let myChart = this.$echarts.init(document.getElementById('Piemap'));
//

39
src/components/Echarts/Treemap.vue

@ -12,6 +12,7 @@
</div>
</template>
<script>
import { mapState } from 'vuex';
import { complete } from 'config/api';
export default {
name: 'Treemap',
@ -24,24 +25,25 @@ export default {
timer: null,
};
},
computed: mapState('home', ['ptProps', 'hospitalId']),
mounted() {
// this.drawLine();
// this.timer = setInterval(() => {
this.drawLine();
this.timer = setInterval(() => {
this.drawLine();
}, 10000);
let wh = window.innerWidth;
let hg = window.innerHeight;
this.width = wh + 'px';
this.height = hg + 'px';
console.log(this.height);
window.onresize = () => {
return (() => {
wh = window.innerWidth;
hg = window.innerHeight;
this.width = wh + 'px';
this.height = hg + 'px';
})();
};
// }, 10000);
// let wh = window.innerWidth;
// let hg = window.innerHeight;
// this.width = wh + 'px';
// this.height = hg + 'px';
// console.log(this.height);
// window.onresize = () => {
// return (() => {
// wh = window.innerWidth;
// hg = window.innerHeight;
// this.width = wh + 'px';
// this.height = hg + 'px';
// })();
// };
},
destroyed() {
clearInterval(this.timer);
@ -50,6 +52,7 @@ export default {
async drawLine() {
// domecharts
await this.getData();
console.log(this.valueList);
let myChart = this.$echarts.init(document.getElementById('Treemap'));
//
var option = {
@ -87,8 +90,8 @@ export default {
async getData() {
const params = {
param: {
hospitalId: '',
userId: '',
hospitalId: this.hospitalId ? this.ptProps.hospitalId : '',
userId: this.ptProps && this.ptProps.userId ? this.ptProps.userId : '',
},
};
const res = await complete(params);

18
src/components/PatientInfo/PatientTable.vue

@ -1,7 +1,7 @@
<template>
<div>
<!-- search -->
<div style="width:100%" v-if="lists && lists.list && lists.list.length > 0">
<div style="width: 100%" v-if="lists && lists.list && lists.list.length > 0">
<a-table
:columns="columns"
:data-source="lists.list"
@ -18,11 +18,17 @@
<template slot="inputStatus" slot-scope="text, record">
<span>
{{ record.inputStatus === 0 ? '新建'
: record.inputStatus === 1 ? '数据搜集中'
: record.inputStatus === 2 ? '数据搜集完成'
: record.inputStatus === 3 ? '数据搜集超时'
: '废弃' }}
{{
record.inputStatus === 0
? '新建'
: record.inputStatus === 1
? '数据搜集中'
: record.inputStatus === 2
? '数据搜集完成'
: record.inputStatus === 3
? '数据搜集超时'
: '废弃'
}}
</span>
</template>

15
src/components/PatientInfo/Search.vue

@ -2,22 +2,13 @@
<!-- search -->
<div>
<div class="d-flex flex-row flex-nowrap">
<a-form
:form="form"
@submit="handleSubmit"
class="d-flex flex-nowrap align-center"
layout="inline"
>
<a-form :form="form" @submit="handleSubmit" class="d-flex flex-nowrap align-center" layout="inline">
<a-form-item>
<a-input placeholder="住院号" style="width: 14em" v-decorator="['inpatientNumber']" />
</a-form-item>
<a-form-item>
<a-select placeholder="请选择对照组" style="min-width: 150px" v-decorator="['groupValue']">
<a-select-option
:key="item.id"
:value="item.id"
v-for="item in controlGroups"
>{{ item.name }}</a-select-option>
<a-select placeholder="请选择对照组" style="min-width: 450px" v-decorator="['groupValue']">
<a-select-option :key="item.id" :value="item.id" v-for="item in controlGroups">{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
<a-button class="mr-4" html-type="submit" icon="search" type="primary">搜索</a-button>

5
src/config/api.js

@ -15,7 +15,12 @@ const inpatient = `${tcm}/inpatient`; // 对照组接口
const statistics = `${tcm}/statistics`; // 数据统计相关接口
const conferenceRecords = `${tcm}/conferenceRecords`; // 会议纪要相关接口
const biologicalSamples = `${tcm}/biologicalSamples`; // 生物样本相关接口
const hospatil = `${tcm}/hospatil`; // 医院相关接口
// 通过任务Id查询项目Id
export const getHId = params => axios.get(`${hospatil}/byProjectId?projectId=${params}`);
// 查询医院列表
export const getHList = params => axios.get(`${hospatil}/selHospatil`);
// 保存患者病例信息
export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params);

9
src/store/modules/home/mutations.js

@ -55,6 +55,15 @@ const mutations = {
setPtProps(state, data) {
state.ptProps = data;
},
/**
* 设置医院Id
* @param {object} state
* @param {string} data
*/
setHospitalId(state, data) {
state.hospitalId = data;
},
};
export default mutations;

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

@ -5,6 +5,7 @@ const state = {
patientId: '', // 病患id
previewInfo: { host: '', place: '', startTime: '', endTime: '', participants: '', meetingMinutes: '', discussionContent: '' }, // 预览信息
ptProps: null, // 接受PT传过来的 pluginId,projectId,roleId,taskId,userId
hospitalId: '',
};
export default state;

133
src/views/PatientInfo/PatientInfo.vue

@ -110,14 +110,25 @@
<!-- 当类型为12时为单选+关联 -->
<div v-else-if="a.type === 12">
<a-radio-group @change="onChange($event, a.type, a.id)">
<a-radio :style="radioStyle" :value="1"> 高血压 </a-radio>
<a-radio :style="radioStyle" :value="2"> 高血脂 </a-radio>
<a-radio :style="radioStyle" :value="3"> 高血糖 </a-radio>
<a-radio :style="radioStyle" :value="4">
其它
<a-input v-if="value === 4" :style="{ width: 100, marginLeft: 10 }" />
<a-radio v-for="(f, g) in a.optionVos" :key="g" :style="radioStyle" :value="f.showValue">
{{ f.showValue }}
</a-radio>
</a-radio-group>
<div v-for="(j, k) in a.optionVos" :key="k">
<div
v-if="
contentList.find(item => {
return item.testQuestionsId === a.id && item.contents === `${j.showValue}`;
}) && j.afterOperation > 0
"
>
<div v-for="(h, i) in j.questionVos" :key="i">
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" :label="h.question">
<a-input></a-input>
</a-form-item>
</div>
</div>
</div>
</div>
<div v-else-if="a.type === 13">
<a-input-number @change="onChange($event, a.type, a.id)" />
@ -210,31 +221,50 @@
<div v-else-if="e.type === 11">
<a-checkbox-group @change="onChange($event, e.type, e.id)">
<a-row>
<a-col :span="12">
<a-checkbox value="A"> A </a-checkbox>
</a-col>
<a-col :span="12">
<a-checkbox value="B"> B </a-checkbox>
<a-col :span="24" v-for="(ques, indexNum) in e.optionVos" :key="indexNum">
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox>
</a-col>
<a-col :span="12">
<a-checkbox value="C"> 其他 </a-checkbox>
<a-col :span="100">
<a-input
v-if="
contentList.find(item => {
return (
item.testQuestionsId === e.id &&
item.contents.find(a => {
return a === '其他';
})
);
})
"
:style="{ width: 100, marginLeft: 10 }"
/>
</a-col>
</a-row>
<a-input v-if="value === 4" :style="{ width: 100, marginLeft: 10 }" />
说明 <a-input :style="{ width: 100, marginLeft: 10 }" />
</a-checkbox-group>
</div>
<!-- 当类型为12时为单选+关联 -->
<div v-else-if="e.type === 12">
<a-radio-group @change="onChange($event, e.type, e.id)">
<a-radio :style="radioStyle" :value="1"> 高血压 </a-radio>
<a-radio :style="radioStyle" :value="2"> 高血脂 </a-radio>
<a-radio :style="radioStyle" :value="3"> 高血糖 </a-radio>
<a-radio :style="radioStyle" :value="4">
其它
<a-input v-if="value === 4" :style="{ width: 100, marginLeft: 10 }" />
<a-radio v-for="(f, g) in e.optionVos" :key="g" :style="radioStyle" :value="f.showValue">
{{ f.showValue }}
</a-radio>
</a-radio-group>
<div v-for="(j, k) in e.optionVos" :key="k">
<div
v-if="
contentList.find(item => {
return item.testQuestionsId === e.id && item.contents === `${j.showValue}`;
}) && j.afterOperation > 0
"
>
<div v-for="(h, i) in j.questionVos" :key="i">
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" :label="h.question">
<a-input></a-input>
</a-form-item>
</div>
</div>
</div>
</div>
<div v-else-if="e.type === 13">
<a-input-number @change="onChange($event, e.type, e.id)" />
@ -244,11 +274,8 @@
</div>
</div>
</div>
<!-- <a-form-item class="d-flex flex-row-reverse">
<a-button class="white--text px-10" html-type="submit" type="primary">提交</a-button>
</a-form-item> -->
</a-form>
<a-button class="white--text px-10" type="primary" @click="setData()">提交</a-button>
<a-button class="white--text px-10" type="primary" @click="setData()" v-if="list.length > 0">提交</a-button>
</div>
</template>
@ -313,17 +340,17 @@ export default {
this.forFn(id, e.target.value);
} else if (type === 4) {
//
alert('多选,没有这类的题,先参考多选+其他类型的题,那个有');
// this.forFn(id, e);
// alert('+');
this.forFn(id, e);
} else if (type === 5) {
//
this.forFn(id, e);
// this.forFn(id, e);
} else if (type === 6) {
// 2020-01-01 00:00:00
// console.log(this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'));
this.forFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'));
} else if (type === 7) {
alert('上传文件,先下');
alert('上传文件,先下');
} else if (type === 8) {
// +
console.log(e.target.value);
@ -338,6 +365,8 @@ export default {
this.forFn(id, e);
} else if (type === 12) {
// +
// console.log(e.target.value, type, id);
this.forFn(id, e.target.value);
} else if (type === 13) {
//
} else if (type === 14) {
@ -356,18 +385,19 @@ export default {
} else if (type === 4) {
//
alert('多选,没有这类的题,先参考多选+其他类型的题,那个有');
this.failFn(id, e);
} else if (type === 5) {
//
this.failFn(id, e);
// this.failFn(id, e);
} else if (type === 6) {
// 2020-01-01 00:00:00
// console.log(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'));
} else if (type === 7) {
alert('上传文件,先下');
alert('上传文件,先下');
} else if (type === 8) {
// +
console.log(e.target.value);
console.log(id, e.target.value);
// alert(' + ');
} else if (type === 9) {
this.failFn(id, e);
@ -376,6 +406,8 @@ export default {
// +
} else if (type === 11) {
this.failFn(id, e);
} else if (type === 12) {
this.failFn(id, e.target.value);
}
}
},
@ -403,25 +435,26 @@ export default {
console.log(this.contentList);
},
//
async setData() {
try {
const params = {
param: {
list: this.contentList,
patientId: 1,
timeSlot: 123,
},
};
const res = await saveCaseMes(params);
const { code, msg, data } = res.data;
if (code === 200) {
console.log(data);
} else {
console.log(msg);
}
} catch (error) {
this.$message.error('error');
}
setData() {
console.log(this.contentList);
// try {
// const params = {
// param: {
// list: this.contentList,
// patientId: 1,
// timeSlot: 123,
// },
// };
// const res = await saveCaseMes(params);
// const { code, msg, data } = res.data;
// if (code === 200) {
// console.log(data);
// } else {
// console.log(msg);
// }
// } catch (error) {
// this.$message.error('error');
// }
},
},
};

Loading…
Cancel
Save