@blueking/ai-ui-sdk 0.1.2-beta.8 → 0.1.2-beta.9
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/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +242 -0
- package/dist/components/render-choose-tag/index.vue.css +39 -0
- package/dist/components/render-choose-tag/index.vue.d.ts +12 -0
- package/dist/components/render-choose-tag/index.vue.js +5 -0
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +8 -5
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +34 -19
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +15 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +13 -4
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +11 -4
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
- package/dist/components/render-dataset/index.script.vue.js.js +7 -4
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail/index.script.vue.js.js +6 -3
- package/dist/components/render-dataset-detail/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +12 -7
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +12 -5
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +23 -5
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +58 -20
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -0
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +64 -22
- package/dist/hooks/use-form-rule.d.ts +29 -0
- package/dist/hooks/use-form-rule.ts.js +101 -0
- package/dist/hooks/use-meta-http.d.ts +16 -0
- package/dist/hooks/use-meta-http.ts.js +83 -0
- package/dist/http/helper/dataset.ts.js +4 -1
- package/dist/types/dataset.d.ts +4 -0
- package/dist/types/enum.d.ts +10 -0
- package/dist/types/enum.ts.js +11 -0
- package/dist/types/meta.d.ts +3 -0
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-a2dg706z";
|
3
3
|
script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -6,19 +6,20 @@ const _hoisted_1 = {
|
|
6
6
|
const _hoisted_2 = {
|
7
7
|
class: "dataset-main"
|
8
8
|
};
|
9
|
-
import {
|
9
|
+
import { ref, toRef, watch } from 'vue';
|
10
10
|
import { useRouter } from 'vue-router';
|
11
11
|
import RenderAside from '../render-aside/index.vue.js';
|
12
12
|
import RenderExpandCollapse from '../render-expand-collapse/index.vue.js';
|
13
13
|
import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
|
14
14
|
export default /*@__PURE__*/ _defineComponent({
|
15
15
|
props: {
|
16
|
-
apiPrefix: {}
|
16
|
+
apiPrefix: {},
|
17
|
+
spaceId: {}
|
17
18
|
},
|
18
19
|
setup (__props) {
|
19
20
|
const props = __props;
|
20
21
|
const router = useRouter();
|
21
|
-
const { getDatasetMineInfo } = useDatasetHttp(props.apiPrefix);
|
22
|
+
const { getDatasetMineInfo } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
22
23
|
const tabs = ref([
|
23
24
|
{
|
24
25
|
name: '数据集',
|
@@ -54,7 +55,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
54
55
|
handleGetDatasetMineInfo();
|
55
56
|
handleGoToDatasetData(data);
|
56
57
|
};
|
57
|
-
|
58
|
+
watch(()=>props.spaceId, handleGetDatasetMineInfo, {
|
59
|
+
immediate: true
|
60
|
+
});
|
58
61
|
return (_ctx, _cache)=>{
|
59
62
|
const _component_router_view = _resolveComponent("router-view");
|
60
63
|
const _directive_bkloading = _resolveDirective("bkloading");
|
@@ -1,5 +1,6 @@
|
|
1
1
|
interface IProps {
|
2
2
|
apiPrefix: string;
|
3
|
+
spaceId?: string;
|
3
4
|
}
|
4
5
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
6
|
export default _default;
|
@@ -3,18 +3,19 @@ import { createElementVNode as _createElementVNode, toDisplayString as _toDispla
|
|
3
3
|
const _hoisted_1 = {
|
4
4
|
class: "g-text-16 g-text-black"
|
5
5
|
};
|
6
|
-
import { onBeforeMount, ref } from 'vue';
|
6
|
+
import { onBeforeMount, ref, toRef } from 'vue';
|
7
7
|
import { useRouter } from 'vue-router';
|
8
8
|
import RenderHeader from '../../render-header/index.vue.js';
|
9
9
|
import { useDatasetHttp } from '../../../hooks/use-dataset-http.ts.js';
|
10
10
|
export default /*@__PURE__*/ _defineComponent({
|
11
11
|
props: {
|
12
12
|
apiPrefix: {},
|
13
|
-
datasetId: {}
|
13
|
+
datasetId: {},
|
14
|
+
spaceId: {}
|
14
15
|
},
|
15
16
|
setup (__props) {
|
16
17
|
const props = __props;
|
17
|
-
const { getDataset } = useDatasetHttp(props.apiPrefix);
|
18
|
+
const { getDataset } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
18
19
|
const router = useRouter();
|
19
20
|
const loading = ref(false);
|
20
21
|
const dataset = ref();
|
@@ -1,6 +1,7 @@
|
|
1
1
|
interface IProps {
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
|
+
spaceId?: string;
|
4
5
|
}
|
5
6
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
7
|
export default _default;
|
@@ -5,7 +5,8 @@ import RenderTab from './components/tab.vue.js';
|
|
5
5
|
export default /*@__PURE__*/ _defineComponent({
|
6
6
|
props: {
|
7
7
|
apiPrefix: {},
|
8
|
-
datasetId: {}
|
8
|
+
datasetId: {},
|
9
|
+
spaceId: {}
|
9
10
|
},
|
10
11
|
setup (__props) {
|
11
12
|
return (_ctx, _cache)=>{
|
@@ -13,10 +14,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
13
14
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
14
15
|
_createVNode(RenderHeader, {
|
15
16
|
"api-prefix": _ctx.apiPrefix,
|
16
|
-
"dataset-id": _ctx.datasetId
|
17
|
+
"dataset-id": _ctx.datasetId,
|
18
|
+
"space-id": _ctx.spaceId
|
17
19
|
}, null, 8 /* PROPS */ , [
|
18
20
|
"api-prefix",
|
19
|
-
"dataset-id"
|
21
|
+
"dataset-id",
|
22
|
+
"space-id"
|
20
23
|
]),
|
21
24
|
_createVNode(RenderTab),
|
22
25
|
_createVNode(_component_router_view)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
interface IProps {
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
|
+
spaceId?: string;
|
4
5
|
}
|
5
6
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
7
|
export default _default;
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
2
2
|
import { unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createBlock as _createBlock } from "vue";
|
3
3
|
import { AngleDown } from 'bkui-vue/lib/icon';
|
4
|
-
import { ref } from 'vue';
|
4
|
+
import { ref, toRef } from 'vue';
|
5
5
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
6
6
|
export default /*@__PURE__*/ _defineComponent({
|
7
7
|
props: {
|
8
8
|
selectedDatasetDatas: {},
|
9
|
-
apiPrefix: {}
|
9
|
+
apiPrefix: {},
|
10
|
+
spaceId: {}
|
10
11
|
},
|
11
12
|
emits: [
|
12
13
|
"update:selectedDatasetDatas",
|
@@ -15,7 +16,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
15
16
|
setup (__props, { emit: __emit }) {
|
16
17
|
const props = __props;
|
17
18
|
const emits = __emit;
|
18
|
-
const { batchDeleteDatasetData } = useDatasetHttp(props.apiPrefix);
|
19
|
+
const { batchDeleteDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
19
20
|
const showMore = ref(false);
|
20
21
|
const handleShowMore = ()=>{
|
21
22
|
showMore.value = true;
|
package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts
CHANGED
@@ -2,6 +2,7 @@ import type { IDatasetData } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
selectedDatasetDatas: IDatasetData[];
|
4
4
|
apiPrefix: string;
|
5
|
+
spaceId?: string;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
8
|
"update:selectedDatasetDatas": (selectedDatasetDatas: IDatasetData[]) => any;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js
CHANGED
@@ -9,7 +9,7 @@ const _hoisted_2 = [
|
|
9
9
|
const _hoisted_3 = [
|
10
10
|
"onClick"
|
11
11
|
];
|
12
|
-
import { ref, watch } from 'vue';
|
12
|
+
import { ref, toRef, watch } from 'vue';
|
13
13
|
import EditDatasetData from '../../../render-dataset/components/edit-dataset-data/index.vue.js';
|
14
14
|
import OperationRecord from '../../../render-dataset/components/operation-record/index.vue.js';
|
15
15
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
@@ -21,7 +21,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
21
21
|
datasetId: {},
|
22
22
|
search: {},
|
23
23
|
schema: {},
|
24
|
-
selectedDatasetDatas: {}
|
24
|
+
selectedDatasetDatas: {},
|
25
|
+
spaceId: {}
|
25
26
|
},
|
26
27
|
emits: [
|
27
28
|
"update:selectedDatasetDatas"
|
@@ -29,7 +30,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
29
30
|
setup (__props, { expose: __expose, emit: __emit }) {
|
30
31
|
const props = __props;
|
31
32
|
const emits = __emit;
|
32
|
-
const { getDatasetDataList, deleteDatasetData } = useDatasetHttp(props.apiPrefix);
|
33
|
+
const { getDatasetDataList, deleteDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
33
34
|
const showMoreIds = ref([]);
|
34
35
|
const dataSourceMap = {
|
35
36
|
[DatasetDataSourceType.UploadFile]: '文件上传',
|
@@ -173,11 +174,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
173
174
|
class: "g-mr-4",
|
174
175
|
index: index,
|
175
176
|
"dataset-id": _ctx.datasetId,
|
176
|
-
"api-prefix": _ctx.apiPrefix
|
177
|
+
"api-prefix": _ctx.apiPrefix,
|
178
|
+
"space-id": _ctx.spaceId
|
177
179
|
}, null, 8 /* PROPS */ , [
|
178
180
|
"index",
|
179
181
|
"dataset-id",
|
180
|
-
"api-prefix"
|
182
|
+
"api-prefix",
|
183
|
+
"space-id"
|
181
184
|
]),
|
182
185
|
_createVNode(_component_bk_popover, {
|
183
186
|
placement: "bottom-start",
|
@@ -201,11 +204,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
201
204
|
text: "",
|
202
205
|
"dataset-id": _ctx.datasetId,
|
203
206
|
"dataset-data-id": row.id,
|
204
|
-
"api-prefix": _ctx.apiPrefix
|
207
|
+
"api-prefix": _ctx.apiPrefix,
|
208
|
+
"space-id": _ctx.spaceId
|
205
209
|
}, null, 8 /* PROPS */ , [
|
206
210
|
"dataset-id",
|
207
211
|
"dataset-data-id",
|
208
|
-
"api-prefix"
|
212
|
+
"api-prefix",
|
213
|
+
"space-id"
|
209
214
|
])
|
210
215
|
], 8 /* PROPS */ , _hoisted_3),
|
211
216
|
_createVNode(_component_bk_pop_confirm, {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-nnu8ov50";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -10,7 +10,7 @@ const _hoisted_2 = {
|
|
10
10
|
const _hoisted_3 = {
|
11
11
|
class: "g-flex-row"
|
12
12
|
};
|
13
|
-
import { onBeforeMount, ref, useTemplateRef } from 'vue';
|
13
|
+
import { onBeforeMount, ref, toRef, useTemplateRef } from 'vue';
|
14
14
|
import RenderPlusDatasetData from '../render-dataset/components/plus-dataset-data/index.vue.js';
|
15
15
|
import RenderSearchDatasetData from '../render-dataset/components/search-dataset-data/index.vue.js';
|
16
16
|
import RenderBatchOperation from './components/batch-operation/index.vue.js';
|
@@ -19,11 +19,12 @@ import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
|
|
19
19
|
export default /*@__PURE__*/ _defineComponent({
|
20
20
|
props: {
|
21
21
|
apiPrefix: {},
|
22
|
-
datasetId: {}
|
22
|
+
datasetId: {},
|
23
|
+
spaceId: {}
|
23
24
|
},
|
24
25
|
setup (__props) {
|
25
26
|
const props = __props;
|
26
|
-
const { getSchemaList } = useDatasetHttp(props.apiPrefix);
|
27
|
+
const { getSchemaList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
27
28
|
const tableRef = useTemplateRef('tableRef');
|
28
29
|
const search = ref({});
|
29
30
|
const schema = ref();
|
@@ -57,20 +58,24 @@ export default /*@__PURE__*/ _defineComponent({
|
|
57
58
|
_createVNode(RenderPlusDatasetData, {
|
58
59
|
class: "g-mr-8",
|
59
60
|
"api-prefix": _ctx.apiPrefix,
|
61
|
+
"space-id": _ctx.spaceId,
|
60
62
|
"disabled-choose-dataset": true,
|
61
63
|
"dataset-data": datasetData,
|
62
64
|
onSuccessPlus: handleUpdate
|
63
65
|
}, null, 8 /* PROPS */ , [
|
64
|
-
"api-prefix"
|
66
|
+
"api-prefix",
|
67
|
+
"space-id"
|
65
68
|
]),
|
66
69
|
_createVNode(RenderBatchOperation, {
|
67
70
|
"selected-dataset-datas": selectedDatasetDatas.value,
|
68
71
|
"onUpdate:selectedDatasetDatas": _cache[0] || (_cache[0] = ($event)=>selectedDatasetDatas.value = $event),
|
69
72
|
"api-prefix": _ctx.apiPrefix,
|
73
|
+
"space-id": _ctx.spaceId,
|
70
74
|
onSuccessDelete: handleUpdate
|
71
75
|
}, null, 8 /* PROPS */ , [
|
72
76
|
"selected-dataset-datas",
|
73
|
-
"api-prefix"
|
77
|
+
"api-prefix",
|
78
|
+
"space-id"
|
74
79
|
])
|
75
80
|
]),
|
76
81
|
_createVNode(RenderSearchDatasetData, {
|
@@ -87,6 +92,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
87
92
|
"selected-dataset-datas": selectedDatasetDatas.value,
|
88
93
|
"onUpdate:selectedDatasetDatas": _cache[2] || (_cache[2] = ($event)=>selectedDatasetDatas.value = $event),
|
89
94
|
"api-prefix": _ctx.apiPrefix,
|
95
|
+
"space-id": _ctx.spaceId,
|
90
96
|
"dataset-id": _ctx.datasetId,
|
91
97
|
search: search.value,
|
92
98
|
schema: schema.value,
|
@@ -95,6 +101,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
95
101
|
}, null, 8 /* PROPS */ , [
|
96
102
|
"selected-dataset-datas",
|
97
103
|
"api-prefix",
|
104
|
+
"space-id",
|
98
105
|
"dataset-id",
|
99
106
|
"search",
|
100
107
|
"schema"
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-5ya164xy] {
|
3
3
|
padding: 24px;
|
4
4
|
height: calc(100% - 52px - 44px);
|
5
5
|
}
|
6
|
-
.origin-data-panel[data-v-
|
6
|
+
.origin-data-panel[data-v-5ya164xy] {
|
7
7
|
height: 100%;
|
8
8
|
padding: 20px;
|
9
9
|
background: #ffffff;
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
11
11
|
border-radius: 2px;
|
12
12
|
}
|
13
|
-
.origin-data-panel .toolbar-search[data-v-
|
13
|
+
.origin-data-panel .toolbar-search[data-v-5ya164xy] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
interface IProps {
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
|
+
spaceId?: string;
|
4
5
|
}
|
5
6
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
7
|
export default _default;
|
@@ -19,7 +19,11 @@ import RenderSearchDataset from '../../render-dataset/components/search-dataset/
|
|
19
19
|
import RenderTable from './table.vue.js';
|
20
20
|
export default /*@__PURE__*/ _defineComponent({
|
21
21
|
props: {
|
22
|
-
apiPrefix: {}
|
22
|
+
apiPrefix: {},
|
23
|
+
isInternal: {
|
24
|
+
type: Boolean
|
25
|
+
},
|
26
|
+
spaceId: {}
|
23
27
|
},
|
24
28
|
emits: [
|
25
29
|
"success-plus-dataset"
|
@@ -37,32 +41,46 @@ export default /*@__PURE__*/ _defineComponent({
|
|
37
41
|
_createElementVNode("section", _hoisted_4, [
|
38
42
|
_createVNode(RenderPlusDatasetData, {
|
39
43
|
class: "g-mr-8",
|
40
|
-
"api-prefix": _ctx.apiPrefix
|
44
|
+
"api-prefix": _ctx.apiPrefix,
|
45
|
+
"space-id": _ctx.spaceId
|
41
46
|
}, null, 8 /* PROPS */ , [
|
42
|
-
"api-prefix"
|
47
|
+
"api-prefix",
|
48
|
+
"space-id"
|
43
49
|
]),
|
44
50
|
_createVNode(RenderPlusDataset, {
|
45
51
|
"api-prefix": _ctx.apiPrefix,
|
52
|
+
"space-id": _ctx.spaceId,
|
53
|
+
"is-internal": _ctx.isInternal,
|
46
54
|
onSuccessPlus: handleSuccessPlusDataset
|
47
55
|
}, null, 8 /* PROPS */ , [
|
48
|
-
"api-prefix"
|
56
|
+
"api-prefix",
|
57
|
+
"space-id",
|
58
|
+
"is-internal"
|
49
59
|
])
|
50
60
|
]),
|
51
61
|
_createVNode(RenderSearchDataset, {
|
52
62
|
modelValue: search.value,
|
53
63
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>search.value = $event),
|
54
64
|
"api-prefix": _ctx.apiPrefix,
|
65
|
+
"space-id": _ctx.spaceId,
|
66
|
+
"is-internal": _ctx.isInternal,
|
55
67
|
class: "main-search"
|
56
68
|
}, null, 8 /* PROPS */ , [
|
57
69
|
"modelValue",
|
58
|
-
"api-prefix"
|
70
|
+
"api-prefix",
|
71
|
+
"space-id",
|
72
|
+
"is-internal"
|
59
73
|
])
|
60
74
|
]),
|
61
75
|
_createVNode(RenderTable, {
|
62
76
|
"api-prefix": _ctx.apiPrefix,
|
77
|
+
"space-id": _ctx.spaceId,
|
78
|
+
"is-internal": _ctx.isInternal,
|
63
79
|
search: search.value
|
64
80
|
}, null, 8 /* PROPS */ , [
|
65
81
|
"api-prefix",
|
82
|
+
"space-id",
|
83
|
+
"is-internal",
|
66
84
|
"search"
|
67
85
|
])
|
68
86
|
])
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-856oaguf] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-856oaguf] {
|
7
7
|
height: 100%;
|
8
8
|
padding: 20px 24px 0;
|
9
9
|
background: #ffffff;
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
11
11
|
border-radius: 2px;
|
12
12
|
}
|
13
|
-
.main-search[data-v-
|
13
|
+
.main-search[data-v-856oaguf] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import type { IDataset } from '@/types/dataset';
|
2
2
|
interface IProps {
|
3
3
|
apiPrefix: string;
|
4
|
+
isInternal?: boolean;
|
5
|
+
spaceId?: string;
|
4
6
|
}
|
5
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
6
8
|
"success-plus-dataset": (data: IDataset) => any;
|
@@ -27,7 +27,7 @@ function _object_spread(target) {
|
|
27
27
|
return target;
|
28
28
|
}
|
29
29
|
import { defineComponent as _defineComponent } from 'vue';
|
30
|
-
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective,
|
30
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
|
31
31
|
const _hoisted_1 = [
|
32
32
|
"onClick"
|
33
33
|
];
|
@@ -40,7 +40,7 @@ const _hoisted_3 = [
|
|
40
40
|
const _hoisted_4 = [
|
41
41
|
"onClick"
|
42
42
|
];
|
43
|
-
import { ref, watch } from 'vue';
|
43
|
+
import { ref, toRef, watch } from 'vue';
|
44
44
|
import { useRouter } from 'vue-router';
|
45
45
|
import OperationRecord from '../../render-dataset/components/operation-record/index.vue.js';
|
46
46
|
import RenderPlusDataset from '../../render-dataset/components/plus-dataset/index.vue.js';
|
@@ -51,12 +51,16 @@ import { DatasetType } from '../../../types/enum.ts.js';
|
|
51
51
|
export default /*@__PURE__*/ _defineComponent({
|
52
52
|
props: {
|
53
53
|
apiPrefix: {},
|
54
|
-
|
54
|
+
isInternal: {
|
55
|
+
type: Boolean
|
56
|
+
},
|
57
|
+
search: {},
|
58
|
+
spaceId: {}
|
55
59
|
},
|
56
60
|
setup (__props) {
|
57
61
|
const props = __props;
|
58
62
|
const router = useRouter();
|
59
|
-
const { getDatasetList, deleteDataset } = useDatasetHttp(props.apiPrefix);
|
63
|
+
const { getDatasetList, deleteDataset } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
60
64
|
const showMoreIds = ref([]);
|
61
65
|
const deleteRef = ref({});
|
62
66
|
const datasetTypeMap = {
|
@@ -85,14 +89,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
85
89
|
label: '类型',
|
86
90
|
field: 'type'
|
87
91
|
},
|
88
|
-
{
|
89
|
-
label: '来源公司',
|
90
|
-
field: 'companyName'
|
91
|
-
},
|
92
|
-
{
|
93
|
-
label: '组件',
|
94
|
-
field: 'componentName'
|
95
|
-
},
|
96
92
|
{
|
97
93
|
label: '描述',
|
98
94
|
field: 'description'
|
@@ -111,12 +107,32 @@ export default /*@__PURE__*/ _defineComponent({
|
|
111
107
|
'datasetCode',
|
112
108
|
'datasetItemCount',
|
113
109
|
'type',
|
114
|
-
'companyName',
|
115
|
-
'componentName',
|
116
110
|
'description'
|
117
111
|
],
|
118
112
|
trigger: 'manual'
|
119
113
|
};
|
114
|
+
if (props.isInternal) {
|
115
|
+
settings.fields.splice(3, 0, {
|
116
|
+
label: '标签',
|
117
|
+
field: 'tagNames'
|
118
|
+
});
|
119
|
+
settings.checked.splice(3, 0, 'tagNames');
|
120
|
+
} else {
|
121
|
+
settings.fields.splice(3, 0, ...[
|
122
|
+
{
|
123
|
+
label: '来源公司',
|
124
|
+
field: 'companyName'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
label: '组件',
|
128
|
+
field: 'componentName'
|
129
|
+
}
|
130
|
+
]);
|
131
|
+
settings.checked.splice(3, 0, ...[
|
132
|
+
'companyName',
|
133
|
+
'componentName'
|
134
|
+
]);
|
135
|
+
}
|
120
136
|
const handleGetDatasetList = (params)=>{
|
121
137
|
return getDatasetList(_object_spread({}, props.search, params));
|
122
138
|
};
|
@@ -151,7 +167,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
151
167
|
}
|
152
168
|
});
|
153
169
|
};
|
154
|
-
watch(
|
170
|
+
watch([
|
171
|
+
()=>props.search,
|
172
|
+
()=>props.spaceId
|
173
|
+
], ()=>{
|
155
174
|
resetPagination();
|
156
175
|
triggerApi();
|
157
176
|
}, {
|
@@ -217,11 +236,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
217
236
|
]),
|
218
237
|
_: 1 /* STABLE */
|
219
238
|
}),
|
220
|
-
|
239
|
+
!_ctx.isInternal ? (_openBlock(), _createBlock(_component_bk_table_column, {
|
240
|
+
key: 0,
|
221
241
|
label: "来源公司",
|
222
242
|
field: "companyName"
|
223
|
-
}),
|
224
|
-
|
243
|
+
})) : _createCommentVNode("v-if", true),
|
244
|
+
!_ctx.isInternal ? (_openBlock(), _createBlock(_component_bk_table_column, {
|
245
|
+
key: 1,
|
225
246
|
label: "所属组件",
|
226
247
|
field: "componentNames"
|
227
248
|
}, {
|
@@ -229,7 +250,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
229
250
|
_createTextVNode(_toDisplayString(row.componentNames.join(' / ')), 1 /* TEXT */ )
|
230
251
|
]),
|
231
252
|
_: 1 /* STABLE */
|
232
|
-
}),
|
253
|
+
})) : _createCommentVNode("v-if", true),
|
254
|
+
_ctx.isInternal ? (_openBlock(), _createBlock(_component_bk_table_column, {
|
255
|
+
key: 2,
|
256
|
+
label: "标签",
|
257
|
+
field: "tagNames"
|
258
|
+
}, {
|
259
|
+
default: _withCtx(({ row })=>[
|
260
|
+
_createTextVNode(_toDisplayString(row.tagNames.join(',') || '--'), 1 /* TEXT */ )
|
261
|
+
]),
|
262
|
+
_: 1 /* STABLE */
|
263
|
+
})) : _createCommentVNode("v-if", true),
|
233
264
|
_createVNode(_component_bk_table_column, {
|
234
265
|
label: "描述",
|
235
266
|
field: "description"
|
@@ -252,17 +283,18 @@ export default /*@__PURE__*/ _defineComponent({
|
|
252
283
|
text: "",
|
253
284
|
class: "g-mr-16",
|
254
285
|
"api-prefix": _ctx.apiPrefix,
|
286
|
+
"space-id": _ctx.spaceId,
|
255
287
|
"dataset-data": handleGetDatasetData(row),
|
256
288
|
onSuccessPlus: _unref(triggerApi)
|
257
289
|
}, null, 8 /* PROPS */ , [
|
258
290
|
"api-prefix",
|
291
|
+
"space-id",
|
259
292
|
"dataset-data",
|
260
293
|
"onSuccessPlus"
|
261
294
|
]),
|
262
295
|
_createVNode(_component_bk_button, {
|
263
296
|
text: "",
|
264
297
|
theme: "primary",
|
265
|
-
class: "g-mr-16",
|
266
298
|
onClick: ($event)=>handleGoToDetail(row)
|
267
299
|
}, {
|
268
300
|
default: _withCtx(()=>_cache[0] || (_cache[0] = [
|
@@ -296,10 +328,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
296
328
|
_createVNode(RenderPlusDataset, {
|
297
329
|
text: "",
|
298
330
|
"api-prefix": _ctx.apiPrefix,
|
331
|
+
"space-id": _ctx.spaceId,
|
332
|
+
"is-internal": _ctx.isInternal,
|
299
333
|
dataset: row,
|
300
334
|
onSuccessPlus: _unref(triggerApi)
|
301
335
|
}, null, 8 /* PROPS */ , [
|
302
336
|
"api-prefix",
|
337
|
+
"space-id",
|
338
|
+
"is-internal",
|
303
339
|
"dataset",
|
304
340
|
"onSuccessPlus"
|
305
341
|
])
|
@@ -310,9 +346,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
310
346
|
_createVNode(OperationRecord, {
|
311
347
|
text: "",
|
312
348
|
"api-prefix": _ctx.apiPrefix,
|
349
|
+
"space-id": _ctx.spaceId,
|
313
350
|
"dataset-id": row.id
|
314
351
|
}, null, 8 /* PROPS */ , [
|
315
352
|
"api-prefix",
|
353
|
+
"space-id",
|
316
354
|
"dataset-id"
|
317
355
|
])
|
318
356
|
], 8 /* PROPS */ , _hoisted_3),
|