@blueking/ai-ui-sdk 0.1.19-beta.16 → 0.1.19-beta.18

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 (84) hide show
  1. package/dist/components/render-auth/auth-dialog.script.vue.js.js +26 -25
  2. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  3. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  4. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  5. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  6. package/dist/components/render-checkbox/index.vue.css +9 -9
  7. package/dist/components/render-checkbox/index.vue.js +1 -1
  8. package/dist/components/render-choose-tag/index.script.vue.js.js +3 -3
  9. package/dist/components/render-choose-tag/index.vue.css +7 -7
  10. package/dist/components/render-choose-tag/index.vue.js +1 -1
  11. package/dist/components/render-collapse/index.vue.css +2 -2
  12. package/dist/components/render-collapse/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
  14. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  16. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  17. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  18. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +165 -0
  20. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  21. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
  22. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  23. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +19 -34
  25. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  26. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  34. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
  35. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
  36. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  37. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  38. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +230 -388
  39. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
  40. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -6
  41. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  42. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  43. package/dist/components/render-dataset-list/components/main.script.vue.js.js +6 -5
  44. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  45. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  46. package/dist/components/render-dataset-list/components/table.script.vue.js +404 -0
  47. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
  48. package/dist/components/render-dataset-list/components/table.vue.js +1 -1
  49. package/dist/components/render-dataset-list/index.vue.css +4 -1
  50. package/dist/components/render-dataset-list/index.vue.js +1 -1
  51. package/dist/components/render-file-card/index.script.vue.js.js +4 -14
  52. package/dist/components/render-file-card/index.vue.css +11 -11
  53. package/dist/components/render-file-card/index.vue.js +1 -1
  54. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  55. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  56. package/dist/components/render-header/index.vue.css +3 -3
  57. package/dist/components/render-header/index.vue.js +1 -1
  58. package/dist/components/render-like/index.vue.css +5 -5
  59. package/dist/components/render-like/index.vue.js +1 -1
  60. package/dist/components/render-router-tab/index.vue.css +3 -3
  61. package/dist/components/render-router-tab/index.vue.js +1 -1
  62. package/dist/components/render-t-table/index.script.vue.js +5 -2
  63. package/dist/components/render-t-table/index.vue.css +19 -19
  64. package/dist/components/render-t-table/index.vue.d.ts +1 -0
  65. package/dist/components/render-t-table/index.vue.js +1 -1
  66. package/dist/components/render-tag-tree/index.script.vue.js.js +5 -7
  67. package/dist/components/render-tag-tree/index.vue.css +7 -7
  68. package/dist/components/render-tag-tree/index.vue.js +1 -1
  69. package/dist/css/tailwind.css +8 -0
  70. package/dist/hooks/use-dataset-http.d.ts +2 -2
  71. package/dist/hooks/use-dataset-http.ts.js +6 -4
  72. package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
  73. package/dist/hooks/use-ellipsis-tooltip.ts.js +63 -0
  74. package/dist/hooks/use-meta-http.d.ts +2 -2
  75. package/dist/hooks/use-meta-http.ts.js +6 -4
  76. package/dist/hooks.d.ts +1 -0
  77. package/dist/hooks.ts.js +1 -0
  78. package/dist/http/helper/common.ts.js +4 -4
  79. package/dist/http/helper/dataset.ts.js +1 -1
  80. package/dist/http/helper/knowledge.ts.js +2 -1
  81. package/dist/http/helper/tool.ts.js +1 -0
  82. package/package.json +2 -1
  83. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
  84. package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -590
@@ -1,12 +1,30 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
- import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
2
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
3
3
  import { ref } from 'vue';
