@hostlink/nuxt-light 1.48.11 → 1.48.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/l-drag-drop-container.vue +0 -2
- package/dist/runtime/components/l-drag-drop-group.vue +0 -1
- package/dist/runtime/components/l-file-manager.vue +0 -1
- package/dist/runtime/formkit/Form.vue +5 -4
- package/dist/runtime/formkit/index.js +3 -1
- package/dist/runtime/pages/User/_user_id/view.vue +0 -1
- package/dist/runtime/pages/User/setting/style.vue +0 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -19,10 +19,8 @@ const group = doFind(getCurrentInstance());
|
|
|
19
19
|
const allItems = group.exposed.findAllItems();
|
|
20
20
|
const group_name = group.exposed.getGroupName();
|
|
21
21
|
const group_model = group.exposed.getModelByName(props.name);
|
|
22
|
-
console.log(props.name);
|
|
23
22
|
if (model.value == void 0) {
|
|
24
23
|
model.value = group_model;
|
|
25
|
-
console.log(model.value);
|
|
26
24
|
}
|
|
27
25
|
const filteredItem = allItems.filter((item) => {
|
|
28
26
|
return model.value.includes(item.props.name);
|
|
@@ -378,7 +378,6 @@ const onDownloadRow = async (row) => {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
|
-
console.log(app);
|
|
382
381
|
const base64Content = app.app.drive.file.base64Content;
|
|
383
382
|
const downloadLink = document.createElement("a");
|
|
384
383
|
downloadLink.href = `data:application/octet-stream;base64,${base64Content}`;
|
|
@@ -23,9 +23,10 @@ let redirect = true;
|
|
|
23
23
|
if (props.context.attrs.onSubmitted) {
|
|
24
24
|
redirect = false;
|
|
25
25
|
}
|
|
26
|
+
const modelName = props.context.modelName || (typeof route.name === "string" ? route.name.split("-")[0] : void 0);
|
|
27
|
+
const id = props.context.modelId || route.params[typeof route.name === "string" ? route.name.split("-")[1] : "id"];
|
|
26
28
|
if (!props.context.onSubmit) {
|
|
27
29
|
props.context.node.props.onSubmit = async function() {
|
|
28
|
-
const [module, id_name] = route.name.split("-");
|
|
29
30
|
const removeUndefined = (obj) => {
|
|
30
31
|
if (obj === null || obj === void 0) {
|
|
31
32
|
return obj;
|
|
@@ -50,8 +51,8 @@ if (!props.context.onSubmit) {
|
|
|
50
51
|
};
|
|
51
52
|
const v = removeUndefined(props.context.value);
|
|
52
53
|
try {
|
|
53
|
-
if (
|
|
54
|
-
if (await model(
|
|
54
|
+
if (id) {
|
|
55
|
+
if (await model(modelName).update(Number(id), v)) {
|
|
55
56
|
quasar.notify({
|
|
56
57
|
message: "Updated successfully",
|
|
57
58
|
color: "positive",
|
|
@@ -62,7 +63,7 @@ if (!props.context.onSubmit) {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
} else {
|
|
65
|
-
if (await model(
|
|
66
|
+
if (await model(modelName).add(v)) {
|
|
66
67
|
quasar.notify({
|
|
67
68
|
message: "Added successfully",
|
|
68
69
|
color: "positive",
|
|
@@ -4,7 +4,6 @@ import { useRoute } from "vue-router";
|
|
|
4
4
|
import { useAsyncData } from "#imports";
|
|
5
5
|
const route = useRoute();
|
|
6
6
|
const { data: obj } = await useAsyncData("user-view-" + route.params.user_id, async () => {
|
|
7
|
-
console.log("fetching user", route.params.user_id);
|
|
8
7
|
return await list("User", {
|
|
9
8
|
canUpdate: true,
|
|
10
9
|
canDelete: true
|