@blueking/ai-ui-sdk 0.1.10-beta.11 → 0.1.10-beta.2
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 +3 -196
- package/dist/components/render-choose-tag/index.vue.css +12 -19
- 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 +0 -3
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +0 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +2 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +0 -2
- 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.script.vue.js.js +12 -23
- 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.script.vue.js.js +7 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.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 +14 -22
- 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.d.ts +0 -2
- 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 +4 -4
- package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +0 -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-origin-data/components/batch-operation/index.script.vue.js.js +0 -2
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +20 -57
- 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.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +10 -19
- 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.js +1 -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.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/components.d.ts +1 -3
- package/dist/components.ts.js +1 -3
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +0 -9
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +2 -2
- package/dist/css/style.css +0 -9
- package/dist/hooks/use-chat.d.ts +0 -2
- package/dist/hooks/use-chat.ts.js +0 -22
- package/dist/hooks/use-meta-http.ts.js +1 -1
- package/dist/http/helper/dataset.d.ts +0 -1
- package/dist/http/helper/dataset.ts.js +10 -14
- package/dist/types/dataset.d.ts +10 -15
- package/dist/types/enum.d.ts +1 -2
- package/dist/types/enum.ts.js +0 -1
- package/package.json +1 -1
- package/dist/components/render-auto-refresh/index.script.vue.js.js +0 -125
- package/dist/components/render-auto-refresh/index.vue.css +0 -45
- package/dist/components/render-auto-refresh/index.vue.d.ts +0 -6
- package/dist/components/render-auto-refresh/index.vue.js +0 -5
- package/dist/components/render-checkbox/index.script.vue.js.js +0 -37
- package/dist/components/render-checkbox/index.vue.css +0 -59
- package/dist/components/render-checkbox/index.vue.d.ts +0 -11
- package/dist/components/render-checkbox/index.vue.js +0 -5
- package/dist/hooks/use-form-rule.ts.js +0 -101
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-s5w0rb2y] {
|
3
3
|
width: 300px;
|
4
4
|
height: 100%;
|
5
5
|
background: #FFFFFF;
|
6
6
|
padding: 16px;
|
7
7
|
border-right: 1px solid #eaebf0;
|
8
8
|
}
|
9
|
-
[data-v-
|
9
|
+
[data-v-s5w0rb2y] .aside-item {
|
10
10
|
width: 268px;
|
11
11
|
line-height: 36px;
|
12
12
|
border-radius: 2px;
|
@@ -16,30 +16,30 @@
|
|
16
16
|
justify-content: space-between;
|
17
17
|
color: #979BA5;
|
18
18
|
}
|
19
|
-
[data-v-
|
19
|
+
[data-v-s5w0rb2y] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-s5w0rb2y] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-s5w0rb2y] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-s5w0rb2y] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-s5w0rb2y] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-s5w0rb2y] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-s5w0rb2y] .aside-item .tab-num {
|
43
43
|
background: #EAEBF0;
|
44
44
|
border-radius: 2px;
|
45
45
|
margin-left: 5px;
|
@@ -1,40 +1,40 @@
|
|
1
1
|
|
2
|
-
.send-container[data-v-
|
2
|
+
.send-container[data-v-27qeatla] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-27qeatla]:has(textarea:focus) {
|
6
6
|
z-index: 2;
|
7
7
|
}
|
8
|
-
.send-container:hover .send-clear[data-v-
|
8
|
+
.send-container:hover .send-clear[data-v-27qeatla] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-27qeatla] {
|
12
12
|
width: 100%;
|
13
13
|
flex-direction: row;
|
14
14
|
height: var(--origin-height);
|
15
15
|
}
|
16
|
-
.send-input[data-v-
|
16
|
+
.send-input[data-v-27qeatla]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-27qeatla] textarea {
|
20
20
|
font-size: 12px;
|
21
21
|
line-height: 16px;
|
22
22
|
padding: 7px;
|
23
23
|
resize: none !important;
|
24
24
|
}
|
25
|
-
.send-input[data-v-
|
25
|
+
.send-input[data-v-27qeatla] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-27qeatla] textarea::-webkit-scrollbar-thumb {
|
30
30
|
height: 5px;
|
31
31
|
border-radius: 3px;
|
32
32
|
background-color: #dcdee5;
|
33
33
|
}
|
34
|
-
.send-input[data-v-
|
34
|
+
.send-input[data-v-27qeatla] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-27qeatla] {
|
38
38
|
display: none !important;
|
39
39
|
position: absolute;
|
40
40
|
right: 10px;
|
@@ -43,6 +43,6 @@
|
|
43
43
|
font-size: 14px;
|
44
44
|
cursor: pointer;
|
45
45
|
}
|
46
|
-
.send-clear[data-v-
|
46
|
+
.send-clear[data-v-27qeatla]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -1,41 +1,6 @@
|
|
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
1
|
import { defineComponent as _defineComponent } from 'vue';
|
31
|
-
import { resolveComponent as _resolveComponent,
|
32
|
-
const _hoisted_1 = {
|
33
|
-
key: 0,
|
34
|
-
class: "g-flex-row plus-tag-input render-tag"
|
35
|
-
};
|
36
|
-
import { Done, Error } from 'bkui-vue/lib/icon';
|
2
|
+
import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
37
3
|
import { onBeforeMount, ref, toRef, watch } from 'vue';
|
38
|
-
import { useFormRule } from '../../hooks/use-form-rule.ts.js';
|
39
4
|
import { useMetaHttp } from '../../hooks/use-meta-http.ts.js';
|
40
5
|
export default /*@__PURE__*/ _defineComponent({
|
41
6
|
props: {
|
@@ -50,81 +15,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
50
15
|
setup (__props, { emit: __emit }) {
|
51
16
|
const props = __props;
|
52
17
|
const emits = __emit;
|
53
|
-
const {
|
54
|
-
const { getTags, plusTag, checkTag } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
55
|
-
const isShowEdit = ref(false);
|
56
|
-
const isPulsingTag = ref(false);
|
57
|
-
const tempTagName = ref('');
|
58
|
-
const tagRef = ref();
|
59
|
-
const tagFormRef = ref();
|
18
|
+
const { getTags } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
60
19
|
const isLoadingTag = ref(false);
|
61
|
-
const isShow = ref(false);
|
62
20
|
const tags = ref([]);
|
63
|
-
const checkTagRule = {
|
64
|
-
validator: (value)=>checkTag(handleGetTagNames(value)).then(()=>true).catch(()=>false),
|
65
|
-
message: '标签名称重复',
|
66
|
-
trigger: 'change'
|
67
|
-
};
|
68
|
-
const tagRules = {
|
69
|
-
tempTagName: [
|
70
|
-
checkTagRule,
|
71
|
-
getLengthRule('标签名称', 16)
|
72
|
-
]
|
73
|
-
};
|
74
|
-
const handleFocus = ()=>{
|
75
|
-
isShow.value = true;
|
76
|
-
};
|
77
|
-
const handleBlur = ()=>{
|
78
|
-
isShow.value = false;
|
79
|
-
};
|
80
21
|
const handleChange = (val)=>{
|
81
22
|
emits('update:modelValue', val);
|
82
23
|
};
|
83
|
-
const handleTagKeyDown = (value, event)=>{
|
84
|
-
if (event.keyCode === 13 || event.key === 'Enter') {
|
85
|
-
handlePlusTag();
|
86
|
-
}
|
87
|
-
};
|
88
|
-
const handleGetTagNames = (tagName)=>{
|
89
|
-
const tagGroups = tagName.split('、');
|
90
|
-
return tagGroups.reduce((acc, cur)=>{
|
91
|
-
if (cur.trim()) {
|
92
|
-
const tagNames = cur.split('/').filter(Boolean);
|
93
|
-
acc.push(tagNames);
|
94
|
-
}
|
95
|
-
return acc;
|
96
|
-
}, []);
|
97
|
-
};
|
98
|
-
const handlePlusTag = function() {
|
99
|
-
var _ref = _async_to_generator(function*() {
|
100
|
-
try {
|
101
|
-
isPulsingTag.value = true;
|
102
|
-
const tagNames = handleGetTagNames(tempTagName.value);
|
103
|
-
yield tagFormRef.value.validate();
|
104
|
-
yield plusTag(tagNames);
|
105
|
-
emits('update:modelValue', [
|
106
|
-
...props.modelValue,
|
107
|
-
...tagNames
|
108
|
-
]);
|
109
|
-
handleGetTags();
|
110
|
-
handleHidePlusTag();
|
111
|
-
} catch (error) {
|
112
|
-
console.error(error.message || error);
|
113
|
-
} finally{
|
114
|
-
isPulsingTag.value = false;
|
115
|
-
}
|
116
|
-
});
|
117
|
-
return function handlePlusTag() {
|
118
|
-
return _ref.apply(this, arguments);
|
119
|
-
};
|
120
|
-
}();
|
121
|
-
const handleShowPlusTag = ()=>{
|
122
|
-
isShowEdit.value = true;
|
123
|
-
};
|
124
|
-
const handleHidePlusTag = ()=>{
|
125
|
-
isShowEdit.value = false;
|
126
|
-
tempTagName.value = '';
|
127
|
-
};
|
128
24
|
const handleGetTags = ()=>{
|
129
25
|
isLoadingTag.value = true;
|
130
26
|
getTags().then((result)=>{
|
@@ -136,106 +32,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
136
32
|
watch(()=>props.spaceId, handleGetTags);
|
137
33
|
onBeforeMount(handleGetTags);
|
138
34
|
return (_ctx, _cache)=>{
|
139
|
-
const _component_bk_input = _resolveComponent("bk-input");
|
140
|
-
const _component_bk_popover = _resolveComponent("bk-popover");
|
141
|
-
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
142
|
-
const _component_bk_form = _resolveComponent("bk-form");
|
143
35
|
const _component_bk_cascader = _resolveComponent("bk-cascader");
|
144
|
-
const _directive_bkloading = _resolveDirective("bkloading");
|
145
36
|
return _openBlock(), _createBlock(_component_bk_cascader, {
|
146
37
|
filterable: "",
|
147
38
|
"id-key": "tagName",
|
148
39
|
"name-key": "tagName",
|
149
|
-
"ext-cls": "tag-cascader",
|
150
40
|
multiple: true,
|
151
41
|
loading: isLoadingTag.value,
|
152
42
|
list: tags.value,
|
153
43
|
"model-value": _ctx.modelValue,
|
154
44
|
"onUpdate:modelValue": handleChange
|
155
|
-
},
|
156
|
-
extension: _withCtx(()=>[
|
157
|
-
isShowEdit.value ? (_openBlock(), _createElementBlock("section", _hoisted_1, [
|
158
|
-
_createVNode(_component_bk_form, {
|
159
|
-
class: "plus-tag-form",
|
160
|
-
ref_key: "tagFormRef",
|
161
|
-
ref: tagFormRef,
|
162
|
-
model: {
|
163
|
-
tempTagName: tempTagName.value
|
164
|
-
},
|
165
|
-
rules: tagRules
|
166
|
-
}, {
|
167
|
-
default: _withCtx(()=>[
|
168
|
-
_createVNode(_component_bk_form_item, {
|
169
|
-
class: "plus-tag-form-item",
|
170
|
-
"label-width": 0,
|
171
|
-
property: "tempTagName",
|
172
|
-
"error-display-type": "tooltips",
|
173
|
-
required: ""
|
174
|
-
}, {
|
175
|
-
default: _withCtx(()=>[
|
176
|
-
_createVNode(_component_bk_popover, {
|
177
|
-
"is-show": isShow.value,
|
178
|
-
theme: "light",
|
179
|
-
trigger: "manual"
|
180
|
-
}, {
|
181
|
-
content: _withCtx(()=>_cache[1] || (_cache[1] = [
|
182
|
-
_createTextVNode(" 如需定义层级标签,以英文“/”分割层级,多个标签以“、”分隔 ")
|
183
|
-
])),
|
184
|
-
default: _withCtx(()=>[
|
185
|
-
_createVNode(_component_bk_input, {
|
186
|
-
modelValue: tempTagName.value,
|
187
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tempTagName.value = $event),
|
188
|
-
maxlength: 20,
|
189
|
-
ref_key: "tagRef",
|
190
|
-
ref: tagRef,
|
191
|
-
placeholder: "如需定义层级标签,以英文“/”分割层级,多个标签以“、”分隔",
|
192
|
-
onKeydown: handleTagKeyDown,
|
193
|
-
onFocus: handleFocus,
|
194
|
-
onBlur: handleBlur
|
195
|
-
}, null, 8 /* PROPS */ , [
|
196
|
-
"modelValue"
|
197
|
-
])
|
198
|
-
]),
|
199
|
-
_: 1 /* STABLE */
|
200
|
-
}, 8 /* PROPS */ , [
|
201
|
-
"is-show"
|
202
|
-
])
|
203
|
-
]),
|
204
|
-
_: 1 /* STABLE */
|
205
|
-
})
|
206
|
-
]),
|
207
|
-
_: 1 /* STABLE */
|
208
|
-
}, 8 /* PROPS */ , [
|
209
|
-
"model"
|
210
|
-
]),
|
211
|
-
_withDirectives(_createVNode(_unref(Done), {
|
212
|
-
class: "plus-tag-done",
|
213
|
-
onClick: handlePlusTag
|
214
|
-
}, null, 512 /* NEED_PATCH */ ), [
|
215
|
-
[
|
216
|
-
_directive_bkloading,
|
217
|
-
{
|
218
|
-
loading: isPulsingTag.value
|
219
|
-
}
|
220
|
-
]
|
221
|
-
]),
|
222
|
-
_createVNode(_unref(Error), {
|
223
|
-
class: "plus-tag-error",
|
224
|
-
onClick: handleHidePlusTag
|
225
|
-
})
|
226
|
-
])) : (_openBlock(), _createElementBlock("span", {
|
227
|
-
key: 1,
|
228
|
-
class: "plus-tag render-tag",
|
229
|
-
onClick: handleShowPlusTag
|
230
|
-
}, _cache[2] || (_cache[2] = [
|
231
|
-
_createElementVNode("i", {
|
232
|
-
class: "ai-ui-sdk-icon ai-ui-sdk-plus-circle g-text-14 g-mr-6"
|
233
|
-
}, null, -1 /* HOISTED */ ),
|
234
|
-
_createTextVNode(" 新建标签 ")
|
235
|
-
])))
|
236
|
-
]),
|
237
|
-
_: 1 /* STABLE */
|
238
|
-
}, 8 /* PROPS */ , [
|
45
|
+
}, null, 8 /* PROPS */ , [
|
239
46
|
"loading",
|
240
47
|
"list",
|
241
48
|
"model-value"
|
@@ -1,46 +1,39 @@
|
|
1
1
|
|
2
|
-
.plus-tag-input[data-v-
|
2
|
+
.plus-tag-input[data-v-gxevr794] {
|
3
3
|
padding: 7px 12px;
|
4
|
-
|
5
|
-
background: #FAFBFD;
|
6
|
-
border-top: 1px solid #DCDEE5;
|
4
|
+
width: 100%;
|
7
5
|
}
|
8
|
-
.plus-tag-input .plus-tag-done[data-v-
|
6
|
+
.plus-tag-input .plus-tag-done[data-v-gxevr794] {
|
9
7
|
cursor: pointer;
|
10
8
|
font-size: 22px;
|
11
9
|
color: #2DCB56;
|
12
10
|
margin: 0 5px 0 10px;
|
13
11
|
}
|
14
|
-
.plus-tag-input .plus-tag-error[data-v-
|
12
|
+
.plus-tag-input .plus-tag-error[data-v-gxevr794] {
|
15
13
|
cursor: pointer;
|
16
14
|
font-size: 16px;
|
17
15
|
color: #C4C6CC;
|
18
16
|
margin-right: 5px;
|
19
17
|
}
|
20
|
-
.plus-tag-input .plus-tag-form[data-v-
|
18
|
+
.plus-tag-input .plus-tag-form[data-v-gxevr794] {
|
21
19
|
flex: 1;
|
22
20
|
}
|
23
|
-
.plus-tag-input .plus-tag-form-item[data-v-
|
21
|
+
.plus-tag-input .plus-tag-form-item[data-v-gxevr794] {
|
24
22
|
margin-bottom: 0;
|
25
23
|
}
|
26
|
-
.plus-tag[data-v-
|
24
|
+
.plus-tag[data-v-gxevr794] {
|
27
25
|
cursor: pointer;
|
28
26
|
width: 100%;
|
29
|
-
height: 40px;
|
30
|
-
background: #FAFBFD;
|
31
|
-
border-top: 1px solid #DCDEE5;
|
32
|
-
border-radius: 0 0 2px 2px;
|
33
27
|
display: flex;
|
34
28
|
justify-content: center;
|
35
29
|
align-items: center;
|
36
30
|
font-size: 12px;
|
37
31
|
line-height: 20px;
|
38
32
|
}
|
39
|
-
.plus-tag[data-v-
|
40
|
-
|
33
|
+
.plus-tag .bkaidev-plus-circle[data-v-gxevr794] {
|
34
|
+
font-size: 14px;
|
35
|
+
margin-right: 6px;
|
41
36
|
}
|
42
|
-
|
43
|
-
|
44
|
-
.bk-cascader-popover:has(.render-tag) .bk-cascader-node {
|
45
|
-
width: 240px !important;
|
37
|
+
.plus-tag[data-v-gxevr794]:hover {
|
38
|
+
color: #3A84FF;
|
46
39
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-90skjlip] {
|
3
3
|
height: 28px;
|
4
4
|
background: #F0F1F5;
|
5
5
|
border-radius: 2px;
|
6
6
|
padding: 0 12px;
|
7
7
|
}
|
8
|
-
.collapse-title .is-hidden[data-v-
|
8
|
+
.collapse-title .is-hidden[data-v-90skjlip] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js
CHANGED
@@ -45,7 +45,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
45
45
|
type: Boolean
|
46
46
|
},
|
47
47
|
datasetDatas: {},
|
48
|
-
datasetId: {},
|
49
48
|
apiPrefix: {},
|
50
49
|
spaceId: {}
|
51
50
|
},
|
@@ -62,7 +61,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
62
61
|
const formData = ref({
|
63
62
|
acceptAi: true,
|
64
63
|
accept: true,
|
65
|
-
datasetId: undefined,
|
66
64
|
datasetItemIds: [],
|
67
65
|
level: DatasetDataReviewLevel.A,
|
68
66
|
reviewReason: ''
|
@@ -97,7 +95,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
97
95
|
if (newVal) {
|
98
96
|
formData.value = {
|
99
97
|
datasetItemIds: props.datasetDatas.map((datasetData)=>datasetData.id),
|
100
|
-
datasetId: props.datasetId,
|
101
98
|
acceptAi: true,
|
102
99
|
accept: true,
|
103
100
|
level: DatasetDataReviewLevel.A,
|
@@ -103,8 +103,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
103
103
|
index: {},
|
104
104
|
datasetId: {},
|
105
105
|
apiPrefix: {},
|
106
|
-
spaceId: {}
|
107
|
-
search: {}
|
106
|
+
spaceId: {}
|
108
107
|
},
|
109
108
|
emits: [
|
110
109
|
"success-edit",
|
@@ -122,7 +121,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
122
121
|
const handleGetDatasetDataList = (params)=>{
|
123
122
|
return getDatasetDataList(_object_spread({
|
124
123
|
datasetId: props.datasetId
|
125
|
-
},
|
124
|
+
}, params));
|
126
125
|
};
|
127
126
|
const { tableData, pagination, isLoading, handlePageChange, triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
128
127
|
current: 1,
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-hq5nasiw] {
|
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-hq5nasiw] {
|
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-hq5nasiw] .bk-sideslider-title {
|
13
13
|
justify-content: space-between;
|
14
14
|
width: 100%;
|
15
15
|
}
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import type { IDatasetDataParam } from '@/types/dataset';
|
2
1
|
interface IProps {
|
3
2
|
modelValue: boolean;
|
4
3
|
index: number;
|
5
4
|
datasetId: number;
|
6
5
|
apiPrefix: string;
|
7
6
|
spaceId?: string;
|
8
|
-
search: IDatasetDataParam;
|
9
7
|
}
|
10
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
11
9
|
"update:modelValue": (modelValue: boolean) => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-hq5nasiw";
|
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-yrqrxl4o] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-yrqrxl4o] {
|
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-yrqrxl4o] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-yrqrxl4o] {
|
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-yrqrxl4o";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js
CHANGED
@@ -27,27 +27,18 @@ function _object_spread(target) {
|
|
27
27
|
return target;
|
28
28
|
}
|
29
29
|
import { defineComponent as _defineComponent } from 'vue';
|
30
|
-
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode,
|
30
|
+
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
31
31
|
const _hoisted_1 = {
|
32
|
-
class: "g-flex-row"
|
33
|
-
};
|
34
|
-
const _hoisted_2 = {
|
35
|
-
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16"
|
36
|
-
};
|
37
|
-
const _hoisted_3 = [
|
38
|
-
"href"
|
39
|
-
];
|
40
|
-
const _hoisted_4 = {
|
41
32
|
class: "g-flex-row g-justify-between"
|
42
33
|
};
|
43
|
-
const
|
34
|
+
const _hoisted_2 = {
|
44
35
|
class: "text"
|
45
36
|
};
|
46
37
|
import { ref, toRef, watch } from 'vue';
|
47
38
|
import ViewOpResult from '../view-op-result/index.vue.js';
|
48
39
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
49
40
|
import useTable from '../../../../../hooks/use-table.ts.js';
|
50
|
-
import { DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
|
41
|
+
import { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
|
51
42
|
export default /*@__PURE__*/ _defineComponent({
|
52
43
|
props: {
|
53
44
|
search: {},
|
@@ -61,6 +52,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
61
52
|
[DatasetDataOperatRecordResultCode.Failed]: '失败',
|
62
53
|
[DatasetDataOperatRecordResultCode.Success]: '成功'
|
63
54
|
};
|
55
|
+
const actionIdMap = {
|
56
|
+
[DatasetDataOperatRecordActionId.AddDatasetItem]: '新增数据',
|
57
|
+
[DatasetDataOperatRecordActionId.EditDatasetItem]: '编辑数据',
|
58
|
+
[DatasetDataOperatRecordActionId.DeleteDatasetItem]: '删除数据'
|
59
|
+
};
|
64
60
|
const isShowView = ref(false);
|
65
61
|
const viewData = ref();
|
66
62
|
const handleGetOperateRecordList = (params)=>{
|
@@ -111,7 +107,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
111
107
|
width: "142"
|
112
108
|
}, {
|
113
109
|
default: _withCtx(({ row })=>[
|
114
|
-
_createTextVNode(_toDisplayString(row.
|
110
|
+
_createTextVNode(_toDisplayString(actionIdMap[row.actionId]), 1 /* TEXT */ )
|
115
111
|
]),
|
116
112
|
_: 1 /* STABLE */
|
117
113
|
}),
|
@@ -120,14 +116,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
120
116
|
width: "142"
|
121
117
|
}, {
|
122
118
|
default: _withCtx(({ row })=>[
|
123
|
-
|
124
|
-
(_openBlock(), _createElementBlock("svg", _hoisted_2, [
|
125
|
-
_createElementVNode("use", {
|
126
|
-
href: row.resultCode === _unref(DatasetDataOperatRecordResultCode).Success ? '#ai-ui-sdk-sync-success' : '#ai-ui-sdk-sync-failed'
|
127
|
-
}, null, 8 /* PROPS */ , _hoisted_3)
|
128
|
-
])),
|
129
|
-
_createTextVNode(" " + _toDisplayString(resultCodeMap[row.resultCode]), 1 /* TEXT */ )
|
130
|
-
])
|
119
|
+
_createTextVNode(_toDisplayString(resultCodeMap[row.resultCode]), 1 /* TEXT */ )
|
131
120
|
]),
|
132
121
|
_: 1 /* STABLE */
|
133
122
|
}),
|
@@ -135,8 +124,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
135
124
|
label: "操作结果"
|
136
125
|
}, {
|
137
126
|
default: _withCtx(({ row })=>[
|
138
|
-
_createElementVNode("span",
|
139
|
-
_createElementVNode("span",
|
127
|
+
_createElementVNode("span", _hoisted_1, [
|
128
|
+
_createElementVNode("span", _hoisted_2, _toDisplayString(row.instanceData), 1 /* TEXT */ ),
|
140
129
|
_createVNode(_component_bk_button, {
|
141
130
|
text: "",
|
142
131
|
theme: "primary",
|