This commit is contained in:
2020-06-06 23:08:43 +00:00
parent 6022f71b50
commit b83f37e7ca
4 changed files with 29 additions and 11 deletions

View File

@@ -4,11 +4,13 @@
<v-form ref="form">
<v-row>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-radio-group
v-model="obj.serverState"
:mandatory="true"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
>
<v-radio :label="$ay.t('ServerStateOpen')" value="Open"></v-radio>
<v-radio
@@ -21,6 +23,7 @@
<v-textarea
v-model="obj.reason"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('ServerStateReason')"
:error-messages="form().serverErrors(this, 'reason')"
ref="reason"
@@ -51,7 +54,7 @@ export default {
initForm(vm)
.then(() => {
vm.rights = window.$gz.role.getRights(window.$gz.type.ServerState);
// vm.formState.ready = true;
vm.formState.readOnly = !vm.rights.change;
window.$gz.eventBus.$on("menu-click", clickHandler);
vm.getDataFromApi();
})