update

parent b675a6f4
...@@ -219,6 +219,7 @@ export type ProductType = { ...@@ -219,6 +219,7 @@ export type ProductType = {
name: string; name: string;
numIndex: number; numIndex: number;
status: number; status: number;
isFeaturedOnHomepage: number;
url?: string; url?: string;
file?: File; file?: File;
}; };
......
...@@ -22,6 +22,8 @@ export default defineComponent({ ...@@ -22,6 +22,8 @@ export default defineComponent({
const embeddedUrl: Ref<string> = ref(''); const embeddedUrl: Ref<string> = ref('');
const urlFileLocal: Ref<string> = ref(''); const urlFileLocal: Ref<string> = ref('');
const status: Ref<number> = ref(2); const status: Ref<number> = ref(2);
const isFeaturedOnHomepage: Ref<number> = ref(0);
const statusOptions = ref([ const statusOptions = ref([
{ id: 1, name: 'Sản phẩm khác' }, { id: 1, name: 'Sản phẩm khác' },
{ id: 2, name: 'Sản phẩm nổi bật' }, { id: 2, name: 'Sản phẩm nổi bật' },
...@@ -45,6 +47,7 @@ export default defineComponent({ ...@@ -45,6 +47,7 @@ export default defineComponent({
embeddedUrl.value = ''; embeddedUrl.value = '';
urlFileLocal.value = ''; urlFileLocal.value = '';
status.value = 2; status.value = 2;
isFeaturedOnHomepage.value = 0;
}; };
const SubmitData = () => { const SubmitData = () => {
context.emit('click:CloseBtnAddHotProduct'); context.emit('click:CloseBtnAddHotProduct');
...@@ -55,6 +58,7 @@ export default defineComponent({ ...@@ -55,6 +58,7 @@ export default defineComponent({
status: status.value, status: status.value,
embeddedUrl: embeddedUrl.value, embeddedUrl: embeddedUrl.value,
imageUrl: urlFileLocal.value, imageUrl: urlFileLocal.value,
isFeaturedOnHomepage: isFeaturedOnHomepage.value,
}); });
Notify.create({ Notify.create({
type: 'positive', type: 'positive',
......
...@@ -29,6 +29,7 @@ export default defineComponent({ ...@@ -29,6 +29,7 @@ export default defineComponent({
const urlFileLocal: Ref<string> = ref(''); const urlFileLocal: Ref<string> = ref('');
const imageAPI: Ref<string | null> = ref(null); const imageAPI: Ref<string | null> = ref(null);
const status: Ref<number> = ref(2); const status: Ref<number> = ref(2);
const isFeaturedOnHomepage: Ref<number> = ref(0);
// const homeStatus: Ref<number> = ref(0); // const homeStatus: Ref<number> = ref(0);
const statusOptions = ref([ const statusOptions = ref([
{ id: 1, name: 'Sản phẩm khác' }, { id: 1, name: 'Sản phẩm khác' },
...@@ -49,12 +50,14 @@ export default defineComponent({ ...@@ -49,12 +50,14 @@ export default defineComponent({
() => props.openUpdateHotProduct, () => props.openUpdateHotProduct,
(value) => { (value) => {
if (value) { if (value) {
console.log(props.dataUpdate, 'props.dataUpdate');
id.value = props.dataUpdate?.id as number; id.value = props.dataUpdate?.id as number;
name.value = props.dataUpdate?.name as string; name.value = props.dataUpdate?.name as string;
code.value = props.dataUpdate?.code as string; code.value = props.dataUpdate?.code as string;
embeddedUrl.value = props.dataUpdate?.embeddedUrl as string; embeddedUrl.value = props.dataUpdate?.embeddedUrl as string;
status.value = props.dataUpdate?.status as number; status.value = props.dataUpdate?.status as number;
// homeStatus.value = props.dataUpdate?.status as number isFeaturedOnHomepage.value = props.dataUpdate
?.isFeaturedOnHomepage as number;
urlFileLocal.value = props.dataUpdate?.imageUrl as string; urlFileLocal.value = props.dataUpdate?.imageUrl as string;
if (props.dataUpdate?.file) { if (props.dataUpdate?.file) {
imageAPI.value = null; imageAPI.value = null;
...@@ -73,7 +76,7 @@ export default defineComponent({ ...@@ -73,7 +76,7 @@ export default defineComponent({
embeddedUrl.value = ''; embeddedUrl.value = '';
urlFileLocal.value = ''; urlFileLocal.value = '';
status.value = 2; status.value = 2;
// homeStatus.value = 0 isFeaturedOnHomepage.value = 0;
}; };
const SubbmitDataUpdate = () => { const SubbmitDataUpdate = () => {
context.emit('click:CloseBtnUpdateHotProduct'); context.emit('click:CloseBtnUpdateHotProduct');
...@@ -82,7 +85,7 @@ export default defineComponent({ ...@@ -82,7 +85,7 @@ export default defineComponent({
name: name.value, name: name.value,
code: code.value, code: code.value,
status: status.value, status: status.value,
// isFeaturedOnHomepage: homeStatus.value, isFeaturedOnHomepage: isFeaturedOnHomepage.value,
embeddedUrl: embeddedUrl.value, embeddedUrl: embeddedUrl.value,
imageUrl: urlFileLocal.value, imageUrl: urlFileLocal.value,
id: id.value, id: id.value,
...@@ -139,6 +142,7 @@ export default defineComponent({ ...@@ -139,6 +142,7 @@ export default defineComponent({
url_embed, url_embed,
statusRules, statusRules,
statusOptions, statusOptions,
isFeaturedOnHomepage,
// statusHomeOptions, // statusHomeOptions,
// homeStatus, // homeStatus,
id, id,
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<q-btn color="primary" no-caps label="Reset Pass"></q-btn> <q-btn color="primary" no-caps label="Reset Pass"></q-btn>
</div> --> </div> -->
<div class="row flex-center"> <!-- <div class="row flex-center">
<div class="col-3 text-weight-medium"> <div class="col-3 text-weight-medium">
{{ $t('artist.artistInformation.titleDataField.artistCode') }} {{ $t('artist.artistInformation.titleDataField.artistCode') }}
<span style="color: red">*</span> <span style="color: red">*</span>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
hide-bottom-space hide-bottom-space
></q-input> ></q-input>
</div> </div>
</div> </div> -->
<div class="row flex-center"> <div class="row flex-center">
<div class="col-3 text-weight-medium"> <div class="col-3 text-weight-medium">
{{ $t('artist.artistInformation.titleDataField.fullName') }} {{ $t('artist.artistInformation.titleDataField.fullName') }}
...@@ -731,7 +731,7 @@ export default defineComponent({ ...@@ -731,7 +731,7 @@ export default defineComponent({
mnEmail: { type: String, required: true }, mnEmail: { type: String, required: true },
hidden_img: { type: Boolean, required: true }, hidden_img: { type: Boolean, required: true },
id: { type: Number, required: true }, id: { type: Number, required: true },
artistCode: { type: String, required: true }, // artistCode: { type: String, required: true },
avatar: { type: String, required: true }, avatar: { type: String, required: true },
fullName: { type: String, required: true }, fullName: { type: String, required: true },
artistName: { type: String, required: true }, artistName: { type: String, required: true },
...@@ -762,7 +762,7 @@ export default defineComponent({ ...@@ -762,7 +762,7 @@ export default defineComponent({
workOptions: { type: Array, required: true }, workOptions: { type: Array, required: true },
musicOptions: { type: Array, required: true }, musicOptions: { type: Array, required: true },
favoriteScore: { type: Number, required: true }, favoriteScore: { type: Number, required: true },
artistCodeRules: { type: Boolean, required: true }, // artistCodeRules: { type: Boolean, required: true },
fullNameRules: { type: Boolean, required: true }, fullNameRules: { type: Boolean, required: true },
// artistNameRules: { type: Boolean, required: true }, // artistNameRules: { type: Boolean, required: true },
// birthdayRules: { type: Boolean, required: true }, // birthdayRules: { type: Boolean, required: true },
...@@ -873,9 +873,9 @@ export default defineComponent({ ...@@ -873,9 +873,9 @@ export default defineComponent({
const errorMessAccount = i18n.global.t( const errorMessAccount = i18n.global.t(
'artist.artistInformation.validateMessages.requireAccount' 'artist.artistInformation.validateMessages.requireAccount'
); );
const errorMessArtistCode = i18n.global.t( // const errorMessArtistCode = i18n.global.t(
'artist.artistInformation.validateMessages.requireArtistCode' // 'artist.artistInformation.validateMessages.requireArtistCode'
); // );
const errorMessFullName = i18n.global.t( const errorMessFullName = i18n.global.t(
'artist.artistInformation.validateMessages.requireFullName' 'artist.artistInformation.validateMessages.requireFullName'
); );
...@@ -923,7 +923,7 @@ export default defineComponent({ ...@@ -923,7 +923,7 @@ export default defineComponent({
openDialog, openDialog,
onOKClick, onOKClick,
onCancelClick, onCancelClick,
errorMessArtistCode, // errorMessArtistCode,
errorMessFullName, errorMessFullName,
errorMessAccount, errorMessAccount,
// errorMessArtistName, // errorMessArtistName,
...@@ -946,7 +946,7 @@ export default defineComponent({ ...@@ -946,7 +946,7 @@ export default defineComponent({
emits: [ emits: [
'update:emailAdminister', 'update:emailAdminister',
'update:phoneNumberAdminister', 'update:phoneNumberAdminister',
'update:artistCode', // 'update:artistCode',
'update:fullName', 'update:fullName',
'update:avatar', 'update:avatar',
'update:artistName', 'update:artistName',
......
...@@ -100,6 +100,7 @@ export default defineComponent({ ...@@ -100,6 +100,7 @@ export default defineComponent({
name: item.row.name, name: item.row.name,
status: item.row.status, status: item.row.status,
file: item.row.file, file: item.row.file,
isFeaturedOnHomepage: item.row.isFeaturedOnHomepage,
}); });
context.emit('click:openUpdateHotProduct'); context.emit('click:openUpdateHotProduct');
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<q-btn color="primary" no-caps label="Reset Pass"></q-btn> <q-btn color="primary" no-caps label="Reset Pass"></q-btn>
</div> --> </div> -->
<div class="row flex-center"> <!-- <div class="row flex-center">
<div class="col-3 text-weight-medium"> <div class="col-3 text-weight-medium">
{{ $t('artist.artistInformation.titleDataField.artistCode') }} {{ $t('artist.artistInformation.titleDataField.artistCode') }}
<span style="color: red">*</span> <span style="color: red">*</span>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
hide-bottom-space hide-bottom-space
></q-input> ></q-input>
</div> </div>
</div> </div> -->
<div class="row flex-center"> <div class="row flex-center">
<div class="col-3 text-weight-medium"> <div class="col-3 text-weight-medium">
{{ $t('artist.artistInformation.titleDataField.fullName') }} {{ $t('artist.artistInformation.titleDataField.fullName') }}
...@@ -711,7 +711,7 @@ export default defineComponent({ ...@@ -711,7 +711,7 @@ export default defineComponent({
mnEmail: { type: String, required: true }, mnEmail: { type: String, required: true },
hidden_img: { type: Boolean, required: true }, hidden_img: { type: Boolean, required: true },
id: { type: Number, required: true }, id: { type: Number, required: true },
artistCode: { type: String, required: true }, // artistCode: { type: String, required: true },
avatar: { type: String, required: true }, avatar: { type: String, required: true },
fullName: { type: String, required: true }, fullName: { type: String, required: true },
artistName: { type: String, required: true }, artistName: { type: String, required: true },
...@@ -742,7 +742,7 @@ export default defineComponent({ ...@@ -742,7 +742,7 @@ export default defineComponent({
workOptions: { type: Array, required: true }, workOptions: { type: Array, required: true },
musicOptions: { type: Array, required: true }, musicOptions: { type: Array, required: true },
favoriteScore: { type: Number, required: true }, favoriteScore: { type: Number, required: true },
artistCodeRules: { type: Boolean, required: true }, // artistCodeRules: { type: Boolean, required: true },
fullNameRules: { type: Boolean, required: true }, fullNameRules: { type: Boolean, required: true },
// artistNameRules: { type: Boolean, required: true }, // artistNameRules: { type: Boolean, required: true },
// birthdayRules: { type: Boolean, required: true }, // birthdayRules: { type: Boolean, required: true },
...@@ -846,9 +846,9 @@ export default defineComponent({ ...@@ -846,9 +846,9 @@ export default defineComponent({
const errorMessAccount = i18n.global.t( const errorMessAccount = i18n.global.t(
'artist.artistInformation.validateMessages.requireAccount' 'artist.artistInformation.validateMessages.requireAccount'
); );
const errorMessArtistCode = i18n.global.t( // const errorMessArtistCode = i18n.global.t(
'artist.artistInformation.validateMessages.requireArtistCode' // 'artist.artistInformation.validateMessages.requireArtistCode'
); // );
const errorMessFullName = i18n.global.t( const errorMessFullName = i18n.global.t(
'artist.artistInformation.validateMessages.requireFullName' 'artist.artistInformation.validateMessages.requireFullName'
); );
...@@ -896,7 +896,7 @@ export default defineComponent({ ...@@ -896,7 +896,7 @@ export default defineComponent({
openDialog, openDialog,
onOKClick, onOKClick,
onCancelClick, onCancelClick,
errorMessArtistCode, // errorMessArtistCode,
errorMessFullName, errorMessFullName,
errorMessAccount, errorMessAccount,
// errorMessArtistName, // errorMessArtistName,
...@@ -920,7 +920,7 @@ export default defineComponent({ ...@@ -920,7 +920,7 @@ export default defineComponent({
emits: [ emits: [
'update:emailAdminister', 'update:emailAdminister',
'update:phoneNumberAdminister', 'update:phoneNumberAdminister',
'update:artistCode', // 'update:artistCode',
'update:fullName', 'update:fullName',
'update:avatar', 'update:avatar',
'update:artistName', 'update:artistName',
......
...@@ -45,7 +45,7 @@ export default defineComponent({ ...@@ -45,7 +45,7 @@ export default defineComponent({
const confirmAddCustomer = () => { const confirmAddCustomer = () => {
context.emit('addNewCustomer', { context.emit('addNewCustomer', {
code: code.value, // code: code.value,
userName: userName.value, userName: userName.value,
fullName: fullName.value, fullName: fullName.value,
companyName: companyName.value, companyName: companyName.value,
...@@ -62,7 +62,7 @@ export default defineComponent({ ...@@ -62,7 +62,7 @@ export default defineComponent({
}); });
}; };
const resetData = () => { const resetData = () => {
code.value = null; // code.value = null;
userName.value = null; userName.value = null;
fullName.value = null; fullName.value = null;
companyName.value = null; companyName.value = null;
...@@ -95,14 +95,14 @@ export default defineComponent({ ...@@ -95,14 +95,14 @@ export default defineComponent({
(val && val.trim().length >= 8) || (val && val.trim().length >= 8) ||
i18n.global.t('customer.validateMessages.lengthPassword'), i18n.global.t('customer.validateMessages.lengthPassword'),
]; ];
const codeRules = [ // const codeRules = [
(val?: string) => // (val?: string) =>
(val && val.trim().length) || // (val && val.trim().length) ||
i18n.global.t('customer.validateMessages.requireCode'), // i18n.global.t('customer.validateMessages.requireCode'),
(val?: string) => // (val?: string) =>
(val && val.trim().length <= 50) || // (val && val.trim().length <= 50) ||
i18n.global.t('customer.validateMessages.lengthCode'), // i18n.global.t('customer.validateMessages.lengthCode'),
]; // ];
const customerNameRules = [ const customerNameRules = [
(val?: string) => (val?: string) =>
(val && val.trim().length) || (val && val.trim().length) ||
...@@ -171,7 +171,7 @@ export default defineComponent({ ...@@ -171,7 +171,7 @@ export default defineComponent({
customerNameRules, customerNameRules,
// businessNameRules, // businessNameRules,
passwordRules, passwordRules,
codeRules, // codeRules,
// taxCodeRules, // taxCodeRules,
emailRules, emailRules,
// levelRules, // levelRules,
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
/> />
</template> </template>
</q-input> </q-input>
<q-input <!-- <q-input
v-model="code" v-model="code"
:label="$t('customer.dialogLabel.fieldLabels.code')" :label="$t('customer.dialogLabel.fieldLabels.code')"
:rules="codeRules" :rules="codeRules"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
type="text" type="text"
class="q-my-sm" class="q-my-sm"
outlined outlined
></q-input> ></q-input> -->
<q-input <q-input
v-model="fullName" v-model="fullName"
:label="$t('customer.dialogLabel.fieldLabels.customerName')" :label="$t('customer.dialogLabel.fieldLabels.customerName')"
......
...@@ -26,7 +26,7 @@ export default defineComponent({ ...@@ -26,7 +26,7 @@ export default defineComponent({
} }
); );
const id: Ref<number | null> = ref(null); const id: Ref<number | null> = ref(null);
const code: Ref<string | null> = ref(null); // const code: Ref<string | null> = ref(null);
const userName: Ref<string | null> = ref(null); const userName: Ref<string | null> = ref(null);
const fullName: Ref<string | null> = ref(null); const fullName: Ref<string | null> = ref(null);
const companyName: Ref<string | null> = ref(null); const companyName: Ref<string | null> = ref(null);
...@@ -44,7 +44,7 @@ export default defineComponent({ ...@@ -44,7 +44,7 @@ export default defineComponent({
const confirmEditCustomer = () => { const confirmEditCustomer = () => {
context.emit('editCustomer', { context.emit('editCustomer', {
id: id.value, id: id.value,
code: code.value, // code: code.value,
userName: userName.value, userName: userName.value,
fullName: fullName.value, fullName: fullName.value,
companyName: companyName.value, companyName: companyName.value,
...@@ -62,7 +62,7 @@ export default defineComponent({ ...@@ -62,7 +62,7 @@ export default defineComponent({
}; };
const getData = () => { const getData = () => {
id.value = props.customerInfo.id; id.value = props.customerInfo.id;
code.value = props.customerInfo.code; // code.value = props.customerInfo.code;
userName.value = props.customerInfo.userName; userName.value = props.customerInfo.userName;
fullName.value = props.customerInfo.fullName; fullName.value = props.customerInfo.fullName;
companyName.value = props.customerInfo.companyName; companyName.value = props.customerInfo.companyName;
...@@ -87,14 +87,14 @@ export default defineComponent({ ...@@ -87,14 +87,14 @@ export default defineComponent({
// (val && val.trim().length) || // (val && val.trim().length) ||
// i18n.global.t('customer.validateMessages.requirePassword'), // i18n.global.t('customer.validateMessages.requirePassword'),
// ]; // ];
const codeRules = [ // const codeRules = [
(val?: string) => // (val?: string) =>
(val && val.trim().length) || // (val && val.trim().length) ||
i18n.global.t('customer.validateMessages.requireCode'), // i18n.global.t('customer.validateMessages.requireCode'),
(val?: string) => // (val?: string) =>
(val && val.trim().length <= 50) || // (val && val.trim().length <= 50) ||
i18n.global.t('customer.validateMessages.lengthCode'), // i18n.global.t('customer.validateMessages.lengthCode'),
]; // ];
const customerNameRules = [ const customerNameRules = [
...@@ -163,7 +163,7 @@ export default defineComponent({ ...@@ -163,7 +163,7 @@ export default defineComponent({
customerNameRules, customerNameRules,
// businessNameRules, // businessNameRules,
// passwordRules, // passwordRules,
codeRules, // codeRules,
// taxCodeRules, // taxCodeRules,
emailRules, emailRules,
// levelRules, // levelRules,
...@@ -185,7 +185,7 @@ export default defineComponent({ ...@@ -185,7 +185,7 @@ export default defineComponent({
representative, representative,
position, position,
level, level,
code, // code,
confirmEditCustomer, confirmEditCustomer,
id, id,
}; };
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
@click="isPwd = !isPwd" @click="isPwd = !isPwd"
/> </template /> </template
></q-input> ></q-input>
<q-input <!-- <q-input
v-model="code" v-model="code"
:label="$t('customer.dialogLabel.fieldLabels.code')" :label="$t('customer.dialogLabel.fieldLabels.code')"
:rules="codeRules" :rules="codeRules"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
class="q-my-sm" class="q-my-sm"
outlined outlined
readonly readonly
></q-input> ></q-input> -->
<q-input <q-input
v-model="fullName" v-model="fullName"
:label="$t('customer.dialogLabel.fieldLabels.customerName')" :label="$t('customer.dialogLabel.fieldLabels.customerName')"
......
import { defineComponent, PropType, ref } from 'vue'; import { defineComponent, PropType, ref, Ref } from 'vue';
import { i18n } from 'src/boot/i18n'; import { i18n } from 'src/boot/i18n';
import { isEmail } from '../../../boot/functions'; import { isEmail } from '../../../boot/functions';
import { isMobilePhone } from '../../../boot/functions'; import { isMobilePhone } from '../../../boot/functions';
...@@ -26,6 +26,7 @@ export default defineComponent({ ...@@ -26,6 +26,7 @@ export default defineComponent({
scheduleAccess: { type: String, required: true }, scheduleAccess: { type: String, required: true },
listScheduleAccess: { type: Array, required: true }, listScheduleAccess: { type: Array, required: true },
status: { type: Boolean, required: true }, status: { type: Boolean, required: true },
passwordNew: { type: String, required: true },
}, },
setup() { setup() {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
...@@ -35,11 +36,17 @@ export default defineComponent({ ...@@ -35,11 +36,17 @@ export default defineComponent({
(val && val.trim().length) || (val && val.trim().length) ||
i18n.global.t('userPage.validateMessages.requireUserName'), i18n.global.t('userPage.validateMessages.requireUserName'),
]; ];
const passwordRules = [ const passwordRules = [
(val?: string) => (val?: string) =>
(val && val.trim().length) || (val && val.trim().length) ||
i18n.global.t('userPage.validateMessages.requirePassword'), i18n.global.t('userPage.validateMessages.requirePassword'),
]; ];
const passwordNewRules = [
(val?: string) => (val && val.trim().length) || 'Vui lòng nhập mật khẩu',
];
const fullNameRules = [ const fullNameRules = [
(val?: string) => (val?: string) =>
(val && val.trim().length) || (val && val.trim().length) ||
...@@ -82,15 +89,17 @@ export default defineComponent({ ...@@ -82,15 +89,17 @@ export default defineComponent({
]; ];
return { return {
isPwd: ref(true), isPwd: ref(true),
isPwdNew: ref(true),
today, today,
userNameRules, userNameRules,
passwordRules, passwordRules,
fullNameRules, fullNameRules,
emailRules, emailRules,
mobileNumberRules, mobileNumberRules,
addressRules, addressRules,
unitRules, unitRules,
passwordNewRules,
groupRules, groupRules,
birthdayRules, birthdayRules,
}; };
...@@ -111,6 +120,7 @@ export default defineComponent({ ...@@ -111,6 +120,7 @@ export default defineComponent({
'update:group', 'update:group',
'update:scheduleAccess', 'update:scheduleAccess',
'update:status', 'update:status',
'update:passwordNew',
'addNewUser', 'addNewUser',
], ],
}); });
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
></q-input> ></q-input>
<q-input <q-input
:model-value="password" :model-value="password"
:rules="passwordRules"
@update:model-value="$emit('update:password', $event)" @update:model-value="$emit('update:password', $event)"
:rules="passwordRules"
:label="$t('userPage.dialogLabel.fieldLabels.password')" :label="$t('userPage.dialogLabel.fieldLabels.password')"
outlined outlined
:type="isPwd ? 'password' : 'text'" :type="isPwd ? 'password' : 'text'"
...@@ -49,6 +49,27 @@ ...@@ -49,6 +49,27 @@
/> />
</template> </template>
</q-input> </q-input>
<q-input
:model-value="passwordNew"
@update:model-value="$emit('update:passwordNew', $event)"
:rules="passwordNewRules"
label="Nhập lại mật khẩu *"
outlined
:type="isPwdNew ? 'password' : 'text'"
class="q-my-sm"
autocomplete="new-password"
hide-bottom-space
>
<template v-slot:append>
<q-icon
:name="isPwdNew ? 'visibility_off' : 'visibility'"
class="cursor-pointer"
@click="isPwdNew = !isPwdNew"
/>
</template>
</q-input>
<q-input <q-input
:model-value="fullName" :model-value="fullName"
@update:model-value="$emit('update:fullName', $event)" @update:model-value="$emit('update:fullName', $event)"
...@@ -104,7 +125,6 @@ ...@@ -104,7 +125,6 @@
type="text" type="text"
class="q-my-sm" class="q-my-sm"
outlined outlined
hide-bottom-space hide-bottom-space
></q-input> ></q-input>
......
...@@ -81,8 +81,6 @@ export default defineComponent({ ...@@ -81,8 +81,6 @@ export default defineComponent({
const cardBankOptions: Ref<CardBankType[]> = ref([]); const cardBankOptions: Ref<CardBankType[]> = ref([]);
const typeBankOptions: Ref<TypeCardType[]> = ref([]); const typeBankOptions: Ref<TypeCardType[]> = ref([]);
const workOptions: Ref<WorkType[]> = ref([]); const workOptions: Ref<WorkType[]> = ref([]);
const musicOptions: Ref<MusicType[]> = ref([]); const musicOptions: Ref<MusicType[]> = ref([]);
const sexOptions = ref([ const sexOptions = ref([
...@@ -98,7 +96,7 @@ export default defineComponent({ ...@@ -98,7 +96,7 @@ export default defineComponent({
const avatarFile: Ref<File | null> = ref(null); const avatarFile: Ref<File | null> = ref(null);
const avatarUploaded: Ref<string | null> = ref(null); const avatarUploaded: Ref<string | null> = ref(null);
const avatarNoChange: Ref<string | null> = ref(null); const avatarNoChange: Ref<string | null> = ref(null);
const artistCode: Ref<string> = ref(''); // const artistCode: Ref<string> = ref('');
const fullName: Ref<string> = ref(''); const fullName: Ref<string> = ref('');
const artistName: Ref<string | null> = ref(null); const artistName: Ref<string | null> = ref(null);
const birthday: Ref<string | null> = ref(null); const birthday: Ref<string | null> = ref(null);
...@@ -150,15 +148,14 @@ export default defineComponent({ ...@@ -150,15 +148,14 @@ export default defineComponent({
const products: Ref<ProductType[]> = ref([]); const products: Ref<ProductType[]> = ref([]);
const statusHotProduct: Ref<number> = ref(2); const statusHotProduct: Ref<number> = ref(2);
const address: Ref<ProvinceType[]> = ref([]);
const address: Ref<ProvinceType[]> =ref([])
const DataInsertHotProduct: Ref<ProductType | null> = ref(null); const DataInsertHotProduct: Ref<ProductType | null> = ref(null);
const DataUpdateHotProduct: Ref<ProductType | null> = ref(null); const DataUpdateHotProduct: Ref<ProductType | null> = ref(null);
const musics: Ref<MusicType[]> = ref([]); const musics: Ref<MusicType[]> = ref([]);
const provinceOptions:Ref<ProvinceType[]> = ref([]); const provinceOptions: Ref<ProvinceType[]> = ref([]);
//sate error input thong-tin-ca-nhan //sate error input thong-tin-ca-nhan
const check_infoBooking = ref(false); const check_infoBooking = ref(false);
const artistCodeRules = ref(false); // const artistCodeRules = ref(false);
const fullNameRules = ref(false); const fullNameRules = ref(false);
// const artistNameRules = ref(false); // const artistNameRules = ref(false);
// const birthdayRules = ref(false); // const birthdayRules = ref(false);
...@@ -217,14 +214,14 @@ export default defineComponent({ ...@@ -217,14 +214,14 @@ export default defineComponent({
// } // }
// } // }
// ); // );
watch( // watch(
() => artistCode.value, // () => artistCode.value,
(value) => { // (value) => {
if (value) { // if (value) {
artistCodeRules.value = false; // artistCodeRules.value = false;
} // }
} // }
); // );
watch( watch(
() => fullName.value, () => fullName.value,
(value) => { (value) => {
...@@ -268,8 +265,8 @@ export default defineComponent({ ...@@ -268,8 +265,8 @@ export default defineComponent({
watch( watch(
() => account.value, () => account.value,
(value) => { (value) => {
if(value){ if (value) {
accountRules.value = false accountRules.value = false;
} }
} }
); );
...@@ -346,7 +343,6 @@ export default defineComponent({ ...@@ -346,7 +343,6 @@ export default defineComponent({
// } // }
// ); // );
const getInformationArtist = async () => { const getInformationArtist = async () => {
const response = (await api({ const response = (await api({
url: API_PATHS.getDetailArtist, url: API_PATHS.getDetailArtist,
...@@ -364,13 +360,15 @@ export default defineComponent({ ...@@ -364,13 +360,15 @@ export default defineComponent({
: null; : null;
avatarNoChange.value = ArtistInformation.avatar; avatarNoChange.value = ArtistInformation.avatar;
account.value = ArtistInformation.account; account.value = ArtistInformation.account;
artistCode.value = ArtistInformation.artistCode; // artistCode.value = ArtistInformation.artistCode;
fullName.value = ArtistInformation.fullName; fullName.value = ArtistInformation.fullName;
artistName.value = ArtistInformation.artistName; artistName.value = ArtistInformation.artistName;
birthday.value = birthday.value === null ? null : moment( birthday.value =
ArtistInformation.birthday, birthday.value === null
'DD/MM/YYYY HH:mm:ss' ? null
).format('DD/MM/YYYY'); : moment(ArtistInformation.birthday, 'DD/MM/YYYY HH:mm:ss').format(
'DD/MM/YYYY'
);
// chooseAddress.value = ArtistInformation.address // chooseAddress.value = ArtistInformation.address
status.value = ArtistInformation.status; status.value = ArtistInformation.status;
...@@ -378,7 +376,7 @@ export default defineComponent({ ...@@ -378,7 +376,7 @@ export default defineComponent({
email.value = ArtistInformation.email; email.value = ArtistInformation.email;
facebook.value = ArtistInformation.facebook; facebook.value = ArtistInformation.facebook;
facebookMessage.value = ArtistInformation.facebookMessage; facebookMessage.value = ArtistInformation.facebookMessage;
unitName.value = ArtistInformation.artistOwner?.name unitName.value = ArtistInformation.artistOwner?.name;
instagram.value = ArtistInformation.instagram; instagram.value = ArtistInformation.instagram;
whatsapp.value = ArtistInformation.whatsapp; whatsapp.value = ArtistInformation.whatsapp;
mnName.value = ArtistInformation.mnName; mnName.value = ArtistInformation.mnName;
...@@ -395,20 +393,18 @@ export default defineComponent({ ...@@ -395,20 +393,18 @@ export default defineComponent({
works.value = ArtistInformation.works; works.value = ArtistInformation.works;
artistLevel.value = ArtistInformation.artistLevel; artistLevel.value = ArtistInformation.artistLevel;
sex.value = ArtistInformation.sex; sex.value = ArtistInformation.sex;
fields.value = ArtistInformation.fields[0] ; fields.value = ArtistInformation.fields[0];
fieldsPrivate.value = ArtistInformation.fields[0]; fieldsPrivate.value = ArtistInformation.fields[0];
bankAccounts.value = ArtistInformation.bankAccounts; bankAccounts.value = ArtistInformation.bankAccounts;
products.value = ArtistInformation.products; products.value = ArtistInformation.products;
banners.value = ArtistInformation.banners || []; banners.value = ArtistInformation.banners || [];
socialEmbedded.value = ArtistInformation.socialEmbedded; socialEmbedded.value = ArtistInformation.socialEmbedded;
stories.value = ArtistInformation.stories; stories.value = ArtistInformation.stories;
schedules.value = ArtistInformation.schedules; schedules.value = ArtistInformation.schedules;
musics.value= ArtistInformation.musicTypeDto; musics.value = ArtistInformation.musicTypeDto;
address.value = ArtistInformation.provinceDto; address.value = ArtistInformation.provinceDto;
// console.log(provinceOptions.value,'12312312');
}; };
const getFieldOptions = async () => { const getFieldOptions = async () => {
...@@ -465,28 +461,25 @@ export default defineComponent({ ...@@ -465,28 +461,25 @@ export default defineComponent({
} }
}; };
const getProvinceOptions = async () => { const getProvinceOptions = async () => {
const response = (await api ({ const response = (await api({
url : API_PATHS.getProvinceOptions, url: API_PATHS.getProvinceOptions,
method: 'GET', method: 'GET',
params: {}, params: {},
})) as AxiosResponse<BaseResponseBody<ProvinceType[]>>; })) as AxiosResponse<BaseResponseBody<ProvinceType[]>>;
if(response.data.error.code === config.API_RES_CODE.OK.code){ if (response.data.error.code === config.API_RES_CODE.OK.code) {
provinceOptions.value = response.data.data provinceOptions.value = response.data.data;
}
} }
};
const getMusicTypeOptions = async () => { const getMusicTypeOptions = async () => {
const response = (await api ({ const response = (await api({
url: API_PATHS.getMusicTypeOptions, url: API_PATHS.getMusicTypeOptions,
method: 'GET', method: 'GET',
params: {}, params: {},
})) as AxiosResponse<BaseResponseBody<MusicType[]>>; })) as AxiosResponse<BaseResponseBody<MusicType[]>>;
if(response.data.error.code === config.API_RES_CODE.OK.code) { if (response.data.error.code === config.API_RES_CODE.OK.code) {
musicOptions.value = response.data.data musicOptions.value = response.data.data;
} }
}; };
const getBankOptions = async () => { const getBankOptions = async () => {
...@@ -754,10 +747,10 @@ export default defineComponent({ ...@@ -754,10 +747,10 @@ export default defineComponent({
// hasError = true; // hasError = true;
// hidden_img.value = true; // hidden_img.value = true;
// } // }
if (!artistCode.value || !artistCode.value?.trim().length) { // if (!artistCode.value || !artistCode.value?.trim().length) {
hasError = true; // hasError = true;
artistCodeRules.value = true; // artistCodeRules.value = true;
} // }
if (!fullName.value || !fullName.value?.trim().length) { if (!fullName.value || !fullName.value?.trim().length) {
hasError = true; hasError = true;
fullNameRules.value = true; fullNameRules.value = true;
...@@ -901,12 +894,13 @@ export default defineComponent({ ...@@ -901,12 +894,13 @@ export default defineComponent({
method: 'POST', method: 'POST',
data: { data: {
id: route.params.id, id: route.params.id,
musicTypeDto:musics.value, musicTypeDto: musics.value,
avatar: avatarUploaded.value, avatar: avatarUploaded.value,
artistCode: artistCode.value, // artistCode: artistCode.value,
artistName: artistName.value, artistName: artistName.value,
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday: birthday.value === null ? null : birthday.value + ' 00:00:00', birthday:
birthday.value === null ? null : birthday.value + ' 00:00:00',
sex: sex.value, sex: sex.value,
provinceDto: address.value, provinceDto: address.value,
address: null, address: null,
...@@ -990,7 +984,7 @@ export default defineComponent({ ...@@ -990,7 +984,7 @@ export default defineComponent({
getInformationArtist, getInformationArtist,
id, id,
route, route,
artistCode, // artistCode,
fullName, fullName,
artistName, artistName,
birthday, birthday,
...@@ -1076,7 +1070,7 @@ export default defineComponent({ ...@@ -1076,7 +1070,7 @@ export default defineComponent({
deleteStory, deleteStory,
UpdateBirtday, UpdateBirtday,
checkValidate, checkValidate,
artistCodeRules, // artistCodeRules,
fullNameRules, fullNameRules,
// artistNameRules, // artistNameRules,
// birthdayRules, // birthdayRules,
......
...@@ -342,7 +342,7 @@ export default defineComponent({ ...@@ -342,7 +342,7 @@ export default defineComponent({
const levelSelected: Ref<CustomerLevelType | null> = ref(null); const levelSelected: Ref<CustomerLevelType | null> = ref(null);
const id: Ref<number | undefined> = ref(undefined); const id: Ref<number | undefined> = ref(undefined);
const code: Ref<string | null> = ref(null); // const code: Ref<string | null> = ref(null);
const userName: Ref<string | null> = ref(null); const userName: Ref<string | null> = ref(null);
const fullName: Ref<string | null> = ref(null); const fullName: Ref<string | null> = ref(null);
const companyName: Ref<string | null> = ref(null); const companyName: Ref<string | null> = ref(null);
...@@ -477,7 +477,7 @@ export default defineComponent({ ...@@ -477,7 +477,7 @@ export default defineComponent({
url: API_PATHS.addCustomer, url: API_PATHS.addCustomer,
method: 'POST', method: 'POST',
data: { data: {
code: item.code, // code: item.code,
userName: item.userName, userName: item.userName,
fullName: item.fullName, fullName: item.fullName,
companyName: item.companyName, companyName: item.companyName,
...@@ -552,7 +552,7 @@ export default defineComponent({ ...@@ -552,7 +552,7 @@ export default defineComponent({
method: 'POST', method: 'POST',
data: { data: {
id: item.id, id: item.id,
code: item.code, // code: item.code,
userName: item.userName, userName: item.userName,
fullName: item.fullName, fullName: item.fullName,
companyName: item.companyName, companyName: item.companyName,
...@@ -597,7 +597,7 @@ export default defineComponent({ ...@@ -597,7 +597,7 @@ export default defineComponent({
fullName, fullName,
companyName, companyName,
taxCode, taxCode,
code, // code,
password, password,
type, type,
email, email,
......
...@@ -11,43 +11,7 @@ ...@@ -11,43 +11,7 @@
clearable clearable
></q-input> ></q-input>
</div> </div>
<div class="col-2" dense outlined>
<q-select
v-model="fieldSelected"
:options="fieldOptions"
option-label="name"
option-value="id"
label="Lĩnh vực"
dense
outlined
clearable
></q-select>
</div>
<div class="col-2" dense outlined>
<q-select
v-model="professionSelected"
:options="professionOptions"
option-label="name"
option-value="id"
dense
outlined
label="Độ chuyên"
clearable
></q-select>
</div>
<div class="col-2" dense outlined>
<q-select
v-model="provinceSelected"
:options="provinceOptions"
option-label="fullName"
option-value="name"
dense
outlined
label="Địa chỉ"
clearable
></q-select>
</div>
<div class="col-auto"> <div class="col-auto">
<q-btn <q-btn
color="primary" color="primary"
...@@ -142,7 +106,7 @@ ...@@ -142,7 +106,7 @@
</q-table> </q-table>
</div> </div>
<q-dialog v-model="openDialogFilter" persistent> <q-dialog v-model="openDialogFilter" persistent>
<q-card style="min-width: 550px"> <q-card style="min-width: 700px">
<q-card-section style="border-bottom: 1px solid #5d319e"> <q-card-section style="border-bottom: 1px solid #5d319e">
<div style="font-size: 20px">Bộ lọc nâng cao</div> <div style="font-size: 20px">Bộ lọc nâng cao</div>
</q-card-section> </q-card-section>
...@@ -185,7 +149,7 @@ ...@@ -185,7 +149,7 @@
style="max-height: calc(100vh - 15rem)" style="max-height: calc(100vh - 15rem)"
> >
<div class="row q-col-gutter-sm"> <div class="row q-col-gutter-sm">
<div class="col-6" style="padding: 12px"> <div class="col-6" dense outlined>
<q-input <q-input
v-model="costFrom" v-model="costFrom"
dense dense
...@@ -195,7 +159,7 @@ ...@@ -195,7 +159,7 @@
></q-input> ></q-input>
</div> </div>
<div class="col-6" style="padding: 12px"> <div class="col-6" dense outlined>
<q-input <q-input
v-model="costTo" v-model="costTo"
dense dense
...@@ -215,11 +179,10 @@ ...@@ -215,11 +179,10 @@
></q-input> ></q-input>
</div> --> </div> -->
<div class="col-12" style="padding: 8px 12px 8px 12px"> <div class="col-6" dense outlined>
<q-select <q-select
v-model="musics" v-model="musics"
:options="musicOptions" :options="musicOptions"
option-value="id" option-value="id"
option-label="name" option-label="name"
label="Thể loại" label="Thể loại"
...@@ -233,6 +196,43 @@ ...@@ -233,6 +196,43 @@
type="text" type="text"
></q-select> ></q-select>
</div> </div>
<div class="col-6" dense outlined>
<q-select
v-model="fieldSelected"
:options="fieldOptions"
option-label="name"
option-value="id"
label="Lĩnh vực"
dense
outlined
clearable
></q-select>
</div>
<div class="col-6" dense outlined>
<q-select
v-model="professionSelected"
:options="professionOptions"
option-label="name"
option-value="id"
dense
outlined
label="Độ chuyên"
clearable
></q-select>
</div>
<div class="col-6" dense outlined>
<q-select
v-model="provinceSelected"
:options="provinceOptions"
option-label="fullName"
option-value="name"
dense
outlined
label="Địa chỉ"
clearable
></q-select>
</div>
</div> </div>
</q-card-section> </q-card-section>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</div> </div>
<AddNewArtistDialog <AddNewArtistDialog
v-model:is-open-new-artist-dialog="isOpenNewArtistDialog" v-model:is-open-new-artist-dialog="isOpenNewArtistDialog"
v-model:artist-code="artistCode"
v-model:full-name="fullName" v-model:full-name="fullName"
v-model:artist-name="artistName" v-model:artist-name="artistName"
v-model:birthday="birthday" v-model:birthday="birthday"
...@@ -453,7 +453,7 @@ export default defineComponent({ ...@@ -453,7 +453,7 @@ export default defineComponent({
const provinceSelected: Ref<ProvinceType | null> = ref(null); const provinceSelected: Ref<ProvinceType | null> = ref(null);
const isOpenNewArtistDialog = ref(false); const isOpenNewArtistDialog = ref(false);
const id: Ref<number> = ref(0); const id: Ref<number> = ref(0);
const artistCode: Ref<string> = ref(''); // const artistCode: Ref<string> = ref('');
const fullName: Ref<string> = ref(''); const fullName: Ref<string> = ref('');
const artistName: Ref<string | undefined> = ref(); const artistName: Ref<string | undefined> = ref();
const birthday: Ref<string | undefined> = ref(); const birthday: Ref<string | undefined> = ref();
...@@ -484,7 +484,6 @@ export default defineComponent({ ...@@ -484,7 +484,6 @@ export default defineComponent({
// const level: Ref<string | null> = ref(null); // const level: Ref<string | null> = ref(null);
const filter = () => { const filter = () => {
void getListArtists(); void getListArtists();
}; };
...@@ -651,7 +650,7 @@ export default defineComponent({ ...@@ -651,7 +650,7 @@ export default defineComponent({
pageSize, pageSize,
isOpenNewArtistDialog, isOpenNewArtistDialog,
id, id,
artistCode, // artistCode,
fullName, fullName,
artistName, artistName,
birthday, birthday,
......
...@@ -94,6 +94,7 @@ export default defineComponent({ ...@@ -94,6 +94,7 @@ export default defineComponent({
const showDialogUpdate = ref(false); const showDialogUpdate = ref(false);
const id = ref(0); const id = ref(0);
const passwordNew = ref ('');
const userName = ref(''); const userName = ref('');
const password = ref(''); const password = ref('');
const fullName = ref(''); const fullName = ref('');
...@@ -169,6 +170,7 @@ export default defineComponent({ ...@@ -169,6 +170,7 @@ export default defineComponent({
address.value = ''; address.value = '';
unit.value = null; unit.value = null;
status.value = true; status.value = true;
passwordNew.value = '',
group.value = []; group.value = [];
}; };
...@@ -196,6 +198,7 @@ export default defineComponent({ ...@@ -196,6 +198,7 @@ export default defineComponent({
address: address.value?.trim(), address: address.value?.trim(),
unit: unit.value?.trim(), unit: unit.value?.trim(),
status: status.value ? 1 : 0, status: status.value ? 1 : 0,
confirmPassword: passwordNew.value?.trim()
}, },
groups: groups, groups: groups,
pageRoles: [], pageRoles: [],
...@@ -415,6 +418,7 @@ export default defineComponent({ ...@@ -415,6 +418,7 @@ export default defineComponent({
sexOptions, sexOptions,
listGroup, listGroup,
listScheduleAccess, listScheduleAccess,
passwordNew,
id, id,
addNewUser, addNewUser,
getListUserGroup, getListUserGroup,
......
...@@ -127,6 +127,7 @@ ...@@ -127,6 +127,7 @@
v-model:phone-number="phoneNumber" v-model:phone-number="phoneNumber"
v-model:unit="unit" v-model:unit="unit"
v-model:sex="sex" v-model:sex="sex"
v-model:passwordNew="passwordNew"
:sex-options="sexOptions" :sex-options="sexOptions"
v-model:birthday="birthday" v-model:birthday="birthday"
v-model:group="group" v-model:group="group"
......
...@@ -96,7 +96,7 @@ export default defineComponent({ ...@@ -96,7 +96,7 @@ export default defineComponent({
const avatar: Ref<string | null> = ref(null); const avatar: Ref<string | null> = ref(null);
const avatarFile: Ref<File | null> = ref(null); const avatarFile: Ref<File | null> = ref(null);
const avatarUploaded: Ref<string | null> = ref(null); const avatarUploaded: Ref<string | null> = ref(null);
const artistCode: Ref<string> = ref(''); // const artistCode: Ref<string> = ref('');
const fullName: Ref<string> = ref(''); const fullName: Ref<string> = ref('');
const artistName: Ref<string | null> = ref(null); const artistName: Ref<string | null> = ref(null);
const birthday: Ref<string | null> = ref(null); const birthday: Ref<string | null> = ref(null);
...@@ -153,7 +153,7 @@ export default defineComponent({ ...@@ -153,7 +153,7 @@ export default defineComponent({
//sate error input thong-tin-ca-nhan //sate error input thong-tin-ca-nhan
const check_infoBooking = ref(false); const check_infoBooking = ref(false);
const artistCodeRules = ref(false); // const artistCodeRules = ref(false);
const fullNameRules = ref(false); const fullNameRules = ref(false);
// const artistNameRules = ref(false); // const artistNameRules = ref(false);
// const birthdayRules = ref(false); // const birthdayRules = ref(false);
...@@ -207,14 +207,14 @@ export default defineComponent({ ...@@ -207,14 +207,14 @@ export default defineComponent({
} }
} }
); );
watch( // watch(
() => artistCode.value, // () => artistCode.value,
(value) => { // (value) => {
if (value) { // if (value) {
artistCodeRules.value = false; // artistCodeRules.value = false;
} // }
} // }
); // );
watch( watch(
() => account.value, () => account.value,
(value) => { (value) => {
...@@ -678,10 +678,10 @@ export default defineComponent({ ...@@ -678,10 +678,10 @@ export default defineComponent({
// hasError = true; // hasError = true;
// hidden_img.value = true; // hidden_img.value = true;
// } // }
if (!artistCode.value || !artistCode.value?.trim().length) { // if (!artistCode.value || !artistCode.value?.trim().length) {
hasError = true; // hasError = true;
artistCodeRules.value = true; // artistCodeRules.value = true;
} // }
if (!fullName.value || !fullName.value?.trim().length) { if (!fullName.value || !fullName.value?.trim().length) {
hasError = true; hasError = true;
fullNameRules.value = true; fullNameRules.value = true;
...@@ -813,7 +813,7 @@ export default defineComponent({ ...@@ -813,7 +813,7 @@ export default defineComponent({
musicTypeDto: musics.value, musicTypeDto: musics.value,
id: route.params.id, id: route.params.id,
avatar: avatarUploaded.value, avatar: avatarUploaded.value,
artistCode: artistCode.value, // artistCode: artistCode.value,
artistName: artistName.value, artistName: artistName.value,
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday: birthday.value === null ? null : birthday.value + ' 00:00:00', birthday: birthday.value === null ? null : birthday.value + ' 00:00:00',
...@@ -900,7 +900,7 @@ export default defineComponent({ ...@@ -900,7 +900,7 @@ export default defineComponent({
tab, tab,
id, id,
route, route,
artistCode, // artistCode,
fullName, fullName,
artistName, artistName,
birthday, birthday,
...@@ -993,7 +993,7 @@ export default defineComponent({ ...@@ -993,7 +993,7 @@ export default defineComponent({
deleteStory, deleteStory,
UpdateBirtday, UpdateBirtday,
checkValidate, checkValidate,
artistCodeRules, // artistCodeRules,
fullNameRules, fullNameRules,
// artistNameRules, // artistNameRules,
// birthdayRules, // birthdayRules,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<q-tab-panel name="information"> <q-tab-panel name="information">
<PersonalInformation <PersonalInformation
:id="id" :id="id"
v-model:artist-code="artistCode"
:avatar="avatar" :avatar="avatar"
v-model:full-name="fullName" v-model:full-name="fullName"
v-model:artist-name="artistName" v-model:artist-name="artistName"
...@@ -72,7 +72,6 @@ ...@@ -72,7 +72,6 @@
:artistCodeRules="artistCodeRules"
:fullNameRules="fullNameRules" :fullNameRules="fullNameRules"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment