chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -3,35 +3,50 @@
<div class="field">
<label class="label">Tên<span class="has-text-danger"> * </span> </label>
<p class="control">
<input class="input" type="text" placeholder="Nhập số" v-model="record.name">
<input
class="input"
type="text"
placeholder="Nhập số"
v-model="record.name"
/>
</p>
</div>
<div class="field mt-5">
<label class="label">Ghi chú<span class="has-text-danger"> * </span> </label>
<p class="control">
<textarea class="textarea" placeholder="" rows="3" v-model="record.caption"></textarea>
<textarea
class="textarea"
placeholder=""
rows="3"
v-model="record.caption"
></textarea>
</p>
</div>
<div class="mt-5">
<button class="button is-primary" @click="save()">Lưu lại</button>
<button
class="button is-primary"
@click="save()"
>
Lưu lại
</button>
</div>
</div>
</template>
<script>
export default {
props: ['row', 'pagename'],
props: ["row", "pagename"],
data() {
return {
record: undefined
}
record: undefined,
};
},
async created() {
this.record = await this.$getdata('file', {id: this.row.file || this.row.id}, undefined, true)
this.record = await this.$getdata("file", { id: this.row.file || this.row.id }, undefined, true);
},
methods: {
async save() {
let rs = await this.$updateapi('file', this.record)
}
}
}
</script>
let rs = await this.$updateapi("file", this.record);
},
},
};
</script>