@blueking/ai-ui-sdk 0.1.0-beta.10 → 0.1.0-beta.12

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.
Files changed (54) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-collapse/index.vue.css +2 -2
  6. package/dist/components/render-collapse/index.vue.js +1 -1
  7. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  8. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  9. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  10. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  12. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  14. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  15. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +7 -8
  16. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +1 -1
  17. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  18. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +21 -3
  20. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  21. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  22. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  23. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +78 -11
  25. package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +0 -4
  26. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  27. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  28. package/dist/components/render-dataset/index.vue.css +1 -1
  29. package/dist/components/render-dataset/index.vue.js +1 -1
  30. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  31. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  32. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  33. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  34. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  35. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  36. package/dist/components/render-dataset-list/components/table.script.vue.js.js +6 -1
  37. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  38. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  39. package/dist/components/render-file-card/index.vue.css +11 -11
  40. package/dist/components/render-file-card/index.vue.js +1 -1
  41. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  42. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  43. package/dist/components/render-header/index.vue.css +5 -5
  44. package/dist/components/render-header/index.vue.js +1 -1
  45. package/dist/components/render-router-tab/index.vue.css +3 -3
  46. package/dist/components/render-router-tab/index.vue.js +1 -1
  47. package/dist/components/render-search-select/index.vue.d.ts +1 -4
  48. package/dist/hooks/use-dataset-http.d.ts +5 -2
  49. package/dist/hooks/use-dataset-http.ts.js +6 -6
  50. package/dist/http/helper/dataset.d.ts +10 -13
  51. package/dist/http/helper/dataset.ts.js +15 -30
  52. package/dist/types/common.d.ts +1 -0
  53. package/dist/types/dataset.d.ts +20 -38
  54. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-4bn8ma4b] {
2
+ .aside-home[data-v-uhe47pyk] {
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-4bn8ma4b] .aside-item {
9
+ [data-v-uhe47pyk] .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-4bn8ma4b] .aside-item.is-tab {
19
+ [data-v-uhe47pyk] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-4bn8ma4b] .aside-item.is-tab:hover {
24
+ [data-v-uhe47pyk] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-4bn8ma4b] .aside-item.active {
27
+ [data-v-uhe47pyk] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-4bn8ma4b] .aside-item.active .tab-num {
32
+ [data-v-uhe47pyk] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-4bn8ma4b] .aside-item.active .active-text {
36
+ [data-v-uhe47pyk] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-4bn8ma4b] .aside-item .tab-name {
39
+ [data-v-uhe47pyk] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-4bn8ma4b] .aside-item .tab-num {
42
+ [data-v-uhe47pyk] .aside-item .tab-num {
43
43
  background: #EAEBF0;
44
44
  border-radius: 2px;
45
45
  margin-left: 5px;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-4bn8ma4b";
2
+ script.__scopeId = "data-v-uhe47pyk";
3
3
  script.__file = "./src/components/render-aside/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-01mw9h41] {
2
+ .send-container[data-v-py8p92uy] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-01mw9h41]:has(textarea:focus) {
5
+ .send-container[data-v-py8p92uy]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-01mw9h41] {
8
+ .send-container:hover .send-clear[data-v-py8p92uy] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-01mw9h41] {
11
+ .send-input[data-v-py8p92uy] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-01mw9h41]:has(textarea:focus) {
16
+ .send-input[data-v-py8p92uy]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-01mw9h41] textarea {
19
+ .send-input[data-v-py8p92uy] 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-01mw9h41] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-py8p92uy] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-01mw9h41] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-py8p92uy] 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-01mw9h41] textarea::placeholder {
34
+ .send-input[data-v-py8p92uy] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-01mw9h41] {
37
+ .send-clear[data-v-py8p92uy] {
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-01mw9h41]:hover {
46
+ .send-clear[data-v-py8p92uy]:hover {
47
47
  color: #313238;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-01mw9h41";
2
+ script.__scopeId = "data-v-py8p92uy";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-5lepjunl] {
2
+ .collapse-title[data-v-inajtubu] {
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-5lepjunl] {
8
+ .collapse-title .is-hidden[data-v-inajtubu] {
9
9
  transform: rotate(-90deg);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-5lepjunl";
2
+ script.__scopeId = "data-v-inajtubu";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-87a6gpz7] {
2
+ .content[data-v-6zdrfwm9] {
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-87a6gpz7] {
7
+ .data-set-edit-slider .value-content[data-v-6zdrfwm9] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-87a6gpz7] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-6zdrfwm9] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-87a6gpz7";
2
+ script.__scopeId = "data-v-6zdrfwm9";
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-0vxs3cm0] {
2
+ .content[data-v-wac7pibc] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-0vxs3cm0] {
6
+ .content .toolbar[data-v-wac7pibc] {
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-0vxs3cm0] {
13
+ .content .toolbar .record-search[data-v-wac7pibc] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-0vxs3cm0] {
16
+ .content .toolbar .record-data-picker[data-v-wac7pibc] {
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-0vxs3cm0";
2
+ script.__scopeId = "data-v-wac7pibc";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-ktb2v0c7] {
2
+ .text[data-v-8vj3qqib] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ktb2v0c7";
2
+ script.__scopeId = "data-v-8vj3qqib";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .content[data-v-64g5md4f] {
2
+ .content[data-v-qrc07o77] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-64g5md4f] {
7
+ .content .value-content[data-v-qrc07o77] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-64g5md4f";
2
+ script.__scopeId = "data-v-qrc07o77";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -102,6 +102,7 @@ export default /*@__PURE__*/ _defineComponent({
102
102
  const _component_bk_select = _resolveComponent("bk-select");
103
103
  const _component_bk_table_column = _resolveComponent("bk-table-column");
104
104
  const _component_bk_table = _resolveComponent("bk-table");
105
+ const _component_bk_cascader = _resolveComponent("bk-cascader");
105
106
  const _component_bk_form = _resolveComponent("bk-form");
106
107
  return _openBlock(), _createBlock(_component_bk_form, {
107
108
  "form-type": "vertical",
@@ -241,22 +242,20 @@ export default /*@__PURE__*/ _defineComponent({
241
242
  _createCommentVNode(" <bk-form-item\n label=\"来源团队\"\n property=\"sourceTeam\"\n required\n >\n <bk-select\n id-key=\"id\"\n display-key=\"companyName\"\n :model-value=\"formData.sourceTeam\"\n :list=\"companyList\"\n @change=\"(value: string) => handleChange('sourceTeam', value)\"\n />\n </bk-form-item> "),
242
243
  _createVNode(_component_bk_form_item, {
243
244
  label: "组件",
244
- property: "componentId",
245
+ property: "componentIds",
245
246
  class: "g-last-form-item",
246
247
  required: ""
247
248
  }, {
248
249
  default: _withCtx(()=>[
249
- _createVNode(_component_bk_select, {
250
- "id-key": "id",
251
- "display-key": "name",
250
+ _createVNode(_component_bk_cascader, {
251
+ filterable: "",
252
252
  list: componentList.value,
253
- "model-value": _ctx.formData.componentId,
254
- onChange: _cache[2] || (_cache[2] = (value)=>handleChange('componentId', value))
253
+ "model-value": _ctx.formData.componentIds,
254
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>handleChange('componentIds', value))
255
255
  }, null, 8 /* PROPS */ , [
256
256
  "list",
257
257
  "model-value"
258
- ]),
259
- _createCommentVNode(" <bk-cascader\n filterable\n :list=\"componentList\"\n :model-value=\"formData.componentId\"\n @change=\"(value: string) => handleChange('componentId', value)\"\n /> ")
258
+ ])
260
259
  ]),
261
260
  _: 1 /* STABLE */
262
261
  })
@@ -41,7 +41,7 @@ export default /*@__PURE__*/ _defineComponent({
41
41
  datasetName: '',
42
42
  type: undefined,
43
43
  companyId: undefined,
44
- componentId: undefined
44
+ componentIds: []
45
45
  };
46
46
  };
47
47
  const handleClearValidate = ()=>{
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-data-content[data-v-5uip0fta] {
2
+ .dataset-data-content[data-v-tkaffhzu] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-5uip0fta] .bk-modal-content {
6
+ .dataset-data-slider[data-v-tkaffhzu] .bk-modal-content {
7
7
  scrollbar-gutter: inherit !important;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-5uip0fta";
2
+ script.__scopeId = "data-v-tkaffhzu";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -29,6 +29,7 @@ function _async_to_generator(fn) {
29
29
  }
30
30
  import { defineComponent as _defineComponent } from 'vue';
31
31
  import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
32
+ import { Message } from 'bkui-vue';
32
33
  import { ref } from 'vue';
33
34
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
34
35
  export default /*@__PURE__*/ _defineComponent({
@@ -55,7 +56,9 @@ export default /*@__PURE__*/ _defineComponent({
55
56
  // 校验
56
57
  yield handleValidate();
57
58
  // 保存
58
- yield handleSave();
59
+ const data = yield handleSave();
60
+ // 提示消息
61
+ handleMessage(data);
59
62
  // 关闭弹窗
60
63
  handleClose(true);
61
64
  // 触发事件
@@ -74,12 +77,27 @@ export default /*@__PURE__*/ _defineComponent({
74
77
  const handleSave = ()=>{
75
78
  return createDatasetData(props.datasetData);
76
79
  };
77
- const handleSuccess = ()=>{
78
- emits('success-confirm');
80
+ const handleMessage = (data)=>{
81
+ let message = '';
82
+ if (data.createCount) {
83
+ message += `新增${data.createCount}条数据`;
84
+ }
85
+ if (data.duplicateCount) {
86
+ message += `,有${data.duplicateCount}条重复数据`;
87
+ }
88
+ if (message) {
89
+ Message({
90
+ message,
91
+ theme: 'success'
92
+ });
93
+ }
79
94
  };
80
95
  const handleClose = (noValidate)=>{
81
96
  emits('close', noValidate);
82
97
  };
98
+ const handleSuccess = ()=>{
99
+ emits('success-confirm');
100
+ };
83
101
  return (_ctx, _cache)=>{
84
102
  const _component_bk_button = _resolveComponent("bk-button");
85
103
  return _openBlock(), _createElementBlock(_Fragment, null, [
@@ -1,5 +1,5 @@
1
1
 
2
- .footer-button[data-v-qlz68h3r] {
2
+ .footer-button[data-v-z4azvpqp] {
3
3
  width: 88px;
4
4
  margin-right: 8px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './footer.script.vue.js.js';
2
- script.__scopeId = "data-v-qlz68h3r";
2
+ script.__scopeId = "data-v-z4azvpqp";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
4
4
  import './footer.vue.css';
5
5
  export default script;
@@ -1,7 +1,7 @@
1
1
 
2
- .plus-dataset-data[data-v-3urqxqxe] {
2
+ .plus-dataset-data[data-v-kd5lpvz9] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-3urqxqxe] .bk-modal-content {
5
+ .plus-dataset-sideslider[data-v-kd5lpvz9] .bk-modal-content {
6
6
  scrollbar-gutter: inherit !important;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-3urqxqxe";
2
+ script.__scopeId = "data-v-kd5lpvz9";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,6 +1,35 @@
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
+ }
1
30
  import { defineComponent as _defineComponent } from 'vue';
2
31
  import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
3
- import { onBeforeMount, ref } from 'vue';
32
+ import { ref } from 'vue';
4
33
  import RenderSearchSelect from '../../../render-search-select/index.vue.js';
5
34
  import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
6
35
  export default /*@__PURE__*/ _defineComponent({
@@ -14,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
14
43
  setup (__props, { emit: __emit }) {
15
44
  const props = __props;
16
45
  const emits = __emit;
17
- const { getSchemaList } = useDatasetHttp(props.apiPrefix);
46
+ const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix);
18
47
  const data = ref([
19
48
  {
20
49
  id: 'datasetName',
@@ -24,11 +53,15 @@ export default /*@__PURE__*/ _defineComponent({
24
53
  id: 'type',
25
54
  name: '数据集类型',
26
55
  multiple: true,
56
+ async: true,
27
57
  children: []
28
58
  },
29
59
  {
30
- id: 'componentName',
31
- name: '组件'
60
+ id: 'componentIds',
61
+ name: '组件',
62
+ multiple: true,
63
+ async: true,
64
+ children: []
32
65
  },
33
66
  {
34
67
  id: 'createdBy',
@@ -38,20 +71,54 @@ export default /*@__PURE__*/ _defineComponent({
38
71
  const handleUpdate = (modelValue)=>{
39
72
  emits('update:modelValue', modelValue);
40
73
  };
41
- const handleGetSchemaList = ()=>{
42
- getSchemaList().then((schemaList)=>{
43
- data.value[1].children = schemaList.map((schema)=>({
44
- id: schema.id,
45
- name: schema.name
46
- }));
74
+ const handleGetMenuList = function() {
75
+ var _ref = _async_to_generator(function*(data, search) {
76
+ if (!data.async) {
77
+ return [];
78
+ }
79
+ if (data.id === 'componentIds') {
80
+ return handleGetComponentList(search);
81
+ }
82
+ if (data.id === 'type') {
83
+ return handleGetSchemaList(search);
84
+ }
85
+ });
86
+ return function handleGetMenuList(data, search) {
87
+ return _ref.apply(this, arguments);
88
+ };
89
+ }();
90
+ const isMatchSearch = (value, search)=>{
91
+ return value.toLocaleLowerCase().includes(search.toLocaleLowerCase());
92
+ };
93
+ const handleGetSchemaList = (search)=>{
94
+ return getSchemaList().then((schemaList)=>{
95
+ const children = schemaList.reduce((acc, cur)=>{
96
+ if (isMatchSearch(cur.name, search)) {
97
+ acc.push(cur);
98
+ }
99
+ return acc;
100
+ }, []);
101
+ data.value[1].children = children;
102
+ return children;
103
+ });
104
+ };
105
+ const handleGetComponentList = (search)=>{
106
+ return getComponentList().then((componentList)=>{
107
+ // 只取叶子节点
108
+ const children = componentList.reduce((acc, cur)=>{
109
+ acc.push(...cur.children.filter((item)=>isMatchSearch(item.name, search)));
110
+ return acc;
111
+ }, []);
112
+ data.value[2].children = children;
113
+ return children;
47
114
  });
48
115
  };
49
- onBeforeMount(handleGetSchemaList);
50
116
  return (_ctx, _cache)=>{
51
117
  return _openBlock(), _createBlock(RenderSearchSelect, {
52
118
  placeholder: "按关键字搜索",
53
119
  data: data.value,
54
120
  "model-value": _ctx.modelValue,
121
+ "get-menu-list": handleGetMenuList,
55
122
  "onUpdate:modelValue": handleUpdate
56
123
  }, null, 8 /* PROPS */ , [
57
124
  "data",
@@ -49,10 +49,6 @@ export default /*@__PURE__*/ _defineComponent({
49
49
  {
50
50
  id: 'instanceData',
51
51
  name: '操作结果'
52
- },
53
- {
54
- id: 'username',
55
- name: '操作人'
56
52
  }
57
53
  ]);
58
54
  const handleUpdate = (modelValue)=>{
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-dzmk9rr9] {
2
+ .bkaidev-markdown[data-v-jb7vxmi6] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-dzmk9rr9] {
5
+ .bkaidev-wangye[data-v-jb7vxmi6] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-dzmk9rr9] {
8
+ .bkaidev-wenben[data-v-jb7vxmi6] {
9
9
  color: #979ba5;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-dzmk9rr9";
2
+ script.__scopeId = "data-v-jb7vxmi6";
3
3
  script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-qa5s3vx1] {
2
+ .dataset-main[data-v-ankamtsk] {
3
3
  flex: 1;
4
4
  width: calc(100vw - 300px);
5
5
  height: 100%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-qa5s3vx1";
2
+ script.__scopeId = "data-v-ankamtsk";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-6ddh2pl2] {
2
+ .ellipsis-text[data-v-opfe7007] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-6ddh2pl2";
2
+ script.__scopeId = "data-v-opfe7007";
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;
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-05oivf6c] {
2
+ .origin-data-content[data-v-58ew21or] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-05oivf6c] {
6
+ .origin-data-panel[data-v-58ew21or] {
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-05oivf6c] {
13
+ .origin-data-panel .toolbar-search[data-v-58ew21or] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-05oivf6c";
2
+ script.__scopeId = "data-v-58ew21or";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-5uimw112] {
2
+ .main-content[data-v-olt371bt] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-5uimw112] {
6
+ .main-panel[data-v-olt371bt] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-5uimw112] {
13
+ .main-search[data-v-olt371bt] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-5uimw112";
2
+ script.__scopeId = "data-v-olt371bt";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -177,7 +177,12 @@ export default /*@__PURE__*/ _defineComponent({
177
177
  }),
178
178
  _createVNode(_component_bk_table_column, {
179
179
  label: "组件",
180
- field: "componentName"
180
+ field: "componentNames"
181
+ }, {
182
+ default: _withCtx(({ row })=>[
183
+ _createTextVNode(_toDisplayString(row.componentNames.join(' / ')), 1 /* TEXT */ )
184
+ ]),
185
+ _: 1 /* STABLE */
181
186
  }),
182
187
  _createVNode(_component_bk_table_column, {
183
188
  label: "创建人",
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-fqv15nkk] {
2
+ .expend-collapse-home[data-v-vhsudawj] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-fqv15nkk]:hover {
18
+ .expend-collapse-home[data-v-vhsudawj]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-fqv15nkk] {
21
+ .expend-collapse-home.is-close[data-v-vhsudawj] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-fqv15nkk";
2
+ script.__scopeId = "data-v-vhsudawj";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-r8kqchgj] {
2
+ .upload-file-home[data-v-2x0vhm89] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-r8kqchgj]:hover {
9
+ .upload-file-home[data-v-2x0vhm89]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-r8kqchgj] {
12
+ .upload-file-home:hover .file-icons[data-v-2x0vhm89] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-r8kqchgj] {
15
+ .upload-file-home .file-icon[data-v-2x0vhm89] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-r8kqchgj] {
18
+ .upload-file-home .file-content[data-v-2x0vhm89] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-r8kqchgj] {
26
+ .upload-file-home .file-content .file-name[data-v-2x0vhm89] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-r8kqchgj] {
31
+ .upload-file-home .file-content .file-size[data-v-2x0vhm89] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-r8kqchgj] {
36
+ .upload-file-home .file-icons[data-v-2x0vhm89] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-r8kqchgj] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2x0vhm89] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-r8kqchgj]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2x0vhm89]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-r8kqchgj] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-2x0vhm89] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-r8kqchgj";
2
+ script.__scopeId = "data-v-2x0vhm89";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-maqdzp5q] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-rn9a3ev1] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-maqdzp5q], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-maqdzp5q], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-maqdzp5q] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-rn9a3ev1] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-maqdzp5q] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-rn9a3ev1] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-maqdzp5q] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-rn9a3ev1] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-maqdzp5q] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-rn9a3ev1] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-maqdzp5q";
2
+ script.__scopeId = "data-v-rn9a3ev1";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-5cpse8h2] {
2
+ .header-home[data-v-ngont4j1] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-5cpse8h2] {
10
+ .header-title[data-v-ngont4j1] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-5cpse8h2] {
17
+ .header-main[data-v-ngont4j1] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-5cpse8h2] {
25
+ .header-select[data-v-ngont4j1] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-5cpse8h2] {
31
+ .header-input[data-v-ngont4j1] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-5cpse8h2";
2
+ script.__scopeId = "data-v-ngont4j1";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-hs9os1fh] {
2
+ .router-tab[data-v-smuozfq5] {
3
3
  margin-top: 2px;
4
4
  height: 42px;
5
5
  background: #FFFFFF;
6
6
  box-shadow: 0 2px 4px 0 #1919290d;
7
7
  padding: 0 45px;
8
8
  }
9
- .router-tab a[data-v-hs9os1fh] {
9
+ .router-tab a[data-v-smuozfq5] {
10
10
  padding: 0 8px;
11
11
  margin-right: 24px;
12
12
  font-size: 14px;
@@ -15,7 +15,7 @@
15
15
  color: #4D4F56;
16
16
  box-sizing: border-box;
17
17
  }
18
- .router-tab a.router-link-exact-active[data-v-hs9os1fh] {
18
+ .router-tab a.router-link-exact-active[data-v-smuozfq5] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-hs9os1fh";
2
+ script.__scopeId = "data-v-smuozfq5";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -13,10 +13,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
13
13
  name: string;
14
14
  id: number;
15
15
  }[]) => Promise<boolean | string> | boolean | string;
16
- getMenuList?: (item: {
17
- name: string;
18
- id: string;
19
- }) => any;
16
+ getMenuList?: Function;
20
17
  } & Partial<{}>> & import("vue").PublicProps;
21
18
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
22
19
  attrs: any;
@@ -15,7 +15,10 @@ export declare const useDatasetHttp: (apiPrefix?: string) => {
15
15
  count: number;
16
16
  results: import("@/types/dataset").IDatasetData[];
17
17
  }>;
18
- createDatasetData: (data: IDatasetDataForm) => Promise<import("@/types/dataset").IDatasetData>;
18
+ createDatasetData: (data: IDatasetDataForm) => Promise<{
19
+ createCount: number;
20
+ duplicateCount: number;
21
+ }>;
19
22
  updateDatasetData: (data: IDatasetDataForm, id: number) => Promise<import("@/types/dataset").IDatasetData>;
20
23
  deleteDatasetData: (id: number) => Promise<IDatasetDataApi>;
21
24
  getDatasetData: (id: number) => Promise<import("@/types/dataset").IDatasetData>;
@@ -31,7 +34,7 @@ export declare const useDatasetHttp: (apiPrefix?: string) => {
31
34
  results: import("@/types/dataset").IOperatRecord[];
32
35
  }>;
33
36
  getCompanyParticipantList: (fuzzy?: string) => Promise<{
34
- companies: import("@/types/dataset").IParticipantCompany[];
37
+ companyNames: string[];
35
38
  list: import("@/types/dataset").ICompanyParticipant[];
36
39
  }>;
37
40
  };
@@ -1,5 +1,5 @@
1
1
  import fetch from '../http/fetch/index.ts.js';
2
- import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferParticipantCompanyApi2ParticipantCompany, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
2
+ import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferCreateDatasetDataResultApi2CreateDatasetDataResult, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
3
3
  const datasetPerfix = 'dataset/v1';
4
4
  const metaPerfix = 'meta/v1';
5
5
  // 数据集相关接口
@@ -7,7 +7,7 @@ export const useDatasetHttp = (apiPrefix)=>{
7
7
  // meta相关接口
8
8
  // 获取公司列表
9
9
  const getCompanyList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/company/`).then((data)=>data.map(transferCompanyApi2Company));
10
- // 获取公司列表
10
+ // 获取组件列表
11
11
  const getComponentList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/component/`);
12
12
  // 查询操作记录列表
13
13
  const getOperateRecordList = (param)=>fetch.post(`${apiPrefix}/${metaPerfix}/operate_record/list/`, transferOperatRecordParam2OperatRecordParamApi(param)).then(({ count, results })=>({
@@ -17,8 +17,8 @@ export const useDatasetHttp = (apiPrefix)=>{
17
17
  // 获取来源团队-组件和参与方列表
18
18
  const getCompanyParticipantList = (fuzzy)=>fetch.get(`${apiPrefix}/${metaPerfix}/company/participant_list/`, {
19
19
  fuzzy
20
- }).then(({ list, companies })=>({
21
- companies: companies.map(transferParticipantCompanyApi2ParticipantCompany),
20
+ }).then(({ list, company_names })=>({
21
+ companyNames: company_names,
22
22
  list: transferCompanyParticipantApi2CompanyParticipantList(list)
23
23
  }));
24
24
  // 平台用户-更新用户信息
@@ -31,7 +31,7 @@ export const useDatasetHttp = (apiPrefix)=>{
31
31
  // 获取数据集数据信息
32
32
  const getDatasetMineInfo = ()=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/mine_info/`);
33
33
  // 获取数据集列表
34
- const getDatasetList = (query)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
34
+ const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/list/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
35
35
  count,
36
36
  results: results.map(transferDatasetApi2Dataset)
37
37
  }));
@@ -49,7 +49,7 @@ export const useDatasetHttp = (apiPrefix)=>{
49
49
  results: results.map(transferDatasetDataApi2DatasetData)
50
50
  }));
51
51
  // 创建数据集数据
52
- const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferDatasetDataApi2DatasetData);
52
+ const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferCreateDatasetDataResultApi2CreateDatasetDataResult);
53
53
  // 更新数据集数据
54
54
  const updateDatasetData = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferDatasetDataApi2DatasetData);
55
55
  // 删除数据集数据
@@ -1,4 +1,13 @@
1
- import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IParticipant, IParticipantApi, IParticipantCompany, IParticipantCompanyApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
1
+ import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
2
+ /**
3
+ * 接口转换为ui使用
4
+ * @param data ICreataDatasetDataResultApi
5
+ * @returns ICreataDatasetDataResult
6
+ */
7
+ export declare const transferCreateDatasetDataResultApi2CreateDatasetDataResult: (data: ICreataDatasetDataResultApi) => {
8
+ createCount: number;
9
+ duplicateCount: number;
10
+ };
2
11
  /**
3
12
  * 接口转换为ui使用
4
13
  * @param data ICompanyApi
@@ -83,15 +92,3 @@ export declare const transferOperatRecordApi2OperatRecord: (data: IOperatRecordA
83
92
  * @returns ICompanyParticipant[]
84
93
  */
85
94
  export declare const transferCompanyParticipantApi2CompanyParticipantList: (data: ICompanyParticipantApi[]) => ICompanyParticipant[];
86
- /**
87
- * 接口转换为ui使用
88
- * @param data IParticipantApi
89
- * @returns IParticipant
90
- */
91
- export declare const transferParticipantApi2Participant: (data: IParticipantApi) => IParticipant;
92
- /**
93
- * 接口转换为ui使用
94
- * @param data IParticipantCompanyApi
95
- * @returns IParticipantCompany
96
- */
97
- export declare const transferParticipantCompanyApi2ParticipantCompany: (data: IParticipantCompanyApi) => IParticipantCompany;
@@ -77,6 +77,16 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
+ /**
81
+ * 接口转换为ui使用
82
+ * @param data ICreataDatasetDataResultApi
83
+ * @returns ICreataDatasetDataResult
84
+ */ export const transferCreateDatasetDataResultApi2CreateDatasetDataResult = (data)=>{
85
+ return {
86
+ createCount: data.create_count,
87
+ duplicateCount: data.duplicate_count
88
+ };
89
+ };
80
90
  /**
81
91
  * 接口转换为ui使用
82
92
  * @param data ICompanyApi
@@ -117,8 +127,8 @@ function _object_without_properties_loose(source, excluded) {
117
127
  * @returns IDataset
118
128
  */ export const transferDatasetApi2Dataset = (data)=>{
119
129
  return {
120
- componentId: data.component_id,
121
- componentName: data.component_name,
130
+ componentIds: data.component_ids,
131
+ componentNames: data.component_names,
122
132
  datasetItemCount: data.dataset_item_count,
123
133
  updatedAt: data.updated_at,
124
134
  updatedBy: data.updated_by,
@@ -141,7 +151,7 @@ function _object_without_properties_loose(source, excluded) {
141
151
  company_name: data === null || data === void 0 ? void 0 : data.companyName,
142
152
  dataset_name: data === null || data === void 0 ? void 0 : data.datasetName,
143
153
  type: data === null || data === void 0 ? void 0 : data.type,
144
- component_name: data === null || data === void 0 ? void 0 : data.componentName,
154
+ component_ids: data === null || data === void 0 ? void 0 : data.componentIds,
145
155
  created_by: data === null || data === void 0 ? void 0 : data.createdBy,
146
156
  fuzzy: data === null || data === void 0 ? void 0 : data.fuzzy
147
157
  };
@@ -152,7 +162,7 @@ function _object_without_properties_loose(source, excluded) {
152
162
  * @returns IDatasetFormApi
153
163
  */ export const transferDatasetForm2DatasetFormApi = (data)=>{
154
164
  return {
155
- component_id: data.componentId,
165
+ component_ids: data.componentIds,
156
166
  company_id: data.companyId,
157
167
  dataset_name: data.datasetName,
158
168
  type: data.type
@@ -287,32 +297,7 @@ function _object_without_properties_loose(source, excluded) {
287
297
  componentName: item.component_name,
288
298
  description: item.description,
289
299
  totalParticipants: item.total_participants,
290
- participants: item.participants.map(transferParticipantApi2Participant),
300
+ participants: item.participants,
291
301
  rowspan: countMap[item.category]
292
302
  }));
293
303
  };
294
- /**
295
- * 接口转换为ui使用
296
- * @param data IParticipantApi
297
- * @returns IParticipant
298
- */ export const transferParticipantApi2Participant = (data)=>{
299
- return {
300
- id: data.id,
301
- children: data.children,
302
- createdAt: data.created_at,
303
- createdBy: data.created_by,
304
- updatedAt: data.updated_at,
305
- updatedBy: data.updated_by,
306
- companyName: data.company_name
307
- };
308
- };
309
- /**
310
- * 接口转换为ui使用
311
- * @param data IParticipantCompanyApi
312
- * @returns IParticipantCompany
313
- */ export const transferParticipantCompanyApi2ParticipantCompany = (data)=>{
314
- return {
315
- isUserCompany: data.is_user_company,
316
- companyName: data.company_name
317
- };
318
- };
@@ -11,6 +11,7 @@ export interface IPage {
11
11
  export interface ISearchSelectItem {
12
12
  id: string | number;
13
13
  name: string;
14
+ async?: boolean;
14
15
  valueType?: string;
15
16
  multiple?: boolean;
16
17
  children?: ISearchSelectItem[];
@@ -5,19 +5,19 @@ export interface IDatasetInfo {
5
5
  all: number;
6
6
  }
7
7
  export interface IDatasetFormApi {
8
- component_id: number;
8
+ component_ids: number[];
9
9
  company_id: string;
10
10
  dataset_name: string;
11
11
  type: DatasetType;
12
12
  }
13
13
  export interface IDatasetForm {
14
- componentId: number;
14
+ componentIds: number[];
15
15
  companyId?: string;
16
16
  datasetName: string;
17
17
  type: DatasetType;
18
18
  }
19
19
  export interface IDatasetApi extends IDatasetFormApi {
20
- component_name: string;
20
+ component_names: string[];
21
21
  company_name: string;
22
22
  dataset_item_count: number;
23
23
  updated_at: string;
@@ -27,7 +27,7 @@ export interface IDatasetApi extends IDatasetFormApi {
27
27
  id: number;
28
28
  }
29
29
  export interface IDataset extends IDatasetForm {
30
- componentName: string;
30
+ componentNames: string[];
31
31
  companyName: string;
32
32
  datasetItemCount: number;
33
33
  updatedAt: string;
@@ -37,7 +37,7 @@ export interface IDataset extends IDatasetForm {
37
37
  id: number;
38
38
  }
39
39
  export interface IDatasetListParam extends IPage {
40
- componentName?: string;
40
+ componentIds?: string;
41
41
  createdBy?: string;
42
42
  datasetName?: string;
43
43
  fuzzy?: string;
@@ -46,7 +46,7 @@ export interface IDatasetListParam extends IPage {
46
46
  type?: DatasetType;
47
47
  }
48
48
  export interface IDatasetListParamApi extends IPage {
49
- component_name?: string;
49
+ component_ids?: string;
50
50
  created_by?: string;
51
51
  dataset_name?: string;
52
52
  fuzzy?: string;
@@ -114,13 +114,13 @@ export interface IUserInfoForm {
114
114
  phone: string;
115
115
  email: string;
116
116
  }
117
- export interface IUserInfoApi extends IUserInfoFormApi {
117
+ export interface IUserInfoApi extends Partial<IUserInfoFormApi> {
118
118
  nickname: string;
119
- company_name: string;
119
+ company_name?: string;
120
120
  }
121
- export interface IUserInfo extends IUserInfoForm {
121
+ export interface IUserInfo extends Partial<IUserInfoForm> {
122
122
  nickname: string;
123
- companyName: string;
123
+ companyName?: string;
124
124
  }
125
125
  export interface ISchema {
126
126
  id: string;
@@ -173,47 +173,21 @@ export interface IOperatRecord {
173
173
  instanceData: Record<string, string>;
174
174
  endTime: string;
175
175
  }
176
- export interface IParticipantCompanyApi {
177
- is_user_company: number;
178
- company_name: string;
179
- }
180
- export interface IParticipantCompany {
181
- isUserCompany: number;
182
- companyName: string;
183
- }
184
176
  export interface ICompanyParticipantApi {
185
177
  category: string;
186
178
  component_name: string;
187
179
  description: string;
188
180
  total_participants: number;
189
- participants: IParticipantApi[];
190
- }
191
- export interface IParticipantApi {
192
- id: number;
193
- children: string[];
194
- created_at: string;
195
- created_by: string;
196
- updated_at: string;
197
- updated_by: string;
198
- company_name: string;
181
+ participants: string[];
199
182
  }
200
183
  export interface ICompanyParticipant {
201
184
  category: string;
202
185
  componentName: string;
203
186
  description: string;
204
187
  totalParticipants: number;
205
- participants: IParticipant[];
188
+ participants: string[];
206
189
  rowspan: number;
207
190
  }
208
- export interface IParticipant {
209
- id: number;
210
- children: string[];
211
- createdAt: string;
212
- createdBy: string;
213
- updatedAt: string;
214
- updatedBy: string;
215
- companyName: string;
216
- }
217
191
  export interface ICompanyApi {
218
192
  id: number;
219
193
  company_name: string;
@@ -228,3 +202,11 @@ export interface IComponent {
228
202
  code: string;
229
203
  children: IComponent[];
230
204
  }
205
+ export interface ICreataDatasetDataResultApi {
206
+ create_count: number;
207
+ duplicate_count: number;
208
+ }
209
+ export interface ICreataDatasetDataResult {
210
+ createCount: number;
211
+ duplicateCount: number;
212
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.12",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",