agilebuilder-ui 1.1.65-tmp22 → 1.1.65-tmp24
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/index.full.min.js +462 -281
- package/dist/style.css +181 -175
- package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
- package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +29 -29
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
- package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
- package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
- package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
- package/es/index.mjs +7 -5
- package/es/src/components/Card/index.mjs +34 -31
- package/es/src/components/Scrollbar/index.vue.mjs +6 -6
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/utils/common-util.mjs +47 -39
- package/es/style.css +879 -873
- package/es/super-grid/src/apis.mjs +199 -173
- package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
- package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
- package/es/super-grid/src/normal-column.vue.mjs +4 -5
- package/es/super-grid/src/search-button.vue.mjs +4 -2
- package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
- package/es/super-grid/src/search-form-item.vue.mjs +5 -5
- package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
- package/es/super-grid/src/search-form-open.vue.mjs +5 -3
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
- package/es/super-grid/src/search-form.vue.mjs +19 -13
- package/es/super-grid/src/super-grid.vue.mjs +271 -209
- package/es/super-grid/src/utils.mjs +346 -300
- package/es/utils/organization.mjs +24 -11
- package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
- package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
- package/lib/chat-embed/src/index.vue.cjs +1 -1
- package/lib/chat-embed/src/index.vue2.cjs +14 -14
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
- package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
- package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
- package/lib/index.cjs +7 -7
- package/lib/src/components/Card/index.cjs +14 -11
- package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
- package/lib/src/i18n/langs/cn.cjs +1 -1
- package/lib/src/i18n/langs/en.cjs +1 -1
- package/lib/src/utils/common-util.cjs +24 -17
- package/lib/style.css +915 -909
- package/lib/super-grid/src/apis.cjs +190 -164
- package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
- package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
- package/lib/super-grid/src/normal-column.vue.cjs +10 -11
- package/lib/super-grid/src/search-button.vue.cjs +3 -1
- package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
- package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
- package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
- package/lib/super-grid/src/search-form.vue.cjs +15 -10
- package/lib/super-grid/src/super-grid.vue.cjs +220 -158
- package/lib/super-grid/src/utils.cjs +349 -274
- package/lib/utils/organization.cjs +35 -24
- package/package.json +1 -1
- package/src/components/Card/index.jsx +12 -2
- package/src/components/Scrollbar/index.vue +165 -154
- package/src/i18n/langs/cn.js +10 -2
- package/src/i18n/langs/en.js +10 -2
- package/src/styles/index.scss +9 -2
- package/src/styles/theme/default.scss +18 -13
- package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
- package/src/utils/auth-api.js +1 -0
- package/src/utils/common-util.js +13 -0
- package/vite.config.js +0 -45
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import o from "./search-methods.mjs";
|
|
3
|
+
import t from "./store.mjs";
|
|
4
4
|
import { addDynamicPropDateSection as r, addDynamicProp as s } from "./utils.mjs";
|
|
5
5
|
import a from "../../src/utils/eventBus.mjs";
|
|
6
6
|
import m from "./search-form-item.vue.mjs";
|
|
7
7
|
import n from "./search-button.vue.mjs";
|
|
8
|
-
import { resolveComponent as
|
|
8
|
+
import { resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as h, withCtx as p, createElementVNode as u, Fragment as f, renderList as d, createVNode as b, createCommentVNode as F } from "vue";
|
|
9
9
|
import "./search-form-mobile.vue2.mjs";
|
|
10
10
|
import y from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
11
|
const v = { name: "SearchFormMobile", components: { SearchFormItem: m, SearchButton: n }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, rules: { type: Object, default: null }, labelWidth: { type: String, default: null }, query: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, loadCompleteQuery: { type: Boolean, default: false } }, data() {
|
|
12
|
-
const e2 =
|
|
13
|
-
let
|
|
14
|
-
e2 && e2.basicInfo && e2.basicInfo.tableName && (
|
|
15
|
-
return { customComponentNames: /* @__PURE__ */ new Set(), dateOne: null, dataTwo: null, tableName:
|
|
12
|
+
const e2 = t.get(this.code);
|
|
13
|
+
let o2, r2;
|
|
14
|
+
e2 && e2.basicInfo && e2.basicInfo.tableName && (o2 = e2.basicInfo.tableName), e2 && e2.basicInfo && e2.basicInfo.hasJoinTable && (r2 = e2.basicInfo.hasJoinTable);
|
|
15
|
+
return { customComponentNames: /* @__PURE__ */ new Set(), dateOne: null, dataTwo: null, tableName: o2, isJoinTable: r2, isOpen: false };
|
|
16
16
|
}, computed: {}, watch: {}, created() {
|
|
17
|
-
}, methods: { ...
|
|
18
|
-
return new Promise((e2,
|
|
19
|
-
this.$refs.searchForm.validate((
|
|
20
|
-
e2(
|
|
17
|
+
}, methods: { ...o, validateForm() {
|
|
18
|
+
return new Promise((e2, o2) => {
|
|
19
|
+
this.$refs.searchForm.validate((o3) => {
|
|
20
|
+
e2(o3);
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
}, resetForm() {
|
|
@@ -27,15 +27,15 @@ const v = { name: "SearchFormMobile", components: { SearchFormItem: m, SearchBut
|
|
|
27
27
|
this.$refs.searchForm.resetFields(), this.searchableColumns.forEach((e2) => {
|
|
28
28
|
e2.prop && e2.prop.indexOf(".") > 0 ? "dateSection" === e2.componentType ? r(this.searchForm, e2.prop) : s(this.searchForm, e2.prop) : ("dateSection" === e2.componentType ? this.searchForm[e2.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : "yearRange" === e2.componentType ? (this.searchForm[e2.prop][0] = "", this.searchForm[e2.prop][1] = "") : "inputNumber" === e2.componentType && this.searchForm[e2.prop] ? (this.searchForm[e2.prop][0] = 0, this.searchForm[e2.prop][1] = 0) : this.searchForm[e2.prop] = null, this.setDefaultQueryValue(e2, this.searchForm)), e2._emptyValue && (e2._emptyValue = void 0, e2._resetValue = true);
|
|
29
29
|
}), e(this, "submit-form");
|
|
30
|
-
}, openFold(
|
|
31
|
-
this.isOpen =
|
|
30
|
+
}, openFold(o2) {
|
|
31
|
+
this.isOpen = o2, e(this, "open-fold", o2);
|
|
32
32
|
}, searchComplete() {
|
|
33
33
|
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
34
|
-
} }, emits: ["submit-form", "reset-form", "save-condition", "remoteMethod"] }, j = { style: { "padding-bottom": "40px"
|
|
35
|
-
const
|
|
36
|
-
const m2 =
|
|
37
|
-
return
|
|
38
|
-
}], ["__scopeId", "data-v-
|
|
34
|
+
} }, emits: ["submit-form", "reset-form", "save-condition", "remoteMethod"] }, j = { style: { "padding-bottom": "40px" } }, C = { class: "search-btn-mobile" };
|
|
35
|
+
const O = y(v, [["render", function(e2, o2, t2, r2, s2, a2) {
|
|
36
|
+
const m2 = l("search-form-item"), n2 = l("search-button"), y2 = l("el-form");
|
|
37
|
+
return i(), c("div", null, [t2.searchableColumns.length > 0 ? (i(), h(y2, { key: 0, ref: "searchForm", model: t2.searchForm, rules: t2.rules, class: "grid-search-form-mobile", "label-position": "top", size: "default" }, { default: p(() => [u("div", j, [(i(true), c(f, null, d(t2.searchableColumns, (e3, o3) => (i(), h(m2, { key: o3, "search-form": t2.searchForm, column: e3, code: t2.code, "is-sql": t2.isSql, "table-name": s2.tableName, "is-join-table": s2.isJoinTable }, null, 8, ["search-form", "column", "code", "is-sql", "table-name", "is-join-table"]))), 128))]), u("div", C, [b(n2, { ref: "searchBtnOpen", onClose: o2[0] || (o2[0] = (o3) => e2.$emit("close")), onSubmitForm: o2[1] || (o2[1] = (o3) => e2.$emit("submit-form")), onResetForm: o2[2] || (o2[2] = (o3) => e2.$emit("reset-form")), onSaveCondition: o2[3] || (o2[3] = (o3) => e2.$emit("save-condition")) }, null, 512)])]), _: 1 }, 8, ["model", "rules"])) : F("", true)]);
|
|
38
|
+
}], ["__scopeId", "data-v-c8fb4788"]]);
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
O as default
|
|
41
41
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./search-methods.mjs";
|
|
2
2
|
import t from "./search-form-item.vue.mjs";
|
|
3
3
|
import n from "./search-button.vue.mjs";
|
|
4
|
-
import { resolveComponent as s, resolveDirective as o, withDirectives as r, openBlock as a, createElementBlock as
|
|
4
|
+
import { resolveComponent as s, resolveDirective as o, withDirectives as r, openBlock as a, createElementBlock as h, createVNode as i, withCtx as l, Fragment as m, renderList as u, createBlock as p, normalizeClass as c } from "vue";
|
|
5
5
|
import d from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const f = { name: "SearchFormOpen", components: { SearchFormItem: t, SearchButton: n }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, spanNum: { type: Number, default: 8 }, fieldNum: { type: Number, default: null }, rowNum: { type: Number, default: null }, isOpen: { type: Boolean, default: false } }, data() {
|
|
7
7
|
return { rowWidth: void 0, maxLength: void 0, minLength: void 0, myOpen: this.isOpen ?? false };
|
|
@@ -37,13 +37,15 @@ const f = { name: "SearchFormOpen", components: { SearchFormItem: t, SearchButto
|
|
|
37
37
|
} }, methods: { ...e, onResize(e2) {
|
|
38
38
|
this.rowWidth = e2.contentRect.width;
|
|
39
39
|
}, openFold(e2) {
|
|
40
|
-
this.
|
|
40
|
+
this.openFoldFunc(e2), this.$emit("open-fold", e2);
|
|
41
|
+
}, openFoldFunc(e2) {
|
|
42
|
+
this.myOpen = e2, this.$refs && this.$refs.searchBtnOpen && this.$refs.searchBtnOpen.openFoldFunc(e2);
|
|
41
43
|
}, searchComplete() {
|
|
42
44
|
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
43
45
|
} } }, b = { class: "grid-search-row" };
|
|
44
46
|
const w = d(f, [["render", function(e2, t2, n2, d2, f2, w2) {
|
|
45
47
|
const O = s("search-form-item"), y = s("el-col"), g = s("search-button"), S = s("el-row"), C = o("resize");
|
|
46
|
-
return r((a(),
|
|
48
|
+
return r((a(), h("div", b, [i(S, null, { default: l(() => [(a(true), h(m, null, u(w2.filterSearchableColumns, (e3, t3) => (a(), p(y, { key: t3, span: w2.span }, { default: l(() => [i(O, { "label-width": w2.labelWidth, "search-form": n2.searchForm, column: e3, code: n2.code, "is-sql": n2.isSql, "table-name": n2.tableName, "is-join-table": n2.isJoinTable }, null, 8, ["label-width", "search-form", "column", "code", "is-sql", "table-name", "is-join-table"])]), _: 2 }, 1032, ["span"]))), 128)), i(y, { span: w2.span, class: c(["search-btns-view", { "no-show-open": !w2.isShowOpen, "no-search-button-auto": w2.isSearchButtonAuto }]) }, { default: l(() => [i(g, { ref: "searchBtnOpen", "is-open": f2.myOpen, "is-show-open": w2.isShowOpen, onSubmitForm: t2[0] || (t2[0] = (t3) => e2.$emit("submit-form")), onResetForm: t2[1] || (t2[1] = (t3) => e2.$emit("reset-form")), onSaveCondition: t2[2] || (t2[2] = (t3) => e2.$emit("save-condition")), onOpenFold: w2.openFold }, null, 8, ["is-open", "is-show-open", "onOpenFold"])]), _: 1 }, 8, ["span", "class"])]), _: 1 })])), [[C, w2.onResize]]);
|
|
47
49
|
}]]);
|
|
48
50
|
export {
|
|
49
51
|
w as default
|
|
@@ -30,10 +30,12 @@ const d = h({ name: "SearchForm", components: { SearchFormOpen: a }, props: { se
|
|
|
30
30
|
this.isOpen = o2, e(this, "open-fold", o2);
|
|
31
31
|
}, searchComplete() {
|
|
32
32
|
this.$refs.searchFormContent && this.$refs.searchFormContent.searchComplete();
|
|
33
|
+
}, openFoldFunc(e2) {
|
|
34
|
+
this.isOpen = e2, this.$refs.searchFormContent && this.$refs.searchFormContent.openFoldFunc(e2);
|
|
33
35
|
} }, emits: ["submit-form", "reset-form", "save-condition", "open-fold", "remoteMethod"] }, [["render", function(e2, o2, r2, t2, s2, a2) {
|
|
34
36
|
const m2 = n("search-form-open"), h2 = n("el-form");
|
|
35
37
|
return r2.searchableColumns.length > 0 ? (l(), i(h2, { key: 0, ref: "searchForm", model: r2.searchForm, rules: r2.rules, class: "grid-search-form", "label-position": "right", size: "default" }, { default: p(() => [u(m2, { ref: "searchFormContent", code: r2.code, "field-num": r2.fieldNum, "is-join-table": s2.isJoinTable, "is-open": s2.isOpen, "is-sql": r2.isSql, "load-complete-query": r2.loadCompleteQuery, "row-num": r2.rowNum, "search-form": r2.searchForm, "searchable-columns": r2.searchableColumns, "span-num": r2.spanNum, "table-name": s2.tableName, onSubmitForm: o2[0] || (o2[0] = (o3) => e2.$emit("submit-form")), onResetForm: o2[1] || (o2[1] = (o3) => e2.$emit("reset-form")), onSaveCondition: o2[2] || (o2[2] = (o3) => e2.$emit("save-condition")), onOpenFold: a2.openFold }, null, 8, ["code", "field-num", "is-join-table", "is-open", "is-sql", "load-complete-query", "row-num", "search-form", "searchable-columns", "span-num", "table-name", "onOpenFold"])]), _: 1 }, 8, ["model", "rules"])) : c("", true);
|
|
36
|
-
}], ["__scopeId", "data-v-
|
|
38
|
+
}], ["__scopeId", "data-v-d462769a"]]);
|
|
37
39
|
export {
|
|
38
40
|
d as default
|
|
39
41
|
};
|
|
@@ -7,11 +7,12 @@ import { addDynamicPropDateSection as i, addDynamicProp as a } from "./utils.mjs
|
|
|
7
7
|
import { resolveComponent as n, openBlock as c, createElementBlock as h, createBlock as l, withCtx as m, createElementVNode as d, createCommentVNode as p, Fragment as u, createVNode as y, createTextVNode as f, toDisplayString as S } from "vue";
|
|
8
8
|
import C from "./search-condition-input.vue.mjs";
|
|
9
9
|
import b from "./search-condition-list.vue.mjs";
|
|
10
|
-
import
|
|
11
|
-
import { isMobileBrowser as
|
|
10
|
+
import F from "./search-form-mobile.vue.mjs";
|
|
11
|
+
import { isMobileBrowser as g } from "../../src/utils/common-util.mjs";
|
|
12
|
+
import v from "./eventBus.mjs";
|
|
12
13
|
import "./search-form.vue2.mjs";
|
|
13
|
-
import
|
|
14
|
-
const
|
|
14
|
+
import T from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
15
|
+
const w = { name: "SearchForm", components: { SearchConditionInput: C, SearchConditionList: b, searchFormOrdinarySearch: t, searchFormAdvancedQuery: s, SearchFormMobile: F }, provide() {
|
|
15
16
|
return { getListToolbarFormData: () => ({ listToolbarFormData: this.listToolbarFormData }) };
|
|
16
17
|
}, props: { columns: { type: Array, default: null }, code: { type: String, default: null }, url: { type: String, default: null }, pagination: { type: Object, default: null }, query: { type: Object, default: null }, searchParam: { type: Object, default: null }, initSearchProps: { type: Array, default: null }, isSql: { type: Boolean, default: false }, searchFormInfo: { type: Object, default: () => ({}) }, loadCompleteQuery: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
17
18
|
const e2 = /* @__PURE__ */ new Set(), o2 = r.get(this.code), t2 = {};
|
|
@@ -21,7 +22,7 @@ const T = { name: "SearchForm", components: { SearchConditionInput: C, SearchCon
|
|
|
21
22
|
void 0 !== this.initSearchProps && null !== this.initSearchProps || (this.initSearchProps = []), n2.forEach((e3) => {
|
|
22
23
|
this.initSearchProps.indexOf(e3.prop) < 0 && (e3.prop && e3.prop.indexOf(".") > 0 ? "dateSection" === e3.componentType ? i(s2, e3.prop) : a(s2, e3.prop) : ("dateSection" === e3.componentType ? s2[e3.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : "yearRange" === e3.componentType && (s2[e3.prop] = ["", ""]), this.setDefaultQueryValue(e3, s2)));
|
|
23
24
|
});
|
|
24
|
-
const c2 =
|
|
25
|
+
const c2 = g();
|
|
25
26
|
let h2 = false;
|
|
26
27
|
c2 && n2 && n2.length > 0 && (h2 = true);
|
|
27
28
|
const l2 = this.getSpanNum(n2), m2 = this.getFieldNumPerRow(n2), d2 = Math.ceil(n2.length / m2), p2 = this.query.advancedQuery, u2 = this.query.normalQuery;
|
|
@@ -30,6 +31,9 @@ const T = { name: "SearchForm", components: { SearchConditionInput: C, SearchCon
|
|
|
30
31
|
return this.getSearchableColumns();
|
|
31
32
|
}, advancedQueryColumns() {
|
|
32
33
|
return this.getAdvancedQueryColumns();
|
|
34
|
+
}, mobileDrawerSize() {
|
|
35
|
+
const e2 = window.innerWidth;
|
|
36
|
+
return e2 <= 400 ? "85%" : e2 > 400 && e2 <= 768 ? "70%" : "60%";
|
|
33
37
|
} }, watch: { searchForm: { deep: true, handler(e2) {
|
|
34
38
|
this.searchFormInfo.data = e2;
|
|
35
39
|
} } }, created() {
|
|
@@ -107,7 +111,7 @@ const T = { name: "SearchForm", components: { SearchConditionInput: C, SearchCon
|
|
|
107
111
|
this.isMobile ? this.$refs.searchFormMobile.validateForm().then((o2) => {
|
|
108
112
|
if (!o2)
|
|
109
113
|
return false;
|
|
110
|
-
this.searchParams = this.packageSearchParam(), e(this, "search", this.searchParams);
|
|
114
|
+
this.isShowMobileForm = false, this.searchParams = this.packageSearchParam(), e(this, "search", this.searchParams);
|
|
111
115
|
}) : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.validateForm().then((o2) => {
|
|
112
116
|
if (!o2)
|
|
113
117
|
return false;
|
|
@@ -118,7 +122,7 @@ const T = { name: "SearchForm", components: { SearchConditionInput: C, SearchCon
|
|
|
118
122
|
this.loading = true, this.searchParams = this.packageSearchParam(), e(this, "search", this.searchParams);
|
|
119
123
|
});
|
|
120
124
|
}, resetForm() {
|
|
121
|
-
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = null), this.isMobile ? this.$refs.searchFormMobile.resetForm() : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.resetForm() : "advanced" === this.searchType && (this.$refs.searchFormAdvancedQuery.resetForm(), e(this, "reset")),
|
|
125
|
+
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = null), this.isMobile ? this.$refs.searchFormMobile.resetForm() : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.resetForm() : "advanced" === this.searchType && (this.$refs.searchFormAdvancedQuery.resetForm(), e(this, "reset")), v.$emit("reset");
|
|
122
126
|
}, setNumberValue(e2, o2, t2) {
|
|
123
127
|
let s2 = this.getFormItemValue(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop);
|
|
124
128
|
s2 = e2, this.setValueToModelProp(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop, s2);
|
|
@@ -191,11 +195,13 @@ const T = { name: "SearchForm", components: { SearchConditionInput: C, SearchCon
|
|
|
191
195
|
this.isShowMobileForm = false, e(this, "close-mobile-search");
|
|
192
196
|
}, showMobileSearch() {
|
|
193
197
|
this.isShowMobileForm = true;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
}, openFoldFunc(e2) {
|
|
199
|
+
this.$refs.searchFormOrdinarySearch && this.$refs.searchFormOrdinarySearch.openFoldFunc(e2);
|
|
200
|
+
} }, emits: ["search", "open-fold", "reset", "show-mobile-search", "close-mobile-search"] }, N = { class: "amb-agilebuilder-search-form-view" }, M = { class: "search-condition-mobile" }, O = { key: 3, style: { "padding-top": "10px", "padding-bottom": "10px", "text-align": "center" } }, $ = { key: 0, style: { "margin-left": "10px" } };
|
|
201
|
+
const x = T(w, [["render", function(e2, o2, t2, s2, r2, i2) {
|
|
202
|
+
const a2 = n("search-condition-list"), C2 = n("search-form-mobile"), b2 = n("el-drawer"), F2 = n("search-form-ordinary-search"), g2 = n("search-form-advanced-query"), v2 = n("el-button"), T2 = n("search-condition-input");
|
|
203
|
+
return c(), h("div", N, [r2.isMobile ? (c(), l(b2, { key: 0, modelValue: r2.isShowMobileForm, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => r2.isShowMobileForm = e3), title: e2.$t("superGrid.searchCondition"), "close-on-click-modal": false, "close-on-press-escape": false, "show-close": false, direction: "rtl", size: i2.mobileDrawerSize, onClose: o2[5] || (o2[5] = (e3) => i2.closeMobileSearch()) }, { default: m(() => [d("div", M, [r2.searchConditions.length > 0 ? (c(), l(a2, { key: 0, ref: "searchConditionList", "search-conditions": r2.searchConditions, "search-type": r2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : p("", true)]), r2.isMobile && "normal" === r2.searchType ? (c(), l(C2, { key: 0, ref: "searchFormMobile", code: t2.code, "is-sql": t2.isSql, "load-complete-query": t2.loadCompleteQuery, query: t2.query, rules: r2.rules, "search-form": r2.searchForm, "searchable-columns": i2.searchableColumns, onClose: o2[0] || (o2[0] = (e3) => r2.isShowMobileForm = false), onSubmitForm: o2[1] || (o2[1] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[2] || (o2[2] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[3] || (o2[3] = (e3) => i2.saveCondition()) }, null, 8, ["code", "is-sql", "load-complete-query", "query", "rules", "search-form", "searchable-columns"])) : p("", true)]), _: 1 }, 8, ["modelValue", "title", "size"])) : (c(), h(u, { key: 1 }, [r2.searchConditions.length > 0 ? (c(), l(a2, { key: 0, ref: "searchConditionList", "search-conditions": r2.searchConditions, "search-type": r2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : p("", true), "normal" === r2.searchType ? (c(), l(F2, { key: 1, ref: "searchFormOrdinarySearch", code: t2.code, "field-num": r2.fieldNum, "is-sql": t2.isSql, "label-width": r2.labelWidth, "load-complete-query": t2.loadCompleteQuery, query: t2.query, "row-num": r2.rowNum, rules: r2.rules, "search-form": r2.searchForm, "searchable-columns": i2.searchableColumns, "span-num": r2.spanNum, onSubmitForm: o2[6] || (o2[6] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[7] || (o2[7] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[8] || (o2[8] = (e3) => i2.saveCondition()), onOpenFold: i2.openFold }, null, 8, ["code", "field-num", "is-sql", "label-width", "load-complete-query", "query", "row-num", "rules", "search-form", "searchable-columns", "span-num", "onOpenFold"])) : p("", true), "advanced" === r2.searchType ? (c(), l(g2, { key: 2, ref: "searchFormAdvancedQuery", code: t2.code, "is-sql": t2.isSql, "prop-map": r2.propMap, "search-form-list": r2.searchFormList, "searchable-columns": i2.advancedQueryColumns, style: { "padding-bottom": "10px" }, onResetForm: i2.resetSearchFormList }, null, 8, ["code", "is-sql", "prop-map", "search-form-list", "searchable-columns", "onResetForm"])) : p("", true), "advanced" === r2.searchType ? (c(), h("div", O, [y(v2, { loading: r2.loading, size: "default", type: "primary", onClick: o2[9] || (o2[9] = (e3) => i2.submitForm("searchForm")) }, { default: m(() => [f(S(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), y(v2, { loading: r2.loading, size: "default", onClick: o2[10] || (o2[10] = (e3) => i2.resetForm("searchForm")) }, { default: m(() => [f(S(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"]), y(v2, { size: "default", onClick: i2.saveCondition }, { default: m(() => [f(S(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }, 8, ["onClick"]), null !== r2.advancedQuery && void 0 !== r2.advancedQuery && true === r2.advancedQuery && null !== r2.normalQuery && void 0 !== r2.normalQuery && true === r2.normalQuery ? (c(), h("span", $, ["advanced" === r2.searchType ? (c(), l(v2, { key: 0, size: "default", onClick: o2[11] || (o2[11] = (e3) => r2.searchType = "normal") }, { default: m(() => [f(S(e2.$t("imatrixUIPublicModel.switchToNormalQuery")), 1)]), _: 1 })) : p("", true), "normal" === r2.searchType ? (c(), l(v2, { key: 1, size: "default", onClick: o2[12] || (o2[12] = (e3) => r2.searchType = "advanced") }, { default: m(() => [f(S(e2.$t("imatrixUIPublicModel.switchToAdvancedQuery")), 1)]), _: 1 })) : p("", true)])) : p("", true)])) : p("", true)], 64)), r2.isShowSearchCondition ? (c(), l(T2, { key: 2, onClose: i2.saveConditionValue }, null, 8, ["onClose"])) : p("", true)]);
|
|
204
|
+
}], ["__scopeId", "data-v-8f3059a4"]]);
|
|
199
205
|
export {
|
|
200
|
-
|
|
206
|
+
x as default
|
|
201
207
|
};
|