|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div class="flex-column"> |
|
|
|
<div class="flex-column main"> |
|
|
|
<div :style="{ width: width }"> |
|
|
|
<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" /> |
|
|
@ -28,6 +28,7 @@ |
|
|
|
<a-date-picker |
|
|
|
:default-value="a.answer ? $moment(a.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, a.type, a.id)" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期选择" |
|
|
|
style="width: 100%" |
|
|
|
:input-read-only="true" |
|
|
@ -86,7 +87,7 @@ |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<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-checkbox :value="ques.submitValue">{{ ques.showValue }}</a-checkbox> |
|
|
|
</a-col> |
|
|
@ -97,7 +98,11 @@ |
|
|
|
return item.testQuestionsId === a.id && item.contents === `${ques.showValue}`; |
|
|
|
}) && |
|
|
|
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"> --> |
|
|
@ -122,8 +127,8 @@ |
|
|
|
> |
|
|
|
<a-form-item |
|
|
|
:label="h.question" |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
:label-col="widthNum > 575 ? formItemLayout.labelCol : {}" |
|
|
|
:wrapper-col="widthNum > 575 ? formItemLayout1.wrapperCol : {}" |
|
|
|
class="d-flex align-center mb-3" |
|
|
|
> |
|
|
|
<a-input |
|
|
@ -150,6 +155,7 @@ |
|
|
|
</a-select> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
placeholder="日期选择" |
|
|
|
show-time |
|
|
@ -238,13 +244,13 @@ |
|
|
|
<!-- <div v-if="quesA.afterOperation > 0"> --> |
|
|
|
<a-input |
|
|
|
: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%" |
|
|
|
v-model="quesA.otherInformation" |
|
|
|
v-if="quesA.afterOperation === 1" |
|
|
|
/> |
|
|
|
<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" |
|
|
|
:max-length="500" |
|
|
|
v-else-if="quesA.afterOperation === 2" |
|
|
@ -316,10 +322,11 @@ |
|
|
|
<div v-else-if="h.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
:input-read-only="true" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> |
|
|
@ -393,7 +400,12 @@ |
|
|
|
@change="inputChange(a.id, $event, j.showValue)" |
|
|
|
></a-textarea> |
|
|
|
<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 |
|
|
|
:max-length="500" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
@ -417,6 +429,7 @@ |
|
|
|
</a-select> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
placeholder="日期选择" |
|
|
|
:input-read-only="true" |
|
|
@ -501,13 +514,13 @@ |
|
|
|
<!-- <div v-if="ques.afterOperation > 0"> --> |
|
|
|
<a-input |
|
|
|
: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%" |
|
|
|
v-model="ques.otherInformation" |
|
|
|
v-if="ques.afterOperation === 1" |
|
|
|
/> |
|
|
|
<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" |
|
|
|
:max-length="500" |
|
|
|
v-else-if="ques.afterOperation === 2" |
|
|
@ -576,10 +589,11 @@ |
|
|
|
<div v-else-if="h.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
:input-read-only="true" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> |
|
|
@ -615,10 +629,11 @@ |
|
|
|
<div v-else-if="a.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="a.answer ? $moment(a.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
:input-read-only="true" |
|
|
|
@change="onChange($event, a.type, a.id)" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-for="(dom, domIndex) in a.domList" :key="domIndex"> |
|
|
@ -691,6 +706,7 @@ |
|
|
|
<a-date-picker |
|
|
|
:default-value="e.answer ? $moment(e.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期选择" |
|
|
|
:input-read-only="true" |
|
|
|
show-time |
|
|
@ -766,18 +782,22 @@ |
|
|
|
return item.testQuestionsId === e.id && item.contents === `${ques.showValue}`; |
|
|
|
}) && |
|
|
|
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 |
|
|
|
: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%" |
|
|
|
v-model="ques.otherInformation" |
|
|
|
v-if="ques.afterOperation === 1" |
|
|
|
/> |
|
|
|
<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" |
|
|
|
:max-length="500" |
|
|
|
v-else-if="ques.afterOperation === 2" |
|
|
@ -790,13 +810,13 @@ |
|
|
|
> |
|
|
|
<a-form-item |
|
|
|
:label="h.question" |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
:label-col="widthNum > 575 ? formItemLayout.labelCol : {}" |
|
|
|
:wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}" |
|
|
|
class="d-flex align-center mb-3" |
|
|
|
> |
|
|
|
<a-input |
|
|
|
: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-model="h.answer" |
|
|
|
/> |
|
|
@ -819,6 +839,7 @@ |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期选择" |
|
|
|
:input-read-only="true" |
|
|
|
show-time |
|
|
@ -911,13 +932,13 @@ |
|
|
|
<!-- <div v-if="quesA.afterOperation > 0"> --> |
|
|
|
<a-input |
|
|
|
: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%" |
|
|
|
v-model="quesA.otherInformation" |
|
|
|
v-if="quesA.afterOperation === 1" |
|
|
|
/> |
|
|
|
<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" |
|
|
|
:max-length="500" |
|
|
|
v-else-if="quesA.afterOperation === 2" |
|
|
@ -989,10 +1010,11 @@ |
|
|
|
<div v-else-if="h.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
:input-read-only="true" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<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"> |
|
|
|
<a-form-item |
|
|
|
:label="h.question" |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
:label-col="widthNum > 575 ? formItemLayout.labelCol : {}" |
|
|
|
:wrapper-col="widthNum > 575 ? formItemLayout.wrapperCol : {}" |
|
|
|
class="d-flex align-center mb-3" |
|
|
|
> |
|
|
|
<a-input |
|
|
|
: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-model="h.answer" |
|
|
|
/> |
|
|
@ -1096,6 +1118,7 @@ |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期选择" |
|
|
|
:input-read-only="true" |
|
|
|
show-time |
|
|
@ -1183,13 +1206,13 @@ |
|
|
|
<!-- <div v-if="ques.afterOperation > 0"> --> |
|
|
|
<a-input |
|
|
|
: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%" |
|
|
|
v-model="ques.otherInformation" |
|
|
|
v-if="ques.afterOperation === 1" |
|
|
|
/> |
|
|
|
<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" |
|
|
|
:max-length="500" |
|
|
|
v-else-if="ques.afterOperation === 2" |
|
|
@ -1261,10 +1284,11 @@ |
|
|
|
<div v-else-if="h.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
:input-read-only="true" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-for="(dom, domIndex) in h.domList" :key="domIndex"> |
|
|
@ -1306,10 +1330,11 @@ |
|
|
|
<div v-else-if="e.type === 16"> |
|
|
|
<a-date-picker |
|
|
|
:default-value="e.answer ? $moment(e.answer, dateFormat) : ''" |
|
|
|
format="YYYY-MM-DD HH:mm" |
|
|
|
placeholder="日期时间选择" |
|
|
|
:input-read-only="true" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
show-time |
|
|
|
:show-time="{ format: 'HH:mm' }" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-for="(dom, domIndex) in e.domList" :key="domIndex"> |
|
|
@ -1401,7 +1426,7 @@ const formItemLayout = { |
|
|
|
}; |
|
|
|
const formItemLayout1 = { |
|
|
|
labelCol: { span: 0 }, |
|
|
|
wrapperCol: { span: 24 }, |
|
|
|
wrapperCol: { span: 18 }, |
|
|
|
}; |
|
|
|
const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } }; |
|
|
|
export default { |
|
|
@ -1468,7 +1493,7 @@ export default { |
|
|
|
action: upload, // 上传附件地址 |
|
|
|
fileList: [], // 附件列表 |
|
|
|
files: '', // 附件Id |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm', |
|
|
|
dateChoose: new Date(), |
|
|
|
subDateTime: '', |
|
|
|
getCode: '', |
|
|
@ -1481,6 +1506,7 @@ export default { |
|
|
|
lists: {}, |
|
|
|
height: '', |
|
|
|
width: '', |
|
|
|
widthNum: 0, |
|
|
|
queryPath: '', |
|
|
|
coordinate: { |
|
|
|
client: {}, |
|
|
@ -1505,15 +1531,15 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
activeKey(val) { |
|
|
|
window,scrollTo(0,0) |
|
|
|
} |
|
|
|
window, scrollTo(0, 0); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.height = document.getElementsByClassName('main')[0].offsetHeight + 'px'; |
|
|
|
this.width = document.getElementsByClassName('main')[0].offsetWidth - 6 + 'px'; |
|
|
|
console.log(this.width); |
|
|
|
this.rzlbSrc = `https://sxzxyzzlm.tall.wiki/ht-common/home/reportHistory?code=LSBGD&userId=${this.ptProps.userId}`; |
|
|
|
this.rzlbcpSrc = `https://sxzxyzzlm.tall.wiki/ht-common?code=KT&userId=${this.ptProps.userId}`; |
|
|
|
this.widthNum = document.getElementsByClassName('main')[0].offsetWidth; |
|
|
|
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.user.id}`; |
|
|
|
window.addEventListener('scroll', this.handleScroll); |
|
|
|
}, |
|
|
|
|
|
|
@ -1615,7 +1641,7 @@ export default { |
|
|
|
status: 'done', |
|
|
|
name: `${0}`, |
|
|
|
}; |
|
|
|
console.log([{ ...obj }, ...arr]); |
|
|
|
// console.log([{ ...obj }, ...arr]); |
|
|
|
return [{ ...obj }, ...arr]; |
|
|
|
} else { |
|
|
|
return [...arr]; |
|
|
@ -1656,7 +1682,7 @@ export default { |
|
|
|
} |
|
|
|
quesObj.domList.push(''); |
|
|
|
this.list = [...list]; |
|
|
|
console.log(this.list); |
|
|
|
// console.log(this.list); |
|
|
|
}, |
|
|
|
addDomB(type, index, indexB, id, quesIndex, quesId) { |
|
|
|
const { list } = this; |
|
|
@ -1720,20 +1746,20 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
console.log(msg); |
|
|
|
// console.log(msg); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log(error); |
|
|
|
// console.log(error); |
|
|
|
} |
|
|
|
this.spinning = false; |
|
|
|
}, |
|
|
|
onChange(e, type, id) { |
|
|
|
console.log(e); |
|
|
|
// console.log(e); |
|
|
|
// 监听所有得题目类型得填写情况(改变事件) |
|
|
|
if (this.contentList.find(item => item.testQuestionsId === id)) { |
|
|
|
if (type === 1) { |
|
|
|
// 单行文本框 |
|
|
|
console.log(e); |
|
|
|
// console.log(e); |
|
|
|
this.forFn(id, e.target.value); |
|
|
|
} else if (type === 2) { |
|
|
|
// 多行文本框 |
|
|
@ -1875,13 +1901,13 @@ export default { |
|
|
|
this.failFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss')); |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.contentList); |
|
|
|
// console.log(this.contentList); |
|
|
|
}, |
|
|
|
// 获取单选+其他的答案 |
|
|
|
getRadioAnswer(options) { |
|
|
|
for (let i = 0; i < options.length; i++) { |
|
|
|
if (options[i].choose - 0 === 1) { |
|
|
|
console.log(options[i].submitValue); |
|
|
|
// console.log(options[i].submitValue); |
|
|
|
return options[i].submitValue; |
|
|
|
} |
|
|
|
} |
|
|
@ -1919,7 +1945,7 @@ export default { |
|
|
|
}; |
|
|
|
contentList.push(obj); |
|
|
|
this.contentList = [...contentList]; |
|
|
|
console.log(this.contentList); |
|
|
|
// console.log(this.contentList); |
|
|
|
}, |
|
|
|
// 遍历数组,删除本题已经答过的所有答案 |
|
|
|
ergodicList(id) { |
|
|
@ -1947,13 +1973,13 @@ export default { |
|
|
|
}; |
|
|
|
this.contentList.push(obj); |
|
|
|
} |
|
|
|
console.log(this.contentList); |
|
|
|
// console.log(this.contentList); |
|
|
|
}, |
|
|
|
// 多选其他输入框发生改变时 |
|
|
|
inputChange1(id, e, value, list, str) { |
|
|
|
let listArr = this.getList(list); |
|
|
|
console.log(listArr); |
|
|
|
console.log(id); |
|
|
|
// console.log(listArr); |
|
|
|
// console.log(id); |
|
|
|
let numkg = 0; |
|
|
|
for (let i = 0; i < this.contentList.length; i++) { |
|
|
|
if (this.contentList[i].testQuestionsId === id) { |
|
|
@ -1988,7 +2014,7 @@ export default { |
|
|
|
}; |
|
|
|
this.contentList.push(obj); |
|
|
|
} |
|
|
|
console.log(this.contentList); |
|
|
|
// console.log(this.contentList); |
|
|
|
}, |
|
|
|
// 说明输入框发生改变时 |
|
|
|
explainChange(id, e) { |
|
|
@ -2017,7 +2043,7 @@ export default { |
|
|
|
// this.contentList.splice(i, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
console.log(info.fileList); |
|
|
|
// console.log(info.fileList); |
|
|
|
if (info.fileList.length > 0) { |
|
|
|
let obj = { |
|
|
|
testQuestionsId: id, |
|
|
@ -2036,14 +2062,14 @@ export default { |
|
|
|
} |
|
|
|
this.spinning = false; |
|
|
|
} |
|
|
|
console.log(this.contentList); |
|
|
|
// console.log(this.contentList); |
|
|
|
}, |
|
|
|
// 图像识别 |
|
|
|
async handleChange(info, title, indexA, indexB) { |
|
|
|
this.spinning = true; |
|
|
|
if (info.file.status === 'done') { |
|
|
|
const { list } = this; |
|
|
|
console.log(list, indexA); |
|
|
|
// console.log(list, indexA); |
|
|
|
const objList = list[indexA].subReportCodes[indexB]; |
|
|
|
const params = { |
|
|
|
param: { |
|
|
@ -2089,7 +2115,7 @@ export default { |
|
|
|
list[indexA].subReportCodes[indexB] = { ...objList }; |
|
|
|
this.list = [...list]; |
|
|
|
} else { |
|
|
|
console.log(msg); |
|
|
|
// console.log(msg); |
|
|
|
this.spinning = false; |
|
|
|
} |
|
|
|
} else if (info.file.status === 'removed') { |
|
|
@ -2290,7 +2316,7 @@ export default { |
|
|
|
const res = await queryByPatient(params); |
|
|
|
const { code, msg, data } = res.data; |
|
|
|
if (code === 200) { |
|
|
|
console.log(data); |
|
|
|
// console.log(data); |
|
|
|
this.lists = data; |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
@ -2332,7 +2358,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
@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; |
|
|
|
width: 50%; |
|
|
|
} |
|
|
|