@blueking/ai-ui-sdk 0.1.2-beta.7 → 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 +46 -34
- 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 +85 -41
- 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-chat.ts.js +13 -12
- 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
@@ -29,13 +29,17 @@ function _async_to_generator(fn) {
|
|
29
29
|
}
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
31
31
|
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
32
|
-
import { ref } from 'vue';
|
32
|
+
import { ref, toRef } from 'vue';
|
33
33
|
import RenderSearchSelect from '../../../render-search-select/index.vue.js';
|
34
34
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
35
35
|
export default /*@__PURE__*/ _defineComponent({
|
36
36
|
props: {
|
37
37
|
modelValue: {},
|
38
|
-
apiPrefix: {}
|
38
|
+
apiPrefix: {},
|
39
|
+
spaceId: {},
|
40
|
+
isInternal: {
|
41
|
+
type: Boolean
|
42
|
+
}
|
39
43
|
},
|
40
44
|
emits: [
|
41
45
|
"update:modelValue"
|
@@ -43,7 +47,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
43
47
|
setup (__props, { emit: __emit }) {
|
44
48
|
const props = __props;
|
45
49
|
const emits = __emit;
|
46
|
-
const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix);
|
50
|
+
const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
47
51
|
const data = ref([
|
48
52
|
{
|
49
53
|
id: 'datasetName',
|
@@ -60,12 +64,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
60
64
|
async: true,
|
61
65
|
children: []
|
62
66
|
},
|
63
|
-
{
|
67
|
+
props.isInternal ? {
|
64
68
|
id: 'componentIds',
|
65
69
|
name: '组件',
|
66
70
|
multiple: true,
|
67
71
|
async: true,
|
68
72
|
children: []
|
73
|
+
} : {
|
74
|
+
id: 'tagName',
|
75
|
+
name: '标签'
|
69
76
|
},
|
70
77
|
{
|
71
78
|
id: 'createdBy',
|
@@ -2,6 +2,8 @@ import type { IDatasetListParam } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
modelValue: IDatasetListParam;
|
4
4
|
apiPrefix: string;
|
5
|
+
spaceId?: string;
|
6
|
+
isInternal?: boolean;
|
5
7
|
}
|
6
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
9
|
"update:modelValue": (modelValue: IDatasetListParam) => any;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.bkaidev-markdown[data-v-
|
2
|
+
.bkaidev-markdown[data-v-a2dg706z] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-a2dg706z] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-a2dg706z] {
|
9
9
|
color: #979ba5;
|
10
10
|
}
|
@@ -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;
|