File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
knowledge-workflow/component Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4343 {{ $t('views.document.buttons.next') }}
4444 </el-button >
4545 <el-button
46- v-if =" base_form_list.length > 0 ? active == 'knowledge_base' : true "
46+ v-if =" base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source' "
4747 @click =" upload"
4848 type =" primary"
4949 :disabled =" loading"
Original file line number Diff line number Diff line change 3838 {{ $t('views.document.buttons.next') }}
3939 </el-button >
4040 <el-button
41- v-if =" base_form_list.length > 0 ? active == 'knowledge_base' : true "
41+ v-if =" base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source' "
4242 @click =" upload"
4343 type =" primary"
4444 :loading =" loading"
@@ -133,14 +133,14 @@ const permissionPrecise = computed(() => {
133133const upload = () => {
134134 if (permissionPrecise .value .doc_create (id )) {
135135 ActionRef .value .validate ().then (() => {
136- form_data .value [active .value ] = ActionRef .value .get_data ()
137- loadSharedApi ({ type: ' knowledge' , systemType: apiType .value })
138- .workflowAction (id , form_data .value , loading )
139- .then ((ok : any ) => {
140- action_id .value = ok .data .id
141- active .value = ' result'
142- })
143- })
136+ form_data .value [active .value ] = ActionRef .value .get_data ()
137+ loadSharedApi ({ type: ' knowledge' , systemType: apiType .value })
138+ .workflowAction (id , form_data .value , loading )
139+ .then ((ok : any ) => {
140+ action_id .value = ok .data .id
141+ active .value = ' result'
142+ })
143+ })
144144 } else {
145145 MsgError (t (' views.application.tip.noDocPermission' ))
146146 }
You can’t perform that action at this time.
0 commit comments