@blueking/ai-ui-sdk 0.1.19-beta.31 → 0.1.19-beta.33

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 (88) hide show
  1. package/dist/components/render-auth/auth-dialog.script.vue.js.js +1 -1
  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.vue.css +7 -7
  9. package/dist/components/render-choose-tag/index.vue.js +1 -1
  10. package/dist/components/render-collapse/index.vue.css +2 -2
  11. package/dist/components/render-collapse/index.vue.js +1 -1
  12. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +86 -0
  13. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
  14. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
  15. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
  16. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
  17. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
  18. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
  19. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
  20. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  21. package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
  22. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
  23. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
  24. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
  25. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  26. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  27. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  28. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  29. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  30. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  31. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  32. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  33. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  34. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  38. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  39. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  40. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  41. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  42. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  43. package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
  44. package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
  45. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +17 -0
  46. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  47. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  48. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  49. package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -2
  50. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  51. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -2
  52. package/dist/components/render-dataset-list/index.vue.css +2 -2
  53. package/dist/components/render-dataset-list/index.vue.js +1 -1
  54. package/dist/components/render-file-card/index.vue.css +11 -11
  55. package/dist/components/render-file-card/index.vue.js +1 -1
  56. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  57. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  58. package/dist/components/render-header/index.vue.css +3 -3
  59. package/dist/components/render-header/index.vue.js +1 -1
  60. package/dist/components/render-like/index.vue.css +5 -5
  61. package/dist/components/render-like/index.vue.js +1 -1
  62. package/dist/components/render-router-tab/index.vue.css +3 -3
  63. package/dist/components/render-router-tab/index.vue.js +1 -1
  64. package/dist/components/render-t-table/index.script.vue.js +2 -1
  65. package/dist/components/render-t-table/index.vue.css +28 -25
  66. package/dist/components/render-t-table/index.vue.js +1 -1
  67. package/dist/components/render-tag-tree/index.script.vue.js.js +34 -18
  68. package/dist/components/render-tag-tree/index.vue.css +7 -7
  69. package/dist/components/render-tag-tree/index.vue.d.ts +1 -0
  70. package/dist/components/render-tag-tree/index.vue.js +1 -1
  71. package/dist/css/tailwind.css +13 -1
  72. package/dist/hooks/use-common-http.d.ts +4 -0
  73. package/dist/hooks/use-common-http.ts.js +12 -2
  74. package/dist/hooks/use-dataset-http.d.ts +2 -1
  75. package/dist/hooks/use-dataset-http.ts.js +8 -1
  76. package/dist/hooks/use-t-table.d.ts +2 -2
  77. package/dist/hooks/use-t-table.ts.js +1 -5
  78. package/dist/http/helper/agent.d.ts +13 -1
  79. package/dist/http/helper/agent.ts.js +69 -24
  80. package/dist/http/helper/dataset.d.ts +7 -1
  81. package/dist/http/helper/dataset.ts.js +16 -2
  82. package/dist/transforms.d.ts +1 -0
  83. package/dist/transforms.ts.js +1 -0
  84. package/dist/types/agent.d.ts +41 -24
  85. package/dist/types/dataset.d.ts +14 -0
  86. package/dist/types/enum.d.ts +8 -1
  87. package/dist/types/enum.ts.js +8 -0
  88. package/package.json +1 -1
@@ -31,6 +31,7 @@ import { ref, toRef, watch } from 'vue';
31
31
  import RenderCheckbox from '../../../render-checkbox/index.vue.js';
32
32
  import DatasetDataLevel from '../../../render-dataset/components/dataset-data-level/index.vue.js';
33
33
  import DatasetDataStatus from '../../../render-dataset/components/dataset-data-status/index.vue.js';
34
+ import DatasetDataValid from '../../../render-dataset/components/dataset-data-valid/index.vue.js';
34
35
  import EditDatasetData from '../../../render-dataset/components/edit-dataset-data/index.vue.js';
35
36
  import OperationRecord from '../../../render-dataset/components/operation-record/index.vue.js';
36
37
  import ReviewDatasetData from '../../../render-dataset/components/review-dataset-data/index.vue.js';
