This commit is contained in:
Viet An
2026-05-25 15:23:12 +07:00
parent 5f2a98977b
commit 6685a43360
48 changed files with 732 additions and 2901 deletions

View File

@@ -117,7 +117,10 @@ export default {
};
},
async created() {
this.record = await this.$getdata("user", undefined, { filter: { id: this.row.id } }, true);
this.record = await this.$getdata("user", {
first: true,
filter: { id: this.row.id },
});
this.radioBlocked = this.record.blocked ? 1 : 0;
},
methods: {
@@ -158,12 +161,14 @@ export default {
this.$set(this.check, v.code, this.check[v.code] ? false : true);
},
async setTokenExpiry() {
let rows = await this.$getdata("token", {
user: this.record.id,
expiry: 0,
const rows = await this.$getdata("token", {
filter: {
user: this.record.id,
expiry: 0,
},
});
if (rows.length === 0) return;
rows.map((v) => (v.expiry = 1));
rows.forEach((v) => (v.expiry = 1));
this.$insertapi("token", rows, undefined, true);
},
},