+
+
+
+
+
+
+
+
+
+
+
+
+ {{ `共选取${selectedRowKeys.length}个算法` }}
-
-
-
-
-
-
-
-
- {{ `共选取${selectedRowKeys.length}个算法` }}
-
-
- {{ item.name || '--' }}
-
-
-
-
-
-
-
-
-
{{ data.title }}
-
-
-
-
-
-
- {{ rowData.name }}
-
-
-
-
-
-
- {{ item }}
-
-
-
-
+
+ {{ item.name || '--' }}
+
+
+
+
+
+
+
+ {{ data.title }}
+
+
+
+
+
+
+ {{ rowData.name }}
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+ }
+ :deep(.ant-checkbox-indeterminate) {
+ display: none;
+ }
+
diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue
index 0648e013..0af91f1c 100644
--- a/front/src/views/home/apply.vue
+++ b/front/src/views/home/apply.vue
@@ -20,6 +20,18 @@
labelAlign="left"
autocomplete="off"
>
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 您已成功申请{{
- formName.formNameSystem || ''
- }},请耐心等待审批结果,结果会第一时间通知您!
-
+
您已成功申请能力,请耐心等待审批结果,结果会第一时间通知您!
@@ -238,8 +246,10 @@
relaunch,
selectOne,
} from '@/api/home'
+ import { getCategoryTreePage } from '@/api/personalCenter'
import mybus from '@/myplugins/mybus'
import { sgcDel, getApplyForm } from '@/api/personalCenter'
+ import { pageWithAttrs } from '@/api/home'
// import { baseURL } from '@/config'
// import AsideMenu from './components/asideMenu.vue'
@@ -257,16 +267,18 @@
const disabled = ref(false)
const baseURL = window.SITE_CONFIG.apiURL
let record = ref('1')
+ const text = ref('')
const formName = reactive({
+ title: '', // 标题
+ applicationSystem: [], // 应用系统
+ applicationScene: [], // 应用场景
+ applicationBackground: '', // 应用背景
+ effectWish: '', // 期望效果
user: '',
userId: '',
phone: '',
unit: '',
- area: '',
system: [],
- scene: '',
- basis: '',
- formNameSystem: '',
enclosure: '', //附件
})
const dataList = ref([])
@@ -294,7 +306,21 @@
// console.log('回填数据================>', res, formName.phone)
})
}
-
+ const applicationSceneOpthion = ref([])
+ getCategoryTreePage({
+ page: 1,
+ limit: 20,
+ dictTypeId: '1513712507692818433',
+ deFlage: 0,
+ }).then((res) => {
+ res.data.data.list.map((val) => {
+ applicationSceneOpthion.value.push({
+ value: val.dictLabel,
+ label: val.dictLabel,
+ })
+ })
+ // console.log('字典值========>', applicationSceneOpthion.value)
+ })
// console.log(formName.system)
const formRef = ref()
const applySuccess = ref(true)
@@ -350,6 +376,31 @@
if (!formName) {
return message.error('请设置表单名称')
}
+ let ids = []
+ formName.system = []
+ list.value.map((val) => {
+ val.arr.map((item) => {
+ formName.system.push({
+ resourceId: item.resourceId,
+ resourceName: item.resourceName,
+ })
+ console.log(item.id)
+ ids.push(item.id)
+ })
+ })
+ console.log('提交数据==========================>', formName, ids)
+ submitApply(formName).then((res) => {
+ applySuccess.value = false
+ message.success('操作成功!')
+ console.log('能力申请================>', res)
+ if (ids) {
+ sgcDel({ ids: ids }).then((res) => {
+ if (res.data.msg === 'success') {
+ mybus.emit('getSgcNum')
+ }
+ })
+ }
+ })
// if (arr && arr.length !== 0) {
// console.log('提交')
// const obj = ref({})
@@ -480,6 +531,7 @@
label: '交通运输局',
},
])
+ const systemOptions = ref([])
const handleChange = (info) => {
if (info.file.status !== 'uploading') {
@@ -538,6 +590,63 @@
// })
// })
// })
+ // 应用系统下拉
+ const flag = ref(true)
+ const systemHandleChange = (value) => {
+ console.log(`selected ${value}`)
+ }
+ const systemHandleSearch = (value) => {
+ console.log(`search ${value}`)
+ text.value = value
+ systemOptions.value = []
+ window.setTimeout(() => {
+ if (flag.value && text.value == value && text.value !== '') {
+ console.log('1秒未输入~~~~~~~~~~~~~~~~~~~~~~~~~~')
+ pageWithAttrs({
+ pageNum: 99999,
+ pageSize: 5,
+ type: '应用资源',
+ name: text.value,
+ infoList: [],
+ }).then((res) => {
+ if (res.data.code == 0) {
+ if (res.data.data.records.length == 0) {
+ message.warning('该关键词,暂无应用资源!')
+ } else {
+ res.data.data.records.map((val) => {
+ systemOptions.value.push({
+ value: val.name,
+ label: val.name,
+ })
+ })
+ console.log(
+ '第一次获取===================>',
+ systemOptions.value
+ )
+ }
+ } else {
+ message.error('获取数据失败!')
+ }
+ })
+ }
+ }, 500)
+ }
+
+ const handleBlur = () => {
+ console.log('blur')
+ flag.value = false
+ }
+
+ const handleFocus = () => {
+ console.log('focus')
+ flag.value = true
+ systemOptions.value = []
+ }
+
+ // const filterOption = (input, option) => {
+ // return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ // }
+
onBeforeUnmount(() => {
mybus.off('reomveOldData')
})
@@ -561,6 +670,12 @@
baseURL,
beforeUpload,
dataList,
+ systemHandleChange,
+ systemHandleSearch,
+ handleBlur,
+ handleFocus,
+ systemOptions,
+ applicationSceneOpthion,
}
},
}
@@ -599,6 +714,7 @@
}
.base-info {
display: flex;
+ justify-content: space-between;
}
:deep(.ant-form-item-label) {
label {
@@ -631,4 +747,12 @@
color: #000;
}
}
+ .applicationScene {
+ :deep(.ant-select-selector) {
+ overflow-x: scroll;
+ }
+ :deep(.ant-select-selection-overflow) {
+ flex-wrap: nowrap;
+ }
+ }
diff --git a/front/src/views/home/components/KnowledgeBase.vue b/front/src/views/home/components/KnowledgeBase.vue
index f4d0cc60..d3724da5 100644
--- a/front/src/views/home/components/KnowledgeBase.vue
+++ b/front/src/views/home/components/KnowledgeBase.vue
@@ -51,6 +51,7 @@