@@ -132,6 +133,22 @@ export default /*@__PURE__*/ _defineComponent({
132
133
  "reviewReason": row.reviewReason
133
134
  }, null)
134
135
  },
136
+ {
137
+ colKey: 'isValid',
138
+ ellipsis: true,
139
+ title: '有效性',
140
+ defaultShow: true,
141
+ cell: (h, { row })=>_createVNode2(DatasetDataValid, {
142
+ "id": row.id,
143
+ "isValid": row.isValid,
144
+ "datasetId": props.datasetId,
145
+ "apiPrefix": props.apiPrefix,
146
+ "spaceId": props.spaceId,
147
+ "manageDataset": props.manageDataset,
148
+ "isInternal": props.isInternal,
149
+ "onUpdate": handleUpdate
150
+ }, null)
151
+ },
135
152
  ...Object.keys(props.schema).map((key)=>({
136
153
  colKey: key,
137
154
  title: key,
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-qtrdekeu] {
2
+ .origin-data-content[data-v-mvd32p85] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-qtrdekeu] {
6
+ .origin-data-panel[data-v-mvd32p85] {
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-qtrdekeu] {
13
+ .origin-data-panel .toolbar-search[data-v-mvd32p85] {
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-qtrdekeu";
2
+ script.__scopeId = "data-v-mvd32p85";
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-vvfnoc1b] {
2
+ .main-content[data-v-f6oruk7r] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .main-panel[data-v-vvfnoc1b] {
6
+ .main-panel[data-v-f6oruk7r] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 24px;
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-vvfnoc1b] {
13
+ .main-search[data-v-f6oruk7r] {
14
14
  width: 6.17rem;
15
15
  }
@@ -16,12 +16,12 @@ interface IExpose {
16
16
  }
17
17
  declare const __VLS_export: import("vue").DefineComponent<IProps, IExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
18
  "success-create": () => any;
19
- "success-edit": () => any;
20
19
  "success-delete": () => any;
20
+ "success-edit": () => any;
21
21
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
22
22
  "onSuccess-create"?: () => any;
23
- "onSuccess-edit"?: () => any;
24
23
  "onSuccess-delete"?: () => any;
24
+ "onSuccess-edit"?: () => any;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-vvfnoc1b";
2
+ script.__scopeId = "data-v-f6oruk7r";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -15,12 +15,12 @@ interface IExpose {
15
15
  }
16
16
  declare const __VLS_export: import("vue").DefineComponent<IProps, IExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
17
  "update:search": (search: IDatasetListParam) => any;
18
- "success-edit": () => any;
19
18
  "success-delete": () => any;
19
+ "success-edit": () => any;
20
20
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
21
21
  "onUpdate:search"?: (search: IDatasetListParam) => any;
22
- "onSuccess-edit"?: () => any;
23
22
  "onSuccess-delete"?: () => any;
23
+ "onSuccess-edit"?: () => any;
24
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-main[data-v-ma0ytkrh] {
2
+ .dataset-main[data-v-54dyk0aw] {
3
3
  height: calc(100% - 90px);
4
4
  margin-top: 2px;
5
5
  }
6
- [data-v-ma0ytkrh] .dataset-main>.bk-resize-layout-main {
6
+ [data-v-54dyk0aw] .dataset-main>.bk-resize-layout-main {
7
7
  width: 0;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ma0ytkrh";
2
+ script.__scopeId = "data-v-54dyk0aw";
3
3
  script.__file = "./src/components/render-dataset-list/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-9vdv3uov] {
2
+ .upload-file-home[data-v-pciq9g20] {
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-9vdv3uov]:hover {
9
+ .upload-file-home[data-v-pciq9g20]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-9vdv3uov] {
12
+ .upload-file-home:hover .file-icons[data-v-pciq9g20] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-9vdv3uov] {
15
+ .upload-file-home .file-icon[data-v-pciq9g20] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-9vdv3uov] {
18
+ .upload-file-home .file-content[data-v-pciq9g20] {
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-9vdv3uov] {
26
+ .upload-file-home .file-content .file-name[data-v-pciq9g20] {
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-9vdv3uov] {
31
+ .upload-file-home .file-content .file-size[data-v-pciq9g20] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-9vdv3uov] {
36
+ .upload-file-home .file-icons[data-v-pciq9g20] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-9vdv3uov] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-pciq9g20] {
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-9vdv3uov]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-pciq9g20]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-9vdv3uov] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-pciq9g20] {
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-9vdv3uov";
2
+ script.__scopeId = "data-v-pciq9g20";
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-tfcskv6w] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-h3kdf8rl] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-tfcskv6w], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-tfcskv6w], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-tfcskv6w] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-h3kdf8rl], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-h3kdf8rl], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-h3kdf8rl] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-tfcskv6w] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-h3kdf8rl] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-tfcskv6w] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-h3kdf8rl] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-tfcskv6w] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-h3kdf8rl] {
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-tfcskv6w";
2
+ script.__scopeId = "data-v-h3kdf8rl";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,13 +1,13 @@
1
1
 
2
- .header-home[data-v-1mdim0hp] {
2
+ .header-home[data-v-q5i54ymh] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-1mdim0hp] {
7
+ .render-tab[data-v-q5i54ymh] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-1mdim0hp] {
10
+ .render-tab.active[data-v-q5i54ymh] {
11
11
  color: #3A84FF;
12
12
  border-bottom: 2px solid #3A84FF;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-1mdim0hp";
2
+ script.__scopeId = "data-v-q5i54ymh";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,20 +1,20 @@
1
1
 
2
- .dislike-icon[data-v-j1rei3l3] {
2
+ .dislike-icon[data-v-2d58rl4n] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-j1rei3l3] {
5
+ .option-items[data-v-2d58rl4n] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  line-height: 22px;
9
9
  border-radius: 2px;
10
10
  }
11
- .option-items[data-v-j1rei3l3]:hover {
11
+ .option-items[data-v-2d58rl4n]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-j1rei3l3]{
15
+ .option-items-selected[data-v-2d58rl4n]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-j1rei3l3] .bk-form-item {
18
+ [data-v-2d58rl4n] .bk-form-item {
19
19
  margin-bottom: 17px;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-j1rei3l3";
2
+ script.__scopeId = "data-v-2d58rl4n";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-ad6fk80h] {
2
+ .router-tab[data-v-u1g002kj] {
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 24px;
8
8
  }
9
- .router-tab a[data-v-ad6fk80h] {
9
+ .router-tab a[data-v-u1g002kj] {
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-ad6fk80h] {
18
+ .router-tab a.router-link-exact-active[data-v-u1g002kj] {
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-ad6fk80h";
2
+ script.__scopeId = "data-v-u1g002kj";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -173,6 +173,7 @@ export default /*@__PURE__*/ _defineComponent({
173
173
  }
174
174
  });
175
175
  return (_ctx, _cache)=>{
176
+ var _a;
176
177
  const _component_bk_radio_button = _resolveComponent("bk-radio-button");
177
178
  const _component_bk_radio_group = _resolveComponent("bk-radio-group");
178
179
  const _component_bk_loading = _resolveComponent("bk-loading");
@@ -190,7 +191,7 @@ export default /*@__PURE__*/ _defineComponent({
190
191
  "max-height": getMaxHeight(),
191
192
  loading: _ctx.isLoading,
192
193
  "row-key": _ctx.rowKey,
193
- "header-affixed-top": !!_ctx.tableData.length,
194
+ "header-affixed-top": !!((_a = _ctx.tableData) === null || _a === void 0 ? void 0 : _a.length),
194
195
  "display-columns": displayColumns.value,
195
196
  "column-controller": getColumnControllerConfig(),
196
197
  class: `t-t-table ${_ctx.$attrs.class}`,
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-w6nqpii5] {
2
+ .t-t-pagination[data-v-q6j0m4vj] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-w6nqpii5] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-q6j0m4vj] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-w6nqpii5]::after {
9
+ .pagination-loading[data-v-q6j0m4vj]::after {
10
10
  content: '';
11
11
  position: absolute;
12
12
  top: 0;
@@ -16,84 +16,84 @@
16
16
  background-color: rgba(255, 255, 255, 0.6);
17
17
  z-index: 72;
18
18
  }
19
- .t-t-table[data-v-w6nqpii5] {
19
+ .t-t-table[data-v-q6j0m4vj] {
20
20
  display: inline;
21
21
  font-size: 12px;
22
22
  }
23
- .t-t-table[data-v-w6nqpii5] .t-table__th-cell-inner {
23
+ .t-t-table[data-v-q6j0m4vj] .t-table__th-cell-inner {
24
24
  color: #313238;
25
25
  }
26
- .t-t-table[data-v-w6nqpii5] th {
26
+ .t-t-table[data-v-q6j0m4vj] th {
27
27
  padding: 0 16px;
28
28
  height: 42px;
29
29
  background-color: #FAFBFD !important;
30
30
  }
31
- .t-t-table[data-v-w6nqpii5] .t-table__body tr {
31
+ .t-t-table[data-v-q6j0m4vj] .t-table__body tr {
32
32
  color: #63656e;
33
33
  font-size: 12px;
34
34
  }
35
- .t-t-table[data-v-w6nqpii5] .t-table__body tr td {
35
+ .t-t-table[data-v-q6j0m4vj] .t-table__body tr td {
36
36
  padding: 0 16px;
37
37
  height: 40px;
38
38
  background-color: #fff;
39
39
  }
40
- .t-t-table[data-v-w6nqpii5] .t-table__body tr:hover td {
40
+ .t-t-table[data-v-q6j0m4vj] .t-table__body tr:hover td {
41
41
  background-color: #f5f7fa !important;
42
42
  color: #63656E;
43
43
  }
44
- .t-t-table[data-v-w6nqpii5] .t-table__content .t-table__body .t-table__empty-row {
44
+ .t-t-table[data-v-q6j0m4vj] .t-table__content .t-table__body .t-table__empty-row {
45
45
  background-color: #fff !important;
46
46
  }
47
- .t-t-table[data-v-w6nqpii5] .t-table__content .t-table__body .t-table__empty-row >td {
47
+ .t-t-table[data-v-q6j0m4vj] .t-table__content .t-table__body .t-table__empty-row >td {
48
48
  border: none;
49
49
  }
50
- .t-t-table[data-v-w6nqpii5] th .t-table__ellipsis {
50
+ .t-t-table[data-v-q6j0m4vj] th .t-table__ellipsis {
51
51
  width: auto !important;
52
52
  }
53
- .t-t-table[data-v-w6nqpii5] .t-loading__gradient.t-icon-loading {
53
+ .t-t-table[data-v-q6j0m4vj] .t-loading__gradient.t-icon-loading {
54
54
  display: none;
55
55
  }
56
- .t-t-table[data-v-w6nqpii5]:first-of-type .t-table__affixed-header-elm-wrap{
56
+ .t-t-table[data-v-q6j0m4vj]:first-of-type .t-table__affixed-header-elm-wrap{
57
57
  width: calc(100% - 6px) !important;
58
58
  }
59
- .t-t-table[data-v-w6nqpii5] .t-table__affixed-header-elm-wrap>div {
59
+ .t-t-table[data-v-q6j0m4vj] .t-table__affixed-header-elm-wrap>div {
60
60
  width: 100% !important;
61
61
  scrollbar-width: none;
62
62
  }
63
- .t-t-table[data-v-w6nqpii5] .t-table--layout-fixed{
63
+ .t-t-table[data-v-q6j0m4vj] .t-table--layout-fixed{
64
64
  width: 100% !important;
65
65
  }
66
- .t-t-table[data-v-w6nqpii5] .bk-exception-description{
66
+ .t-t-table[data-v-q6j0m4vj] .bk-exception-description{
67
67
  margin-bottom: 0;
68
68
  }
69
- .t-t-table[data-v-w6nqpii5] .t-table__content{
69
+ .t-t-table[data-v-q6j0m4vj] .t-table__content{
70
70
  z-index: 2;
71
71
  max-height: 100%;
72
72
  overflow: auto;
73
73
  }
74
- .t-t-table[data-v-w6nqpii5] .t-table__content::-webkit-scrollbar {
74
+ .t-t-table[data-v-q6j0m4vj] .t-table__content::-webkit-scrollbar {
75
75
  width: 6px;
76
76
  height: 6px;
77
77
  }
78
- .t-t-table[data-v-w6nqpii5] .t-table__content::-webkit-scrollbar-thumb {
78
+ .t-t-table[data-v-q6j0m4vj] .t-table__content::-webkit-scrollbar-thumb {
79
79
  width: 6px;
80
80
  height: 6px;
81
81
  border-radius: 3px;
82
82
  background-color: #dcdee5;
83
83
  }
84
- .t-t-table[data-v-w6nqpii5] .t-table__content::-webkit-scrollbar-thumb:hover {
84
+ .t-t-table[data-v-q6j0m4vj] .t-table__content::-webkit-scrollbar-thumb:hover {
85
85
  background-color: #979ba5;
86
86
  }
87
- .t-t-table[data-v-w6nqpii5] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
87
+ .t-t-table[data-v-q6j0m4vj] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
88
88
  line-height: 100%;
89
89
  }
90
- .t-t-table[data-v-w6nqpii5] .t-table__cell--sort-trigger.t-table__double-icons{
90
+ .t-t-table[data-v-q6j0m4vj] .t-table__cell--sort-trigger.t-table__double-icons{
91
91
  gap: 5px;
92
92
  }
93
- .t-t-table[data-v-w6nqpii5] .t-table__sort-icon--active>i{
93
+ .t-t-table[data-v-q6j0m4vj] .t-table__sort-icon--active>i{
94
94
  color: #3a84ff !important;
95
95
  }
96
- .t-t-table[data-v-w6nqpii5] .t-table__cell--fixed-left:has(.checkbox){
96
+ .t-t-table[data-v-q6j0m4vj] .t-table__cell--fixed-left:has(.checkbox){
97
97
  line-height: 100%;
98
98
  }
99
99
 
@@ -104,6 +104,9 @@
104
104
  box-shadow: 0 0 6px #dcdee5;
105
105
  color: #26323d;
106
106
  }
107
+ .t-table-dialog .t-checkbox-group .t-checkbox .bkaidev-shezhi {
108
+ display: none;
109
+ }
107
110
  .t-table-dialog .t-table-dialog-header {
108
111
  margin: 24px;
109
112
  font-weight: 400;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-w6nqpii5";
2
+ script.__scopeId = "data-v-q6j0m4vj";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -55,7 +55,10 @@ export default /*@__PURE__*/ _defineComponent({
55
55
  groupType: {},
56
56
  generateType: {},
57
57
  apiPrefix: {},
58
- spaceId: {}
58
+ spaceId: {},
59
+ isMarket: {
60
+ type: Boolean
61
+ }
59
62
  },
60
63
  emits: [
61
64
  "update:tag-id",
@@ -64,7 +67,7 @@ export default /*@__PURE__*/ _defineComponent({
64
67
  setup (__props, { expose: __expose, emit: __emit }) {
65
68
  const props = __props;
66
69
  const emit = __emit;
67
- const { getTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
70
+ const { getTagTree, getMarketTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
68
71
  const isExistNoTags = ref(false);
69
72
  const loadingTagsTree = ref(false);
70
73
  const openedIds = ref([]);
@@ -86,9 +89,6 @@ export default /*@__PURE__*/ _defineComponent({
86
89
  };
87
90
  const handleUpdateTagName = (tagName)=>{
88
91
  emit('update:tagName', tagName);
89
- if (tagName) {
90
- emit('update:tag-id', undefined);
91
- }
92
92
  };
93
93
  // 设置搜索命中的展开节点
94
94
  const handleSetSearchOpenedIds = (datas, search)=>{
@@ -118,29 +118,45 @@ export default /*@__PURE__*/ _defineComponent({
118
118
  };
119
119
  // 获取标签树列表
120
120
  const handleGetTagsTree = ()=>{
121
- getTagTree.abort();
122
- loadingTagsTree.value = true;
123
- getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType).then((data)=>{
124
- allDataMap.value.count = data.all;
125
- tags.value = data.all <= 0 && props.tagName ? data.tree : [
126
- allDataMap.value,
127
- ...data.tree
128
- ];
129
- isExistNoTags.value = tags.value.some((item)=>item.tagId === -1);
130
- }).finally(()=>{
131
- loadingTagsTree.value = false;
132
- });
121
+ const executeApiCall = (apiCall)=>{
122
+ loadingTagsTree.value = true;
123
+ apiCall.then((data)=>{
124
+ allDataMap.value.count = data.all;
125
+ tags.value = data.all <= 0 && props.tagName ? data.tree : [
126
+ allDataMap.value,
127
+ ...data.tree
128
+ ];
129
+ isExistNoTags.value = tags.value.some((item)=>item.tagId === -1);
130
+ }).finally(()=>{
131
+ loadingTagsTree.value = false;
132
+ });
133
+ };
134
+ if (props.isMarket) {
135
+ getMarketTagTree.abort();
136
+ executeApiCall(getMarketTagTree(props.module, props.tagName));
137
+ } else {
138
+ getTagTree.abort();
139
+ executeApiCall(getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType));
140
+ }
133
141
  };
134
142
  watch(()=>[
135
143
  props.groupType,
136
144
  props.spaceId,
137
145
  props.generateType
138
- ], handleGetTagsTree, {
146
+ ], ()=>{
147
+ if (props.tagName) {
148
+ handleUpdateTagName('');
149
+ } else {
150
+ handleGetTagsTree();
151
+ handleUpdateTagId(undefined);
152
+ }
153
+ }, {
139
154
  immediate: true
140
155
  });
141
156
  watch(()=>props.tagName, function() {
142
157
  var _ref = _async_to_generator(function*(val) {
143
158
  yield handleGetTagsTree();
159
+ handleUpdateTagId(undefined);
144
160
  handleSetSearchOpenedIds(tags.value, val);
145
161
  });
146
162
  return function(val) {
@@ -1,27 +1,27 @@
1
1
 
2
- .tag-tree[data-v-2pgjlb4z] {
2
+ .tag-tree[data-v-4wxfsqcq] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  }
6
- .tag-tree .manage-tree-item[data-v-2pgjlb4z] {
6
+ .tag-tree .manage-tree-item[data-v-4wxfsqcq] {
7
7
  height: 32px;
8
8
  flex: 1;
9
9
  }
10
- .tag-tree .quick-icon[data-v-2pgjlb4z] {
10
+ .tag-tree .quick-icon[data-v-4wxfsqcq] {
11
11
  margin-left: -24px;
12
12
  padding-left: 8px;
13
13
  }
14
- .tag-tree[data-v-2pgjlb4z] .tree-item:has(.bottom-line) {
14
+ .tag-tree[data-v-4wxfsqcq] .tree-item:has(.bottom-line) {
15
15
  border-bottom: 1px solid #F0F1F5;
16
16
  }
17
- .tag-tree[data-v-2pgjlb4z] .tree-item.active .quick-icon {
17
+ .tag-tree[data-v-4wxfsqcq] .tree-item.active .quick-icon {
18
18
  color: #3A84FF;
19
19
  }
20
- .tag-tree[data-v-2pgjlb4z] .tree-item.active .tag-number {
20
+ .tag-tree[data-v-4wxfsqcq] .tree-item.active .tag-number {
21
21
  background: #A3C5FD;
22
22
  color: #fff;
23
23
  }
24
- .tag-number[data-v-2pgjlb4z] {
24
+ .tag-number[data-v-4wxfsqcq] {
25
25
  line-height: 16px;
26
26
  padding: 0 4px;
27
27
  background-color: #F0F1F5;
@@ -8,6 +8,7 @@ interface IProps {
8
8
  generateType?: EnumCharacter;
9
9
  apiPrefix: string;
10
10
  spaceId?: string;
11
+ isMarket?: boolean;
11
12
  }
12
13
  interface IExpose {
13
14
  handleGetTagsTree: () => void;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-2pgjlb4z";
2
+ script.__scopeId = "data-v-4wxfsqcq";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;