Browse Source

0312

master
领悟 4 months ago
parent
commit
f913fc3ea5
  1. 84
      src/views/thrombolysis/components/throm-result-firstInfo.vue

84
src/views/thrombolysis/components/throm-result-firstInfo.vue

@ -17,23 +17,25 @@
</div> </div>
<div class="content-right"> <div class="content-right">
<!-- text --> <!-- text -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text"
readOnly /> v-decorator="[v]" readOnly />
<!-- input --> <!-- input -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'"
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> :type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)"
placeholder="请输入" />
<!-- datetime --> <!-- datetime -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly
@click="selectOption(v)" v-decorator="[v]" placeholder="请选择" /> @click="selectOption(v)" v-decorator="[v]" placeholder="请选择" />
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" v-decorator="[v]" <a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'"
@change="handleChange($event, v)" placeholder="请选择" style="display: block;"> v-decorator="[v]" @change="handleChange($event, v)" placeholder="请选择"
style="display: block;">
<a-select-option v-for="(item, val) in k.range" :key="val"> <a-select-option v-for="(item, val) in k.range" :key="val">
{{ val }} {{ val }}
</a-select-option> </a-select-option>
</a-select> </a-select>
<!-- radio --> <!-- radio -->
<a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" v-decorator="[v]" <a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'"
@change=" v-decorator="[v]" @change="
handleChange($event.target.value, v) handleChange($event.target.value, v)
"> ">
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> <a-radio v-for="(item, index) in k.range" :key="item" :value="item">
@ -116,11 +118,12 @@
</div> </div>
<div class="content-right"> <div class="content-right">
<!-- text --> <!-- text -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text"
readOnly /> v-decorator="[v]" readOnly />
<!-- modal --> <!-- modal -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'modal'" :placeholder="k.rightText" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'modal'"
@click="toInform" type="text" v-decorator="[v]" readOnly /> :placeholder="k.rightText" @click="toInform" type="text" v-decorator="[v]"
readOnly />
<!-- radio --> <!-- radio -->
<a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" v-decorator="[ <a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" v-decorator="[
v, v,
@ -133,16 +136,17 @@
</a-radio> </a-radio>
</a-radio-group> </a-radio-group>
<!-- checkbox --> <!-- checkbox -->
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" :options="k.range" <a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'"
v-decorator="[ :options="k.range" v-decorator="[
v, v,
{ initialValue: k.default }, { initialValue: k.default },
]" @change=" ]" @change="
handleChange($event, v, null, k.type) handleChange($event, v, null, k.type)
" /> " />
<!-- input --> <!-- input -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'"
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> :type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)"
placeholder="请输入" />
<!-- datetime --> <!-- datetime -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly
@click="selectOption(v)" v-decorator="[ @click="selectOption(v)" v-decorator="[
@ -191,11 +195,11 @@
</div> </div>
<div class="content-right"> <div class="content-right">
<!-- text --> <!-- text -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text"
readOnly /> v-decorator="[v]" readOnly />
<!-- radio --> <!-- radio -->
<a-radio-group class="radioGroupItem" :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" <a-radio-group class="radioGroupItem" :disabled="writeAble || !editAuth"
v-decorator="[v]" @change=" v-if="k.type === 'radio'" v-decorator="[v]" @change="
handleChange($event.target.value, v) handleChange($event.target.value, v)
"> ">
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> <a-radio v-for="(item, index) in k.range" :key="item" :value="item">
@ -203,18 +207,19 @@
</a-radio> </a-radio>
</a-radio-group> </a-radio-group>
<!-- input --> <!-- input -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'"
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> :type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)"
placeholder="请输入" />
<!-- checkbox --> <!-- checkbox -->
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" :options="k.range" <a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'"
v-decorator="[v]" @change=" :options="k.range" v-decorator="[v]" @change="
handleChange($event, v, null, k.type) handleChange($event, v, null, k.type)
" /> " />
<!-- datetime --> <!-- datetime -->
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly <a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly
@click="selectOption(v)" v-decorator="[v]" placeholder="请选择" /> @click="selectOption(v)" v-decorator="[v]" placeholder="请选择" />
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" v-decorator="[v]" <a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'"
@change="handleChange($event, v)" placeholder="请选择"> v-decorator="[v]" @change="handleChange($event, v)" placeholder="请选择">
<a-select-option v-for="(item, v) in k.range" :key="item"> <a-select-option v-for="(item, v) in k.range" :key="item">
{{ v }} {{ v }}
</a-select-option> </a-select-option>
@ -500,11 +505,12 @@
} }
// this.updateAidBase(code, value, type) // this.updateAidBase(code, value, type)
}, },
async handleEdit(e){ async handleEdit(e) {
if(!this.editAuth){ if (!this.editAuth) {
this.editAuth = true this.editAuth = true
}else{ } else {
this.handleSubmit(e, 0) await this.handleSubmit(e, 0)
this.editAuth = false
} }
}, },
async onSubmit(e, patientId) { async onSubmit(e, patientId) {
@ -527,7 +533,7 @@
this.handleSubmit(e) this.handleSubmit(e)
} }
}, },
handleSubmit(e,finishStatus) { handleSubmit(e, finishStatus) {
this.$nextTick(async () => { this.$nextTick(async () => {
this.firstForm.validateFields(async (err, values) => { this.firstForm.validateFields(async (err, values) => {
let codeAndAnswerList = [], let codeAndAnswerList = [],
@ -689,9 +695,9 @@
if (this.taskList.text === map[k]) { if (this.taskList.text === map[k]) {
this.taskList.status = true; this.taskList.status = true;
} }
if ( if (
this.$route.name !== 'Min' && this.$route.name !== 'Min' &&
this.$route.name !== 'PatientList' this.$route.name !== 'PatientList'
@ -848,8 +854,6 @@
} }
</style> </style>
<style scoped> <style scoped>
>>>.adverse .ant-form-item:nth-child(2) { >>>.adverse .ant-form-item:nth-child(2) {
height: 150px !important; height: 150px !important;
display: flex; display: flex;
@ -940,11 +944,11 @@
</style> </style>
<style lang="less"> <style lang="less">
.Overviewbasicr{ .Overviewbasicr {
.basicr-back .ant-form-item { .basicr-back .ant-form-item {
.ant-form-item-label > label::after{ .ant-form-item-label>label::after {
content: ':'; content: ':';
} }
} }
} }
</style> </style>
Loading…
Cancel
Save