Skip to content

Commit ce5beaa

Browse files
author
litongjava
committed
add deparement
1 parent 5e0ce50 commit ce5beaa

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

ui/src/utils/application.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ export function isAppIcon(url: string | undefined) {
88
export function isWorkFlow(type: string | undefined) {
99
return type === 'WORK_FLOW'
1010
}
11+
12+
export function isDepartment(type: string | undefined) {
13+
return type === 'DEPARTMENT'
14+
}

ui/src/views/application/component/CreateApplicationDialog.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@
6161
</el-radio>
6262
</el-card>
6363
</el-col>
64+
<el-col :span="12">
65+
<el-card
66+
shadow="never"
67+
class="mb-16"
68+
:class="isWorkFlow(applicationForm.type) ? 'active' : ''"
69+
>
70+
<el-radio value="DEPARTMENT" size="large">
71+
<p class="mb-4">部门机构</p>
72+
<el-text type="info">适合特定的知识领域场景</el-text>
73+
</el-radio>
74+
</el-card>
75+
</el-col>
6476
</el-row>
6577
</el-radio-group>
6678
</el-form-item>

ui/src/views/application/index.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@
8080
</el-text>
8181
</template>
8282
<div class="status-tag">
83-
<el-tag type="warning" v-if="isWorkFlow(item.type)" style="height: 22px"
84-
>高级编排</el-tag
85-
>
83+
<el-tag type="warning" v-if="isWorkFlow(item.type)" style="height: 22px">高级编排</el-tag>
84+
<el-tag type="warning" v-if="isDepartment(item.type)" style="height: 22px">高级编排</el-tag>
8685
<el-tag class="blue-tag" v-else style="height: 22px">简单配置</el-tag>
8786
</div>
8887

@@ -147,7 +146,7 @@ import applicationApi from '@/api/application'
147146
import CreateApplicationDialog from './component/CreateApplicationDialog.vue'
148147
import CopyApplicationDialog from './component/CopyApplicationDialog.vue'
149148
import { MsgSuccess, MsgConfirm, MsgAlert } from '@/utils/message'
150-
import { isAppIcon } from '@/utils/application'
149+
import {isAppIcon, isDepartment} from '@/utils/application'
151150
import { useRouter } from 'vue-router'
152151
import { isWorkFlow } from '@/utils/application'
153152
import { ValidType, ValidCount } from '@/enums/common'

ui/src/views/hit-test/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ const paragraphDetail = ref<any[]>([])
208208
const title = ref('')
209209
const inputValue = ref('')
210210
const formInline = ref({
211-
similarity: 0.6,
212-
top_number: 5,
211+
similarity: 0.0,
212+
top_number: 10,
213213
search_mode: 'embedding'
214214
})
215215

0 commit comments

Comments
 (0)