@blueking/ai-ui-sdk 0.1.0-beta.1 → 0.1.0-beta.11
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/common/util.d.ts +6 -0
- package/dist/common/util.ts.js +16 -0
- package/dist/components/render-aside/index.script.vue.js +4 -4
- 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-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 +367 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +15 -0
- package/dist/components/{render-dataset-detail-origin-data/components/operation-record → render-dataset/components/edit-dataset-data}/index.vue.d.ts +4 -4
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +139 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/index.vue.css +4 -4
- package/dist/components/{render-dataset-detail-origin-data/components/operation-record/table → render-dataset/components/operation-record}/index.vue.d.ts +2 -2
- package/dist/components/render-dataset/components/operation-record/index.vue.js +5 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/table/index.script.vue.js.js +35 -39
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +7 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +5 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/view-op-result/index.script.vue.js.js +21 -19
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +12 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/view-op-result/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +5 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +3 -3
- package/dist/components/render-dataset/components/plus-dataset/{dataset-form.script.vue.js.js → dataset-form.script.vue.js} +95 -129
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.js +1 -3
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +14 -8
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +4 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +3 -2
- 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 +15 -6
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +68 -15
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +3 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +3 -2
- 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 +97 -33
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +7 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +4 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +2 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js +202 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +8 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +3 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +14 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +9 -3
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +119 -0
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +10 -1
- package/dist/components/render-dataset/components/search-dataset/index.vue.js +1 -2
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +59 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +11 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.js +3 -0
- package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +69 -0
- package/dist/components/{render-dataset-detail-origin-data/components/edit-data → render-dataset/components/search-operation-record}/index.vue.d.ts +5 -6
- package/dist/components/render-dataset/components/search-operation-record/index.vue.js +3 -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.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 +18 -4
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +41 -12
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +5 -1
- package/dist/components/render-dataset-detail/index.script.vue.js.js +11 -1
- package/dist/components/render-dataset-detail/index.vue.d.ts +5 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +88 -11
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +12 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +265 -0
- 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 +12 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +2 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +88 -28
- 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 +28 -7
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +6 -1
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +128 -53
- 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 +6 -1
- 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.script.vue.js.js +2 -2
- 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.script.vue.js.js +8 -8
- 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/components/render-search-select/index.script.vue.js.js +137 -0
- package/dist/components/render-search-select/index.vue.d.ts +31 -0
- package/dist/components/render-search-select/index.vue.js +3 -0
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +36 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +38 -2
- package/dist/event/index.ts.js +1 -2
- package/dist/hooks/use-click-proxy.ts.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +21 -8
- package/dist/hooks/use-dataset-http.ts.js +57 -34
- package/dist/http/fetch/error-interceptor.d.ts +1 -1
- package/dist/http/fetch/error-interceptor.ts.js +15 -25
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/fetch/success-interceptor.ts.js +7 -4
- package/dist/http/helper/agent.d.ts +1 -1
- package/dist/http/helper/dataset.d.ts +14 -21
- package/dist/http/helper/dataset.ts.js +155 -95
- package/dist/types/common.d.ts +9 -0
- package/dist/types/dataset.d.ts +84 -83
- package/dist/types/enum.d.ts +15 -19
- package/dist/types/enum.ts.js +19 -22
- package/package.json +5 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +0 -15
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +0 -163
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js +0 -7
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.script.vue.js.js +0 -268
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.css +0 -38
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.script.vue.js.js +0 -89
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.css +0 -6
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/search/index.script.vue.js +0 -7
- package/dist/components/render-dataset-detail-origin-data/components/search/index.vue.d.ts +0 -2
- package/dist/components/render-dataset-detail-origin-data/components/search/index.vue.js +0 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js +0 -216
@@ -1,268 +0,0 @@
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
2
|
-
try {
|
3
|
-
var info = gen[key](arg);
|
4
|
-
var value = info.value;
|
5
|
-
} catch (error) {
|
6
|
-
reject(error);
|
7
|
-
return;
|
8
|
-
}
|
9
|
-
if (info.done) {
|
10
|
-
resolve(value);
|
11
|
-
} else {
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
13
|
-
}
|
14
|
-
}
|
15
|
-
function _async_to_generator(fn) {
|
16
|
-
return function() {
|
17
|
-
var self = this, args = arguments;
|
18
|
-
return new Promise(function(resolve, reject) {
|
19
|
-
var gen = fn.apply(self, args);
|
20
|
-
function _next(value) {
|
21
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
22
|
-
}
|
23
|
-
function _throw(err) {
|
24
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
25
|
-
}
|
26
|
-
_next(undefined);
|
27
|
-
});
|
28
|
-
};
|
29
|
-
}
|
30
|
-
function _define_property(obj, key, value) {
|
31
|
-
if (key in obj) {
|
32
|
-
Object.defineProperty(obj, key, {
|
33
|
-
value: value,
|
34
|
-
enumerable: true,
|
35
|
-
configurable: true,
|
36
|
-
writable: true
|
37
|
-
});
|
38
|
-
} else {
|
39
|
-
obj[key] = value;
|
40
|
-
}
|
41
|
-
return obj;
|
42
|
-
}
|
43
|
-
function _object_spread(target) {
|
44
|
-
for(var i = 1; i < arguments.length; i++){
|
45
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
46
|
-
var ownKeys = Object.keys(source);
|
47
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
48
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
49
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
50
|
-
}));
|
51
|
-
}
|
52
|
-
ownKeys.forEach(function(key) {
|
53
|
-
_define_property(target, key, source[key]);
|
54
|
-
});
|
55
|
-
}
|
56
|
-
return target;
|
57
|
-
}
|
58
|
-
import { defineComponent as _defineComponent } from 'vue';
|
59
|
-
import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createSlots as _createSlots } from "vue";
|
60
|
-
const _hoisted_1 = {
|
61
|
-
class: "g-flex-row g-justify-between"
|
62
|
-
};
|
63
|
-
const _hoisted_2 = {
|
64
|
-
class: "id"
|
65
|
-
};
|
66
|
-
const _hoisted_3 = {
|
67
|
-
class: "content"
|
68
|
-
};
|
69
|
-
const _hoisted_4 = {
|
70
|
-
class: "value-content"
|
71
|
-
};
|
72
|
-
import { EditLine } from 'bkui-vue/lib/icon';
|
73
|
-
import { nextTick, ref, watch } from 'vue';
|
74
|
-
import Collapse from '../../../render-collapse/index.vue.js';
|
75
|
-
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
76
|
-
export default /*@__PURE__*/ _defineComponent({
|
77
|
-
props: {
|
78
|
-
isShow: {
|
79
|
-
type: Boolean
|
80
|
-
},
|
81
|
-
data: {},
|
82
|
-
apiPrefix: {}
|
83
|
-
},
|
84
|
-
emits: [
|
85
|
-
"update:isShow"
|
86
|
-
],
|
87
|
-
setup (__props, { emit: __emit }) {
|
88
|
-
const props = __props;
|
89
|
-
const emits = __emit;
|
90
|
-
const { updateDatasetData } = useDatasetHttp(props.apiPrefix);
|
91
|
-
const pagination = {
|
92
|
-
current: 1,
|
93
|
-
limit: 10,
|
94
|
-
count: 10
|
95
|
-
};
|
96
|
-
const mode = ref('view');
|
97
|
-
const editTextarea = ref();
|
98
|
-
const formData = ref();
|
99
|
-
const editData = ref({
|
100
|
-
key: '',
|
101
|
-
value: ''
|
102
|
-
});
|
103
|
-
watch(()=>props.isShow, (val)=>{
|
104
|
-
if (val) {
|
105
|
-
mode.value = 'view';
|
106
|
-
formData.value = _object_spread({}, props.data);
|
107
|
-
}
|
108
|
-
});
|
109
|
-
const handleEdit = (key, value)=>{
|
110
|
-
editData.value = {
|
111
|
-
key,
|
112
|
-
value
|
113
|
-
};
|
114
|
-
mode.value = 'edit';
|
115
|
-
nextTick(()=>{
|
116
|
-
if (editTextarea.value) {
|
117
|
-
editTextarea.value.focus();
|
118
|
-
}
|
119
|
-
});
|
120
|
-
};
|
121
|
-
const handleClose = ()=>{
|
122
|
-
emits('update:isShow', false);
|
123
|
-
return true;
|
124
|
-
};
|
125
|
-
const handleConfirm = function() {
|
126
|
-
var _ref = _async_to_generator(function*() {
|
127
|
-
formData.value.data[editData.value.key] = editData.value.value;
|
128
|
-
yield updateDatasetData(formData.value, formData.value.id);
|
129
|
-
mode.value = 'view';
|
130
|
-
});
|
131
|
-
return function handleConfirm() {
|
132
|
-
return _ref.apply(this, arguments);
|
133
|
-
};
|
134
|
-
}();
|
135
|
-
return (_ctx, _cache)=>{
|
136
|
-
const _component_bk_pagination = _resolveComponent("bk-pagination");
|
137
|
-
const _component_bk_input = _resolveComponent("bk-input");
|
138
|
-
const _component_bk_button = _resolveComponent("bk-button");
|
139
|
-
const _component_bk_sideslider = _resolveComponent("bk-sideslider");
|
140
|
-
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
141
|
-
return _openBlock(), _createBlock(_component_bk_sideslider, {
|
142
|
-
class: "data-set-edit-slider",
|
143
|
-
width: 960,
|
144
|
-
"is-show": _ctx.isShow,
|
145
|
-
"before-close": handleClose
|
146
|
-
}, _createSlots({
|
147
|
-
header: _withCtx(()=>[
|
148
|
-
_createElementVNode("div", _hoisted_1, [
|
149
|
-
_cache[3] || (_cache[3] = _createElementVNode("span", null, "编辑数据", -1 /* HOISTED */ )),
|
150
|
-
_createElementVNode("span", _hoisted_2, _toDisplayString(`#${_ctx.data.id}`), 1 /* TEXT */ )
|
151
|
-
]),
|
152
|
-
_createVNode(_component_bk_pagination, {
|
153
|
-
modelValue: pagination.current,
|
154
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>pagination.current = $event),
|
155
|
-
class: "g-mr-24",
|
156
|
-
small: "",
|
157
|
-
count: 10,
|
158
|
-
limit: 1,
|
159
|
-
"limit-list": [
|
160
|
-
1
|
161
|
-
],
|
162
|
-
layout: [
|
163
|
-
'list'
|
164
|
-
]
|
165
|
-
}, null, 8 /* PROPS */ , [
|
166
|
-
"modelValue"
|
167
|
-
])
|
168
|
-
]),
|
169
|
-
default: _withCtx(()=>[
|
170
|
-
_createElementVNode("section", _hoisted_3, [
|
171
|
-
mode.value === 'view' ? (_openBlock(true), _createElementBlock(_Fragment, {
|
172
|
-
key: 0
|
173
|
-
}, _renderList(_ctx.data.data, (value, key)=>{
|
174
|
-
return _openBlock(), _createElementBlock("div", {
|
175
|
-
class: "g-mb-16",
|
176
|
-
key: key
|
177
|
-
}, [
|
178
|
-
_createVNode(Collapse, {
|
179
|
-
title: key
|
180
|
-
}, {
|
181
|
-
suffix: _withCtx(()=>[
|
182
|
-
_createVNode(_unref(EditLine), {
|
183
|
-
class: "g-ml-10 g-text-blue g-cursor-pointer",
|
184
|
-
onClick: ($event)=>handleEdit(key, value)
|
185
|
-
}, null, 8 /* PROPS */ , [
|
186
|
-
"onClick"
|
187
|
-
])
|
188
|
-
]),
|
189
|
-
default: _withCtx(()=>[
|
190
|
-
_createElementVNode("div", _hoisted_4, [
|
191
|
-
_createElementVNode("span", null, _toDisplayString(value), 1 /* TEXT */ )
|
192
|
-
])
|
193
|
-
]),
|
194
|
-
_: 2 /* DYNAMIC */
|
195
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
196
|
-
"title"
|
197
|
-
])
|
198
|
-
]);
|
199
|
-
}), 128 /* KEYED_FRAGMENT */ )) : (_openBlock(), _createBlock(Collapse, {
|
200
|
-
key: 1,
|
201
|
-
title: `编辑${editData.value.key}`
|
202
|
-
}, {
|
203
|
-
default: _withCtx(()=>[
|
204
|
-
_createVNode(_component_bk_input, {
|
205
|
-
modelValue: editData.value.value,
|
206
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>editData.value.value = $event),
|
207
|
-
ref_key: "editTextarea",
|
208
|
-
ref: editTextarea,
|
209
|
-
class: "edit-textarea",
|
210
|
-
type: "textarea",
|
211
|
-
resize: false
|
212
|
-
}, null, 8 /* PROPS */ , [
|
213
|
-
"modelValue"
|
214
|
-
])
|
215
|
-
]),
|
216
|
-
_: 1 /* STABLE */
|
217
|
-
}, 8 /* PROPS */ , [
|
218
|
-
"title"
|
219
|
-
]))
|
220
|
-
])
|
221
|
-
]),
|
222
|
-
_: 2 /* DYNAMIC */
|
223
|
-
}, [
|
224
|
-
mode.value === 'edit' ? {
|
225
|
-
name: "footer",
|
226
|
-
fn: _withCtx(()=>[
|
227
|
-
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
228
|
-
class: "footer-button",
|
229
|
-
theme: "primary",
|
230
|
-
onClick: handleConfirm
|
231
|
-
}, {
|
232
|
-
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
233
|
-
_createTextVNode(" 保存 ")
|
234
|
-
])),
|
235
|
-
_: 1 /* STABLE */ ,
|
236
|
-
__: [
|
237
|
-
4
|
238
|
-
]
|
239
|
-
})), [
|
240
|
-
[
|
241
|
-
_directive_bk_tooltips,
|
242
|
-
{
|
243
|
-
content: '如数据已审核通过,重新编辑\n后,将会重新进入待审核状态',
|
244
|
-
placement: 'top'
|
245
|
-
}
|
246
|
-
]
|
247
|
-
]),
|
248
|
-
_createVNode(_component_bk_button, {
|
249
|
-
class: "footer-button",
|
250
|
-
onClick: _cache[2] || (_cache[2] = ($event)=>mode.value = 'view')
|
251
|
-
}, {
|
252
|
-
default: _withCtx(()=>_cache[5] || (_cache[5] = [
|
253
|
-
_createTextVNode(" 取消 ")
|
254
|
-
])),
|
255
|
-
_: 1 /* STABLE */ ,
|
256
|
-
__: [
|
257
|
-
5
|
258
|
-
]
|
259
|
-
})
|
260
|
-
]),
|
261
|
-
key: "0"
|
262
|
-
} : undefined
|
263
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
264
|
-
"is-show"
|
265
|
-
]);
|
266
|
-
};
|
267
|
-
}
|
268
|
-
});
|
package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.css
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
|
2
|
-
.content[data-v-vvysz3x4] {
|
3
|
-
padding: 18px 24px 0;
|
4
|
-
height: 100%;
|
5
|
-
overflow: auto;
|
6
|
-
}
|
7
|
-
.data-set-edit-slider .value-content[data-v-vvysz3x4] {
|
8
|
-
margin-top: 8px;
|
9
|
-
padding: 16px;
|
10
|
-
border: 1px solid #DCDEE5;
|
11
|
-
}
|
12
|
-
.data-set-edit-slider[data-v-vvysz3x4] .bk-sideslider-title {
|
13
|
-
justify-content: space-between;
|
14
|
-
width: 100%;
|
15
|
-
}
|
16
|
-
.data-set-edit-slider[data-v-vvysz3x4] .bk-sideslider-title .id::before {
|
17
|
-
content: '';
|
18
|
-
display: inline-block;
|
19
|
-
width: 1px;
|
20
|
-
height: 14px;
|
21
|
-
background: #DCDEE5;
|
22
|
-
margin: 0 8px 0 16px;
|
23
|
-
}
|
24
|
-
.data-set-edit-slider[data-v-vvysz3x4] .bk-sideslider-content {
|
25
|
-
height: calc(100vh - 60px - 56px);
|
26
|
-
}
|
27
|
-
.data-set-edit-slider[data-v-vvysz3x4] .bk-sideslider-content .edit-textarea {
|
28
|
-
height: calc(100% - 40px);
|
29
|
-
margin-top: 8px;
|
30
|
-
}
|
31
|
-
.data-set-edit-slider[data-v-vvysz3x4] .bk-sideslider-content .edit-textarea textarea {
|
32
|
-
padding: 16px;
|
33
|
-
height: 100%;
|
34
|
-
}
|
35
|
-
.footer-button[data-v-vvysz3x4] {
|
36
|
-
width: 88px;
|
37
|
-
margin-right: 8px;
|
38
|
-
}
|
@@ -1,89 +0,0 @@
|
|
1
|
-
import { defineComponent as _defineComponent } from 'vue';
|
2
|
-
import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
3
|
-
const _hoisted_1 = {
|
4
|
-
class: "content"
|
5
|
-
};
|
6
|
-
const _hoisted_2 = {
|
7
|
-
class: "toolbar"
|
8
|
-
};
|
9
|
-
import { ref } from 'vue';
|
10
|
-
import RecordTable from './table/index.vue.js';
|
11
|
-
export default /*@__PURE__*/ _defineComponent({
|
12
|
-
props: {
|
13
|
-
isShow: {
|
14
|
-
type: Boolean
|
15
|
-
},
|
16
|
-
id: {},
|
17
|
-
apiPrefix: {}
|
18
|
-
},
|
19
|
-
emits: [
|
20
|
-
"update:isShow"
|
21
|
-
],
|
22
|
-
setup (__props, { emit: __emit }) {
|
23
|
-
const emits = __emit;
|
24
|
-
const date = ref();
|
25
|
-
const searchParam = ref();
|
26
|
-
const handleClose = ()=>{
|
27
|
-
emits('update:isShow', false);
|
28
|
-
return true;
|
29
|
-
};
|
30
|
-
const handleDateChange = (value)=>{
|
31
|
-
console.log('选择的时间范围', value);
|
32
|
-
date.value = value;
|
33
|
-
};
|
34
|
-
return (_ctx, _cache)=>{
|
35
|
-
const _component_bk_search_select = _resolveComponent("bk-search-select");
|
36
|
-
const _component_bk_date_picker = _resolveComponent("bk-date-picker");
|
37
|
-
const _component_bk_sideslider = _resolveComponent("bk-sideslider");
|
38
|
-
return _openBlock(), _createBlock(_component_bk_sideslider, {
|
39
|
-
title: "操作记录",
|
40
|
-
class: "record-slider",
|
41
|
-
width: 960,
|
42
|
-
"is-show": _ctx.isShow,
|
43
|
-
"before-close": handleClose
|
44
|
-
}, {
|
45
|
-
default: _withCtx(()=>[
|
46
|
-
_createElementVNode("section", _hoisted_1, [
|
47
|
-
_createElementVNode("section", _hoisted_2, [
|
48
|
-
_createVNode(_component_bk_search_select, {
|
49
|
-
modelValue: searchParam.value,
|
50
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>searchParam.value = $event),
|
51
|
-
placeholder: "操作对象、操作类型、操作状态、操作结果、操作人",
|
52
|
-
class: "record-search"
|
53
|
-
}, null, 8 /* PROPS */ , [
|
54
|
-
"modelValue"
|
55
|
-
]),
|
56
|
-
_createVNode(_component_bk_date_picker, {
|
57
|
-
ref: "datePickerRef",
|
58
|
-
class: "record-data-picker",
|
59
|
-
type: "datetimerange",
|
60
|
-
"append-to-body": "",
|
61
|
-
clearable: "",
|
62
|
-
format: "yyyy-MM-dd",
|
63
|
-
"model-value": date.value,
|
64
|
-
"time-picker-options": {
|
65
|
-
allowCrossDay: true
|
66
|
-
},
|
67
|
-
onChange: handleDateChange
|
68
|
-
}, null, 8 /* PROPS */ , [
|
69
|
-
"model-value"
|
70
|
-
])
|
71
|
-
]),
|
72
|
-
_createVNode(RecordTable, {
|
73
|
-
id: _ctx.id,
|
74
|
-
"search-param": searchParam.value,
|
75
|
-
"api-prefix": _ctx.apiPrefix
|
76
|
-
}, null, 8 /* PROPS */ , [
|
77
|
-
"id",
|
78
|
-
"search-param",
|
79
|
-
"api-prefix"
|
80
|
-
])
|
81
|
-
])
|
82
|
-
]),
|
83
|
-
_: 1 /* STABLE */
|
84
|
-
}, 8 /* PROPS */ , [
|
85
|
-
"is-show"
|
86
|
-
]);
|
87
|
-
};
|
88
|
-
}
|
89
|
-
});
|
package/dist/components/render-dataset-detail-origin-data/components/search/index.script.vue.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
2
|
-
export function render(_ctx, _cache) {
|
3
|
-
const _component_bk_search_select = _resolveComponent("bk-search-select");
|
4
|
-
return _openBlock(), _createBlock(_component_bk_search_select, {
|
5
|
-
placeholder: "数据状态、质量等级、instruction、input、output、数据来源"
|
6
|
-
});
|
7
|
-
}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js
DELETED
@@ -1,216 +0,0 @@
|
|
1
|
-
import { defineComponent as _defineComponent } from 'vue';
|
2
|
-
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
3
|
-
const _hoisted_1 = {
|
4
|
-
class: "ellipsis-text"
|
5
|
-
};
|
6
|
-
const _hoisted_2 = {
|
7
|
-
class: "g-more-menu"
|
8
|
-
};
|
9
|
-
const _hoisted_3 = [
|
10
|
-
"onClick"
|
11
|
-
];
|
12
|
-
import { onBeforeMount, ref } from 'vue';
|
13
|
-
import EditData from '../edit-data/index.vue.js';
|
14
|
-
import OperationRecord from '../operation-record/index.vue.js';
|
15
|
-
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
16
|
-
import useTable from '../../../../hooks/use-table.ts.js';
|
17
|
-
import { DatasetDataSourceType } from '../../../../types/enum.ts.js';
|
18
|
-
export default /*@__PURE__*/ _defineComponent({
|
19
|
-
props: {
|
20
|
-
apiPrefix: {}
|
21
|
-
},
|
22
|
-
setup (__props) {
|
23
|
-
const props = __props;
|
24
|
-
const { getDatasetDataList } = useDatasetHttp(props.apiPrefix);
|
25
|
-
const tableRef = ref();
|
26
|
-
const isShowOperationRecord = ref(false);
|
27
|
-
const isShowEditData = ref(false);
|
28
|
-
const activeData = ref();
|
29
|
-
const dataSourceMap = {
|
30
|
-
[DatasetDataSourceType.UploadFile]: '文件上传',
|
31
|
-
[DatasetDataSourceType.ApiReport]: 'API上报',
|
32
|
-
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
33
|
-
[DatasetDataSourceType.ManualImport]: '手动录入'
|
34
|
-
};
|
35
|
-
onBeforeMount(()=>{
|
36
|
-
triggerApi();
|
37
|
-
});
|
38
|
-
const handleEdit = (row)=>{
|
39
|
-
activeData.value = row;
|
40
|
-
isShowEditData.value = true;
|
41
|
-
};
|
42
|
-
const handleOpenOperationRecord = (row)=>{
|
43
|
-
activeData.value = row;
|
44
|
-
isShowOperationRecord.value = true;
|
45
|
-
};
|
46
|
-
const handleGetDatasetDataList = (params)=>{
|
47
|
-
isLoading.value = true;
|
48
|
-
return getDatasetDataList(params).then((res)=>{
|
49
|
-
console.log('获取数据集数据列表', res);
|
50
|
-
tableData.value = res;
|
51
|
-
}).finally(()=>{
|
52
|
-
isLoading.value = false;
|
53
|
-
});
|
54
|
-
};
|
55
|
-
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, // resetPagination,
|
56
|
-
// handleSort,
|
57
|
-
triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
58
|
-
current: 1,
|
59
|
-
limit: 20,
|
60
|
-
count: 0
|
61
|
-
});
|
62
|
-
return (_ctx, _cache)=>{
|
63
|
-
var _activeData_value;
|
64
|
-
const _component_bk_table_column = _resolveComponent("bk-table-column");
|
65
|
-
const _component_bk_button = _resolveComponent("bk-button");
|
66
|
-
const _component_bk_popover = _resolveComponent("bk-popover");
|
67
|
-
const _component_bk_table = _resolveComponent("bk-table");
|
68
|
-
const _directive_bkloading = _resolveDirective("bkloading");
|
69
|
-
return _openBlock(), _createElementBlock(_Fragment, null, [
|
70
|
-
_withDirectives((_openBlock(), _createBlock(_component_bk_table, {
|
71
|
-
ref_key: "tableRef",
|
72
|
-
ref: tableRef,
|
73
|
-
class: "g-white-footer-table g-gray-header-table",
|
74
|
-
"max-height": "calc(100% - 48px)",
|
75
|
-
"empty-cell-text": "--",
|
76
|
-
"show-overflow-tooltip": "",
|
77
|
-
"remote-pagination": "",
|
78
|
-
pagination: _unref(pagination),
|
79
|
-
data: _unref(tableData),
|
80
|
-
"row-height": 56,
|
81
|
-
onPageLimitChange: _unref(handlePageSizeChange),
|
82
|
-
onPageValueChange: _unref(handlePageChange)
|
83
|
-
}, {
|
84
|
-
default: _withCtx(()=>[
|
85
|
-
_createVNode(_component_bk_table_column, {
|
86
|
-
type: "selection",
|
87
|
-
fixed: "left",
|
88
|
-
width: "80",
|
89
|
-
align: "center"
|
90
|
-
}),
|
91
|
-
_createVNode(_component_bk_table_column, {
|
92
|
-
label: "ID",
|
93
|
-
field: "id",
|
94
|
-
width: "80"
|
95
|
-
}),
|
96
|
-
_unref(tableData).length > 0 ? (_openBlock(true), _createElementBlock(_Fragment, {
|
97
|
-
key: 0
|
98
|
-
}, _renderList(_unref(tableData)[0].data, (value, key)=>{
|
99
|
-
return _openBlock(), _createBlock(_component_bk_table_column, {
|
100
|
-
key: key,
|
101
|
-
prop: key,
|
102
|
-
label: key
|
103
|
-
}, {
|
104
|
-
default: _withCtx(({ row })=>[
|
105
|
-
_createElementVNode("span", _hoisted_1, _toDisplayString(row.data[key]), 1 /* TEXT */ )
|
106
|
-
]),
|
107
|
-
_: 2 /* DYNAMIC */
|
108
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
109
|
-
"prop",
|
110
|
-
"label"
|
111
|
-
]);
|
112
|
-
}), 128 /* KEYED_FRAGMENT */ )) : _createCommentVNode("v-if", true),
|
113
|
-
_createVNode(_component_bk_table_column, {
|
114
|
-
label: "数据来源",
|
115
|
-
field: "sourceType",
|
116
|
-
width: "100"
|
117
|
-
}, {
|
118
|
-
default: _withCtx(({ row })=>[
|
119
|
-
_createTextVNode(_toDisplayString(dataSourceMap[row.sourceType] || '--'), 1 /* TEXT */ )
|
120
|
-
]),
|
121
|
-
_: 1 /* STABLE */
|
122
|
-
}),
|
123
|
-
_createVNode(_component_bk_table_column, {
|
124
|
-
label: "更新时间",
|
125
|
-
field: "updatedAt",
|
126
|
-
width: "228"
|
127
|
-
}),
|
128
|
-
_createVNode(_component_bk_table_column, {
|
129
|
-
label: "操作",
|
130
|
-
fixed: "right",
|
131
|
-
width: "210"
|
132
|
-
}, {
|
133
|
-
default: _withCtx(({ row })=>[
|
134
|
-
_createVNode(_component_bk_button, {
|
135
|
-
class: "g-mr-12",
|
136
|
-
text: "",
|
137
|
-
theme: "primary",
|
138
|
-
onClick: ($event)=>handleEdit(row)
|
139
|
-
}, {
|
140
|
-
default: _withCtx(()=>_cache[2] || (_cache[2] = [
|
141
|
-
_createTextVNode("编辑")
|
142
|
-
])),
|
143
|
-
_: 2 /* DYNAMIC */ ,
|
144
|
-
__: [
|
145
|
-
2
|
146
|
-
]
|
147
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
148
|
-
"onClick"
|
149
|
-
]),
|
150
|
-
_createVNode(_component_bk_popover, {
|
151
|
-
placement: "bottom-start",
|
152
|
-
theme: "light",
|
153
|
-
"ext-cls": "empty-padding",
|
154
|
-
ref: "popoverRef"
|
155
|
-
}, {
|
156
|
-
content: _withCtx(()=>[
|
157
|
-
_createElementVNode("ul", _hoisted_2, [
|
158
|
-
_createElementVNode("li", {
|
159
|
-
onClick: ($event)=>handleOpenOperationRecord(row)
|
160
|
-
}, " 操作记录 ", 8 /* PROPS */ , _hoisted_3),
|
161
|
-
_cache[3] || (_cache[3] = _createElementVNode("li", null, " 删除数据 ", -1 /* HOISTED */ ))
|
162
|
-
])
|
163
|
-
]),
|
164
|
-
default: _withCtx(()=>[
|
165
|
-
_cache[4] || (_cache[4] = _createElementVNode("i", {
|
166
|
-
class: "bkaidev-icon bkaidev-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
167
|
-
}, null, -1 /* HOISTED */ ))
|
168
|
-
]),
|
169
|
-
_: 2 /* DYNAMIC */ ,
|
170
|
-
__: [
|
171
|
-
4
|
172
|
-
]
|
173
|
-
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
174
|
-
]),
|
175
|
-
_: 1 /* STABLE */
|
176
|
-
})
|
177
|
-
]),
|
178
|
-
_: 1 /* STABLE */
|
179
|
-
}, 8 /* PROPS */ , [
|
180
|
-
"pagination",
|
181
|
-
"data",
|
182
|
-
"onPageLimitChange",
|
183
|
-
"onPageValueChange"
|
184
|
-
])), [
|
185
|
-
[
|
186
|
-
_directive_bkloading,
|
187
|
-
{
|
188
|
-
loading: _unref(isLoading),
|
189
|
-
zIndex: 2
|
190
|
-
}
|
191
|
-
]
|
192
|
-
]),
|
193
|
-
_createVNode(OperationRecord, {
|
194
|
-
"is-show": isShowOperationRecord.value,
|
195
|
-
"onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShowOperationRecord.value = $event),
|
196
|
-
id: (_activeData_value = activeData.value) === null || _activeData_value === void 0 ? void 0 : _activeData_value.id,
|
197
|
-
"api-prefix": _ctx.apiPrefix
|
198
|
-
}, null, 8 /* PROPS */ , [
|
199
|
-
"is-show",
|
200
|
-
"id",
|
201
|
-
"api-prefix"
|
202
|
-
]),
|
203
|
-
_createVNode(EditData, {
|
204
|
-
"is-show": isShowEditData.value,
|
205
|
-
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event)=>isShowEditData.value = $event),
|
206
|
-
data: activeData.value,
|
207
|
-
"api-prefix": _ctx.apiPrefix
|
208
|
-
}, null, 8 /* PROPS */ , [
|
209
|
-
"is-show",
|
210
|
-
"data",
|
211
|
-
"api-prefix"
|
212
|
-
])
|
213
|
-
], 64 /* STABLE_FRAGMENT */ );
|
214
|
-
};
|
215
|
-
}
|
216
|
-
});
|