@blueking/ai-ui-sdk 0.1.9-beta.7 → 0.1.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +204 -14
- package/dist/components/render-choose-tag/index.vue.css +8 -8
- package/dist/components/render-choose-tag/index.vue.d.ts +3 -3
- 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-review-dataset-data/index.script.vue.js.js +318 -0
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +15 -0
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.js +3 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +51 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.vue.d.ts +7 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.vue.js +3 -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/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.script.vue.js.js +425 -0
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +15 -0
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.d.ts +15 -0
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +81 -3
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +1 -0
- 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-origin-data/components/batch-operation/index.script.vue.js.js +101 -72
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +3 -2
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +144 -22
- 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 +47 -5
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +3 -6
- 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.script.vue.js.js +33 -17
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.d.ts +10 -15
- 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.d.ts +1 -2
- package/dist/components.ts.js +1 -2
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +21 -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 +21 -0
- package/dist/hooks/use-chat.d.ts +2 -6
- package/dist/hooks/use-dataset-http.d.ts +3 -1
- package/dist/hooks/use-dataset-http.ts.js +17 -3
- package/dist/hooks/use-form-rule.ts.js +101 -0
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-meta-http.ts.js +5 -6
- package/dist/http/helper/dataset.d.ts +23 -1
- package/dist/http/helper/dataset.ts.js +38 -3
- package/dist/http/helper/knowledge.ts.js +0 -3
- package/dist/transforms.d.ts +0 -1
- package/dist/transforms.ts.js +0 -1
- package/dist/types/dataset.d.ts +43 -3
- package/dist/types/enum.d.ts +25 -1
- package/dist/types/enum.ts.js +27 -0
- package/dist/types/knowledge.d.ts +2 -4
- package/dist/types/meta.d.ts +0 -5
- package/dist/types/model.d.ts +0 -17
- package/dist/types/permission.d.ts +1 -0
- package/dist/types/session.d.ts +4 -4
- package/dist/types/tag.d.ts +7 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.ts.js +0 -1
- package/package.json +5 -22
- package/dist/http/helper/meta.d.ts +0 -2
- package/dist/http/helper/meta.ts.js +0 -7
- package/dist/http/helper/model.d.ts +0 -2
- package/dist/http/helper/model.ts.js +0 -15
- package/dist/types/model.ts.js +0 -1
@@ -0,0 +1,425 @@
|
|
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 { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createBlock as _createBlock, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode } from "vue";
|
60
|
+
const _hoisted_1 = {
|
61
|
+
key: 0,
|
62
|
+
class: "g-text-14"
|
63
|
+
};
|
64
|
+
const _hoisted_2 = {
|
65
|
+
class: "value-content g-white-space-pre-line g-mb-16"
|
66
|
+
};
|
67
|
+
import { ref, toRef, watch } from 'vue';
|
68
|
+
import AutoHeightTextarea from '../../../render-auto-height-textarea/index.vue.js';
|
69
|
+
import Collapse from '../../../render-collapse/index.vue.js';
|
70
|
+
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
71
|
+
import useTable from '../../../../hooks/use-table.ts.js';
|
72
|
+
import { DatasetDataLevel } from '../../../../types/enum.ts.js';
|
73
|
+
export default /*@__PURE__*/ _defineComponent({
|
74
|
+
props: {
|
75
|
+
modelValue: {
|
76
|
+
type: Boolean
|
77
|
+
},
|
78
|
+
index: {},
|
79
|
+
apiPrefix: {},
|
80
|
+
datasetId: {},
|
81
|
+
spaceId: {}
|
82
|
+
},
|
83
|
+
emits: [
|
84
|
+
"update:modelValue",
|
85
|
+
"success-review"
|
86
|
+
],
|
87
|
+
setup (__props, { emit: __emit }) {
|
88
|
+
const props = __props;
|
89
|
+
const emits = __emit;
|
90
|
+
const { batchReviewDatasetData, getDatasetDataList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
91
|
+
const isLoadingConfirm = ref(false);
|
92
|
+
const formRef = ref();
|
93
|
+
const formData = ref({
|
94
|
+
acceptAi: true,
|
95
|
+
accept: true,
|
96
|
+
datasetItemIds: [],
|
97
|
+
level: DatasetDataLevel.A,
|
98
|
+
reviewReason: ''
|
99
|
+
});
|
100
|
+
const handleGetDatasetDataList = (params)=>{
|
101
|
+
return getDatasetDataList(_object_spread({
|
102
|
+
datasetId: props.datasetId
|
103
|
+
}, params));
|
104
|
+
};
|
105
|
+
const { tableData, pagination, isLoading, handlePageChange, triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
106
|
+
current: 1,
|
107
|
+
limit: 1,
|
108
|
+
count: 0
|
109
|
+
});
|
110
|
+
const handleConfirm = function() {
|
111
|
+
var _ref = _async_to_generator(function*() {
|
112
|
+
try {
|
113
|
+
// loading
|
114
|
+
isLoadingConfirm.value = true;
|
115
|
+
// 表单验证
|
116
|
+
yield formRef.value.validate();
|
117
|
+
// review
|
118
|
+
yield batchReviewDatasetData(formData.value);
|
119
|
+
// 关闭弹窗
|
120
|
+
handleClose();
|
121
|
+
// 触发成功事件
|
122
|
+
emits('success-review');
|
123
|
+
} catch (error) {
|
124
|
+
console.error(error);
|
125
|
+
} finally{
|
126
|
+
isLoadingConfirm.value = false;
|
127
|
+
}
|
128
|
+
});
|
129
|
+
return function handleConfirm() {
|
130
|
+
return _ref.apply(this, arguments);
|
131
|
+
};
|
132
|
+
}();
|
133
|
+
const handleClose = ()=>{
|
134
|
+
emits('update:modelValue', false);
|
135
|
+
};
|
136
|
+
watch(()=>props.modelValue, function() {
|
137
|
+
var _ref = _async_to_generator(function*(newVal) {
|
138
|
+
if (newVal) {
|
139
|
+
// 获取数据
|
140
|
+
yield triggerApi();
|
141
|
+
// 设置页码
|
142
|
+
pagination.value.current = props.index + 1;
|
143
|
+
// 设置 formData
|
144
|
+
formData.value = {
|
145
|
+
acceptAi: true,
|
146
|
+
accept: true,
|
147
|
+
datasetItemIds: [],
|
148
|
+
level: DatasetDataLevel.A,
|
149
|
+
reviewReason: ''
|
150
|
+
};
|
151
|
+
}
|
152
|
+
});
|
153
|
+
return function(newVal) {
|
154
|
+
return _ref.apply(this, arguments);
|
155
|
+
};
|
156
|
+
}());
|
157
|
+
return (_ctx, _cache)=>{
|
158
|
+
const _component_bk_loading = _resolveComponent("bk-loading");
|
159
|
+
const _component_bk_pagination = _resolveComponent("bk-pagination");
|
160
|
+
const _component_bk_radio_button = _resolveComponent("bk-radio-button");
|
161
|
+
const _component_bk_radio_group = _resolveComponent("bk-radio-group");
|
162
|
+
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
163
|
+
const _component_bk_form = _resolveComponent("bk-form");
|
164
|
+
const _component_bk_button = _resolveComponent("bk-button");
|
165
|
+
const _component_bk_sideslider = _resolveComponent("bk-sideslider");
|
166
|
+
return _openBlock(), _createBlock(_component_bk_sideslider, {
|
167
|
+
class: "data-set-review-slider",
|
168
|
+
width: 960,
|
169
|
+
"is-show": _ctx.modelValue,
|
170
|
+
"before-close": handleClose
|
171
|
+
}, {
|
172
|
+
header: _withCtx(()=>[
|
173
|
+
_createVNode(_component_bk_loading, {
|
174
|
+
class: "g-flex-row g-justify-between",
|
175
|
+
loading: _unref(isLoading)
|
176
|
+
}, {
|
177
|
+
default: _withCtx(()=>[
|
178
|
+
_cache[4] || (_cache[4] = _createElementVNode("span", null, "审核数据", -1 /* HOISTED */ )),
|
179
|
+
_cache[5] || (_cache[5] = _createElementVNode("span", {
|
180
|
+
class: "g-gap g-ml-14 g-mr-8"
|
181
|
+
}, null, -1 /* HOISTED */ )),
|
182
|
+
_unref(tableData)[0] ? (_openBlock(), _createElementBlock("span", _hoisted_1, _toDisplayString(`#${_unref(tableData)[0].id}`), 1 /* TEXT */ )) : _createCommentVNode("v-if", true)
|
183
|
+
]),
|
184
|
+
_: 1 /* STABLE */ ,
|
185
|
+
__: [
|
186
|
+
4,
|
187
|
+
5
|
188
|
+
]
|
189
|
+
}, 8 /* PROPS */ , [
|
190
|
+
"loading"
|
191
|
+
]),
|
192
|
+
_ctx.modelValue ? (_openBlock(), _createBlock(_component_bk_pagination, {
|
193
|
+
key: 0,
|
194
|
+
small: "",
|
195
|
+
class: "g-mr-24",
|
196
|
+
"show-limit": false,
|
197
|
+
"model-value": _unref(pagination).current,
|
198
|
+
count: _unref(pagination).count,
|
199
|
+
limit: 1,
|
200
|
+
"limit-list": [
|
201
|
+
1
|
202
|
+
],
|
203
|
+
onChange: _unref(handlePageChange)
|
204
|
+
}, null, 8 /* PROPS */ , [
|
205
|
+
"model-value",
|
206
|
+
"count",
|
207
|
+
"onChange"
|
208
|
+
])) : _createCommentVNode("v-if", true)
|
209
|
+
]),
|
210
|
+
footer: _withCtx(()=>[
|
211
|
+
_createVNode(_component_bk_button, {
|
212
|
+
class: "g-width-88 g-mr-8",
|
213
|
+
theme: "primary",
|
214
|
+
loading: isLoadingConfirm.value,
|
215
|
+
onClick: handleConfirm
|
216
|
+
}, {
|
217
|
+
default: _withCtx(()=>_cache[10] || (_cache[10] = [
|
218
|
+
_createTextVNode(" 保存 ")
|
219
|
+
])),
|
220
|
+
_: 1 /* STABLE */ ,
|
221
|
+
__: [
|
222
|
+
10
|
223
|
+
]
|
224
|
+
}, 8 /* PROPS */ , [
|
225
|
+
"loading"
|
226
|
+
]),
|
227
|
+
_createVNode(_component_bk_button, {
|
228
|
+
class: "g-width-88",
|
229
|
+
disabled: isLoadingConfirm.value,
|
230
|
+
onClick: handleClose
|
231
|
+
}, {
|
232
|
+
default: _withCtx(()=>_cache[11] || (_cache[11] = [
|
233
|
+
_createTextVNode(" 取消 ")
|
234
|
+
])),
|
235
|
+
_: 1 /* STABLE */ ,
|
236
|
+
__: [
|
237
|
+
11
|
238
|
+
]
|
239
|
+
}, 8 /* PROPS */ , [
|
240
|
+
"disabled"
|
241
|
+
])
|
242
|
+
]),
|
243
|
+
default: _withCtx(()=>[
|
244
|
+
_createVNode(_component_bk_loading, {
|
245
|
+
loading: _unref(isLoading),
|
246
|
+
class: "content"
|
247
|
+
}, {
|
248
|
+
default: _withCtx(()=>{
|
249
|
+
var _unref_;
|
250
|
+
return [
|
251
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList((_unref_ = _unref(tableData)[0]) === null || _unref_ === void 0 ? void 0 : _unref_.data, (value, key)=>{
|
252
|
+
return _openBlock(), _createBlock(Collapse, {
|
253
|
+
key: key,
|
254
|
+
title: key,
|
255
|
+
class: "g-mb-8"
|
256
|
+
}, {
|
257
|
+
default: _withCtx(()=>[
|
258
|
+
_createElementVNode("h5", _hoisted_2, _toDisplayString(value), 1 /* TEXT */ )
|
259
|
+
]),
|
260
|
+
_: 2 /* DYNAMIC */
|
261
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
262
|
+
"title"
|
263
|
+
]);
|
264
|
+
}), 128 /* KEYED_FRAGMENT */ )),
|
265
|
+
_createElementVNode("section", null, [
|
266
|
+
_createVNode(_component_bk_form, {
|
267
|
+
"form-type": "vertical",
|
268
|
+
ref_key: "formRef",
|
269
|
+
ref: formRef,
|
270
|
+
class: "g-small-form",
|
271
|
+
model: formData.value
|
272
|
+
}, {
|
273
|
+
default: _withCtx(()=>[
|
274
|
+
_createVNode(_component_bk_form_item, null, {
|
275
|
+
default: _withCtx(()=>[
|
276
|
+
_createVNode(_component_bk_radio_group, {
|
277
|
+
class: "g-radio-group",
|
278
|
+
modelValue: formData.value.acceptAi,
|
279
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>formData.value.acceptAi = $event)
|
280
|
+
}, {
|
281
|
+
default: _withCtx(()=>[
|
282
|
+
_createVNode(_component_bk_radio_button, {
|
283
|
+
label: true
|
284
|
+
}, {
|
285
|
+
default: _withCtx(()=>_cache[6] || (_cache[6] = [
|
286
|
+
_createTextVNode(" 维持当前审核结果 ")
|
287
|
+
])),
|
288
|
+
_: 1 /* STABLE */ ,
|
289
|
+
__: [
|
290
|
+
6
|
291
|
+
]
|
292
|
+
}),
|
293
|
+
_createVNode(_component_bk_radio_button, {
|
294
|
+
label: false
|
295
|
+
}, {
|
296
|
+
default: _withCtx(()=>_cache[7] || (_cache[7] = [
|
297
|
+
_createTextVNode(" 统一修改预审结果 ")
|
298
|
+
])),
|
299
|
+
_: 1 /* STABLE */ ,
|
300
|
+
__: [
|
301
|
+
7
|
302
|
+
]
|
303
|
+
})
|
304
|
+
]),
|
305
|
+
_: 1 /* STABLE */
|
306
|
+
}, 8 /* PROPS */ , [
|
307
|
+
"modelValue"
|
308
|
+
])
|
309
|
+
]),
|
310
|
+
_: 1 /* STABLE */
|
311
|
+
}),
|
312
|
+
!formData.value.acceptAi ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
313
|
+
key: 0,
|
314
|
+
label: "质量等级",
|
315
|
+
property: "level",
|
316
|
+
required: ""
|
317
|
+
}, {
|
318
|
+
default: _withCtx(()=>[
|
319
|
+
_createVNode(_component_bk_radio_group, {
|
320
|
+
class: "g-radio-group",
|
321
|
+
modelValue: formData.value.level,
|
322
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>formData.value.level = $event)
|
323
|
+
}, {
|
324
|
+
default: _withCtx(()=>[
|
325
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(DatasetDataLevel), (value, key)=>{
|
326
|
+
return _openBlock(), _createBlock(_component_bk_radio_button, {
|
327
|
+
key: key,
|
328
|
+
label: value
|
329
|
+
}, {
|
330
|
+
default: _withCtx(()=>[
|
331
|
+
_createTextVNode(_toDisplayString(key), 1 /* TEXT */ )
|
332
|
+
]),
|
333
|
+
_: 2 /* DYNAMIC */
|
334
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
335
|
+
"label"
|
336
|
+
]);
|
337
|
+
}), 128 /* KEYED_FRAGMENT */ ))
|
338
|
+
]),
|
339
|
+
_: 1 /* STABLE */
|
340
|
+
}, 8 /* PROPS */ , [
|
341
|
+
"modelValue"
|
342
|
+
])
|
343
|
+
]),
|
344
|
+
_: 1 /* STABLE */
|
345
|
+
})) : _createCommentVNode("v-if", true),
|
346
|
+
!formData.value.acceptAi ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
347
|
+
key: 1,
|
348
|
+
label: "审核状态",
|
349
|
+
property: "accept",
|
350
|
+
required: ""
|
351
|
+
}, {
|
352
|
+
default: _withCtx(()=>[
|
353
|
+
_createVNode(_component_bk_radio_group, {
|
354
|
+
class: "g-radio-group",
|
355
|
+
modelValue: formData.value.accept,
|
356
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event)=>formData.value.accept = $event)
|
357
|
+
}, {
|
358
|
+
default: _withCtx(()=>[
|
359
|
+
_createVNode(_component_bk_radio_button, {
|
360
|
+
label: true
|
361
|
+
}, {
|
362
|
+
default: _withCtx(()=>_cache[8] || (_cache[8] = [
|
363
|
+
_createTextVNode(" 采纳 ")
|
364
|
+
])),
|
365
|
+
_: 1 /* STABLE */ ,
|
366
|
+
__: [
|
367
|
+
8
|
368
|
+
]
|
369
|
+
}),
|
370
|
+
_createVNode(_component_bk_radio_button, {
|
371
|
+
label: false
|
372
|
+
}, {
|
373
|
+
default: _withCtx(()=>_cache[9] || (_cache[9] = [
|
374
|
+
_createTextVNode(" 拒绝 ")
|
375
|
+
])),
|
376
|
+
_: 1 /* STABLE */ ,
|
377
|
+
__: [
|
378
|
+
9
|
379
|
+
]
|
380
|
+
})
|
381
|
+
]),
|
382
|
+
_: 1 /* STABLE */
|
383
|
+
}, 8 /* PROPS */ , [
|
384
|
+
"modelValue"
|
385
|
+
])
|
386
|
+
]),
|
387
|
+
_: 1 /* STABLE */
|
388
|
+
})) : _createCommentVNode("v-if", true),
|
389
|
+
!formData.value.acceptAi ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
390
|
+
key: 2,
|
391
|
+
class: "g-last-form-item",
|
392
|
+
label: "审核备注",
|
393
|
+
property: "reviewReason"
|
394
|
+
}, {
|
395
|
+
default: _withCtx(()=>[
|
396
|
+
_createVNode(AutoHeightTextarea, {
|
397
|
+
modelValue: formData.value.reviewReason,
|
398
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event)=>formData.value.reviewReason = $event),
|
399
|
+
height: 100
|
400
|
+
}, null, 8 /* PROPS */ , [
|
401
|
+
"modelValue"
|
402
|
+
])
|
403
|
+
]),
|
404
|
+
_: 1 /* STABLE */
|
405
|
+
})) : _createCommentVNode("v-if", true)
|
406
|
+
]),
|
407
|
+
_: 1 /* STABLE */
|
408
|
+
}, 8 /* PROPS */ , [
|
409
|
+
"model"
|
410
|
+
])
|
411
|
+
])
|
412
|
+
];
|
413
|
+
}),
|
414
|
+
_: 1 /* STABLE */
|
415
|
+
}, 8 /* PROPS */ , [
|
416
|
+
"loading"
|
417
|
+
])
|
418
|
+
]),
|
419
|
+
_: 1 /* STABLE */
|
420
|
+
}, 8 /* PROPS */ , [
|
421
|
+
"is-show"
|
422
|
+
]);
|
423
|
+
};
|
424
|
+
}
|
425
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
.content[data-v-5x2y771m] {
|
3
|
+
padding: 18px 24px 0;
|
4
|
+
height: 100%;
|
5
|
+
overflow: auto;
|
6
|
+
}
|
7
|
+
.data-set-review-slider .value-content[data-v-5x2y771m] {
|
8
|
+
padding: 16px;
|
9
|
+
border: 1px solid #DCDEE5;
|
10
|
+
line-height: 22px;
|
11
|
+
}
|
12
|
+
.data-set-review-slider[data-v-5x2y771m] .bk-sideslider-title {
|
13
|
+
justify-content: space-between;
|
14
|
+
width: 100%;
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
interface IProps {
|
2
|
+
modelValue: boolean;
|
3
|
+
index: number;
|
4
|
+
apiPrefix: string;
|
5
|
+
datasetId: number;
|
6
|
+
spaceId?: string;
|
7
|
+
}
|
8
|
+
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
10
|
+
"success-review": () => any;
|
11
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
12
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
13
|
+
"onSuccess-review"?: () => any;
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js
CHANGED
@@ -2,11 +2,14 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
3
3
|
import { onBeforeMount, ref } from 'vue';
|
4
4
|
import RenderSearchSelect from '../../../render-search-select/index.vue.js';
|
5
|
-
import { DatasetDataSourceType } from '../../../../types/enum.ts.js';
|
5
|
+
import { DatasetDataLevel, DatasetDataReviewStatus, DatasetDataSourceType, DatasetDataStatus } from '../../../../types/enum.ts.js';
|
6
6
|
export default /*@__PURE__*/ _defineComponent({
|
7
7
|
props: {
|
8
8
|
modelValue: {},
|
9
|
-
schema: {}
|
9
|
+
schema: {},
|
10
|
+
reviewDataset: {
|
11
|
+
type: Boolean
|
12
|
+
}
|
10
13
|
},
|
11
14
|
emits: [
|
12
15
|
"update:modelValue"
|
@@ -16,8 +19,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
16
19
|
const emits = __emit;
|
17
20
|
const data = ref([
|
18
21
|
{
|
19
|
-
id: '
|
22
|
+
id: 'sourceType',
|
20
23
|
name: '数据来源',
|
24
|
+
multiple: true,
|
21
25
|
children: [
|
22
26
|
{
|
23
27
|
id: DatasetDataSourceType.UploadFile,
|
@@ -28,6 +32,80 @@ export default /*@__PURE__*/ _defineComponent({
|
|
28
32
|
name: '手工录入'
|
29
33
|
}
|
30
34
|
]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
id: 'level',
|
38
|
+
name: '质量等级',
|
39
|
+
multiple: true,
|
40
|
+
children: Object.keys(DatasetDataLevel).map((key)=>({
|
41
|
+
id: key,
|
42
|
+
name: key
|
43
|
+
}))
|
44
|
+
},
|
45
|
+
props.reviewDataset ? {
|
46
|
+
id: 'reviewStatus',
|
47
|
+
name: '审核状态',
|
48
|
+
multiple: true,
|
49
|
+
children: [
|
50
|
+
{
|
51
|
+
id: DatasetDataReviewStatus.Unreviewed,
|
52
|
+
name: '待审核'
|
53
|
+
},
|
54
|
+
{
|
55
|
+
id: DatasetDataReviewStatus.AIReviewing,
|
56
|
+
name: 'AI预审中'
|
57
|
+
},
|
58
|
+
{
|
59
|
+
id: DatasetDataReviewStatus.AIReviewFailed,
|
60
|
+
name: '预审失败'
|
61
|
+
},
|
62
|
+
{
|
63
|
+
id: DatasetDataReviewStatus.AIReviewA,
|
64
|
+
name: '预审结果:A'
|
65
|
+
},
|
66
|
+
{
|
67
|
+
id: DatasetDataReviewStatus.AIReviewB,
|
68
|
+
name: '预审结果:B'
|
69
|
+
},
|
70
|
+
{
|
71
|
+
id: DatasetDataReviewStatus.AIReviewC,
|
72
|
+
name: '预审结果:C'
|
73
|
+
},
|
74
|
+
{
|
75
|
+
id: DatasetDataReviewStatus.AIReviewD,
|
76
|
+
name: '预审结果:D'
|
77
|
+
},
|
78
|
+
{
|
79
|
+
id: DatasetDataReviewStatus.Passed,
|
80
|
+
name: '已通过'
|
81
|
+
},
|
82
|
+
{
|
83
|
+
id: DatasetDataReviewStatus.Refused,
|
84
|
+
name: '已拒绝'
|
85
|
+
}
|
86
|
+
]
|
87
|
+
} : {
|
88
|
+
id: 'status',
|
89
|
+
name: '审核状态',
|
90
|
+
multiple: true,
|
91
|
+
children: [
|
92
|
+
{
|
93
|
+
id: DatasetDataStatus.Passed,
|
94
|
+
name: '已通过'
|
95
|
+
},
|
96
|
+
{
|
97
|
+
id: DatasetDataStatus.Refused,
|
98
|
+
name: '已拒绝'
|
99
|
+
},
|
100
|
+
{
|
101
|
+
id: DatasetDataStatus.Reviewing,
|
102
|
+
name: '审核中'
|
103
|
+
},
|
104
|
+
{
|
105
|
+
id: DatasetDataStatus.Unreviewed,
|
106
|
+
name: '待审核'
|
107
|
+
}
|
108
|
+
]
|
31
109
|
}
|
32
110
|
]);
|
33
111
|
const handleUpdate = (modelValue)=>{
|
@@ -2,6 +2,7 @@ import type { IDatasetDataParam } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
modelValue: IDatasetDataParam;
|
4
4
|
schema: Record<string, string>;
|
5
|
+
reviewDataset?: boolean;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
8
|
"update:modelValue": (modelValue: IDatasetDataParam) => any;
|