-
+
-
+
{{ val.resourceName }}
@@ -48,11 +48,9 @@
//移除方法
const removeFunction = (data) => {
dataForm.value.map((val) => {
- val.children = val.children.filter(
- (item) => item.resourceId !== data.resourceId
- )
+ val.arr = val.arr.filter((item) => item.resourceId !== data.resourceId)
})
- dataForm.value = dataForm.value.filter((val) => val.children.length !== 0)
+ dataForm.value = dataForm.value.filter((val) => val.arr.length !== 0)
}
diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue
index 2082dd47..5060a8ba 100644
--- a/front/src/views/home/DetailsPageconetent.vue
+++ b/front/src/views/home/DetailsPageconetent.vue
@@ -1018,7 +1018,6 @@
})
console.log('paramsGetResources', paramsGetResources)
}
- // debugger
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
if (val.typeList && val.typeList.length > 6) {
@@ -1038,8 +1037,8 @@
const resourceList = reactive({ data: [] })
const videoList = reactive({ data: [] })
const resourceTotal = ref('')
- const getAppResources = () => {
- paramsGetResources.pageNum = 1
+ const getAppResources = (switchIndex) => {
+ //switchIndex这个参数是下面的分页传过来的参数
paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value
console.log(
@@ -1050,7 +1049,10 @@
!whoShow1.value.itShowBaoTou &&
paramsGetResources.type === '数据资源'
) {
- getDataResource({
+ if (switchIndex != '分页查询') {
+ paramsGetResources.pageNum = 1
+ }
+ let dataResourceParams = {
serviceName: paramsGetResources.name, //资源名称
orderField: whoShow1.value.itShowQingDao
? paramsGetResources.orderField == 'applyCount'
@@ -1062,7 +1064,8 @@
orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc
pageNum: paramsGetResources.pageNum, //页码
pageSize: paramsGetResources.pageSize, //分页大小
- }).then((res) => {
+ }
+ getDataResource(dataResourceParams).then((res) => {
console.log('数据资源==================>', res.data.data)
if (whoShow1.value.itShowQingDao) {
res.data.data.data.forEach((val) => {
@@ -1092,6 +1095,9 @@
}
})
} else if (paramsGetResources.type !== '数据资源') {
+ if (switchIndex != '分页查询') {
+ paramsGetResources.pageNum = 1
+ }
pageWithAttrs(paramsGetResources).then((res) => {
console.log('查询列表============>', resourceList, res.data.data)
resourceList.data = []
@@ -1183,7 +1189,8 @@
loading.value = true
currentPage.value = val
paramsGetResources.pageNum = val
- getAppResources()
+ let params = '分页查询' //判断是否是点击下面的分页的调用模糊查询方法还是点击搜索调用模糊查询方法
+ getAppResources(params)
}
// const findZywMessage = () => {
// zywMessage().then((res) => {
@@ -1236,7 +1243,6 @@
router.currentRoute.value.query.appLiCation = ''
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
- // debugger
let newQuery = JSON.parse(
JSON.stringify(router.currentRoute.value.query)
)
diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue
index 5bf6df4d..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 }}
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
- 您已成功申请{{
- 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/personalCenter/components/ApplyDetails.vue b/front/src/views/personalCenter/components/ApplyDetails.vue
index 806f5719..ab3d9294 100644
--- a/front/src/views/personalCenter/components/ApplyDetails.vue
+++ b/front/src/views/personalCenter/components/ApplyDetails.vue
@@ -509,6 +509,7 @@
getTaskHandleDetailInfo,
getDemandForm,
nengliziyuanshangjiaapply,
+ getTaskVariables,
} from '@/api/personalCenter'
import { selectOneDel } from '@/api/home'
const downloadFile = (path, name) => {
@@ -593,6 +594,12 @@
resourceId: { type: String, default: null },
})
const getInfo = () => {
+ console.log(props.processInstanceId, '============================')
+ if (props.processDefinitionName == '能力申请') {
+ getTaskVariables({ taskId: props.processInstanceId }).then((res) => {
+ console.log('获取数据====================>', res.data.data)
+ })
+ }
if (props.processDefinitionName == '能力申请流程') {
getApplyForm(props.businessKey).then((res) => {
const { data } = res.data
@@ -662,6 +669,7 @@
})
const getResourceURL = () => {
+ console.log('111111111111111111111111111111', Cookies.get('token'))
const params = qs.stringify({
token: Cookies.get('token'),
// processInstanceId: this.dataForm.processInstanceId
diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue
index 8fa64659..dfa3d105 100644
--- a/front/src/views/personalCenter/components/MyApply.vue
+++ b/front/src/views/personalCenter/components/MyApply.vue
@@ -60,7 +60,7 @@
审核结果:{{
- item.ended ? '审核完成' : item.backToFirst ? '被驳回' : '审核中'
+ item.ended ? '审核完成' : item.backToFirst ? '被终止' : '审核中'
}}
@@ -95,10 +95,16 @@