update database

This commit is contained in:
manhlab
2021-04-09 11:13:00 -04:00
parent dbe6e18227
commit 176a5839dc
8 changed files with 18 additions and 18 deletions

View File

@@ -177,7 +177,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
this.service.update(this.itemUpdating, this.itemSelected.id).then(function (response) { this.service.update(this.itemUpdating, this.itemSelected.id).then(function (response) {
_this2.isShowDetail = false; _this2.isShowDetail = false;
_this2.$toast.success("Đã lưu"); _this2.$toast.success("Сохранено");
_this2.fetchList(); _this2.fetchList();
})["catch"](function (error) { })["catch"](function (error) {
@@ -337,7 +337,7 @@ var render = function() {
}, },
[ [
_c("CIcon", { attrs: { name: "cil-check" } }), _c("CIcon", { attrs: { name: "cil-check" } }),
_vm._v(" Lưu\n ") _vm._v(" Сохранить\n ")
], ],
1 1
) )

View File

@@ -158,7 +158,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
case 0: case 0:
_context2.next = 2; _context2.next = 2;
return (_this2.isMe ? _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].auth : _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].user).update(_this2.user, _this2.userId).then(function (response) { return (_this2.isMe ? _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].auth : _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].user).update(_this2.user, _this2.userId).then(function (response) {
_this2.$toast.success("Đã lưu"); _this2.$toast.success("Сохранено");
})["catch"](function (error) { })["catch"](function (error) {
_this2.toastHttpError(error); _this2.toastHttpError(error);
}); });
@@ -267,7 +267,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
case 0: case 0:
_context.next = 2; _context.next = 2;
return (_this.isMe ? _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].auth : _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].user).update(_this.password, _this.userId).then(function (response) { return (_this.isMe ? _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].auth : _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].user).update(_this.password, _this.userId).then(function (response) {
_this.$toast.success("Đã thay đổi"); _this.$toast.success("Измененно");
})["catch"](function (error) { })["catch"](function (error) {
_this.toastHttpError(error); _this.toastHttpError(error);
}); });
@@ -758,7 +758,7 @@ var render = function() {
}, },
[ [
_c("CIcon", { attrs: { name: "cil-check" } }), _c("CIcon", { attrs: { name: "cil-check" } }),
_vm._v("Lưu\n ") _vm._v("Сохранить\n ")
], ],
1 1
) )
@@ -863,7 +863,7 @@ var render = function() {
}, },
[ [
_c("CIcon", { attrs: { name: "cil-check" } }), _c("CIcon", { attrs: { name: "cil-check" } }),
_vm._v("Thay đổi\n ") _vm._v("Изменение\n ")
], ],
1 1
) )

View File

@@ -431,7 +431,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
case 0: case 0:
_context7.next = 2; _context7.next = 2;
return _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].document.update(_this7.document, _this7.documentId).then(function (response) { return _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].document.update(_this7.document, _this7.documentId).then(function (response) {
_this7.$toast.success("Đã lưu"); _this7.$toast.success("Сохранено");
_this7.$emit("update", response.data); _this7.$emit("update", response.data);
})["catch"](function (error) { })["catch"](function (error) {
@@ -915,7 +915,7 @@ var render = function() {
}, },
[ [
_c("CIcon", { attrs: { name: "cil-check" } }), _c("CIcon", { attrs: { name: "cil-check" } }),
_vm._v("Lưu\n ") _vm._v("Сохранить\n ")
], ],
1 1
) )

View File

