@ditari/bsui 1.1.28 → 1.1.30
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/CHANGELOG.md +12 -0
- package/dist/cjs/table/Table.cjs +9 -9
- package/dist/cjs/table/Table.cjs.map +1 -1
- package/dist/esm/table/Table.mjs +10 -10
- package/dist/esm/table/Table.mjs.map +1 -1
- package/example/node_modules/.vite/deps/@vueuse_core.js +23 -19
- package/example/node_modules/.vite/deps/@vueuse_core.js.map +2 -2
- package/example/node_modules/.vite/deps/_metadata.json +27 -24
- package/example/node_modules/.vite/deps/{chunk-SHNKM4NZ.js → chunk-D36HXFYL.js} +1 -3
- package/example/node_modules/.vite/deps/chunk-D36HXFYL.js.map +7 -0
- package/example/node_modules/.vite/deps/chunk-TDI2FIXO.js +19 -0
- package/example/node_modules/.vite/deps/{chunk-SHNKM4NZ.js.map → chunk-TDI2FIXO.js.map} +2 -2
- package/example/node_modules/.vite/deps/pinia.js +4 -4
- package/example/node_modules/.vite/deps/vue-request.js +1 -1
- package/example/src/App.vue +0 -1
- package/example/src/api/user.ts +13 -0
- package/example/src/components/AppMain.vue +4 -4
- package/example/src/views/Login.vue +43 -3
- package/example/src/views/table/List.vue +28 -5
- package/example/src/views/table/hooks.ts +247 -49
- package/example/utils/http.ts +107 -0
- package/package.json +1 -1
- package/src/table/Table.tsx +7 -4
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hash": "
|
|
3
|
-
"browserHash": "
|
|
2
|
+
"hash": "ed01a902",
|
|
3
|
+
"browserHash": "6c59cd66",
|
|
4
4
|
"optimized": {
|
|
5
5
|
"@ant-design/icons-vue": {
|
|
6
6
|
"src": "../../../../../../node_modules/.pnpm/@ant-design+icons-vue@6.1.0_vue@3.3.4/node_modules/@ant-design/icons-vue/es/index.js",
|
|
7
7
|
"file": "@ant-design_icons-vue.js",
|
|
8
|
-
"fileHash": "
|
|
8
|
+
"fileHash": "9584c5c4",
|
|
9
9
|
"needsInterop": false
|
|
10
10
|
},
|
|
11
11
|
"@vueuse/core": {
|
|
12
12
|
"src": "../../../../../../node_modules/.pnpm/@vueuse+core@9.13.0_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/@vueuse/core/index.mjs",
|
|
13
13
|
"file": "@vueuse_core.js",
|
|
14
|
-
"fileHash": "
|
|
14
|
+
"fileHash": "1ff61211",
|
|
15
15
|
"needsInterop": false
|
|
16
16
|
},
|
|
17
17
|
"ant-design-vue": {
|
|
18
18
|
"src": "../../../../../../node_modules/.pnpm/ant-design-vue@3.2.20_vue@3.3.4/node_modules/ant-design-vue/es/index.js",
|
|
19
19
|
"file": "ant-design-vue.js",
|
|
20
|
-
"fileHash": "
|
|
20
|
+
"fileHash": "e9e273ea",
|
|
21
|
+
"needsInterop": false
|
|
22
|
+
},
|
|
23
|
+
"axios": {
|
|
24
|
+
"src": "../../../../../../node_modules/.pnpm/axios@1.4.0/node_modules/axios/index.js",
|
|
25
|
+
"file": "axios.js",
|
|
26
|
+
"fileHash": "703a70b0",
|
|
21
27
|
"needsInterop": false
|
|
22
28
|
},
|
|
23
29
|
"pinia": {
|
|
24
30
|
"src": "../../../../../../node_modules/.pnpm/pinia@2.1.4_@vue+composition-api@1.7.1_typescript@4.9.5_vue@3.3.4/node_modules/pinia/dist/pinia.mjs",
|
|
25
31
|
"file": "pinia.js",
|
|
26
|
-
"fileHash": "
|
|
32
|
+
"fileHash": "90342e48",
|
|
27
33
|
"needsInterop": false
|
|
28
34
|
},
|
|
29
35
|
"pinia-plugin-persistedstate": {
|
|
30
36
|
"src": "../../../../../../node_modules/.pnpm/pinia-plugin-persistedstate@3.1.0_pinia@2.1.4/node_modules/pinia-plugin-persistedstate/dist/index.mjs",
|
|
31
37
|
"file": "pinia-plugin-persistedstate.js",
|
|
32
|
-
"fileHash": "
|
|
38
|
+
"fileHash": "4c0ed159",
|
|
33
39
|
"needsInterop": false
|
|
34
40
|
},
|
|
35
41
|
"vue": {
|
|
36
42
|
"src": "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
|
37
43
|
"file": "vue.js",
|
|
38
|
-
"fileHash": "
|
|
39
|
-
"needsInterop": false
|
|
40
|
-
},
|
|
41
|
-
"vue-router": {
|
|
42
|
-
"src": "../../../../../../node_modules/.pnpm/vue-router@4.2.4_vue@3.3.4/node_modules/vue-router/dist/vue-router.mjs",
|
|
43
|
-
"file": "vue-router.js",
|
|
44
|
-
"fileHash": "8dd191e8",
|
|
45
|
-
"needsInterop": false
|
|
46
|
-
},
|
|
47
|
-
"axios": {
|
|
48
|
-
"src": "../../../../../../node_modules/.pnpm/axios@1.4.0/node_modules/axios/index.js",
|
|
49
|
-
"file": "axios.js",
|
|
50
|
-
"fileHash": "299d8ad7",
|
|
44
|
+
"fileHash": "a4178637",
|
|
51
45
|
"needsInterop": false
|
|
52
46
|
},
|
|
53
47
|
"vue-request": {
|
|
54
48
|
"src": "../../../../../../node_modules/.pnpm/vue-request@2.0.0-rc.4_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/vue-request/dist/index.es.js",
|
|
55
49
|
"file": "vue-request.js",
|
|
56
|
-
"fileHash": "
|
|
50
|
+
"fileHash": "b90ec3ba",
|
|
51
|
+
"needsInterop": false
|
|
52
|
+
},
|
|
53
|
+
"vue-router": {
|
|
54
|
+
"src": "../../../../../../node_modules/.pnpm/vue-router@4.2.4_vue@3.3.4/node_modules/vue-router/dist/vue-router.mjs",
|
|
55
|
+
"file": "vue-router.js",
|
|
56
|
+
"fileHash": "1c61adf5",
|
|
57
57
|
"needsInterop": false
|
|
58
58
|
}
|
|
59
59
|
},
|
|
@@ -61,12 +61,15 @@
|
|
|
61
61
|
"chunk-EKNPBJBG": {
|
|
62
62
|
"file": "chunk-EKNPBJBG.js"
|
|
63
63
|
},
|
|
64
|
+
"chunk-D36HXFYL": {
|
|
65
|
+
"file": "chunk-D36HXFYL.js"
|
|
66
|
+
},
|
|
67
|
+
"chunk-TDI2FIXO": {
|
|
68
|
+
"file": "chunk-TDI2FIXO.js"
|
|
69
|
+
},
|
|
64
70
|
"chunk-EBDM3ESC": {
|
|
65
71
|
"file": "chunk-EBDM3ESC.js"
|
|
66
72
|
},
|
|
67
|
-
"chunk-SHNKM4NZ": {
|
|
68
|
-
"file": "chunk-SHNKM4NZ.js"
|
|
69
|
-
},
|
|
70
73
|
"chunk-GK7Q6YQN": {
|
|
71
74
|
"file": "chunk-GK7Q6YQN.js"
|
|
72
75
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// ../../../node_modules/.pnpm/vue-demi@0.14.5_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/vue-demi/lib/index.mjs
|
|
2
2
|
var isVue2 = false;
|
|
3
|
-
var isVue3 = true;
|
|
4
3
|
function set(target, key, val) {
|
|
5
4
|
if (Array.isArray(target)) {
|
|
6
5
|
target.length = Math.max(target.length, key);
|
|
@@ -20,8 +19,7 @@ function del(target, key) {
|
|
|
20
19
|
|
|
21
20
|
export {
|
|
22
21
|
isVue2,
|
|
23
|
-
isVue3,
|
|
24
22
|
set,
|
|
25
23
|
del
|
|
26
24
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-D36HXFYL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../node_modules/.pnpm/vue-demi@0.14.5_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/vue-demi/lib/index.mjs"],
|
|
4
|
+
"sourcesContent": ["import * as Vue from 'vue'\n\nvar isVue2 = false\nvar isVue3 = true\nvar Vue2 = undefined\n\nfunction install() {}\n\nexport function set(target, key, val) {\n if (Array.isArray(target)) {\n target.length = Math.max(target.length, key)\n target.splice(key, 1, val)\n return val\n }\n target[key] = val\n return val\n}\n\nexport function del(target, key) {\n if (Array.isArray(target)) {\n target.splice(key, 1)\n return\n }\n delete target[key]\n}\n\nexport * from 'vue'\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n}\n"],
|
|
5
|
+
"mappings": ";AAEA,IAAI,SAAS;AAMN,SAAS,IAAI,QAAQ,KAAK,KAAK;AACpC,MAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,WAAO,SAAS,KAAK,IAAI,OAAO,QAAQ,GAAG;AAC3C,WAAO,OAAO,KAAK,GAAG,GAAG;AACzB,WAAO;AAAA,EACT;AACA,SAAO,GAAG,IAAI;AACd,SAAO;AACT;AAEO,SAAS,IAAI,QAAQ,KAAK;AAC/B,MAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,WAAO,OAAO,KAAK,CAAC;AACpB;AAAA,EACF;AACA,SAAO,OAAO,GAAG;AACnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/vue-demi@0.14.6_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/vue-demi/lib/index.mjs
|
|
2
|
+
var isVue2 = false;
|
|
3
|
+
var isVue3 = true;
|
|
4
|
+
function set(target, key, val) {
|
|
5
|
+
if (Array.isArray(target)) {
|
|
6
|
+
target.length = Math.max(target.length, key);
|
|
7
|
+
target.splice(key, 1, val);
|
|
8
|
+
return val;
|
|
9
|
+
}
|
|
10
|
+
target[key] = val;
|
|
11
|
+
return val;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
isVue2,
|
|
16
|
+
isVue3,
|
|
17
|
+
set
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-TDI2FIXO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../node_modules/.pnpm/vue-demi@0.14.
|
|
3
|
+
"sources": ["../../../../../../node_modules/.pnpm/vue-demi@0.14.6_@vue+composition-api@1.7.1_vue@3.3.4/node_modules/vue-demi/lib/index.mjs"],
|
|
4
4
|
"sourcesContent": ["import * as Vue from 'vue'\n\nvar isVue2 = false\nvar isVue3 = true\nvar Vue2 = undefined\n\nfunction install() {}\n\nexport function set(target, key, val) {\n if (Array.isArray(target)) {\n target.length = Math.max(target.length, key)\n target.splice(key, 1, val)\n return val\n }\n target[key] = val\n return val\n}\n\nexport function del(target, key) {\n if (Array.isArray(target)) {\n target.splice(key, 1)\n return\n }\n delete target[key]\n}\n\nexport * from 'vue'\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,IAAI,SAAS;AACb,IAAI,SAAS;AAKN,SAAS,IAAI,QAAQ,KAAK,KAAK;AACpC,MAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,WAAO,SAAS,KAAK,IAAI,OAAO,QAAQ,GAAG;AAC3C,WAAO,OAAO,KAAK,GAAG,GAAG;AACzB,WAAO;AAAA,EACT;AACA,SAAO,GAAG,IAAI;AACd,SAAO;AACT;
|
|
5
|
+
"mappings": ";AAEA,IAAI,SAAS;AACb,IAAI,SAAS;AAKN,SAAS,IAAI,QAAQ,KAAK,KAAK;AACpC,MAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,WAAO,SAAS,KAAK,IAAI,OAAO,QAAQ,GAAG;AAC3C,WAAO,OAAO,KAAK,GAAG,GAAG;AACzB,WAAO;AAAA,EACT;AACA,SAAO,GAAG,IAAI;AACd,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
setupDevtoolsPlugin
|
|
3
|
-
} from "./chunk-EBDM3ESC.js";
|
|
4
1
|
import {
|
|
5
2
|
del,
|
|
6
3
|
isVue2,
|
|
7
4
|
set
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D36HXFYL.js";
|
|
6
|
+
import {
|
|
7
|
+
setupDevtoolsPlugin
|
|
8
|
+
} from "./chunk-EBDM3ESC.js";
|
|
9
9
|
import {
|
|
10
10
|
computed,
|
|
11
11
|
effectScope,
|
package/example/src/App.vue
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import http from "../../utils/http";
|
|
2
|
+
|
|
3
|
+
export const getImgCode = () => {
|
|
4
|
+
return http.get("getVerifyCode");
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const doLogin = (params: any) => {
|
|
8
|
+
// const formData = new FormData();
|
|
9
|
+
// formData.append("username", params.username);
|
|
10
|
+
// formData.append("password", params.password);
|
|
11
|
+
// formData.append("verifyCode", params.verifyCode);
|
|
12
|
+
return http.post("login", params);
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { UserOutlined } from "@ant-design/icons-vue";
|
|
3
|
-
import {
|
|
3
|
+
import { FuckMain as FuckMain } from "../../../src/components";
|
|
4
4
|
import { useMenuStore } from "../../../../store";
|
|
5
5
|
|
|
6
6
|
const MenuList = [
|
|
@@ -39,7 +39,7 @@ const MenuList = [
|
|
|
39
39
|
{
|
|
40
40
|
title: "Form",
|
|
41
41
|
url: "/form",
|
|
42
|
-
icon: "icon-a-icon-documentsattached"
|
|
42
|
+
icon: "icon-a-icon-documentsattached"
|
|
43
43
|
}
|
|
44
44
|
];
|
|
45
45
|
const store = useMenuStore();
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
};
|
|
56
56
|
</script>
|
|
57
57
|
<template>
|
|
58
|
-
<
|
|
58
|
+
<FuckMain>
|
|
59
59
|
<template #logo>
|
|
60
60
|
<div class="app-logo">dsfdsf</div>
|
|
61
61
|
</template>
|
|
@@ -85,6 +85,6 @@ export default {
|
|
|
85
85
|
</div>
|
|
86
86
|
</template>
|
|
87
87
|
<template #micro> </template>
|
|
88
|
-
</
|
|
88
|
+
</FuckMain>
|
|
89
89
|
</template>
|
|
90
90
|
<style scoped></style>
|
|
@@ -2,19 +2,59 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 登录
|
|
4
4
|
*/
|
|
5
|
+
import { ref } from "vue";
|
|
6
|
+
import { getImgCode, doLogin } from "../api/user";
|
|
7
|
+
const formState = ref({
|
|
8
|
+
username: "",
|
|
9
|
+
password: "",
|
|
10
|
+
verifyCode: "",
|
|
11
|
+
verifyCodeKey: ""
|
|
12
|
+
});
|
|
13
|
+
const src = ref("");
|
|
14
|
+
const onCode = () => {
|
|
15
|
+
getImgCode().then((res) => {
|
|
16
|
+
src.value = res.verifyCode;
|
|
17
|
+
formState.value.verifyCodeKey = res.verifyCodeKey
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const onLogin = () => {
|
|
22
|
+
doLogin(formState.value).then((res) => {
|
|
23
|
+
console.log(res);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
onCode();
|
|
5
27
|
</script>
|
|
6
28
|
<template>
|
|
7
29
|
<div class="login-main">
|
|
8
30
|
<div class="login-box">
|
|
9
31
|
<a-form>
|
|
10
32
|
<a-form-item>
|
|
11
|
-
<a-input
|
|
33
|
+
<a-input
|
|
34
|
+
v-model:value="formState.username"
|
|
35
|
+
placeholder="请输入账号"
|
|
36
|
+
/>
|
|
12
37
|
</a-form-item>
|
|
13
38
|
<a-form-item>
|
|
14
|
-
<a-input
|
|
39
|
+
<a-input
|
|
40
|
+
v-model:value="formState.password"
|
|
41
|
+
type="password"
|
|
42
|
+
placeholder="请输入密码"
|
|
43
|
+
/>
|
|
15
44
|
</a-form-item>
|
|
16
45
|
<a-form-item>
|
|
17
|
-
<a-
|
|
46
|
+
<a-input
|
|
47
|
+
v-model:value="formState.verifyCode"
|
|
48
|
+
placeholder="请输入密码"
|
|
49
|
+
/>
|
|
50
|
+
<img
|
|
51
|
+
style="width: 120px; height: 40px"
|
|
52
|
+
:src="'data:image/jpg;base64,' + src"
|
|
53
|
+
@click="onCode"
|
|
54
|
+
/>
|
|
55
|
+
</a-form-item>
|
|
56
|
+
<a-form-item>
|
|
57
|
+
<a-button type="primary" block @click="onLogin">登录</a-button>
|
|
18
58
|
</a-form-item>
|
|
19
59
|
</a-form>
|
|
20
60
|
</div>
|
|
@@ -268,19 +268,42 @@ export default {
|
|
|
268
268
|
</script>
|
|
269
269
|
<template>
|
|
270
270
|
<d-list-layout>
|
|
271
|
-
<template #form
|
|
272
|
-
<d-query-form :value="formState" :scheme="scheme" @query="onQuery"
|
|
273
|
-
</d-query-form
|
|
274
|
-
</template
|
|
271
|
+
<!-- <template #form>-->
|
|
272
|
+
<!-- <d-query-form :value="formState" :scheme="scheme" @query="onQuery">-->
|
|
273
|
+
<!-- </d-query-form>-->
|
|
274
|
+
<!-- </template>-->
|
|
275
275
|
<template #table="{ height }">
|
|
276
276
|
<d-table
|
|
277
277
|
v-model:keys="selectedRowKeys"
|
|
278
|
+
@change="
|
|
279
|
+
() => {
|
|
280
|
+
console.log('change');
|
|
281
|
+
}
|
|
282
|
+
"
|
|
283
|
+
row-key="id"
|
|
284
|
+
:loading="loading"
|
|
285
|
+
:expanded-row-keys="['1', '2']"
|
|
286
|
+
:data="data"
|
|
287
|
+
:config="config"
|
|
288
|
+
:height="height - 200"
|
|
289
|
+
>
|
|
290
|
+
<template #action>
|
|
291
|
+
<a-button>ok</a-button>
|
|
292
|
+
</template>
|
|
293
|
+
</d-table>
|
|
294
|
+
<d-table
|
|
295
|
+
v-model:keys="selectedRowKeys"
|
|
296
|
+
@change="
|
|
297
|
+
() => {
|
|
298
|
+
console.log('change');
|
|
299
|
+
}
|
|
300
|
+
"
|
|
278
301
|
row-key="id"
|
|
279
302
|
:loading="loading"
|
|
280
303
|
:expanded-row-keys="['1', '2']"
|
|
281
304
|
:data="data"
|
|
282
305
|
:config="config"
|
|
283
|
-
:height="
|
|
306
|
+
:height="200"
|
|
284
307
|
>
|
|
285
308
|
<template #action>
|
|
286
309
|
<a-button>ok</a-button>
|
|
@@ -2,57 +2,10 @@ import { useRequestList } from "../../../../../hooks";
|
|
|
2
2
|
import { reactive, ref } from "vue";
|
|
3
3
|
import { testService } from "../../api/list";
|
|
4
4
|
|
|
5
|
-
export const useTableConfig = () => {
|
|
6
|
-
const columns = [
|
|
7
|
-
{
|
|
8
|
-
title: "Id",
|
|
9
|
-
dataIndex: "id",
|
|
10
|
-
width: 350
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
title: "Name",
|
|
14
|
-
dataIndex: "name",
|
|
15
|
-
width: 350
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: "avatar",
|
|
19
|
-
dataIndex: "avatar",
|
|
20
|
-
width: 350,
|
|
21
|
-
config: {
|
|
22
|
-
type: "dic",
|
|
23
|
-
name: "k_v",
|
|
24
|
-
style: {
|
|
25
|
-
D: "red",
|
|
26
|
-
S: "blue"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: "Job",
|
|
32
|
-
dataIndex: "job",
|
|
33
|
-
width: 350,
|
|
34
|
-
config: {
|
|
35
|
-
type: "date",
|
|
36
|
-
formatter: "YYYY"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: "操作",
|
|
41
|
-
width: 100,
|
|
42
|
-
fixed: "right",
|
|
43
|
-
slot: "action"
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
columns
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
|
|
52
5
|
export const useTable = () => {
|
|
53
6
|
const queryParams = ref({ limit: 20, page: 1 });
|
|
54
7
|
const selectedRowKeys = ref<any>([]);
|
|
55
|
-
const { columns } =
|
|
8
|
+
const { columns } = _useColumns();
|
|
56
9
|
|
|
57
10
|
const { data, loading, onPageChange, pagination, run, onQuery } =
|
|
58
11
|
useRequestList(testService, {
|
|
@@ -65,7 +18,7 @@ export const useTable = () => {
|
|
|
65
18
|
//表格选项
|
|
66
19
|
const config = reactive({
|
|
67
20
|
columns,
|
|
68
|
-
bordered: true,
|
|
21
|
+
// bordered: true,
|
|
69
22
|
pagination,
|
|
70
23
|
selection: "N",
|
|
71
24
|
onPageChange,
|
|
@@ -100,3 +53,248 @@ export const useTable = () => {
|
|
|
100
53
|
onQuery
|
|
101
54
|
};
|
|
102
55
|
};
|
|
56
|
+
|
|
57
|
+
function _useColumns() {
|
|
58
|
+
const columns = [
|
|
59
|
+
{
|
|
60
|
+
title: "运输方式",
|
|
61
|
+
dataIndex: "plateNo",
|
|
62
|
+
width: 150,
|
|
63
|
+
tooltip: "true",
|
|
64
|
+
tooltipTheme: "light",
|
|
65
|
+
render: (h, params) => {
|
|
66
|
+
// const name = matchNameById('bsw_trafMode', params.row.trafMode).name
|
|
67
|
+
// return h('span', name)
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: "车牌号",
|
|
72
|
+
dataIndex: "plateNo",
|
|
73
|
+
width: 150,
|
|
74
|
+
align: "center"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: "进出口标识",
|
|
78
|
+
dataIndex: "iEFlag",
|
|
79
|
+
|
|
80
|
+
width: 120,
|
|
81
|
+
render: (h: any, params: any) => {
|
|
82
|
+
//
|
|
83
|
+
// const rs = matchNameById("bsw_ie_flag", params.row.iEFlag);
|
|
84
|
+
// return h('span', rs.name)
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: "预录入编号",
|
|
89
|
+
dataIndex: "seqNo",
|
|
90
|
+
|
|
91
|
+
width: 220,
|
|
92
|
+
tooltip: "true",
|
|
93
|
+
tooltipTheme: "light"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: "预申报单号",
|
|
97
|
+
dataIndex: "preDecNo",
|
|
98
|
+
|
|
99
|
+
width: 220,
|
|
100
|
+
tooltip: "true",
|
|
101
|
+
tooltipTheme: "light"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "申报单编号",
|
|
105
|
+
dataIndex: "declareId",
|
|
106
|
+
|
|
107
|
+
width: 220,
|
|
108
|
+
tooltip: "true",
|
|
109
|
+
tooltipTheme: "light"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: "关区名称",
|
|
113
|
+
dataIndex: "lshg",
|
|
114
|
+
|
|
115
|
+
width: 100,
|
|
116
|
+
render: (h: any, params: any) => {
|
|
117
|
+
// const rs = matchNameById('ddl_cod_cus_customs', params.row.lshg)
|
|
118
|
+
// return h('span', rs.name)
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "场所名称",
|
|
123
|
+
dataIndex: "frontiertrader",
|
|
124
|
+
width: 120,
|
|
125
|
+
|
|
126
|
+
tooltip: "true",
|
|
127
|
+
tooltipTheme: "light",
|
|
128
|
+
render: (h: any, params: any) => {
|
|
129
|
+
// const rs = matchNameById('ddl_cod_biz_areas', params.row.frontiertrader)
|
|
130
|
+
// return h('span', rs.name)
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
{
|
|
135
|
+
title: "商铺名称",
|
|
136
|
+
dataIndex: "storeName",
|
|
137
|
+
width: 150,
|
|
138
|
+
|
|
139
|
+
tooltip: true,
|
|
140
|
+
tooltipTheme: "light"
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
{
|
|
144
|
+
title: "申报人类别",
|
|
145
|
+
dataIndex: "declareType",
|
|
146
|
+
|
|
147
|
+
width: 120,
|
|
148
|
+
render: (h: any, params: any) => {
|
|
149
|
+
//
|
|
150
|
+
// const rs = matchNameById("bsw_dec_man_type", params.row.declareType);
|
|
151
|
+
// return h('span', rs.name)
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: "合作社/互助组名称",
|
|
156
|
+
dataIndex: "orgName",
|
|
157
|
+
width: 160,
|
|
158
|
+
|
|
159
|
+
tooltip: true,
|
|
160
|
+
tooltipTheme: "light"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: "申报人姓名",
|
|
164
|
+
dataIndex: "declareName",
|
|
165
|
+
|
|
166
|
+
width: 200
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
title: "申报人身份证",
|
|
170
|
+
dataIndex: "ciphertextIdno",
|
|
171
|
+
|
|
172
|
+
width: 200,
|
|
173
|
+
render: (h: any, params: any) => {
|
|
174
|
+
// return h('span', tmCardCord(params.row.ciphertextIdno))
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
title: "业务模式",
|
|
179
|
+
dataIndex: "btrnbBizModecd",
|
|
180
|
+
|
|
181
|
+
width: 120,
|
|
182
|
+
render: (h: any, params: any) => {
|
|
183
|
+
// const rs = matchNameById('bsw_btrnbBizModecd', params.row.btrnbBizModecd)
|
|
184
|
+
// return h('span', rs.name)
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
title: "是否拼车",
|
|
189
|
+
dataIndex: "carPool",
|
|
190
|
+
|
|
191
|
+
width: 120,
|
|
192
|
+
render: (h: any, params: any) => {
|
|
193
|
+
// const rs = matchNameById('bsw_yes_no', params.row.carPool)
|
|
194
|
+
// return h('span', rs.name)
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
{
|
|
199
|
+
title: "商品名称",
|
|
200
|
+
dataIndex: "gNames",
|
|
201
|
+
|
|
202
|
+
width: 200,
|
|
203
|
+
tooltip: "true",
|
|
204
|
+
tooltipTheme: "light"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: "货物总金额",
|
|
208
|
+
dataIndex: "sumAmt",
|
|
209
|
+
|
|
210
|
+
tooltip: "true",
|
|
211
|
+
tooltipTheme: "light",
|
|
212
|
+
width: 130
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
title: "货物总毛重",
|
|
216
|
+
dataIndex: "sumGrossWt",
|
|
217
|
+
|
|
218
|
+
tooltip: "true",
|
|
219
|
+
tooltipTheme: "light",
|
|
220
|
+
width: 130
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
title: "货物总净重",
|
|
224
|
+
dataIndex: "sumNetWt",
|
|
225
|
+
|
|
226
|
+
tooltip: "true",
|
|
227
|
+
tooltipTheme: "light",
|
|
228
|
+
width: 130
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
title: "申报时间",
|
|
232
|
+
dataIndex: "dclTime",
|
|
233
|
+
|
|
234
|
+
width: 200
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
title: "申报单类型",
|
|
238
|
+
dataIndex: "dclType",
|
|
239
|
+
|
|
240
|
+
width: 130,
|
|
241
|
+
|
|
242
|
+
render: (h: any, params: any) => {
|
|
243
|
+
// const rs = matchNameById("ddl_dcl_type", params.row.dclType);
|
|
244
|
+
// return h("span", rs.name);
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
title: "单证ID",
|
|
249
|
+
dataIndex: "id",
|
|
250
|
+
|
|
251
|
+
tooltip: "true",
|
|
252
|
+
tooltipTheme: "light",
|
|
253
|
+
width: 100
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
title: "申报失败描述",
|
|
257
|
+
dataIndex: "dclFailDesc",
|
|
258
|
+
|
|
259
|
+
width: 200,
|
|
260
|
+
tooltip: "true",
|
|
261
|
+
tooltipTheme: "light",
|
|
262
|
+
fixed: "right"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
title: "申报状态",
|
|
266
|
+
dataIndex: "recordStatus",
|
|
267
|
+
|
|
268
|
+
width: 120,
|
|
269
|
+
fixed: "right",
|
|
270
|
+
render: (h: any, params: any) => {
|
|
271
|
+
// const rs = matchNameById("ddl_record_status", params.row.recordStatus);
|
|
272
|
+
// const color = matchColor(params.row.recordStatus);
|
|
273
|
+
// return h("div", [
|
|
274
|
+
// h("span", { class: ["ivu-badge-status-dot", color.dotColor] }),
|
|
275
|
+
// h("span", { class: [color.txtColor] }, rs.name)
|
|
276
|
+
// ]);
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
{
|
|
281
|
+
title: "状态",
|
|
282
|
+
dataIndex: "status",
|
|
283
|
+
width: 160,
|
|
284
|
+
tooltip: "true",
|
|
285
|
+
tooltipTheme: "light",
|
|
286
|
+
fixed: "right",
|
|
287
|
+
render: (h: any, params: any) => {
|
|
288
|
+
// const rs = matchNameById("bsw_status_0103", params.row.status);
|
|
289
|
+
// const color = matchColor(params.row.status);
|
|
290
|
+
// return h("div", [
|
|
291
|
+
// h("span", { class: ["ivu-badge-status-dot", color.dotColor] }),
|
|
292
|
+
// h("span", { class: [color.txtColor] }, rs.name)
|
|
293
|
+
// ]);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
];
|
|
297
|
+
return {
|
|
298
|
+
columns
|
|
299
|
+
};
|
|
300
|
+
}
|