@blueking/ai-ui-sdk 0.1.19-beta.17 → 0.1.19-beta.19

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-tool-icons/index.script.vue.js +1 -1
  14. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  17. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +165 -0
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  20. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  22. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  23. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +20 -42
  24. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  25. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  33. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
  34. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
  35. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  36. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +230 -388
  38. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
  39. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -6
  40. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  41. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  42. package/dist/components/render-dataset-list/components/main.script.vue.js.js +6 -5
  43. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  44. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  45. package/dist/components/render-dataset-list/components/table.script.vue.js +406 -0
  46. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
  47. package/dist/components/render-dataset-list/components/table.vue.js +1 -1
  48. package/dist/components/render-dataset-list/index.vue.css +4 -1
  49. package/dist/components/render-dataset-list/index.vue.js +1 -1
  50. package/dist/components/render-file-card/index.script.vue.js.js +1 -1
  51. package/dist/components/render-file-card/index.vue.css +11 -11
  52. package/dist/components/render-file-card/index.vue.js +1 -1
  53. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  54. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  55. package/dist/components/render-header/index.vue.css +3 -3
  56. package/dist/components/render-header/index.vue.js +1 -1
  57. package/dist/components/render-like/index.vue.css +5 -5
  58. package/dist/components/render-like/index.vue.js +1 -1
  59. package/dist/components/render-router-tab/index.vue.css +3 -3
  60. package/dist/components/render-router-tab/index.vue.js +1 -1
  61. package/dist/components/render-search-empty/index.script.vue.js.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 +4 -0
  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 +71 -6
  70. package/dist/hooks/use-common-http.d.ts +4 -1
  71. package/dist/hooks/use-common-http.ts.js +5 -4
  72. package/dist/hooks/use-dataset-http.d.ts +2 -2
  73. package/dist/hooks/use-dataset-http.ts.js +6 -4
  74. package/dist/hooks/use-ellipsis-tooltip.ts.js +6 -3
  75. package/dist/hooks/use-meta-http.d.ts +2 -2
  76. package/dist/hooks/use-meta-http.ts.js +6 -4
  77. package/dist/http/helper/common.ts.js +4 -4
  78. package/dist/http/helper/dataset.ts.js +1 -1
  79. package/dist/http/helper/knowledge.ts.js +2 -1
  80. package/dist/http/helper/tool.ts.js +1 -0
  81. package/dist/types/common.d.ts +7 -1
  82. package/package.json +1 -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-cme6cg6n] {
2
+ .send-container[data-v-a5f6dmun] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-cme6cg6n]:has(textarea:focus) {
5
+ .send-container[data-v-a5f6dmun]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-cme6cg6n] {
8
+ .send-container:hover .send-clear[data-v-a5f6dmun] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-cme6cg6n] {
11
+ .send-input[data-v-a5f6dmun] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-cme6cg6n]:has(textarea:focus) {
16
+ .send-input[data-v-a5f6dmun]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-cme6cg6n] textarea {
19
+ .send-input[data-v-a5f6dmun] 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-cme6cg6n] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-a5f6dmun] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-cme6cg6n] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-a5f6dmun] 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-cme6cg6n] textarea::placeholder {
34
+ .send-input[data-v-a5f6dmun] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-cme6cg6n] {
37
+ .send-clear[data-v-a5f6dmun] {
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-cme6cg6n]:hover {
46
+ .send-clear[data-v-a5f6dmun]: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-cme6cg6n";
2
+ script.__scopeId = "data-v-a5f6dmun";
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-inpvmung] {
2
+ .auto-refresh[data-v-oyiumnf6] {
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-inpvmung]:after {
9
+ .auto-refresh[data-v-oyiumnf6]: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-inpvmung]:hover {
19
+ .auto-refresh[data-v-oyiumnf6]:hover {
20
20
  color: #3A84FF;
21
21
  background-color: #E1ECFF;
22
22
  }
23
- .refresh[data-v-inpvmung] {
23
+ .refresh[data-v-oyiumnf6] {
24
24
  cursor: pointer;
25
25
  line-height: 26px;
26
26
  padding: 0 4px;
27
27
  }
28
- .refresh[data-v-inpvmung]:hover {
28
+ .refresh[data-v-oyiumnf6]:hover {
29
29
  color: #3A84FF;
30
30
  background-color: #E1ECFF;
31
31
  }
32
- .textarea-list[data-v-inpvmung] {
32
+ .textarea-list[data-v-oyiumnf6] {
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-inpvmung] {
39
+ .textarea-list .textarea-item[data-v-oyiumnf6] {
40
40
  padding: 0 12px;
41
41
  cursor: pointer;
42
42
  }
43
- .textarea-list .textarea-item[data-v-inpvmung]:hover {
43
+ .textarea-list .textarea-item[data-v-oyiumnf6]: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-inpvmung";
2
+ script.__scopeId = "data-v-oyiumnf6";
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-dxjnbqkf] {
2
+ .checkbox[data-v-ft8dtc5m] {
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-dxjnbqkf] {
11
+ .checkbox.disabled[data-v-ft8dtc5m] {
12
12
  cursor: not-allowed;
13
13
  background: #fafbfd;
14
14
  border-color: #dcdee5;
15
15
  }
16
- .checkbox.disabled.checked[data-v-dxjnbqkf] {
16
+ .checkbox.disabled.checked[data-v-ft8dtc5m] {
17
17
  background-color: #a3c5fd;
18
18
  border-color: #a3c5fd;
19
19
  }
20
- .checkbox.disabled.indeterminate[data-v-dxjnbqkf] {
20
+ .checkbox.disabled.indeterminate[data-v-ft8dtc5m] {
21
21
  background-color: #fafbfd;
22
22
  border-color: #dcdee5;
23
23
  }
24
- .checkbox.disabled.indeterminate[data-v-dxjnbqkf]:after {
24
+ .checkbox.disabled.indeterminate[data-v-ft8dtc5m]:after {
25
25
  background: #dcdee5;
26
26
  }
27
- .checkbox.checked[data-v-dxjnbqkf] {
27
+ .checkbox.checked[data-v-ft8dtc5m] {
28
28
  background-color: #3a84ff;
29
29
  border: 1px solid #3a84ff;
30
30
  }
31
- .checkbox.checked[data-v-dxjnbqkf]:after {
31
+ .checkbox.checked[data-v-ft8dtc5m]: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-dxjnbqkf] {
44
+ .checkbox.indeterminate[data-v-ft8dtc5m] {
45
45
  background-color: #3a84ff;
46
46
  border: 1px solid #3a84ff;
47
47
  }
48
- .checkbox.indeterminate[data-v-dxjnbqkf]:after {
48
+ .checkbox.indeterminate[data-v-ft8dtc5m]: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-dxjnbqkf";
2
+ script.__scopeId = "data-v-ft8dtc5m";
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-hb0gh1r3] {
2
+ .plus-tag-input[data-v-y5beaqp2] {
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-hb0gh1r3] {
8
+ .plus-tag-input .plus-tag-done[data-v-y5beaqp2] {
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-hb0gh1r3] {
14
+ .plus-tag-input .plus-tag-error[data-v-y5beaqp2] {
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-hb0gh1r3] {
20
+ .plus-tag-input .plus-tag-form[data-v-y5beaqp2] {
21
21
  flex: 1;
22
22
  }
23
- .plus-tag-input .plus-tag-form-item[data-v-hb0gh1r3] {
23
+ .plus-tag-input .plus-tag-form-item[data-v-y5beaqp2] {
24
24
  margin-bottom: 0;
25
25
  }
26
- .plus-tag[data-v-hb0gh1r3] {
26
+ .plus-tag[data-v-y5beaqp2] {
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-hb0gh1r3]:hover {
39
+ .plus-tag[data-v-y5beaqp2]: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-hb0gh1r3";
2
+ script.__scopeId = "data-v-y5beaqp2";
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-r5032fg9] {
2
+ .collapse-title[data-v-vtqlbirj] {
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-r5032fg9] {
8
+ .collapse-title .is-hidden[data-v-vtqlbirj] {
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-r5032fg9";
2
+ script.__scopeId = "data-v-vtqlbirj";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -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-4i0y1c0y><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-4i0y1c0y></i><span class=\"g-text-12 click-full-screen\" data-v-4i0y1c0y>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-4i0y1c0y><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-4i0y1c0y></i><span class=\"g-text-12 click-un-full-screen\" data-v-4i0y1c0y>取消全屏</span></span>", 2))
42
+ _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-218agpe1><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-218agpe1></i><span class=\"g-text-12 click-full-screen\" data-v-218agpe1>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-218agpe1><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-218agpe1></i><span class=\"g-text-12 click-un-full-screen\" data-v-218agpe1>取消全屏</span></span>", 2))
43
43
  ]);
44
44
  };
45
45
  }
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-4m9npzb8] {
2
+ .content[data-v-j888uw9v] {
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-4m9npzb8] {
7
+ .data-set-edit-slider .value-content[data-v-j888uw9v] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-4m9npzb8] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-j888uw9v] .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-4m9npzb8";
2
+ script.__scopeId = "data-v-j888uw9v";
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-7mw2f5ra] {
2
+ .content[data-v-eikggken] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-7mw2f5ra] {
6
+ .content .toolbar[data-v-eikggken] {
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-7mw2f5ra] {
13
+ .content .toolbar .record-search[data-v-eikggken] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-7mw2f5ra] {
16
+ .content .toolbar .record-data-picker[data-v-eikggken] {
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-7mw2f5ra";
2
+ script.__scopeId = "data-v-eikggken";
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(100vh - 196px)",
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-6o3p7nle] {
2
+ [data-v-g0zdf0no] .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-6o3p7nle";
1
+ import script from './index.script.vue.js';
2
+ script.__scopeId = "data-v-g0zdf0no";
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-qypygl7a] {
2
+ .content[data-v-n4w0hszp] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-qypygl7a] {
7
+ .content .value-content[data-v-n4w0hszp] {
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-qypygl7a";
2
+ script.__scopeId = "data-v-n4w0hszp";
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;