4
+ import RenderTTable from '../render-t-table/index.vue.js';
4
5
  export default /*@__PURE__*/ _defineComponent({
5
6
  setup (__props, { expose: __expose }) {
6
7
  const isShow = ref(false);
7
8
  const perm = ref();
8
9
  const tableData = ref();
9
10
  let cancelCallback;
11
+ const getColumns = ()=>[
12
+ {
13
+ colKey: 'system_name',
14
+ ellipsis: true,
15
+ title: '系统'
16
+ },
17
+ {
18
+ colKey: 'name',
19
+ ellipsis: true,
20
+ title: '需要申请的权限'
21
+ },
22
+ {
23
+ colKey: 'instance_name',
24
+ ellipsis: true,
25
+ title: '关联的资源实例'
26
+ }
27
+ ];
10
28
  const handleApply = ()=>{
11
29
  var _perm_value;
12
30
  window.open((_perm_value = perm.value) === null || _perm_value === void 0 ? void 0 : _perm_value.apply_url, '_blank');
@@ -33,8 +51,6 @@ export default /*@__PURE__*/ _defineComponent({
33
51
  });
34
52
  return (_ctx, _cache)=>{
35
53
  const _component_bk_exception = _resolveComponent("bk-exception");
36
- const _component_bk_table_column = _resolveComponent("bk-table-column");
37
- const _component_bk_table = _resolveComponent("bk-table");
38
54
  const _component_bk_button = _resolveComponent("bk-button");
39
55
  const _component_bk_dialog = _resolveComponent("bk-dialog");
40
56
  return _openBlock(), _createBlock(_component_bk_dialog, {
@@ -79,29 +95,14 @@ export default /*@__PURE__*/ _defineComponent({
79
95
  ])
80
96
  ]),
81
97
  default: _withCtx(()=>[
82
- _createVNode(_component_bk_table, {
98
+ _createVNode(RenderTTable, {
99
+ "row-key": "system_name",
83
100
  class: "g-mb-20",
84
- "show-overflow-tooltip": "",
85
- "empty-cell-text": "--",
86
- data: tableData.value
87
- }, {
88
- default: _withCtx(()=>[
89
- _createVNode(_component_bk_table_column, {
90
- label: "系统",
91
- field: "system_name"
92
- }),
93
- _createVNode(_component_bk_table_column, {
94
- label: "需要申请的权限",
95
- field: "name"
96
- }),
97
- _createVNode(_component_bk_table_column, {
98
- label: "关联的资源实例",
99
- field: "instance_name"
100
- })
101
- ]),
102
- _: 1 /* STABLE */
103
- }, 8 /* PROPS */ , [
104
- "data"
101
+ columns: getColumns(),
102
+ "table-data": tableData.value
103
+ }, null, 8 /* PROPS */ , [
104
+ "columns",
105
+ "table-data"
105
106
  ])
106
107
  ]),
107
108
  _: 1 /* STABLE */
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-5v4h5f7x] {
2
+ .send-container[data-v-j28dnosy] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-5v4h5f7x]:has(textarea:focus) {
5
+ .send-container[data-v-j28dnosy]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-5v4h5f7x] {
8
+ .send-container:hover .send-clear[data-v-j28dnosy] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-5v4h5f7x] {
11
+ .send-input[data-v-j28dnosy] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-5v4h5f7x]:has(textarea:focus) {
16
+ .send-input[data-v-j28dnosy]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-5v4h5f7x] textarea {
19
+ .send-input[data-v-j28dnosy] 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-5v4h5f7x] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-j28dnosy] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-5v4h5f7x] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-j28dnosy] 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-5v4h5f7x] textarea::placeholder {
34
+ .send-input[data-v-j28dnosy] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-5v4h5f7x] {
37
+ .send-clear[data-v-j28dnosy] {
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-5v4h5f7x]:hover {
46
+ .send-clear[data-v-j28dnosy]: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-5v4h5f7x";
2
+ script.__scopeId = "data-v-j28dnosy";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .auto-refresh[data-v-vvp7uqaw] {
2
+ .auto-refresh[data-v-i867eum0] {
3
3
  position: relative;
4
4
  cursor: pointer;
5
5
  line-height: 26px;
6
6
  padding: 0 4px;
7
7
  white-space: nowrap;
8
8
  }
9
- .auto-refresh[data-v-vvp7uqaw]:after {
9
+ .auto-refresh[data-v-i867eum0]:after {
10
10
  content: '';
11
11
  position: absolute;
12
12
  top: 5px;
@@ -16,31 +16,31 @@
16
16
  background-color: #dcdee5;
17
17
  z-index: 1;
18
18
  }
19
- .auto-refresh[data-v-vvp7uqaw]:hover {
19
+ .auto-refresh[data-v-i867eum0]:hover {
20
20
  color: #3A84FF;
21
21
  background-color: #E1ECFF;
22
22
  }
23
- .refresh[data-v-vvp7uqaw] {
23
+ .refresh[data-v-i867eum0] {
24
24
  cursor: pointer;
25
25
  line-height: 26px;
26
26
  padding: 0 4px;
27
27
  }
28
- .refresh[data-v-vvp7uqaw]:hover {
28
+ .refresh[data-v-i867eum0]:hover {
29
29
  color: #3A84FF;
30
30
  background-color: #E1ECFF;
31
31
  }
32
- .textarea-list[data-v-vvp7uqaw] {
32
+ .textarea-list[data-v-i867eum0] {
33
33
  padding: 4px 0;
34
34
  line-height: 32px;
35
35
  max-height: 300px;
36
36
  position: relative;
37
37
  z-index: 2;
38
38
  }
39
- .textarea-list .textarea-item[data-v-vvp7uqaw] {
39
+ .textarea-list .textarea-item[data-v-i867eum0] {
40
40
  padding: 0 12px;
41
41
  cursor: pointer;
42
42
  }
43
- .textarea-list .textarea-item[data-v-vvp7uqaw]:hover {
43
+ .textarea-list .textarea-item[data-v-i867eum0]:hover {
44
44
  background: #E1ECFF;
45
45
  color: #3A84FF;
46
46
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-vvp7uqaw";
2
+ script.__scopeId = "data-v-i867eum0";
3
3
  script.__file = "./src/components/render-auto-refresh/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .checkbox[data-v-hvx4ri3e] {
2
+ .checkbox[data-v-ztrn8l5k] {
3
3
  position: relative;
4
4
  display: inline-block;
5
5
  width: 16px;
@@ -8,27 +8,27 @@
8
8
  border-radius: 2px;
9
9
  cursor: pointer;
10
10
  }
11
- .checkbox.disabled[data-v-hvx4ri3e] {
11
+ .checkbox.disabled[data-v-ztrn8l5k] {
12
12
  cursor: not-allowed;
13
13
  background: #fafbfd;
14
14
  border-color: #dcdee5;
15
15
  }
16
- .checkbox.disabled.checked[data-v-hvx4ri3e] {
16
+ .checkbox.disabled.checked[data-v-ztrn8l5k] {
17
17
  background-color: #a3c5fd;
18
18
  border-color: #a3c5fd;
19
19
  }
20
- .checkbox.disabled.indeterminate[data-v-hvx4ri3e] {
20
+ .checkbox.disabled.indeterminate[data-v-ztrn8l5k] {
21
21
  background-color: #fafbfd;
22
22
  border-color: #dcdee5;
23
23
  }
24
- .checkbox.disabled.indeterminate[data-v-hvx4ri3e]:after {
24
+ .checkbox.disabled.indeterminate[data-v-ztrn8l5k]:after {
25
25
  background: #dcdee5;
26
26
  }
27
- .checkbox.checked[data-v-hvx4ri3e] {
27
+ .checkbox.checked[data-v-ztrn8l5k] {
28
28
  background-color: #3a84ff;
29
29
  border: 1px solid #3a84ff;
30
30
  }
31
- .checkbox.checked[data-v-hvx4ri3e]:after {
31
+ .checkbox.checked[data-v-ztrn8l5k]:after {
32
32
  position: absolute;
33
33
  top: 50%;
34
34
  left: 50%;
@@ -41,11 +41,11 @@
41
41
  transform: translate(-50%, -60%) rotate(45deg);
42
42
  transform-origin: center;
43
43
  }
44
- .checkbox.indeterminate[data-v-hvx4ri3e] {
44
+ .checkbox.indeterminate[data-v-ztrn8l5k] {
45
45
  background-color: #3a84ff;
46
46
  border: 1px solid #3a84ff;
47
47
  }
48
- .checkbox.indeterminate[data-v-hvx4ri3e]:after {
48
+ .checkbox.indeterminate[data-v-ztrn8l5k]:after {
49
49
  position: absolute;
50
50
  top: 50%;
51
51
  left: 50%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-hvx4ri3e";
2
+ script.__scopeId = "data-v-ztrn8l5k";
3
3
  script.__file = "./src/components/render-checkbox/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -75,7 +75,7 @@ export default /*@__PURE__*/ _defineComponent({
75
75
  const tagNames = handleGetTagNames(value);
76
76
  try {
77
77
  templateTagNameErrorMessage = '';
78
- yield fun(tagNames);
78
+ yield fun(tagNames, props.module);
79
79
  } catch (error) {
80
80
  templateTagNameErrorMessage = error.message;
81
81
  return false;
@@ -94,7 +94,7 @@ export default /*@__PURE__*/ _defineComponent({
94
94
  ]
95
95
  };
96
96
  const getModuleValue = ()=>{
97
- return props.multiple ? props.modelValue : props.modelValue[0];
97
+ return props.multiple ? props.modelValue : props.modelValue[0] || [];
98
98
  };
99
99
  const handleFocus = ()=>{
100
100
  isShow.value = true;
@@ -130,7 +130,7 @@ export default /*@__PURE__*/ _defineComponent({
130
130
  const tagNames = handleGetTagNames(tempTagName.value);
131
131
  const plusTagFun = props.isDataset ? plusDatasetTag : plusTag;
132
132
  yield tagFormRef.value.validate();
133
- yield plusTagFun(tagNames);
133
+ yield plusTagFun(tagNames, props.module);
134
134
  emits('update:modelValue', [
135
135
  ...props.modelValue,
136
136
  ...tagNames
@@ -1,29 +1,29 @@
1
1
 
2
- .plus-tag-input[data-v-i9ejtwl5] {
2
+ .plus-tag-input[data-v-x23lc6i8] {
3
3
  padding: 7px 12px;
4
4
  height: 40px;
5
5
  background: #FAFBFD;
6
6
  border-top: 1px solid #DCDEE5;
7
7
  }
8
- .plus-tag-input .plus-tag-done[data-v-i9ejtwl5] {
8
+ .plus-tag-input .plus-tag-done[data-v-x23lc6i8] {
9
9
  cursor: pointer;
10
10
  font-size: 22px;
11
11
  color: #2DCB56;
12
12
  margin: 0 5px 0 10px;
13
13
  }
14
- .plus-tag-input .plus-tag-error[data-v-i9ejtwl5] {
14
+ .plus-tag-input .plus-tag-error[data-v-x23lc6i8] {
15
15
  cursor: pointer;
16
16
  font-size: 16px;
17
17
  color: #C4C6CC;
18
18
  margin-right: 5px;
19
19
  }
20
- .plus-tag-input .plus-tag-form[data-v-i9ejtwl5] {
20
+ .plus-tag-input .plus-tag-form[data-v-x23lc6i8] {
21
21
  flex: 1;
22
22
  }
23
- .plus-tag-input .plus-tag-form-item[data-v-i9ejtwl5] {
23
+ .plus-tag-input .plus-tag-form-item[data-v-x23lc6i8] {
24
24
  margin-bottom: 0;
25
25
  }
26
- .plus-tag[data-v-i9ejtwl5] {
26
+ .plus-tag[data-v-x23lc6i8] {
27
27
  cursor: pointer;
28
28
  width: 100%;
29
29
  height: 40px;
@@ -36,7 +36,7 @@
36
36
  font-size: 12px;
37
37
  line-height: 20px;
38
38
  }
39
- .plus-tag[data-v-i9ejtwl5]:hover {
39
+ .plus-tag[data-v-x23lc6i8]:hover {
40
40
  color: #3A84FF;
41
41
  }
42
42
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-i9ejtwl5";
2
+ script.__scopeId = "data-v-x23lc6i8";
3
3
  script.__file = "./src/components/render-choose-tag/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-yq767yvd] {
2
+ .collapse-title[data-v-38xezhrp] {
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-yq767yvd] {
8
+ .collapse-title .is-hidden[data-v-38xezhrp] {
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-yq767yvd";
2
+ script.__scopeId = "data-v-38xezhrp";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,9 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
2
  import { unref as _unref, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from "vue";
3
- const _hoisted_1 = [
4
- "title"
5
- ];
3
+ const _hoisted_1 = {
4
+ class: "g-max-truncate g-flex-row",
5
+ "data-ellipsis-tooltip": ""
6
+ };
6
7
  const _hoisted_2 = [
7
8
  "href"
8
9
  ];
@@ -26,10 +27,7 @@ export default /*@__PURE__*/ _defineComponent({
26
27
  [DatasetDataReviewStatus.AIReviewD]: '#ai-ui-sdk-sync-waiting-01'
27
28
  };
28
29
  return (_ctx, _cache)=>{
29
- return _openBlock(), _createElementBlock("span", {
30
- class: "g-max-truncate g-flex-row",
31
- title: _ctx.name
32
- }, [
30
+ return _openBlock(), _createElementBlock("span", _hoisted_1, [
33
31
  _ctx.name ? (_openBlock(), _createElementBlock("svg", {
34
32
  key: 0,
35
33
  class: _normalizeClass({
@@ -45,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
45
43
  }, null, 8 /* PROPS */ , _hoisted_2)
46
44
  ], 2 /* CLASS */ )) : _createCommentVNode("v-if", true),
47
45
  _createTextVNode(" " + _toDisplayString(_ctx.name || '--'), 1 /* TEXT */ )
48
- ], 8 /* PROPS */ , _hoisted_1);
46
+ ]);
49
47
  };
50
48
  }
51
49
  });
@@ -39,7 +39,7 @@ export default /*@__PURE__*/ _defineComponent({
39
39
  }
40
40
  ]
41
41
  ]),
42
- _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-n81e07db><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-n81e07db></i><span class=\"g-text-12 click-full-screen\" data-v-n81e07db>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-n81e07db><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-n81e07db></i><span class=\"g-text-12 click-un-full-screen\" data-v-n81e07db>取消全屏</span></span>", 2))
42
+ _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-6ct6ug1k><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-6ct6ug1k></i><span class=\"g-text-12 click-full-screen\" data-v-6ct6ug1k>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-6ct6ug1k><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-6ct6ug1k></i><span class=\"g-text-12 click-un-full-screen\" data-v-6ct6ug1k>取消全屏</span></span>", 2))
43
43
  ]);
44
44
  };
45
45
  }
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-mmqypgln] {
2
+ .content[data-v-k7q42e58] {
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-mmqypgln] {
7
+ .data-set-edit-slider .value-content[data-v-k7q42e58] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-mmqypgln] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-k7q42e58] .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-mmqypgln";
2
+ script.__scopeId = "data-v-k7q42e58";
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-zymlcshv] {
2
+ .content[data-v-bbk5sflm] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-zymlcshv] {
6
+ .content .toolbar[data-v-bbk5sflm] {
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-zymlcshv] {
13
+ .content .toolbar .record-search[data-v-bbk5sflm] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-zymlcshv] {
16
+ .content .toolbar .record-data-picker[data-v-bbk5sflm] {
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-zymlcshv";
2
+ script.__scopeId = "data-v-bbk5sflm";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -0,0 +1,165 @@
1
+ import { defineComponent as _defineComponent, createVNode as _createVNode2, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent } from 'vue';
2
+ import { unref as _unref, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
+ import { onBeforeMount, ref, toRef, watch } from 'vue';
4
+ import ViewOpResult from '../view-op-result/index.vue.js';
5
+ import RenderTTable from '../../../../render-t-table/index.vue.js';
6
+ import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
7
+ import { useTTable } from '../../../../../hooks/use-t-table.ts.js';
8
+ import { DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
9
+ export default /*@__PURE__*/ _defineComponent({
10
+ props: {
11
+ search: {},
12
+ apiPrefix: {},
13
+ spaceId: {}
14
+ },
15
+ setup (__props) {
16
+ const props = __props;
17
+ const { getOperateRecordList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
18
+ const { isLoading, triggerApi, pagination, tableData, initHook, resetPagination, handlePageChange, handlePageSizeChange } = useTTable();
19
+ const resultCodeMap = {
20
+ [DatasetDataOperatRecordResultCode.Failed]: '失败',
21
+ [DatasetDataOperatRecordResultCode.Success]: '成功'
22
+ };
23
+ const isShowView = ref(false);
24
+ const viewData = ref();
25
+ const getColumns = ()=>[
26
+ {
27
+ colKey: 'instanceId',
28
+ title: '数据 ID',
29
+ ellipsis: true
30
+ },
31
+ {
32
+ colKey: 'actionName',
33
+ title: '操作类型',
34
+ ellipsis: true
35
+ },
36
+ {
37
+ colKey: 'resultCode',
38
+ title: '操作状态',
39
+ ellipsis: true,
40
+ cell: (h, { row })=>_createVNode2("span", {
41
+ "class": "g-flex-row"
42
+ }, [
43
+ _createVNode2("svg", {
44
+ "class": "g-mr-4 g-width-16 g-height-16 g-min-width-16"
45
+ }, [
46
+ _createVNode2("use", {
47
+ "href": row.resultCode === DatasetDataOperatRecordResultCode.Success ? '#ai-ui-sdk-sync-success' : '#ai-ui-sdk-sync-failed'
48
+ }, null)
49
+ ]),
50
+ resultCodeMap[row.resultCode]
51
+ ])
52
+ },
53
+ {
54
+ colKey: 'instanceData',
55
+ title: '操作结果',
56
+ ellipsis: true,
57
+ cell: (h, { row })=>_createVNode2("span", {
58
+ "class": "g-flex-row g-justify-between"
59
+ }, [
60
+ _createVNode2(_resolveComponent("bk-popover"), {
61
+ "arrow": false,
62
+ "theme": "light",
63
+ "ext-cls": "g-max-width-400 g-white-space-pre-line g-max-height-80vh g-scrollbar-page",
64
+ "content": _createVNode2("span", null, [
65
+ Object.entries(row.instanceData || {}).map(([key, value])=>_createVNode2("span", {
66
+ "key": key
67
+ }, [
68
+ key,
69
+ _createTextVNode(": "),
70
+ value,
71
+ _createTextVNode(" "),
72
+ _createVNode2("br", null, null)
73
+ ]))
74
+ ])
75
+ }, {
76
+ default: ()=>[
77
+ _createVNode2("span", {
78
+ "class": "btn-text g-max-truncate"
79
+ }, [
80
+ Object.entries(row.instanceData || {}).map(([key, value])=>_createVNode2("span", {
81
+ "key": key
82
+ }, [
83
+ key,
84
+ _createTextVNode(": "),
85
+ value,
86
+ _createTextVNode(" "),
87
+ _createVNode2("br", null, null)
88
+ ]))
89
+ ])
90
+ ]
91
+ }),
92
+ _createVNode2(_resolveComponent("bk-button"), {
93
+ "text": true,
94
+ "theme": "primary",
95
+ "onClick": ()=>handleView(row)
96
+ }, {
97
+ default: ()=>[
98
+ _createTextVNode("[\u67E5\u770B]")
99
+ ]
100
+ })
101
+ ])
102
+ },
103
+ {
104
+ colKey: 'username',
105
+ title: '操作人',
106
+ ellipsis: true
107
+ },
108
+ {
109
+ colKey: 'endTime',
110
+ title: '操作时间',
111
+ ellipsis: true
112
+ }
113
+ ];
114
+ const handleGetOperateRecordList = (page)=>{
115
+ return getOperateRecordList(Object.assign(Object.assign({}, props.search), page));
116
+ };
117
+ const handleView = (row)=>{
118
+ isShowView.value = true;
119
+ viewData.value = row;
120
+ };
121
+ watch(()=>props.search, ()=>{
122
+ resetPagination();
123
+ triggerApi();
124
+ }, {
125
+ deep: true
126
+ });
127
+ onBeforeMount(()=>{
128
+ initHook(handleGetOperateRecordList, true);
129
+ triggerApi();
130
+ });
131
+ return (_ctx, _cache)=>{
132
+ return _openBlock(), _createElementBlock(_Fragment, null, [
133
+ _createVNode(RenderTTable, {
134
+ "row-key": "instanceId",
135
+ class: "g-white-footer-table g-gray-header-table",
136
+ "container-height": "calc(100% - 48px)",
137
+ "row-height": "g-height-70",
138
+ search: _ctx.search,
139
+ pagination: _unref(pagination),
140
+ columns: getColumns(),
141
+ "is-loading": _unref(isLoading),
142
+ "table-data": _unref(tableData),
143
+ onPageChange: _unref(handlePageChange),
144
+ onPageSizeChange: _unref(handlePageSizeChange)
145
+ }, null, 8 /* PROPS */ , [
146
+ "search",
147
+ "pagination",
148
+ "columns",
149
+ "is-loading",
150
+ "table-data",
151
+ "onPageChange",
152
+ "onPageSizeChange"
153
+ ]),
154
+ _createVNode(ViewOpResult, {
155
+ "is-show": isShowView.value,
156
+ "onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShowView.value = $event),
157
+ data: viewData.value
158
+ }, null, 8 /* PROPS */ , [
159
+ "is-show",
160
+ "data"
161
+ ])
162
+ ], 64 /* STABLE_FRAGMENT */ );
163
+ };
164
+ }
165
+ });
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-9uaagf9f] {
2
+ [data-v-fgm26jyg] .btn-text{
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
- import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-9uaagf9f";
1
+ import script from './index.script.vue.js';
2
+ script.__scopeId = "data-v-fgm26jyg";
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;