update style

parent d2a0a98c
...@@ -22,7 +22,7 @@ export default defineComponent({ ...@@ -22,7 +22,7 @@ export default defineComponent({
slide.value = value - 1; slide.value = value - 1;
} }
); );
const slide = ref(1); const slide = ref(0);
const slideStory = ref(0); const slideStory = ref(0);
const editor = ref('Customize it.'); const editor = ref('Customize it.');
const accountRules = [ const accountRules = [
......
import { defineComponent, PropType, Ref, ref } from 'vue'; import { defineComponent, PropType } from 'vue';
import { i18n } from 'src/boot/i18n'; import { i18n } from 'src/boot/i18n';
import { BankAccountType } from 'src/assets/type'; import { BankAccountType } from 'src/assets/type';
...@@ -54,7 +54,15 @@ export default defineComponent({ ...@@ -54,7 +54,15 @@ export default defineComponent({
'artist.dialogLabel.validateMessages.errorIsDefault' 'artist.dialogLabel.validateMessages.errorIsDefault'
), ),
}); });
} else context.emit('addNewBankAccount'); } else {
Notify.create({
type: 'positive',
message: i18n.global.t(
'artist.dialogLabel.validateMessages.addAccess'
),
});
context.emit('addNewBankAccount');
}
}; };
return { return {
defaultStatus, defaultStatus,
......
...@@ -359,7 +359,7 @@ export default { ...@@ -359,7 +359,7 @@ export default {
addArtist: 'Thêm nghệ sỹ', addArtist: 'Thêm nghệ sỹ',
updateArtist: 'Cập nhật nghệ sỹ', updateArtist: 'Cập nhật nghệ sỹ',
addAccountBank: 'Thêm tài khoản ngân hàng', addAccountBank: 'Thêm tài khoản ngân hàng',
addHotProduct: 'Thêm sản phẩm nổi bật' addHotProduct: 'Thêm sản phẩm nổi bật',
}, },
fieldLabels: { fieldLabels: {
accountNumber: 'Mã thẻ', accountNumber: 'Mã thẻ',
...@@ -373,7 +373,8 @@ export default { ...@@ -373,7 +373,8 @@ export default {
requireCardNumber: 'Vui lòng nhập số ghi trên thẻ', requireCardNumber: 'Vui lòng nhập số ghi trên thẻ',
requireBankName: 'Vui lòng chọn ngân hàng', requireBankName: 'Vui lòng chọn ngân hàng',
requireCardType: 'Vui lòng chọn loại thẻ', requireCardType: 'Vui lòng chọn loại thẻ',
errorIsDefault: 'Nghệ sỹ đã có tài khoản mặc định', errorIsDefault: 'Nghệ sỹ đã có tài khoản ngân hàng mặc định',
addAccess: 'Thêm tài khoản ngân hàng thành công',
}, },
}, },
confirmActionsTitle: { confirmActionsTitle: {
......
...@@ -256,7 +256,6 @@ export default defineComponent({ ...@@ -256,7 +256,6 @@ export default defineComponent({
cardType: cardType.value, cardType: cardType.value,
isDefault: isDefault.value, isDefault: isDefault.value,
}; };
bankAccounts.value.push(newAccount as BankAccountType); bankAccounts.value.push(newAccount as BankAccountType);
isOpenAddAccountBankDialog.value = false; isOpenAddAccountBankDialog.value = false;
}; };
......
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