|
|
@ -49,12 +49,11 @@ |
|
|
|
<script> |
|
|
|
export default { |
|
|
|
name: 'LeftFormList', |
|
|
|
props: ['onlyRead', 'isSearch', 'patientId', 'formList', 'curIndex'], |
|
|
|
props: ['onlyRead', 'isSearch', 'patientId', 'formList', 'curIndex', 'isCreator'], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formType: '治疗', |
|
|
|
defaultChecked: true, |
|
|
|
isCreator: true, |
|
|
|
formTypeList: [ |
|
|
|
{ |
|
|
|
type: '治疗', |
|
|
@ -81,8 +80,6 @@ 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() { |
|
|
|