Skip to content

Commit ad0b788

Browse files
z275748353张龙彬LP-J
authored
fix the bug of #84.undefined model_name (#1448)
* add dataflow * add dataflow * remove antv/x6/lib/registry package * Fix bugs * Fix bugs * add package * add package * add zhHantOps * 1.Adjust the image path for operator management 2.Add permission judgment on whether to display the menu in operator management * Operator Management: Modification of dataflow/operator/ interface * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * Add newly developed operators, internationalize tools, and supplement the internationalization of statistics. * Add newly developed operators, internationalize tools, and supplement the internationalization of statistics. * 1.Add template deletion function 2.Celery node deletion (admin only, offline status) 3.Block the option of creating tool operators, set tools as default 4.Internationalization update * Fix the bug of dataflow with ID #36 * Fix the bug of dataflow with ID OpenCSGs/csghub-dataflow#31 * Fix the bug of dataflow with ID OpenCSGs/csghub-dataflow#43 * Fix the bug of dataflow with ID OpenCSGs/csghub-dataflow#34 * 1.Fixed the issue where modifying the custom template operator name does not take effect, and added an internationalized name subtitle. 1.Added internationalization to the description of the keyword filtering operator. * 1.Add horizontal and vertical alignment guides for operator task flow filling. 2.Select PDF for format conversion and add the Mineru Backend field. 3.Add model selection and corresponding internationalization to the MD-to-JSONL tool. 4.Implement internationalization for the existing auxiliary reminder words in operator configuration. * 1. When dealing with operator overlap, there may be duplicate connection issues 2. Add internationalization to the generate_code_qa_cir_mapper configuration item * Problem handling of model path display --------- Co-authored-by: 张龙彬 <[email protected]> Co-authored-by: Jilp <[email protected]>
1 parent c75e51d commit ad0b788

File tree

1 file changed

+22
-4
lines changed
  • frontend/src/components/dataflow_config/newTask

1 file changed

+22
-4
lines changed

frontend/src/components/dataflow_config/newTask/index.vue

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,11 @@
677677
<div
678678
v-for="model in modelList"
679679
:key="model.id"
680-
@click="selectModel(model)"
681-
class="cursor-pointer model-select-item"
680+
@click="!modelValidating && selectModel(model)"
681+
:class="[
682+
'model-select-item',
683+
modelValidating ? 'cursor-not-allowed opacity-60' : 'cursor-pointer'
684+
]"
682685
>
683686
<repo-item
684687
:repo="model"
@@ -1100,8 +1103,18 @@
11001103
modelList.value = []
11011104
modelTotal.value = 0
11021105
} else {
1103-
if (data.value && data.value.data) {
1104-
modelList.value = data.value.data.models || []
1106+
if (data.value && data.value.data && Array.isArray(data.value.data.models)) {
1107+
data.value.data.models.forEach((item) => {
1108+
if (item && typeof item === 'object') {
1109+
const path = item.path || ''
1110+
item.hf_path = path
1111+
item.ms_path = path
1112+
item.csg_path = path
1113+
item.name = path
1114+
item.nickname = path
1115+
}
1116+
})
1117+
modelList.value = data.value.data.models
11051118
modelTotal.value = data.value.data.total || 0
11061119
} else {
11071120
modelList.value = []
@@ -1135,6 +1148,11 @@
11351148
11361149
// 选择模型
11371150
const selectModel = async (model) => {
1151+
// 正在验证中
1152+
if (modelValidating.value) {
1153+
return
1154+
}
1155+
11381156
if (!currentSelectModelItem.value) {
11391157
return
11401158
}

0 commit comments

Comments
 (0)