@blueking/ai-ui-sdk 0.1.2-beta.10 → 0.1.2-beta.13
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-auth/auth-dialog-fn.d.ts +1 -1
- package/dist/components/render-auth/auth-dialog-fn.ts.js +2 -2
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +7 -4
- package/dist/components/render-auth/auth-dialog.vue.d.ts +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.vue.css +8 -8
- 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/edit-dataset-data/index.script.vue.js.js +159 -168
- 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 +3 -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 +85 -89
- 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 +6 -1
- 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.script.vue.js.js +54 -65
- 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 +3 -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 +8 -2
- 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/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.script.vue.js.js +11 -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/index.script.vue.js.js +43 -7
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/source-type-icon/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +0 -2
- package/dist/components/render-dataset/index.script.vue.js.js +28 -5
- 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 +10 -36
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +1 -3
- package/dist/components/render-dataset-detail/index.script.vue.js.js +85 -15
- 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 +40 -15
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +254 -172
- 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 +20 -4
- 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 +2 -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 +40 -14
- 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 +405 -266
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +5 -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.d.ts +16 -0
- package/dist/hooks/use-chat.ts.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +1 -1
- package/dist/hooks/use-dataset-http.ts.js +6 -3
- package/dist/hooks/use-permission-http.ts.js +2 -2
- package/dist/http/fetch/error-interceptor.ts.js +1 -6
- package/dist/http/helper/dataset.ts.js +7 -2
- package/dist/http/helper/permission.ts.js +3 -1
- package/dist/types/dataset.d.ts +7 -1
- package/dist/types/enum.d.ts +5 -2
- package/dist/types/enum.ts.js +3 -0
- package/dist/types/permission.d.ts +4 -1
- package/package.json +1 -1
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +0 -10
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js
CHANGED
@@ -3,18 +3,22 @@ import { unref as _unref, resolveComponent as _resolveComponent, createVNode as
|
|
3
3
|
const _hoisted_1 = {
|
4
4
|
class: "ellipsis-text"
|
5
5
|
};
|
6
|
-
const _hoisted_2 =
|
6
|
+
const _hoisted_2 = {
|
7
|
+
class: "g-more-menu"
|
8
|
+
};
|
9
|
+
const _hoisted_3 = [
|
7
10
|
"onClick"
|
8
11
|
];
|
9
|
-
const
|
12
|
+
const _hoisted_4 = [
|
10
13
|
"onClick"
|
11
14
|
];
|
12
15
|
import { ref, toRef, watch } from 'vue';
|
13
16
|
import EditDatasetData from '../../../render-dataset/components/edit-dataset-data/index.vue.js';
|
14
17
|
import OperationRecord from '../../../render-dataset/components/operation-record/index.vue.js';
|
15
18
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
19
|
+
import { usePermission } from '../../../../hooks/use-permission.ts.js';
|
16
20
|
import useTable from '../../../../hooks/use-table.ts.js';
|
17
|
-
import { DatasetDataSourceType } from '../../../../types/enum.ts.js';
|
21
|
+
import { DatasetDataSourceType, ResourcePermissionAction } from '../../../../types/enum.ts.js';
|
18
22
|
export default /*@__PURE__*/ _defineComponent({
|
19
23
|
props: {
|
20
24
|
apiPrefix: {},
|
@@ -22,7 +26,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
22
26
|
search: {},
|
23
27
|
schema: {},
|
24
28
|
selectedDatasetDatas: {},
|
25
|
-
spaceId: {}
|
29
|
+
spaceId: {},
|
30
|
+
manageDataset: {
|
31
|
+
type: Boolean
|
32
|
+
}
|
26
33
|
},
|
27
34
|
emits: [
|
28
35
|
"update:selectedDatasetDatas"
|
@@ -31,13 +38,39 @@ export default /*@__PURE__*/ _defineComponent({
|
|
31
38
|
const props = __props;
|
32
39
|
const emits = __emit;
|
33
40
|
const { getDatasetDataList, deleteDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
34
|
-
const
|
41
|
+
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
42
|
+
const isShowEditDatasetData = ref(false);
|
43
|
+
const isShowOperationRecord = ref(false);
|
44
|
+
const tempDatasetData = ref();
|
45
|
+
const tempDatasetDataIndex = ref();
|
46
|
+
const deleteRef = ref({});
|
47
|
+
const popoverRef = ref({});
|
35
48
|
const dataSourceMap = {
|
36
49
|
[DatasetDataSourceType.UploadFile]: '文件上传',
|
37
50
|
[DatasetDataSourceType.ApiReport]: 'API上报',
|
38
51
|
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
39
52
|
[DatasetDataSourceType.ManualImport]: '手动录入'
|
40
53
|
};
|
54
|
+
const handlePermissionMouseClick = (row, callBack)=>{
|
55
|
+
handleMouseClick(callBack, props.manageDataset, [
|
56
|
+
ResourcePermissionAction.ManageDataset
|
57
|
+
], props.datasetId);
|
58
|
+
};
|
59
|
+
const handleShowEditDatasetData = (row, index)=>{
|
60
|
+
isShowEditDatasetData.value = true;
|
61
|
+
tempDatasetData.value = row;
|
62
|
+
tempDatasetDataIndex.value = index;
|
63
|
+
};
|
64
|
+
const handleShowOperationRecord = (row)=>{
|
65
|
+
isShowOperationRecord.value = true;
|
66
|
+
tempDatasetData.value = row;
|
67
|
+
};
|
68
|
+
const handleHidePopover = (row)=>{
|
69
|
+
popoverRef.value[row.id].hide();
|
70
|
+
};
|
71
|
+
const handleShowDelete = (row)=>{
|
72
|
+
deleteRef.value[row.id].popoverRef.show();
|
73
|
+
};
|
41
74
|
const getTooltipContent = (column, row)=>{
|
42
75
|
return _createVNode2("section", {
|
43
76
|
"class": "g-white-space-pre-line g-max-height-80vh g-scrollbar-page"
|
@@ -45,13 +78,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
45
78
|
row.data[column.prop]
|
46
79
|
]);
|
47
80
|
};
|
48
|
-
const handleShowMore = (row)=>{
|
49
|
-
showMoreIds.value.push(row.id);
|
50
|
-
};
|
51
|
-
const handleHideMore = (row)=>{
|
52
|
-
showMoreIds.value = showMoreIds.value.filter((showMoreId)=>showMoreId !== row.id);
|
53
|
-
};
|
54
81
|
const handleDeleteDatasetData = (row)=>{
|
82
|
+
handleHidePopover(row);
|
55
83
|
deleteDatasetData(row.id).then(triggerApi);
|
56
84
|
};
|
57
85
|
const handleSelect = ({ checked, row })=>{
|
@@ -93,178 +121,232 @@ export default /*@__PURE__*/ _defineComponent({
|
|
93
121
|
triggerApi
|
94
122
|
});
|
95
123
|
return (_ctx, _cache)=>{
|
124
|
+
var _a;
|
96
125
|
const _component_bk_table_column = _resolveComponent("bk-table-column");
|
126
|
+
const _component_bk_button = _resolveComponent("bk-button");
|
97
127
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
98
128
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
99
129
|
const _component_bk_table = _resolveComponent("bk-table");
|
100
|
-
const _directive_clickoutside = _resolveDirective("clickoutside");
|
101
130
|
const _directive_bkloading = _resolveDirective("bkloading");
|
102
|
-
return
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
131
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [
|
132
|
+
_withDirectives((_openBlock(), _createBlock(_component_bk_table, {
|
133
|
+
class: "g-white-footer-table g-gray-header-table",
|
134
|
+
"max-height": "calc(100% - 48px)",
|
135
|
+
"empty-cell-text": "--",
|
136
|
+
"show-overflow-tooltip": "",
|
137
|
+
"remote-pagination": "",
|
138
|
+
pagination: _unref(pagination),
|
139
|
+
data: _unref(tableData),
|
140
|
+
"row-height": 56,
|
141
|
+
onPageLimitChange: _unref(handlePageSizeChange),
|
142
|
+
onPageValueChange: _unref(handlePageChange),
|
143
|
+
onSelect: handleSelect,
|
144
|
+
onSelectAll: handleSelectAll
|
145
|
+
}, {
|
146
|
+
default: _withCtx(()=>[
|
147
|
+
_createVNode(_component_bk_table_column, {
|
148
|
+
type: "selection",
|
149
|
+
fixed: "left",
|
150
|
+
width: "80",
|
151
|
+
align: "center"
|
152
|
+
}),
|
153
|
+
_createVNode(_component_bk_table_column, {
|
154
|
+
label: "ID",
|
155
|
+
field: "id",
|
156
|
+
width: "80"
|
157
|
+
}),
|
158
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Object.keys(_ctx.schema), (key)=>{
|
159
|
+
return _openBlock(), _createBlock(_component_bk_table_column, {
|
160
|
+
key: key,
|
161
|
+
prop: key,
|
162
|
+
label: key,
|
163
|
+
"show-overflow-tooltip": {
|
164
|
+
content: getTooltipContent,
|
165
|
+
popoverOption: {
|
166
|
+
maxWidth: 400,
|
167
|
+
placement: 'left',
|
168
|
+
theme: 'light'
|
169
|
+
}
|
139
170
|
}
|
140
|
-
}
|
171
|
+
}, {
|
172
|
+
default: _withCtx(({ row })=>[
|
173
|
+
_createElementVNode("span", _hoisted_1, _toDisplayString(row.data[key]), 1 /* TEXT */ )
|
174
|
+
]),
|
175
|
+
_: 2 /* DYNAMIC */
|
176
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
177
|
+
"prop",
|
178
|
+
"label",
|
179
|
+
"show-overflow-tooltip"
|
180
|
+
]);
|
181
|
+
}), 128 /* KEYED_FRAGMENT */ )),
|
182
|
+
_createVNode(_component_bk_table_column, {
|
183
|
+
label: "数据来源",
|
184
|
+
field: "sourceType",
|
185
|
+
width: "100"
|
141
186
|
}, {
|
142
187
|
default: _withCtx(({ row })=>[
|
143
|
-
|
144
|
-
]),
|
145
|
-
_: 2 /* DYNAMIC */
|
146
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
147
|
-
"prop",
|
148
|
-
"label",
|
149
|
-
"show-overflow-tooltip"
|
150
|
-
]);
|
151
|
-
}), 128 /* KEYED_FRAGMENT */ )),
|
152
|
-
_createVNode(_component_bk_table_column, {
|
153
|
-
label: "数据来源",
|
154
|
-
field: "sourceType",
|
155
|
-
width: "100"
|
156
|
-
}, {
|
157
|
-
default: _withCtx(({ row })=>[
|
158
|
-
_createTextVNode(_toDisplayString(dataSourceMap[row.sourceType] || '--'), 1 /* TEXT */ )
|
159
|
-
]),
|
160
|
-
_: 1 /* STABLE */
|
161
|
-
}),
|
162
|
-
_createVNode(_component_bk_table_column, {
|
163
|
-
label: "更新时间",
|
164
|
-
field: "updatedAt",
|
165
|
-
width: "228"
|
166
|
-
}),
|
167
|
-
_createVNode(_component_bk_table_column, {
|
168
|
-
label: "操作",
|
169
|
-
fixed: "right",
|
170
|
-
width: "210"
|
171
|
-
}, {
|
172
|
-
default: _withCtx(({ row, index })=>[
|
173
|
-
_createVNode(EditDatasetData, {
|
174
|
-
class: "g-mr-4",
|
175
|
-
index: index,
|
176
|
-
"dataset-id": _ctx.datasetId,
|
177
|
-
"api-prefix": _ctx.apiPrefix,
|
178
|
-
"space-id": _ctx.spaceId
|
179
|
-
}, null, 8 /* PROPS */ , [
|
180
|
-
"index",
|
181
|
-
"dataset-id",
|
182
|
-
"api-prefix",
|
183
|
-
"space-id"
|
188
|
+
_createTextVNode(_toDisplayString(dataSourceMap[row.sourceType] || '--'), 1 /* TEXT */ )
|
184
189
|
]),
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
190
|
+
_: 1 /* STABLE */
|
191
|
+
}),
|
192
|
+
_createVNode(_component_bk_table_column, {
|
193
|
+
label: "更新时间",
|
194
|
+
field: "updatedAt",
|
195
|
+
width: "228"
|
196
|
+
}),
|
197
|
+
_createVNode(_component_bk_table_column, {
|
198
|
+
label: "操作",
|
199
|
+
fixed: "right",
|
200
|
+
width: "210"
|
201
|
+
}, {
|
202
|
+
default: _withCtx(({ row, index })=>[
|
203
|
+
_createVNode(_component_bk_button, {
|
204
|
+
class: _normalizeClass({
|
205
|
+
'g-disabled': !_ctx.manageDataset,
|
206
|
+
'g-mr-4': true
|
207
|
+
}),
|
208
|
+
text: "",
|
209
|
+
theme: "primary",
|
210
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(_ctx.manageDataset)),
|
211
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, _ctx.manageDataset)),
|
212
|
+
onMouseleave: _unref(handleMouseLeave),
|
213
|
+
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowEditDatasetData(row, index))
|
214
|
+
}, {
|
215
|
+
default: _withCtx(()=>_cache[9] || (_cache[9] = [
|
216
|
+
_createTextVNode(" 编辑 ")
|
217
|
+
])),
|
218
|
+
_: 2 /* DYNAMIC */ ,
|
219
|
+
__: [
|
220
|
+
9
|
221
|
+
]
|
222
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
223
|
+
"class",
|
224
|
+
"onMouseleave",
|
225
|
+
"onClick"
|
226
|
+
]),
|
227
|
+
_createVNode(_component_bk_popover, {
|
228
|
+
placement: "bottom-start",
|
229
|
+
theme: "light",
|
230
|
+
"ext-cls": "empty-padding",
|
231
|
+
trigger: "click",
|
232
|
+
ref: (el)=>popoverRef.value[row.id] = el,
|
233
|
+
arrow: false
|
234
|
+
}, {
|
235
|
+
content: _withCtx(()=>[
|
236
|
+
_createElementVNode("ul", _hoisted_2, [
|
237
|
+
_createElementVNode("li", {
|
238
|
+
onClick: ($event)=>handleHidePopover(row)
|
239
|
+
}, [
|
240
|
+
_createVNode(_component_bk_button, {
|
241
|
+
text: "",
|
242
|
+
class: _normalizeClass({
|
243
|
+
'g-disabled': !_ctx.manageDataset
|
244
|
+
}),
|
245
|
+
onMouseenter: _cache[2] || (_cache[2] = ($event)=>_unref(handleMouseEnter)(_ctx.manageDataset)),
|
246
|
+
onMousemove: _cache[3] || (_cache[3] = (event)=>_unref(handleMouseMove)(event, _ctx.manageDataset)),
|
247
|
+
onMouseleave: _unref(handleMouseLeave),
|
248
|
+
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowOperationRecord(row))
|
249
|
+
}, {
|
250
|
+
default: _withCtx(()=>_cache[10] || (_cache[10] = [
|
251
|
+
_createTextVNode(" 操作记录 ")
|
252
|
+
])),
|
253
|
+
_: 2 /* DYNAMIC */ ,
|
254
|
+
__: [
|
255
|
+
10
|
256
|
+
]
|
257
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
258
|
+
"class",
|
259
|
+
"onMouseleave",
|
260
|
+
"onClick"
|
261
|
+
])
|
262
|
+
], 8 /* PROPS */ , _hoisted_3),
|
263
|
+
_createVNode(_component_bk_pop_confirm, {
|
264
|
+
trigger: "manual",
|
265
|
+
title: "确认删除?",
|
266
|
+
content: "删除操作无法撤回,请谨慎操作!",
|
267
|
+
placement: "left",
|
268
|
+
"ext-cls": "g-confirm-delete",
|
269
|
+
ref: (el)=>deleteRef.value[row.id] = el,
|
270
|
+
onConfirm: ($event)=>handleDeleteDatasetData(row)
|
271
|
+
}, {
|
272
|
+
default: _withCtx(()=>[
|
273
|
+
_createElementVNode("li", {
|
274
|
+
class: _normalizeClass({
|
275
|
+
'g-disabled': !_ctx.manageDataset
|
276
|
+
}),
|
277
|
+
onMouseenter: _cache[4] || (_cache[4] = ($event)=>_unref(handleMouseEnter)(_ctx.manageDataset)),
|
278
|
+
onMousemove: _cache[5] || (_cache[5] = (event)=>_unref(handleMouseMove)(event, _ctx.manageDataset)),
|
279
|
+
onMouseleave: _cache[6] || (_cache[6] = //@ts-ignore
|
280
|
+
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
281
|
+
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowDelete(row))
|
282
|
+
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_4)
|
283
|
+
]),
|
284
|
+
_: 2 /* DYNAMIC */
|
285
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
286
|
+
"onConfirm"
|
214
287
|
])
|
215
|
-
], 8 /* PROPS */ , _hoisted_3),
|
216
|
-
_createVNode(_component_bk_pop_confirm, {
|
217
|
-
trigger: "click",
|
218
|
-
title: "确认删除?",
|
219
|
-
content: "删除操作无法撤回,请谨慎操作!",
|
220
|
-
placement: "left",
|
221
|
-
"ext-cls": "g-confirm-delete",
|
222
|
-
onConfirm: ($event)=>handleDeleteDatasetData(row)
|
223
|
-
}, {
|
224
|
-
default: _withCtx(()=>_cache[0] || (_cache[0] = [
|
225
|
-
_createElementVNode("li", null, " 删除数据 ", -1 /* HOISTED */ )
|
226
|
-
])),
|
227
|
-
_: 2 /* DYNAMIC */ ,
|
228
|
-
__: [
|
229
|
-
0
|
230
|
-
]
|
231
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
232
|
-
"onConfirm"
|
233
288
|
])
|
234
|
-
]
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
])
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
289
|
+
]),
|
290
|
+
default: _withCtx(()=>[
|
291
|
+
_cache[11] || (_cache[11] = _createElementVNode("i", {
|
292
|
+
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
293
|
+
}, null, -1 /* HOISTED */ ))
|
294
|
+
]),
|
295
|
+
_: 2 /* DYNAMIC */ ,
|
296
|
+
__: [
|
297
|
+
11
|
298
|
+
]
|
299
|
+
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
300
|
+
]),
|
301
|
+
_: 1 /* STABLE */
|
302
|
+
})
|
303
|
+
]),
|
304
|
+
_: 1 /* STABLE */
|
305
|
+
}, 8 /* PROPS */ , [
|
306
|
+
"pagination",
|
307
|
+
"data",
|
308
|
+
"onPageLimitChange",
|
309
|
+
"onPageValueChange"
|
310
|
+
])), [
|
311
|
+
[
|
312
|
+
_directive_bkloading,
|
313
|
+
{
|
314
|
+
loading: _unref(isLoading),
|
315
|
+
zIndex: 2
|
316
|
+
}
|
317
|
+
]
|
318
|
+
]),
|
319
|
+
_createVNode(OperationRecord, {
|
320
|
+
modelValue: isShowOperationRecord.value,
|
321
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event)=>isShowOperationRecord.value = $event),
|
322
|
+
"dataset-id": _ctx.datasetId,
|
323
|
+
"dataset-data-id": (_a = tempDatasetData.value) === null || _a === void 0 ? void 0 : _a.id,
|
324
|
+
"api-prefix": _ctx.apiPrefix,
|
325
|
+
"space-id": _ctx.spaceId
|
326
|
+
}, null, 8 /* PROPS */ , [
|
327
|
+
"modelValue",
|
328
|
+
"dataset-id",
|
329
|
+
"dataset-data-id",
|
330
|
+
"api-prefix",
|
331
|
+
"space-id"
|
332
|
+
]),
|
333
|
+
_createVNode(EditDatasetData, {
|
334
|
+
modelValue: isShowEditDatasetData.value,
|
335
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event)=>isShowEditDatasetData.value = $event),
|
336
|
+
index: tempDatasetDataIndex.value,
|
337
|
+
"dataset-id": _ctx.datasetId,
|
338
|
+
"api-prefix": _ctx.apiPrefix,
|
339
|
+
"space-id": _ctx.spaceId,
|
340
|
+
"manage-dataset": _ctx.manageDataset
|
341
|
+
}, null, 8 /* PROPS */ , [
|
342
|
+
"modelValue",
|
343
|
+
"index",
|
344
|
+
"dataset-id",
|
345
|
+
"api-prefix",
|
346
|
+
"space-id",
|
347
|
+
"manage-dataset"
|
348
|
+
])
|
349
|
+
], 64 /* STABLE_FRAGMENT */ );
|
268
350
|
};
|
269
351
|
}
|
270
352
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-epge5mvk";
|
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;
|
@@ -20,7 +20,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
20
20
|
props: {
|
21
21
|
apiPrefix: {},
|
22
22
|
datasetId: {},
|
23
|
-
spaceId: {}
|
23
|
+
spaceId: {},
|
24
|
+
manageDataset: {
|
25
|
+
type: Boolean
|
26
|
+
},
|
27
|
+
isInternal: {
|
28
|
+
type: Boolean
|
29
|
+
}
|
24
30
|
},
|
25
31
|
setup (__props) {
|
26
32
|
const props = __props;
|
@@ -60,22 +66,30 @@ export default /*@__PURE__*/ _defineComponent({
|
|
60
66
|
"api-prefix": _ctx.apiPrefix,
|
61
67
|
"space-id": _ctx.spaceId,
|
62
68
|
"disabled-choose-dataset": true,
|
69
|
+
"manage-dataset": _ctx.manageDataset,
|
63
70
|
"dataset-data": datasetData,
|
71
|
+
"is-internal": _ctx.isInternal,
|
64
72
|
onSuccessPlus: handleUpdate
|
65
73
|
}, null, 8 /* PROPS */ , [
|
66
74
|
"api-prefix",
|
67
|
-
"space-id"
|
75
|
+
"space-id",
|
76
|
+
"manage-dataset",
|
77
|
+
"is-internal"
|
68
78
|
]),
|
69
79
|
_createVNode(RenderBatchOperation, {
|
70
80
|
"selected-dataset-datas": selectedDatasetDatas.value,
|
71
81
|
"onUpdate:selectedDatasetDatas": _cache[0] || (_cache[0] = ($event)=>selectedDatasetDatas.value = $event),
|
72
82
|
"api-prefix": _ctx.apiPrefix,
|
73
83
|
"space-id": _ctx.spaceId,
|
84
|
+
"dataset-id": _ctx.datasetId,
|
85
|
+
"manage-dataset": _ctx.manageDataset,
|
74
86
|
onSuccessDelete: handleUpdate
|
75
87
|
}, null, 8 /* PROPS */ , [
|
76
88
|
"selected-dataset-datas",
|
77
89
|
"api-prefix",
|
78
|
-
"space-id"
|
90
|
+
"space-id",
|
91
|
+
"dataset-id",
|
92
|
+
"manage-dataset"
|
79
93
|
])
|
80
94
|
]),
|
81
95
|
_createVNode(RenderSearchDatasetData, {
|
@@ -96,6 +110,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
96
110
|
"dataset-id": _ctx.datasetId,
|
97
111
|
search: search.value,
|
98
112
|
schema: schema.value,
|
113
|
+
"manage-dataset": _ctx.manageDataset,
|
99
114
|
ref_key: "tableRef",
|
100
115
|
ref: tableRef
|
101
116
|
}, null, 8 /* PROPS */ , [
|
@@ -104,7 +119,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
104
119
|
"space-id",
|
105
120
|
"dataset-id",
|
106
121
|
"search",
|
107
|
-
"schema"
|
122
|
+
"schema",
|
123
|
+
"manage-dataset"
|
108
124
|
])
|
109
125
|
])) : _createCommentVNode("v-if", true)
|
110
126
|
]),
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-at90fsiu] {
|
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-at90fsiu] {
|
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-at90fsiu] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -2,6 +2,8 @@ interface IProps {
|
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
4
|
spaceId?: string;
|
5
|
+
manageDataset: boolean;
|
6
|
+
isInternal?: boolean;
|
5
7
|
}
|
6
8
|
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>;
|
7
9
|
export default _default;
|