Disable text area when is not himself
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
6f97ee1aeb
commit
71a4a20f20
|
@ -9,6 +9,10 @@ const $props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
isHimself: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['onSubmit']);
|
const emit = defineEmits(['onSubmit']);
|
||||||
|
@ -36,6 +40,7 @@ const closeForm = () => {
|
||||||
v-model="reasonFormData"
|
v-model="reasonFormData"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
autogrow
|
autogrow
|
||||||
|
:disable="!isHimself"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</FormPopup>
|
</FormPopup>
|
||||||
|
|
|
@ -609,7 +609,11 @@ onMounted(async () => {
|
||||||
<WorkerTimeForm v-bind="workerTimeFormProps" @on-data-saved="updateData()" />
|
<WorkerTimeForm v-bind="workerTimeFormProps" @on-data-saved="updateData()" />
|
||||||
</QDialog>
|
</QDialog>
|
||||||
<QDialog ref="workerTimeReasonFormDialogRef">
|
<QDialog ref="workerTimeReasonFormDialogRef">
|
||||||
<WorkerTimeReasonForm @on-submit="isUnsatisfied($event)" :reason="reason" />
|
<WorkerTimeReasonForm
|
||||||
|
@on-submit="isUnsatisfied($event)"
|
||||||
|
:reason="reason"
|
||||||
|
:is-him-self="isHimSelf"
|
||||||
|
/>
|
||||||
</QDialog>
|
</QDialog>
|
||||||
</QPage>
|
</QPage>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue