Compare commits

..

No commits in common. "057b9261839365c0aa6b48c1fe5717c8a4fff8bc" and "e477b3f90e2a49f5be7148d7b9d62ec4eee7eff2" have entirely different histories.

7 changed files with 17 additions and 39 deletions

View File

@ -459,11 +459,4 @@ export function soldierApply(data) {
method: 'post',
data,
})
}
// 西--
export function getMaxApplyNum(number) {
return request({
url: '/processForm/tabilityapplication/canApply/' + number,
method: 'get',
})
}

View File

@ -507,5 +507,4 @@ export const RECOURCE_G_ICON = {
}
// -tab
// 西-
export const DETAIL_PAGE_CONTENT_DEFAULT_TAB = whoShow.itShowXiHaiAn ? '基础设施' : '应用资源'
export const DETAIL_PAGE_CONTENT_DEFAULT_TAB = '应用资源'

View File

@ -85,7 +85,7 @@ export const constantRoutes = [
{
path: '/',
component: Layout,
redirect: whoShow.itShowXiHaiAn ? '/DetailsPageconetent' : '/home',
redirect: '/home',
meta: {
title: '能力管理平台编目',
icon: 'apps-line',

View File

@ -119,6 +119,12 @@ instance.interceptors.response.use(
if (_old_href === _new_href) {
location.reload()
}
// location.reload()
// 西-
// if(!whoShow.itShowXiHaiAn) {
// location.reload()
// }
return response
}
if (response.headers.redirect === '/#/login') {
@ -144,7 +150,7 @@ instance.interceptors.response.use(
location.reload()
}, 1000)
}
handleCode(code, message || response.data.msg, response.headers)
handleCode(code, message, response.headers)
if (loadingInstance) loadingInstance.close()
// const { data, config } = response
// const { code, msg } = data

View File

@ -739,7 +739,6 @@
//
import infrastructurePage from '@/views/home/infrastructurePage.vue'
import detailsPageInfrastructureTree from '@/views/home/detailsPageInfrastructureTree.vue'
import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js'
import { message } from 'ant-design-vue'
import {
@ -782,8 +781,7 @@
let currentPageSize = ref(5)
const pageSizeOptions = ref(['5', '10', '20', '50'])
const router = useRouter()
// let select = router.currentRoute.value.query.select || ''
let select = router.currentRoute.value.query.select || DETAIL_PAGE_CONTENT_DEFAULT_TAB
let select = router.currentRoute.value.query.select || '应用资源'
const select2 = router.currentRoute.value.query.select
const str = router.currentRoute.value.query.str
const searchValue = ref(str)

View File

@ -100,8 +100,6 @@
import mybus from '@/myplugins/mybus'
import { useRouter } from 'vue-router'
import { UpOutlined, DownOutlined } from '@ant-design/icons-vue'
import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js'
export default defineComponent({
setup() {
const selectedKeys = ref([])
@ -120,7 +118,7 @@
'router.currentRoute.value.query.select',
router.currentRoute.value.query.select
)
let select = router.currentRoute.value.query.select || DETAIL_PAGE_CONTENT_DEFAULT_TAB
let select = router.currentRoute.value.query.select
if (select === '123') {
select = ''
}

View File

@ -752,7 +752,6 @@
setSubmit,
getYuyue,
getSoldierList,
getMaxApplyNum,
} from '@/api/home'
import mybus from '@/myplugins/mybus'
import dayjs from 'dayjs'
@ -1777,31 +1776,16 @@
const dept = reactive({})
// eslint-disable-next-line no-undef
if (infrastructure) {
console.log('infrastructure------------>', infrastructure)
// eslint-disable-next-line no-undef
dept.deptId = infrastructure.deptId || ''
// eslint-disable-next-line no-undef
dept.deptName = infrastructure.deptName || ''
}
// 西--
const judegNumber = () => {
return new Promise((resolve, reject) => {
getMaxApplyNum(selectedRowKeys.value.length).then(res => {
resolve(res)
}).catch(err => {
reject(err)
})
})
}
const apply = async () => {
console.log('一键申请', selectedList.value)
const apply = () => {
if (selectedRowKeys.value.length != 0) {
//
let maxNumRes = await judegNumber();
if (maxNumRes.data.code != 0) {
return;
}
console.log('一键申请', selectedList.value)
let arr = [
{
arr: [
@ -1937,9 +1921,9 @@
},
{
title: '归属',
dataIndex: 'managementUnitName',
dataIndex: 'nodeName',
width: '60%',
key: 'managementUnitName',
key: 'nodeName',
},
{
title: '状态',