@@ -137,7 +137,7 @@
class="float-right" class="float-right"
color="success" color="success"
> >
<CIcon name="cil-check" />Lưu <CIcon name="cil-check" />Сохранить
</CButton> </CButton>
<CButton v-else size="sm" @click="createDocument" class="float-right" color="success"> <CButton v-else size="sm" @click="createDocument" class="float-right" color="success">
<CIcon name="cil-plus" />Создать <CIcon name="cil-plus" />Создать
@@ -278,7 +278,7 @@ export default {
await services.document await services.document
.update(this.document, this.documentId) .update(this.document, this.documentId)
.then(response => { .then(response => {
this.$toast.success("Đã lưu"); this.$toast.success("Сохранено");
this.$emit("update", response.data); this.$emit("update", response.data);
}) })
.catch(error => { .catch(error => {

View File

@@ -54,7 +54,7 @@
color="success" color="success"
@click="onClickSave" @click="onClickSave"
> >
<CIcon name="cil-check" /> Lưu <CIcon name="cil-check" /> Сохранить
</CButton> </CButton>
<CButton <CButton
v-if="canDelete && !createMode" v-if="canDelete && !createMode"
@@ -138,7 +138,7 @@ export default {
.update(this.itemUpdating, this.itemSelected.id) .update(this.itemUpdating, this.itemSelected.id)
.then(response => { .then(response => {
this.isShowDetail = false; this.isShowDetail = false;
this.$toast.success("Đã lưu"); this.$toast.success("Сохранено");
this.fetchList(); this.fetchList();
}) })
.catch(error => { .catch(error => {

View File

@@ -56,7 +56,7 @@
</CCardBody> </CCardBody>
<CCardFooter> <CCardFooter>
<CButton type="submit" size="sm" @click="updateInfo" class="float-right" color="success"> <CButton type="submit" size="sm" @click="updateInfo" class="float-right" color="success">
<CIcon name="cil-check" />Lưu <CIcon name="cil-check" />Сохранить
</CButton> </CButton>
</CCardFooter> </CCardFooter>
</CCard> </CCard>
@@ -106,7 +106,7 @@ export default {
return await (this.isMe ? services.auth : services.user) return await (this.isMe ? services.auth : services.user)
.update(this.user, this.userId) .update(this.user, this.userId)
.then((response) => { .then((response) => {
this.$toast.success("Đã lưu"); this.$toast.success("Сохранено");
}) })
.catch((error) => { .catch((error) => {
this.toastHttpError(error); this.toastHttpError(error);

View File

@@ -30,7 +30,7 @@
class="float-right" class="float-right"
color="success" color="success"
> >
<CIcon name="cil-check" />Thay đổi <CIcon name="cil-check" />Изменение
</CButton> </CButton>
</CCardFooter> </CCardFooter>
</CCard> </CCard>
@@ -64,7 +64,7 @@ export default {
return await (this.isMe ? services.auth : services.user) return await (this.isMe ? services.auth : services.user)
.update(this.password, this.userId) .update(this.password, this.userId)
.then((response) => { .then((response) => {
this.$toast.success("Đã thay đổi"); this.$toast.success("Измененно");
}) })
.catch((error) => { .catch((error) => {
this.toastHttpError(error); this.toastHttpError(error);

View File

@@ -113,7 +113,7 @@ class Person extends \Faker\Provider\Person
'Gia', 'Giang', 'Giao', 'Giáng', 'Gia', 'Giang', 'Giao', 'Giáng',
'Hiếu', 'Hiền', 'Hiểu', 'Hoa', 'Hoài', 'Hoàn', 'Hoàng', 'Huyền', 'Huệ', 'Huỳnh', 'Hà', 'Hàm', 'Hương', 'Hạ', 'Hạc', 'Hạnh', 'Hải', 'Hảo', 'Hằng', 'Họa', 'Hồ', 'Hồng', 'Hiếu', 'Hiền', 'Hiểu', 'Hoa', 'Hoài', 'Hoàn', 'Hoàng', 'Huyền', 'Huệ', 'Huỳnh', 'Hà', 'Hàm', 'Hương', 'Hạ', 'Hạc', 'Hạnh', 'Hải', 'Hảo', 'Hằng', 'Họa', 'Hồ', 'Hồng',
'Khiết', 'Khuê', 'Khánh', 'Khúc', 'Khả', 'Khải', 'Kim', 'Kiết', 'Kiều', 'Kỳ', 'Khiết', 'Khuê', 'Khánh', 'Khúc', 'Khả', 'Khải', 'Kim', 'Kiết', 'Kiều', 'Kỳ',
'Lam', 'Lan', 'Linh', 'Liên', 'Liễu', 'Loan', 'Ly', 'Lâm', 'Lê', 'Lưu', 'Lệ', 'Lộc', 'Lục', 'Lam', 'Lan', 'Linh', 'Liên', 'Liễu', 'Loan', 'Ly', 'Lâm', 'Lê', 'Сохранить', 'Lệ', 'Lộc', 'Lục',
'Mai', 'Minh', 'Mậu', 'Mộc', 'Mộng', 'Mỹ', 'Mai', 'Minh', 'Mậu', 'Mộc', 'Mộng', 'Mỹ',
'Nghi', 'Nguyên', 'Nguyết', 'Nguyệt', 'Ngân', 'Ngọc', 'Nhan', 'Nhã', 'Như', 'Nhất', 'Nhật', 'Nghi', 'Nguyên', 'Nguyết', 'Nguyệt', 'Ngân', 'Ngọc', 'Nhan', 'Nhã', 'Như', 'Nhất', 'Nhật',
'Oanh', 'Oanh',
@@ -143,7 +143,7 @@ class Person extends \Faker\Provider\Person
'Giang', 'Giao', 'Giáp', 'Giả', 'Giang', 'Giao', 'Giáp', 'Giả',
'Hoa', 'Hoàng', 'Huỳnh', 'Hy', 'Hà', 'Hàn', 'Hàng', 'Hán', 'Hình', 'Hùng', 'Hạ', 'Hồ', 'Hồng', 'Hứa', 'Hoa', 'Hoàng', 'Huỳnh', 'Hy', 'Hà', 'Hàn', 'Hàng', 'Hán', 'Hình', 'Hùng', 'Hạ', 'Hồ', 'Hồng', 'Hứa',
'Kha', 'Khoa', 'Khu', 'Khuất', 'Khâu', 'Khúc', 'Khưu', 'Khương', 'Khổng', 'Kim', 'Kiều', 'Kha', 'Khoa', 'Khu', 'Khuất', 'Khâu', 'Khúc', 'Khưu', 'Khương', 'Khổng', 'Kim', 'Kiều',
'La', 'Liễu', 'Lâm', 'Lã', 'Lê', 'Lò', 'Lô', 'Lý', 'Lư', 'Lưu', 'Lương', 'Lạc', 'Lại', 'Lều', 'Lỡ', 'Lục', 'Lữ', 'Lỳ', 'La', 'Liễu', 'Lâm', 'Lã', 'Lê', 'Lò', 'Lô', 'Lý', 'Lư', 'Сохранить', 'Lương', 'Lạc', 'Lại', 'Lều', 'Lỡ', 'Lục', 'Lữ', 'Lỳ',
'Ma', 'Mai', 'Mang', 'Mâu', 'Код', 'Mạc', 'Mạch', 'Mẫn', 'Mộc', 'Ma', 'Mai', 'Mang', 'Mâu', 'Код', 'Mạc', 'Mạch', 'Mẫn', 'Mộc',
'Nghiêm', 'Nghị', 'Nguyễn', 'Ngân', 'Ngô', 'Ngụy', 'Nhiệm', 'Nhâm', 'Nhậm', 'Nhữ', 'Ninh', 'Nông', 'Nghiêm', 'Nghị', 'Nguyễn', 'Ngân', 'Ngô', 'Ngụy', 'Nhiệm', 'Nhâm', 'Nhậm', 'Nhữ', 'Ninh', 'Nông',
'Ong', 'Ong',