|
|
@ -8,7 +8,7 @@ |
|
|
|
{{ item.name }} |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
<i v-if="index === curIndex && !onlyRead && item.name !== '门急诊电子病历'" style="margin-top: 28px;color: rgb(199,5,5)" class="el-icon-delete" @click.stop="deleteForm()" /> |
|
|
|
<i v-if="index === curIndex && !onlyRead && item.name !== '门急诊电子病历'&& !isCreate" style="margin-top: 28px;color: rgb(199,5,5)" class="el-icon-delete" @click.stop="deleteForm()" /> |
|
|
|
</div> |
|
|
|
<img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata"> |
|
|
|
<!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> --> |
|
|
@ -54,6 +54,7 @@ export default { |
|
|
|
return { |
|
|
|
formType: '治疗', |
|
|
|
defaultChecked: true, |
|
|
|
isCreate: true, |
|
|
|
formTypeList: [ |
|
|
|
{ |
|
|
|
type: '治疗', |
|
|
@ -80,6 +81,8 @@ export default { |
|
|
|
this.$emit('addRecord', name) |
|
|
|
}, |
|
|
|
handleForm(index, item) { |
|
|
|
const user = JSON.parse(window.sessionStorage.getItem('qg-userData')) |
|
|
|
this.isCreator = item.doctorCode === user.employeeId |
|
|
|
this.$emit('handleForm', { index, item }) |
|
|
|
}, |
|
|
|
deleteForm() { |
|
|
|