@blueking/ai-ui-sdk 0.1.19-beta.32 → 0.1.19-beta.34
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-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- 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/batch-delete-dataset-data/index.script.vue.js +86 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
- 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.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- 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.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/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +73 -59
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -2
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +72 -75
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -2
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
- package/dist/components/render-dropdown/index.vue.css +29 -0
- package/dist/components/render-dropdown/index.vue.d.ts +64 -0
- package/dist/components/render-dropdown/index.vue.js +4 -0
- 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 +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/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/components/render-search-select/index.script.vue.js.js +1 -0
- package/dist/components/render-t-table/index.vue.css +28 -25
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.script.vue.js.js +34 -18
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.d.ts +1 -0
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.ts.js +2 -1
- package/dist/css/tailwind.css +13 -1
- package/dist/hooks/use-common-http.d.ts +4 -0
- package/dist/hooks/use-common-http.ts.js +12 -2
- package/dist/hooks/use-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +8 -1
- package/dist/hooks/use-ellipsis-tooltip.d.ts +0 -1
- package/dist/hooks/use-ellipsis-tooltip.ts.js +0 -1
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/http/helper/agent.d.ts +13 -1
- package/dist/http/helper/agent.ts.js +69 -24
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +16 -2
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +41 -24
- package/dist/types/dataset.d.ts +14 -0
- package/dist/types/enum.d.ts +8 -1
- package/dist/types/enum.ts.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createBlock as _createBlock } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-max-truncate g-flex-row",
|
|
5
|
+
"data-ellipsis-tooltip": ""
|
|
6
|
+
};
|
|
7
|
+
const _hoisted_2 = [
|
|
8
|
+
"href"
|
|
9
|
+
];
|
|
10
|
+
import { ref, toRef } from 'vue';
|
|
11
|
+
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
12
|
+
import { usePermission } from '../../../../hooks/use-permission.ts.js';
|
|
13
|
+
import { ResourcePermissionAction } from '../../../../types/enum.ts.js';
|
|
14
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
15
|
+
props: {
|
|
16
|
+
id: {},
|
|
17
|
+
isValid: {
|
|
18
|
+
type: Boolean
|
|
19
|
+
},
|
|
20
|
+
datasetId: {},
|
|
21
|
+
apiPrefix: {},
|
|
22
|
+
spaceId: {},
|
|
23
|
+
manageDataset: {
|
|
24
|
+
type: Boolean
|
|
25
|
+
},
|
|
26
|
+
isInternal: {
|
|
27
|
+
type: Boolean
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: [
|
|
31
|
+
"update"
|
|
32
|
+
],
|
|
33
|
+
setup (__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emits = __emit;
|
|
36
|
+
const { batchUpdateDatasetDataValidity } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
37
|
+
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
|
38
|
+
const currentValid = ref(props.isValid);
|
|
39
|
+
const isShowEditValid = ref(false);
|
|
40
|
+
const handleCalcHasManagePermission = ()=>{
|
|
41
|
+
return !props.isInternal || props.manageDataset;
|
|
42
|
+
};
|
|
43
|
+
const handlePermissionMouseClick = (callBack)=>{
|
|
44
|
+
handleMouseClick(callBack, handleCalcHasManagePermission(), [
|
|
45
|
+
ResourcePermissionAction.ManageDataset
|
|
46
|
+
], props.datasetId);
|
|
47
|
+
};
|
|
48
|
+
const handleShowEditValid = ()=>{
|
|
49
|
+
isShowEditValid.value = true;
|
|
50
|
+
currentValid.value = props.isValid;
|
|
51
|
+
};
|
|
52
|
+
const handleConfirm = ()=>{
|
|
53
|
+
batchUpdateDatasetDataValidity({
|
|
54
|
+
datasetId: props.datasetId,
|
|
55
|
+
datasetItemIds: [
|
|
56
|
+
props.id
|
|
57
|
+
],
|
|
58
|
+
isValid: currentValid.value
|
|
59
|
+
}).then(()=>{
|
|
60
|
+
handleCancel();
|
|
61
|
+
emits('update');
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const handleCancel = ()=>{
|
|
65
|
+
isShowEditValid.value = false;
|
|
66
|
+
};
|
|
67
|
+
return (_ctx, _cache)=>{
|
|
68
|
+
const _component_bk_radio = _resolveComponent("bk-radio");
|
|
69
|
+
const _component_bk_radio_group = _resolveComponent("bk-radio-group");
|
|
70
|
+
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
71
|
+
return _openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
72
|
+
props.isValid !== undefined ? (_openBlock(), _createElementBlock("svg", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: _normalizeClass({
|
|
75
|
+
'g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-blue': true,
|
|
76
|
+
'g-text-green': props.isValid,
|
|
77
|
+
'g-text-red': !props.isValid
|
|
78
|
+
})
|
|
79
|
+
}, [
|
|
80
|
+
_createElementVNode("use", {
|
|
81
|
+
href: props.isValid ? '#ai-ui-sdk-sync-success' : '#ai-ui-sdk-sync-failed'
|
|
82
|
+
}, null, 8 /* PROPS */ , _hoisted_2)
|
|
83
|
+
], 2 /* CLASS */ )) : _createCommentVNode("v-if", true),
|
|
84
|
+
_createTextVNode(" " + _toDisplayString(props.isValid !== undefined ? props.isValid ? '有效' : '无效' : '--') + " ", 1 /* TEXT */ ),
|
|
85
|
+
props.isValid !== undefined ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
|
|
86
|
+
key: 1,
|
|
87
|
+
title: "编辑数据有效性",
|
|
88
|
+
width: "291",
|
|
89
|
+
height: "177",
|
|
90
|
+
trigger: "manual",
|
|
91
|
+
"is-show": isShowEditValid.value,
|
|
92
|
+
onConfirm: handleConfirm,
|
|
93
|
+
onCancel: handleCancel
|
|
94
|
+
}, {
|
|
95
|
+
content: _withCtx(()=>[
|
|
96
|
+
_createVNode(_component_bk_radio_group, {
|
|
97
|
+
modelValue: currentValid.value,
|
|
98
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event)=>currentValid.value = $event),
|
|
99
|
+
class: "g-flex-column g-mb-24 g-mt-4"
|
|
100
|
+
}, {
|
|
101
|
+
default: _withCtx(()=>[
|
|
102
|
+
_createVNode(_component_bk_radio, {
|
|
103
|
+
class: "g-mb-12",
|
|
104
|
+
label: false,
|
|
105
|
+
onClick: _cache[4] || (_cache[4] = ($event)=>currentValid.value = false)
|
|
106
|
+
}, {
|
|
107
|
+
default: _withCtx(()=>_cache[7] || (_cache[7] = [
|
|
108
|
+
_createElementVNode("div", {
|
|
109
|
+
class: "g-flex-row g-align-items-center"
|
|
110
|
+
}, [
|
|
111
|
+
_createElementVNode("svg", {
|
|
112
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-red"
|
|
113
|
+
}, [
|
|
114
|
+
_createElementVNode("use", {
|
|
115
|
+
href: "#ai-ui-sdk-sync-failed"
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
_createTextVNode(" 无效(不参与模型训练) ")
|
|
119
|
+
], -1 /* HOISTED */ )
|
|
120
|
+
])),
|
|
121
|
+
_: 1 /* STABLE */ ,
|
|
122
|
+
__: [
|
|
123
|
+
7
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
_createVNode(_component_bk_radio, {
|
|
127
|
+
class: "radio",
|
|
128
|
+
label: true,
|
|
129
|
+
onClick: _cache[5] || (_cache[5] = ($event)=>currentValid.value = true)
|
|
130
|
+
}, {
|
|
131
|
+
default: _withCtx(()=>_cache[8] || (_cache[8] = [
|
|
132
|
+
_createElementVNode("div", {
|
|
133
|
+
class: "g-flex-row g-align-items-center"
|
|
134
|
+
}, [
|
|
135
|
+
_createElementVNode("svg", {
|
|
136
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-green"
|
|
137
|
+
}, [
|
|
138
|
+
_createElementVNode("use", {
|
|
139
|
+
href: "#ai-ui-sdk-sync-success"
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
_createTextVNode(" 有效 ")
|
|
143
|
+
], -1 /* HOISTED */ )
|
|
144
|
+
])),
|
|
145
|
+
_: 1 /* STABLE */ ,
|
|
146
|
+
__: [
|
|
147
|
+
8
|
|
148
|
+
]
|
|
149
|
+
})
|
|
150
|
+
]),
|
|
151
|
+
_: 1 /* STABLE */
|
|
152
|
+
}, 8 /* PROPS */ , [
|
|
153
|
+
"modelValue"
|
|
154
|
+
])
|
|
155
|
+
]),
|
|
156
|
+
default: _withCtx(()=>[
|
|
157
|
+
_createElementVNode("i", {
|
|
158
|
+
class: _normalizeClass({
|
|
159
|
+
'g-disabled': !handleCalcHasManagePermission(),
|
|
160
|
+
'g-ml-4 g-text-blue g-cursor-pointer bkaidev-icon bkaidev-edit-line': true
|
|
161
|
+
}),
|
|
162
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
|
163
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
|
164
|
+
onMouseleave: _cache[2] || (_cache[2] = //@ts-ignore
|
|
165
|
+
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
166
|
+
onClick: _cache[3] || (_cache[3] = ($event)=>handlePermissionMouseClick(handleShowEditValid))
|
|
167
|
+
}, null, 34 /* CLASS, NEED_HYDRATION */ )
|
|
168
|
+
]),
|
|
169
|
+
_: 1 /* STABLE */
|
|
170
|
+
}, 8 /* PROPS */ , [
|
|
171
|
+
"is-show"
|
|
172
|
+
])) : _createCommentVNode("v-if", true)
|
|
173
|
+
]);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
id: number;
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
datasetId: number;
|
|
5
|
+
apiPrefix: string;
|
|
6
|
+
spaceId?: string;
|
|
7
|
+
manageDataset?: boolean;
|
|
8
|
+
isInternal?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
update: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
13
|
+
onUpdate?: () => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-h7fwp30j] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.data-set-edit-slider .value-content[data-v-
|
|
7
|
+
.data-set-edit-slider .value-content[data-v-h7fwp30j] {
|
|
8
8
|
padding: 16px;
|
|
9
9
|
border: 1px solid #DCDEE5;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
|
-
.data-set-edit-slider[data-v-
|
|
12
|
+
.data-set-edit-slider[data-v-h7fwp30j] .bk-sideslider-title {
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-h7fwp30j";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-loau2clm] {
|
|
3
3
|
padding: 0 24px 0px 32px;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
.content .toolbar[data-v-
|
|
6
|
+
.content .toolbar[data-v-loau2clm] {
|
|
7
7
|
margin: 16px 0;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: right;
|
|
11
11
|
gap: 8px;
|
|
12
12
|
}
|
|
13
|
-
.content .toolbar .record-search[data-v-
|
|
13
|
+
.content .toolbar .record-search[data-v-loau2clm] {
|
|
14
14
|
width: 360px;
|
|
15
15
|
}
|
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
|
16
|
+
.content .toolbar .record-data-picker[data-v-loau2clm] {
|
|
17
17
|
width: 260px;
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-loau2clm";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-qa7r77c3";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-56nsc4pp] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.content .value-content[data-v-
|
|
7
|
+
.content .value-content[data-v-56nsc4pp] {
|
|
8
8
|
margin-top: 8px;
|
|
9
9
|
padding: 16px;
|
|
10
10
|
border: 1px solid #DCDEE5;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-56nsc4pp";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
.dataset-data-content[data-v-
|
|
2
|
+
.dataset-data-content[data-v-8nxlhbm8] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
.dataset-data-slider[data-v-
|
|
6
|
+
.dataset-data-slider[data-v-8nxlhbm8] .bk-modal-content {
|
|
7
7
|
scrollbar-gutter: inherit !important;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.dataset-data-api-endpoint[data-v-
|
|
2
|
+
.dataset-data-api-endpoint[data-v-0qf10ay4] {
|
|
3
3
|
line-height: 44px;
|
|
4
4
|
background: #F5F7FA;
|
|
5
5
|
border-radius: 2px;
|
|
6
6
|
padding: 0 12px;
|
|
7
7
|
}
|
|
8
|
-
[data-v-
|
|
8
|
+
[data-v-0qf10ay4] .dataset-data-api-demo .v-show-content {
|
|
9
9
|
padding: 0 !important;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './api.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-0qf10ay4";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/api.vue";
|
|
4
4
|
import './api.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-pmmclomf";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
|
|
4
4
|
import './footer.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.plus-dataset-data[data-v-
|
|
2
|
+
.plus-dataset-data[data-v-89xtxphm] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
}
|
|
5
|
-
.plus-dataset-sideslider[data-v-
|
|
5
|
+
.plus-dataset-sideslider[data-v-89xtxphm] .bk-modal-content {
|
|
6
6
|
scrollbar-gutter: inherit !important;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-89xtxphm";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-c2vaaou8] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.data-set-review-slider .value-content[data-v-
|
|
7
|
+
.data-set-review-slider .value-content[data-v-c2vaaou8] {
|
|
8
8
|
padding: 16px;
|
|
9
9
|
border: 1px solid #DCDEE5;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
|
-
.data-set-review-slider .review-data[data-v-
|
|
12
|
+
.data-set-review-slider .review-data[data-v-c2vaaou8] {
|
|
13
13
|
height: calc(100% - 337px);
|
|
14
14
|
padding: 18px 24px;
|
|
15
15
|
}
|
|
16
|
-
.data-set-review-slider .review-level[data-v-
|
|
16
|
+
.data-set-review-slider .review-level[data-v-c2vaaou8] {
|
|
17
17
|
box-shadow: 0 -2px 4px 0 #1919291f;
|
|
18
18
|
height: 337px;
|
|
19
19
|
padding: 16px 24px 24px;
|
|
20
20
|
}
|
|
21
|
-
.data-set-review-slider .review-level .level-score[data-v-
|
|
21
|
+
.data-set-review-slider .review-level .level-score[data-v-c2vaaou8] {
|
|
22
22
|
gap: 50px;
|
|
23
23
|
}
|
|
24
|
-
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-
|
|
24
|
+
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-c2vaaou8] {
|
|
25
25
|
flex: 1;
|
|
26
26
|
}
|
|
27
|
-
.data-set-review-slider .bold-title[data-v-
|
|
27
|
+
.data-set-review-slider .bold-title[data-v-c2vaaou8] .bk-form-label {
|
|
28
28
|
font-weight: bold;
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
}
|
|
31
|
-
.data-set-review-slider[data-v-
|
|
31
|
+
.data-set-review-slider[data-v-c2vaaou8] .bk-sideslider-title {
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
width: 100%;
|
|
34
34
|
}
|
|
35
|
-
.data-set-review-slider[data-v-
|
|
35
|
+
.data-set-review-slider[data-v-c2vaaou8] .bk-modal-content {
|
|
36
36
|
height: calc(100% - 100px) !important;
|
|
37
37
|
scrollbar-gutter: inherit !important;
|
|
38
38
|
}
|
|
39
|
-
.data-set-review-slider[data-v-
|
|
39
|
+
.data-set-review-slider[data-v-c2vaaou8] .bk-modal-content >div, .data-set-review-slider[data-v-c2vaaou8] .bk-modal-content .bk-sideslider-content {
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-c2vaaou8";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/review-dataset-data/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js
CHANGED
|
@@ -42,6 +42,20 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
42
42
|
name: key
|
|
43
43
|
}))
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
id: 'isValid',
|
|
47
|
+
name: '有效性',
|
|
48
|
+
children: [
|
|
49
|
+
{
|
|
50
|
+
id: true,
|
|
51
|
+
name: '有效'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: false,
|
|
55
|
+
name: '无效'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
45
59
|
props.reviewDataset ? {
|
|
46
60
|
id: 'reviewStatuses',
|
|
47
61
|
name: '审核状态',
|
|
@@ -2,8 +2,9 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
2
2
|
import { unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, Fragment as _Fragment } from "vue";
|
|
3
3
|
import { AngleDown } from 'bkui-vue/lib/icon';
|
|
4
4
|
import { ref, toRef } from 'vue';
|
|
5
|
+
import BatchDeleteDatasetData from '../../../render-dataset/components/batch-delete-dataset-data/index.vue.js';
|
|
6
|
+
import BatchEditValidDatasetData from '../../../render-dataset/components/batch-edit-valid-dataset-data/index.vue.js';
|
|
5
7
|
import BatchReviewDatasetData from '../../../render-dataset/components/batch-review-dataset-data/index.vue.js';
|
|
6
|
-
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
7
8
|
import { usePermission } from '../../../../hooks/use-permission.ts.js';
|
|
8
9
|
import { ResourcePermissionAction } from '../../../../types/enum.ts.js';
|
|
9
10
|
export default /*@__PURE__*/ _defineComponent({
|
|
@@ -29,26 +30,31 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
29
30
|
setup (__props, { emit: __emit }) {
|
|
30
31
|
const props = __props;
|
|
31
32
|
const emits = __emit;
|
|
32
|
-
const { batchDeleteDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
33
33
|
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
|
34
34
|
const showMore = ref(false);
|
|
35
|
-
const deleteRef = ref();
|
|
36
35
|
const isShowBatchReviewDatasetData = ref(false);
|
|
36
|
+
const isShowBatchEditValidDatasetData = ref(false);
|
|
37
|
+
const isShowBatchDeleteDatasetData = ref(false);
|
|
37
38
|
const handleCalcHasManagePermission = ()=>{
|
|
38
39
|
return !props.isInternal || props.manageDataset;
|
|
39
40
|
};
|
|
40
41
|
const handlePermissionMouseClick = ()=>{
|
|
41
|
-
handleMouseClick(
|
|
42
|
+
handleMouseClick(handleShowDeleteDatasetData, handleCalcHasManagePermission(), [
|
|
42
43
|
ResourcePermissionAction.ManageDataset,
|
|
43
44
|
ResourcePermissionAction.ViewDataset
|
|
44
45
|
], props.datasetId);
|
|
45
46
|
};
|
|
46
|
-
const
|
|
47
|
+
const handleBatchReviewDatasetData = ()=>{
|
|
47
48
|
isShowBatchReviewDatasetData.value = true;
|
|
48
49
|
handleHideMore();
|
|
49
50
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
51
|
+
const handleShowEditValidDatasetData = ()=>{
|
|
52
|
+
isShowBatchEditValidDatasetData.value = true;
|
|
53
|
+
handleHideMore();
|
|
54
|
+
};
|
|
55
|
+
const handleShowDeleteDatasetData = ()=>{
|
|
56
|
+
isShowBatchDeleteDatasetData.value = true;
|
|
57
|
+
handleHideMore();
|
|
52
58
|
};
|
|
53
59
|
const handleShowMore = ()=>{
|
|
54
60
|
showMore.value = true;
|
|
@@ -60,12 +66,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
60
66
|
emits('update:selectedDatasetDataIds', []);
|
|
61
67
|
emits('success-operation');
|
|
62
68
|
};
|
|
63
|
-
const handleDeleteDatasetDatas = ()=>{
|
|
64
|
-
batchDeleteDatasetData(props.selectedDatasetDataIds, props.datasetId).then(handleSuccessOperation);
|
|
65
|
-
};
|
|
66
69
|
return (_ctx, _cache)=>{
|
|
67
70
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
68
|
-
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
69
71
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
70
72
|
const _directive_clickoutside = _resolveDirective("clickoutside");
|
|
71
73
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
@@ -87,32 +89,22 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
87
89
|
}, [
|
|
88
90
|
_ctx.isInternal && _ctx.reviewDataset ? (_openBlock(), _createElementBlock("li", {
|
|
89
91
|
key: 0,
|
|
90
|
-
onClick:
|
|
92
|
+
onClick: handleBatchReviewDatasetData
|
|
91
93
|
}, " 人工审核 ")) : _createCommentVNode("v-if", true),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
|
108
|
-
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
|
109
|
-
onMouseleave: _cache[2] || (_cache[2] = //@ts-ignore
|
|
110
|
-
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
111
|
-
onClick: handlePermissionMouseClick
|
|
112
|
-
}, " 删除 ", 34 /* CLASS, NEED_HYDRATION */ )
|
|
113
|
-
]),
|
|
114
|
-
_: 1 /* STABLE */
|
|
115
|
-
}, 512 /* NEED_PATCH */ )
|
|
94
|
+
_ctx.isInternal && _ctx.manageDataset ? (_openBlock(), _createElementBlock("li", {
|
|
95
|
+
key: 1,
|
|
96
|
+
onClick: handleShowEditValidDatasetData
|
|
97
|
+
}, " 编辑有效性 ")) : _createCommentVNode("v-if", true),
|
|
98
|
+
_createElementVNode("li", {
|
|
99
|
+
class: _normalizeClass({
|
|
100
|
+
'g-disabled': !handleCalcHasManagePermission()
|
|
101
|
+
}),
|
|
102
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
|
103
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
|
104
|
+
onMouseleave: _cache[2] || (_cache[2] = //@ts-ignore
|
|
105
|
+
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
106
|
+
onClick: handlePermissionMouseClick
|
|
107
|
+
}, " 删除 ", 34 /* CLASS, NEED_HYDRATION */ )
|
|
116
108
|
], 2 /* CLASS */ )), [
|
|
117
109
|
[
|
|
118
110
|
_directive_clickoutside,
|
|
@@ -126,14 +118,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
126
118
|
onClick: handleShowMore
|
|
127
119
|
}), {
|
|
128
120
|
default: _withCtx(()=>[
|
|
129
|
-
_cache[
|
|
121
|
+
_cache[6] || (_cache[6] = _createTextVNode(" 批量操作 ")),
|
|
130
122
|
_createVNode(_unref(AngleDown), {
|
|
131
123
|
class: "g-text-22"
|
|
132
124
|
})
|
|
133
125
|
]),
|
|
134
126
|
_: 1 /* STABLE */ ,
|
|
135
127
|
__: [
|
|
136
|
-
|
|
128
|
+
6
|
|
137
129
|
]
|
|
138
130
|
}, 16 /* FULL_PROPS */ , [
|
|
139
131
|
"disabled"
|
|
@@ -141,9 +133,39 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
141
133
|
]),
|
|
142
134
|
_: 1 /* STABLE */
|
|
143
135
|
}),
|
|
136
|
+
_createVNode(BatchEditValidDatasetData, {
|
|
137
|
+
modelValue: isShowBatchEditValidDatasetData.value,
|
|
138
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event)=>isShowBatchEditValidDatasetData.value = $event),
|
|
139
|
+
"dataset-data-ids": _ctx.selectedDatasetDataIds,
|
|
140
|
+
"dataset-id": _ctx.datasetId,
|
|
141
|
+
"api-prefix": _ctx.apiPrefix,
|
|
142
|
+
"space-id": _ctx.spaceId,
|
|
143
|
+
onSuccessEdit: handleSuccessOperation
|
|
144
|
+
}, null, 8 /* PROPS */ , [
|
|
145
|
+
"modelValue",
|
|
146
|
+
"dataset-data-ids",
|
|
147
|
+
"dataset-id",
|
|
148
|
+
"api-prefix",
|
|
149
|
+
"space-id"
|
|
150
|
+
]),
|
|
151
|
+
_createVNode(BatchDeleteDatasetData, {
|
|
152
|
+
modelValue: isShowBatchDeleteDatasetData.value,
|
|
153
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event)=>isShowBatchDeleteDatasetData.value = $event),
|
|
154
|
+
"dataset-data-ids": _ctx.selectedDatasetDataIds,
|
|
155
|
+
"dataset-id": _ctx.datasetId,
|
|
156
|
+
"api-prefix": _ctx.apiPrefix,
|
|
157
|
+
"space-id": _ctx.spaceId,
|
|
158
|
+
onSuccessDelete: handleSuccessOperation
|
|
159
|
+
}, null, 8 /* PROPS */ , [
|
|
160
|
+
"modelValue",
|
|
161
|
+
"dataset-data-ids",
|
|
162
|
+
"dataset-id",
|
|
163
|
+
"api-prefix",
|
|
164
|
+
"space-id"
|
|
165
|
+
]),
|
|
144
166
|
_createVNode(BatchReviewDatasetData, {
|
|
145
167
|
modelValue: isShowBatchReviewDatasetData.value,
|
|
146
|
-
"onUpdate:modelValue": _cache[
|
|
168
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event)=>isShowBatchReviewDatasetData.value = $event),
|
|
147
169
|
"dataset-data-ids": _ctx.selectedDatasetDataIds,
|
|
148
170
|
"dataset-id": _ctx.datasetId,
|
|
149
171
|
"api-prefix": _ctx.apiPrefix,
|