| | |
| | | <!-- 关联算法和综合业务 --> |
| | | <template> |
| | | <div class="task-algorithm" v-if="showAlgorithm"> |
| | | <el-select v-model="ai_type" multiple collapse-tags collapse-tags-tooltip placeholder="请选择算法" clearable @change="handleAlgorithmChange"> |
| | | <el-select v-model="ai_types" multiple collapse-tags collapse-tags-tooltip placeholder="请选择算法" clearable @change="handleAlgorithmChange"> |
| | | <el-option v-for="item in taskAlgorithm" :key="item.id" :label="item.dictValue" :value="item.dictKey" /> |
| | | </el-select> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { getDictionary } from '@/api/home/common'; |
| | | |
| | | import { getMultipleDictionary } from '@/api/system/dictbiz' |
| | | |
| | | // 接收父组件传参 |
| | | const props = defineProps({ |
| | |
| | | }); |
| | | |
| | | // 算法 |
| | | let ai_type = ref(''); |
| | | let ai_types = ref(''); |
| | | let taskAlgorithm = ref([]); |
| | | // 综合业务 |
| | | let industry_type = ref(''); |
| | |
| | | |
| | | // 请求字典字段 |
| | | const requestDictionary = () => { |
| | | getDictionary('SF,HYLB').then((res) => { |
| | | getMultipleDictionary('SF,HYLB').then((res) => { |
| | | if (res.code !== 0) { |
| | | // 处理数据 |
| | | taskAlgorithm.value = res.data.data['SF']; |
| | |
| | | onMounted(() => { |
| | | requestDictionary(); |
| | | }); |
| | | </script> |
| | | </script> |