jmash-region 0.0.6 → 0.1.0
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/README.md +51 -51
- package/dist/{edit-BG6ApWK7.mjs → edit-IubJMRl3.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BaawD1DB.mjs → edit.vue_vue_type_script_setup_true_lang-BKmItrIK.mjs} +64 -64
- package/dist/{index-DbRfRoaS.mjs → index-B-qwEypO.mjs} +12 -12
- package/dist/{index-BJooawLh.mjs → index-BbV7Gddl.mjs} +522 -521
- package/dist/{index-BnSjKwjr.mjs → index-jbUNUaS-.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +22 -23
package/README.md
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# pnpm publish --no-git-checks
|
|
2
|
-
npm config set registry https://registry.npmjs.org/
|
|
3
|
-
|
|
4
|
-
# pnpm install
|
|
5
|
-
npm config set registry https://registry.npmmirror.com/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
-
|
|
10
|
-
## Recommended IDE Setup
|
|
11
|
-
|
|
12
|
-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
-
|
|
14
|
-
## Type Support for `.vue` Imports in TS
|
|
15
|
-
|
|
16
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
-
|
|
18
|
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
-
|
|
20
|
-
1. Disable the built-in TypeScript Extension
|
|
21
|
-
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
-
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
-
|
|
25
|
-
## Customize configuration
|
|
26
|
-
|
|
27
|
-
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
-
|
|
29
|
-
## Project Setup
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
pnpm install
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Compile and Hot-Reload for Development
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
pnpm dev
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Type-Check, Compile and Minify for Production
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
pnpm build
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
pnpm lint
|
|
51
|
-
```
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Tn = Object.defineProperty;
|
|
2
2
|
var Dn = (n, i, g) => i in n ? Tn(n, i, { enumerable: !0, configurable: !0, writable: !0, value: g }) : n[i] = g;
|
|
3
3
|
var q = (n, i, g) => Dn(n, typeof i != "symbol" ? i + "" : i, g);
|
|
4
|
-
import { ref as D, reactive as E, defineComponent as En, mergeModels as W, useModel as Nn, resolveComponent as k,
|
|
4
|
+
import { ref as D, reactive as E, defineComponent as En, mergeModels as W, useModel as Nn, resolveComponent as k, openBlock as S, createBlock as A, withCtx as j, createElementVNode as Mn, createVNode as c, createTextVNode as Y, toDisplayString as H, unref as b, createElementBlock as Q, Fragment as J, renderList as X } from "vue";
|
|
5
5
|
import { ElMessage as nn } from "element-plus";
|
|
6
6
|
import { EnumDict as gn } from "jmash-core";
|
|
7
|
-
import { d as I, e as Rn } from "./index-
|
|
7
|
+
import { d as I, e as Rn } from "./index-BbV7Gddl.mjs";
|
|
8
8
|
import { useI18n as Zn } from "vue-i18n";
|
|
9
9
|
class p {
|
|
10
10
|
}
|
|
@@ -21600,7 +21600,7 @@ const $ = {
|
|
|
21600
21600
|
length: 2,
|
|
21601
21601
|
priority: f.Normal,
|
|
21602
21602
|
dict: Symbol("dict2")
|
|
21603
|
-
})),
|
|
21603
|
+
})), tn = {
|
|
21604
21604
|
为什么: "wèi shén me",
|
|
21605
21605
|
实际上: "shí jì shang",
|
|
21606
21606
|
检察长: "jiǎn chá zhǎng",
|
|
@@ -21926,14 +21926,14 @@ const $ = {
|
|
|
21926
21926
|
干哪行: "gàn nǎ háng",
|
|
21927
21927
|
干一行: "gàn yì háng",
|
|
21928
21928
|
曲别针: "qū bié zhēn"
|
|
21929
|
-
}, gi = Object.keys(
|
|
21929
|
+
}, gi = Object.keys(tn).map((n) => ({
|
|
21930
21930
|
zh: n,
|
|
21931
|
-
pinyin:
|
|
21931
|
+
pinyin: tn[n],
|
|
21932
21932
|
probability: 2e-8,
|
|
21933
21933
|
length: 3,
|
|
21934
21934
|
priority: f.Normal,
|
|
21935
21935
|
dict: Symbol("dict3")
|
|
21936
|
-
})),
|
|
21936
|
+
})), cn = {
|
|
21937
21937
|
成吉思汗: "chéng jí sī hán",
|
|
21938
21938
|
四通八达: "sì tōng bā dá",
|
|
21939
21939
|
一模一样: "yì mú yí yàng",
|
|
@@ -23529,9 +23529,9 @@ const $ = {
|
|
|
23529
23529
|
曲意逢迎: "qū yì féng yíng",
|
|
23530
23530
|
一行不行: "yì háng bù xíng",
|
|
23531
23531
|
行行不行: "háng háng bù xíng"
|
|
23532
|
-
}, hi = Object.keys(
|
|
23532
|
+
}, hi = Object.keys(cn).map((n) => ({
|
|
23533
23533
|
zh: n,
|
|
23534
|
-
pinyin:
|
|
23534
|
+
pinyin: cn[n],
|
|
23535
23535
|
probability: 2e-8,
|
|
23536
23536
|
length: 4,
|
|
23537
23537
|
priority: f.Normal,
|
|
@@ -23622,7 +23622,7 @@ function zi(n, i) {
|
|
|
23622
23622
|
function yi(n, i) {
|
|
23623
23623
|
return !(i.index + i.length <= n.index || i.priority > n.priority || i.priority === n.priority && i.length > n.length);
|
|
23624
23624
|
}
|
|
23625
|
-
function
|
|
23625
|
+
function ti(n) {
|
|
23626
23626
|
const i = [];
|
|
23627
23627
|
for (let g = n.length - 1; g >= 0; ) {
|
|
23628
23628
|
const { index: u } = n[g];
|
|
@@ -23642,7 +23642,7 @@ class xn {
|
|
|
23642
23642
|
this.children = /* @__PURE__ */ new Map(), this.fail = null, this.patterns = [], this.parent = i, this.prefix = g, this.key = u;
|
|
23643
23643
|
}
|
|
23644
23644
|
}
|
|
23645
|
-
class
|
|
23645
|
+
class ci {
|
|
23646
23646
|
constructor() {
|
|
23647
23647
|
this.dictMap = /* @__PURE__ */ new Map(), this.queues = [], this.root = new xn(null);
|
|
23648
23648
|
}
|
|
@@ -23729,7 +23729,7 @@ class ti {
|
|
|
23729
23729
|
}
|
|
23730
23730
|
search(i, g, u = 2) {
|
|
23731
23731
|
const h = this.match(i, g);
|
|
23732
|
-
return u === 1 ?
|
|
23732
|
+
return u === 1 ? ti(h) : u === 3 ? zi(h, a(i)) : oi(h, a(i));
|
|
23733
23733
|
}
|
|
23734
23734
|
}
|
|
23735
23735
|
const di = [
|
|
@@ -23739,7 +23739,7 @@ const di = [
|
|
|
23739
23739
|
...ii,
|
|
23740
23740
|
...Wn,
|
|
23741
23741
|
...ni
|
|
23742
|
-
], qn = new
|
|
23742
|
+
], qn = new ci();
|
|
23743
23743
|
qn.build(di);
|
|
23744
23744
|
const ei = new fn(), ji = () => ei, v = (n) => {
|
|
23745
23745
|
const i = _.get(n);
|
|
@@ -24037,21 +24037,21 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24037
24037
|
}
|
|
24038
24038
|
]
|
|
24039
24039
|
}), y = n;
|
|
24040
|
-
s.parentId = y.parentId, s.parentId && I.findById({ regionId: s.parentId }).then(({ data:
|
|
24041
|
-
r(
|
|
24040
|
+
s.parentId = y.parentId, s.parentId && I.findById({ regionId: s.parentId }).then(({ data: t }) => {
|
|
24041
|
+
r(t.regionCode);
|
|
24042
24042
|
});
|
|
24043
|
-
const z = D([]), r = (
|
|
24044
|
-
I.findByCode({ regionCode:
|
|
24043
|
+
const z = D([]), r = (t) => {
|
|
24044
|
+
I.findByCode({ regionCode: t }).then(({ data: e }) => {
|
|
24045
24045
|
const x = Rn(e);
|
|
24046
24046
|
z.value = x.regionIds;
|
|
24047
24047
|
});
|
|
24048
24048
|
}, m = Object.keys(y.entityKey), P = D(m.length >= 1), L = E({});
|
|
24049
|
-
P.value && I.findById(y.entityKey).then(({ data:
|
|
24050
|
-
Object.assign(s,
|
|
24049
|
+
P.value && I.findById(y.entityKey).then(({ data: t }) => {
|
|
24050
|
+
Object.assign(s, t), Object.assign(L, t), s.parentId === p.DEFAULT_ID && (s.parentId = ""), r(s.regionCode);
|
|
24051
24051
|
});
|
|
24052
24052
|
const kn = () => {
|
|
24053
|
-
var
|
|
24054
|
-
(
|
|
24053
|
+
var t;
|
|
24054
|
+
(t = u.value) == null || t.validate((e) => {
|
|
24055
24055
|
if (e) {
|
|
24056
24056
|
if (P.value) {
|
|
24057
24057
|
I.update(s).then((x) => {
|
|
@@ -24081,9 +24081,9 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24081
24081
|
}).toUpperCase();
|
|
24082
24082
|
}, B = () => {
|
|
24083
24083
|
h.value && (h.value = !1);
|
|
24084
|
-
}, _n = (
|
|
24084
|
+
}, _n = (t, e) => {
|
|
24085
24085
|
I.findList({
|
|
24086
|
-
parentId:
|
|
24086
|
+
parentId: t.data.regionId,
|
|
24087
24087
|
excludeId: y.entityKey.regionId
|
|
24088
24088
|
}).then(({ data: x }) => {
|
|
24089
24089
|
e(
|
|
@@ -24091,7 +24091,7 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24091
24091
|
);
|
|
24092
24092
|
});
|
|
24093
24093
|
};
|
|
24094
|
-
return (
|
|
24094
|
+
return (t, e) => {
|
|
24095
24095
|
const x = k("el-input"), w = k("el-form-item"), C = k("el-col"), F = k("el-radio"), G = k("el-radio-group"), Cn = k("el-tree-select"), In = k("el-row"), Sn = k("el-form"), K = k("el-button"), vn = k("el-dialog");
|
|
24096
24096
|
return S(), A(vn, {
|
|
24097
24097
|
modelValue: h.value,
|
|
@@ -24100,25 +24100,25 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24100
24100
|
}, {
|
|
24101
24101
|
footer: j(() => [
|
|
24102
24102
|
Mn("div", Ci, [
|
|
24103
|
-
|
|
24103
|
+
c(K, { onClick: B }, {
|
|
24104
24104
|
default: j(() => [
|
|
24105
|
-
|
|
24105
|
+
Y(H(t.$t("common.cancel")), 1)
|
|
24106
24106
|
]),
|
|
24107
24107
|
_: 1
|
|
24108
24108
|
}),
|
|
24109
|
-
|
|
24109
|
+
c(K, {
|
|
24110
24110
|
type: "primary",
|
|
24111
24111
|
onClick: kn
|
|
24112
24112
|
}, {
|
|
24113
24113
|
default: j(() => [
|
|
24114
|
-
|
|
24114
|
+
Y(H(t.$t("common.confirm")), 1)
|
|
24115
24115
|
]),
|
|
24116
24116
|
_: 1
|
|
24117
24117
|
})
|
|
24118
24118
|
])
|
|
24119
24119
|
]),
|
|
24120
24120
|
default: j(() => [
|
|
24121
|
-
|
|
24121
|
+
c(Sn, {
|
|
24122
24122
|
ref_key: "dictRegionFormRef",
|
|
24123
24123
|
ref: u,
|
|
24124
24124
|
model: b(s),
|
|
@@ -24126,19 +24126,19 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24126
24126
|
rules: l
|
|
24127
24127
|
}, {
|
|
24128
24128
|
default: j(() => [
|
|
24129
|
-
|
|
24129
|
+
c(In, null, {
|
|
24130
24130
|
default: j(() => [
|
|
24131
|
-
|
|
24131
|
+
c(C, { span: 24 }, {
|
|
24132
24132
|
default: j(() => [
|
|
24133
|
-
|
|
24134
|
-
label:
|
|
24133
|
+
c(w, {
|
|
24134
|
+
label: t.$t("dictRegion.regionCode"),
|
|
24135
24135
|
prop: "regionCode"
|
|
24136
24136
|
}, {
|
|
24137
24137
|
default: j(() => [
|
|
24138
|
-
|
|
24138
|
+
c(x, {
|
|
24139
24139
|
modelValue: b(s).regionCode,
|
|
24140
24140
|
"onUpdate:modelValue": e[0] || (e[0] = (d) => b(s).regionCode = d),
|
|
24141
|
-
placeholder:
|
|
24141
|
+
placeholder: t.$t("dictRegion.regionCodePlaceholder"),
|
|
24142
24142
|
maxlength: "15",
|
|
24143
24143
|
"show-word-limit": "",
|
|
24144
24144
|
clearable: ""
|
|
@@ -24149,17 +24149,17 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24149
24149
|
]),
|
|
24150
24150
|
_: 1
|
|
24151
24151
|
}),
|
|
24152
|
-
|
|
24152
|
+
c(C, { span: 24 }, {
|
|
24153
24153
|
default: j(() => [
|
|
24154
|
-
|
|
24155
|
-
label:
|
|
24154
|
+
c(w, {
|
|
24155
|
+
label: t.$t("dictRegion.regionName"),
|
|
24156
24156
|
prop: "regionName"
|
|
24157
24157
|
}, {
|
|
24158
24158
|
default: j(() => [
|
|
24159
|
-
|
|
24159
|
+
c(x, {
|
|
24160
24160
|
modelValue: b(s).regionName,
|
|
24161
24161
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => b(s).regionName = d),
|
|
24162
|
-
placeholder:
|
|
24162
|
+
placeholder: t.$t("dictRegion.regionNamePlaceholder"),
|
|
24163
24163
|
maxlength: "60",
|
|
24164
24164
|
"show-word-limit": "",
|
|
24165
24165
|
onBlur: Pn,
|
|
@@ -24171,17 +24171,17 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24171
24171
|
]),
|
|
24172
24172
|
_: 1
|
|
24173
24173
|
}),
|
|
24174
|
-
|
|
24174
|
+
c(C, { span: 24 }, {
|
|
24175
24175
|
default: j(() => [
|
|
24176
|
-
|
|
24177
|
-
label:
|
|
24176
|
+
c(w, {
|
|
24177
|
+
label: t.$t("dictRegion.regionPinyin"),
|
|
24178
24178
|
prop: "regionPinyin"
|
|
24179
24179
|
}, {
|
|
24180
24180
|
default: j(() => [
|
|
24181
|
-
|
|
24181
|
+
c(x, {
|
|
24182
24182
|
modelValue: b(s).regionPinyin,
|
|
24183
24183
|
"onUpdate:modelValue": e[2] || (e[2] = (d) => b(s).regionPinyin = d),
|
|
24184
|
-
placeholder:
|
|
24184
|
+
placeholder: t.$t("dictRegion.regionPinyinPlaceholder"),
|
|
24185
24185
|
maxlength: "60",
|
|
24186
24186
|
"show-word-limit": "",
|
|
24187
24187
|
clearable: ""
|
|
@@ -24192,19 +24192,19 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24192
24192
|
]),
|
|
24193
24193
|
_: 1
|
|
24194
24194
|
}),
|
|
24195
|
-
|
|
24195
|
+
c(C, { span: 24 }, {
|
|
24196
24196
|
default: j(() => [
|
|
24197
|
-
|
|
24198
|
-
label:
|
|
24197
|
+
c(w, {
|
|
24198
|
+
label: t.$t("dictRegion.regionType"),
|
|
24199
24199
|
prop: "regionType"
|
|
24200
24200
|
}, {
|
|
24201
24201
|
default: j(() => [
|
|
24202
|
-
|
|
24202
|
+
c(G, {
|
|
24203
24203
|
modelValue: b(s).regionType,
|
|
24204
24204
|
"onUpdate:modelValue": e[3] || (e[3] = (d) => b(s).regionType = d)
|
|
24205
24205
|
}, {
|
|
24206
24206
|
default: j(() => [
|
|
24207
|
-
(S(!0),
|
|
24207
|
+
(S(!0), Q(J, null, X(b(T).regionTypeEnum.values, (d) => (S(), A(F, {
|
|
24208
24208
|
key: d.key,
|
|
24209
24209
|
value: d.key,
|
|
24210
24210
|
label: d.value
|
|
@@ -24218,19 +24218,19 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24218
24218
|
]),
|
|
24219
24219
|
_: 1
|
|
24220
24220
|
}),
|
|
24221
|
-
|
|
24221
|
+
c(C, { span: 24 }, {
|
|
24222
24222
|
default: j(() => [
|
|
24223
|
-
|
|
24224
|
-
label:
|
|
24223
|
+
c(w, {
|
|
24224
|
+
label: t.$t("dictRegion.regionCategory"),
|
|
24225
24225
|
prop: "regionCategory"
|
|
24226
24226
|
}, {
|
|
24227
24227
|
default: j(() => [
|
|
24228
|
-
|
|
24228
|
+
c(G, {
|
|
24229
24229
|
modelValue: b(s).regionCategory,
|
|
24230
24230
|
"onUpdate:modelValue": e[4] || (e[4] = (d) => b(s).regionCategory = d)
|
|
24231
24231
|
}, {
|
|
24232
24232
|
default: j(() => [
|
|
24233
|
-
(S(!0),
|
|
24233
|
+
(S(!0), Q(J, null, X(b(T).regionCategoryEnum.values, (d) => (S(), A(F, {
|
|
24234
24234
|
key: d.key,
|
|
24235
24235
|
value: d.key,
|
|
24236
24236
|
label: d.value
|
|
@@ -24244,19 +24244,19 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24244
24244
|
]),
|
|
24245
24245
|
_: 1
|
|
24246
24246
|
}),
|
|
24247
|
-
|
|
24247
|
+
c(C, { span: 24 }, {
|
|
24248
24248
|
default: j(() => [
|
|
24249
|
-
|
|
24250
|
-
label:
|
|
24249
|
+
c(w, {
|
|
24250
|
+
label: t.$t("dictRegion.parentId"),
|
|
24251
24251
|
prop: "parentId"
|
|
24252
24252
|
}, {
|
|
24253
24253
|
default: j(() => [
|
|
24254
|
-
|
|
24254
|
+
c(Cn, {
|
|
24255
24255
|
"node-key": "regionId",
|
|
24256
24256
|
lazy: "",
|
|
24257
24257
|
modelValue: b(s).parentId,
|
|
24258
24258
|
"onUpdate:modelValue": e[5] || (e[5] = (d) => b(s).parentId = d),
|
|
24259
|
-
placeholder:
|
|
24259
|
+
placeholder: t.$t("dictRegion.parentIdPlaceholder"),
|
|
24260
24260
|
load: _n,
|
|
24261
24261
|
"default-expanded-keys": z.value,
|
|
24262
24262
|
"check-strictly": "",
|
|
@@ -24274,17 +24274,17 @@ const Ci = { class: "dialog-footer" }, Ni = /* @__PURE__ */ En({
|
|
|
24274
24274
|
]),
|
|
24275
24275
|
_: 1
|
|
24276
24276
|
}),
|
|
24277
|
-
|
|
24277
|
+
c(C, { span: 24 }, {
|
|
24278
24278
|
default: j(() => [
|
|
24279
|
-
|
|
24280
|
-
label:
|
|
24279
|
+
c(w, {
|
|
24280
|
+
label: t.$t("dictRegion.description"),
|
|
24281
24281
|
prop: "description"
|
|
24282
24282
|
}, {
|
|
24283
24283
|
default: j(() => [
|
|
24284
|
-
|
|
24284
|
+
c(x, {
|
|
24285
24285
|
modelValue: b(s).description,
|
|
24286
24286
|
"onUpdate:modelValue": e[6] || (e[6] = (d) => b(s).description = d),
|
|
24287
|
-
placeholder:
|
|
24287
|
+
placeholder: t.$t("dictRegion.descriptionPlaceholder"),
|
|
24288
24288
|
maxlength: "120",
|
|
24289
24289
|
"show-word-limit": "",
|
|
24290
24290
|
clearable: "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as de, ref as _, resolveComponent as a, resolveDirective as se,
|
|
1
|
+
import { defineComponent as de, ref as _, resolveComponent as a, resolveDirective as se, openBlock as m, createElementBlock as R, createElementVNode as T, createVNode as l, withCtx as n, withKeys as me, unref as i, createTextVNode as f, toDisplayString as u, withDirectives as C, createBlock as h, isRef as ue, createCommentVNode as U } from "vue";
|
|
2
2
|
import { useTableHooks as pe } from "jmash-core";
|
|
3
|
-
import { d as V } from "./index-
|
|
4
|
-
import { D as j, _ as ce, C as ge } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { d as V } from "./index-BbV7Gddl.mjs";
|
|
4
|
+
import { D as j, _ as ce, C as ge } from "./edit.vue_vue_type_script_setup_true_lang-BKmItrIK.mjs";
|
|
5
5
|
import { useI18n as fe } from "vue-i18n";
|
|
6
6
|
import { ElMessageBox as ve, ElMessage as ye } from "element-plus";
|
|
7
7
|
const be = { class: "app-container" }, _e = { class: "search-container" }, Ce = ["onClick"], he = ["onClick"], ke = ["onClick"], De = /* @__PURE__ */ de({
|
|
@@ -225,7 +225,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
225
225
|
default: n(() => [
|
|
226
226
|
l(v, { span: 17 }, {
|
|
227
227
|
default: n(() => [
|
|
228
|
-
|
|
228
|
+
C((m(), h(w, {
|
|
229
229
|
type: "primary",
|
|
230
230
|
onClick: o[6] || (o[6] = (t) => L())
|
|
231
231
|
}, {
|
|
@@ -244,7 +244,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
244
244
|
class: "container-float"
|
|
245
245
|
}, {
|
|
246
246
|
default: n(() => [
|
|
247
|
-
|
|
247
|
+
C((m(), h(w, {
|
|
248
248
|
plain: "",
|
|
249
249
|
type: "primary",
|
|
250
250
|
onClick: o[7] || (o[7] = (t) => k.value = !0)
|
|
@@ -256,7 +256,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
256
256
|
})), [
|
|
257
257
|
[b, ["region:dict_region:import"]]
|
|
258
258
|
]),
|
|
259
|
-
|
|
259
|
+
C((m(), h(w, {
|
|
260
260
|
plain: "",
|
|
261
261
|
type: "primary",
|
|
262
262
|
onClick: o[8] || (o[8] = (t) => i(r).handleExport(i(d)("dictRegion.name")))
|
|
@@ -281,7 +281,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
281
281
|
})
|
|
282
282
|
]),
|
|
283
283
|
footer: n(() => [
|
|
284
|
-
i($) > 0 ? (m(),
|
|
284
|
+
i($) > 0 ? (m(), h(ae, {
|
|
285
285
|
key: 0,
|
|
286
286
|
total: i($),
|
|
287
287
|
"onUpdate:total": o[10] || (o[10] = (t) => ue($) ? $.value = t : null),
|
|
@@ -364,7 +364,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
364
364
|
}, 1024)
|
|
365
365
|
]),
|
|
366
366
|
operation: n((t) => [
|
|
367
|
-
|
|
367
|
+
C((m(), R("span", {
|
|
368
368
|
class: "el-button-color",
|
|
369
369
|
onClick: (y) => L(t.data.row.regionId)
|
|
370
370
|
}, [
|
|
@@ -372,7 +372,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
372
372
|
], 8, Ce)), [
|
|
373
373
|
[b, ["region:dict_region:add"]]
|
|
374
374
|
]),
|
|
375
|
-
|
|
375
|
+
C((m(), R("span", {
|
|
376
376
|
class: "el-button-color dropdown-left",
|
|
377
377
|
onClick: (y) => K(t.data.row)
|
|
378
378
|
}, [
|
|
@@ -380,7 +380,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
380
380
|
], 8, he)), [
|
|
381
381
|
[b, ["region:dict_region:update"]]
|
|
382
382
|
]),
|
|
383
|
-
|
|
383
|
+
C((m(), R("span", {
|
|
384
384
|
class: "el-button-color dropdown-left",
|
|
385
385
|
onClick: (y) => O(t.data.row)
|
|
386
386
|
}, [
|
|
@@ -394,7 +394,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
394
394
|
]),
|
|
395
395
|
_: 1
|
|
396
396
|
}),
|
|
397
|
-
p.value.visible ? (m(),
|
|
397
|
+
p.value.visible ? (m(), h(ce, {
|
|
398
398
|
key: 0,
|
|
399
399
|
modelValue: p.value.visible,
|
|
400
400
|
"onUpdate:modelValue": o[14] || (o[14] = (t) => p.value.visible = t),
|
|
@@ -405,7 +405,7 @@ const be = { class: "app-container" }, _e = { class: "search-container" }, Ce =
|
|
|
405
405
|
onReload: X,
|
|
406
406
|
width: "900px"
|
|
407
407
|
}, null, 8, ["modelValue", "title", "entity-key", "parent-id"])) : U("", !0),
|
|
408
|
-
k.value ? (m(),
|
|
408
|
+
k.value ? (m(), h(re, {
|
|
409
409
|
key: 1,
|
|
410
410
|
"upload-visible": k.value,
|
|
411
411
|
"template-title": e.$t("sysUser.templateDownload"),
|