Fix api call and delete tenantid on domain page

This commit is contained in:
xue jiahao
2024-12-02 12:52:59 +08:00
parent ff46485498
commit e3d842de15
4 changed files with 26 additions and 23 deletions

View File

@@ -127,7 +127,7 @@
</q-card-section>
<q-card-actions align="right" class="text-primary q-mb-md q-mx-sm">
<q-btn label="保存" type="submit" color="primary" />
<q-btn :loading="addEditLoading" label="保存" type="submit" color="primary" />
<q-btn label="キャンセル" type="cancel" color="primary" flat class="q-ml-sm" @click="closeDg()" />
</q-card-actions>
</q-form>
@@ -168,6 +168,7 @@ const columns = [
const pagination = ref({ sortBy: 'id', descending: true, rowsPerPage: 20 });
const loading = ref(false);
const addEditLoading = ref(false);
const filter = ref('');
const statusFilter = ref('全データ');
const rows = ref([]);
@@ -260,6 +261,7 @@ const closeDg = () => {
}
const onSubmit = () => {
addEditLoading.value = true;
if (editId.value !== 0) {
api.put(`api/v1/users/${editId.value}`, {
'first_name': firstName.value,
@@ -302,6 +304,7 @@ const onReset = () => {
isPwd.value = true;
editId.value = 0;
isCreate.value = true;
resetPsw.value = false
resetPsw.value = false;
addEditLoading.value = false;
}
</script>