过程监督 迁移中

This commit is contained in:
GGJ
2024-03-06 16:14:09 +08:00
parent faec144f58
commit e4745f891f
10 changed files with 144 additions and 2 deletions

View File

@@ -30,3 +30,10 @@ export function analyseWave(params:string) {
method: 'get'
})
}
// // 123
// export function queyDetailUser(params:string) {
// return createAxios({
// url: '/cs-harmonic-boot/event/analyseWave?eventId=' + params,
// method: 'get'
// })
// }

View File

@@ -55,6 +55,10 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
// 请求拦截
Axios.interceptors.request.use(
config => {
// 取消重复请求
removePending(config)
options.CancelDuplicateRequest && addPending(config)
// 创建loading实例
@@ -73,7 +77,10 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
}
}
if(config.url?.substring(0, 4)=='/hzj'){
config.url=config.url?.slice(4)
config.baseURL='/hzj'
}
return config
},
error => {

View File

@@ -115,7 +115,7 @@ const rules = {
}
const ruleFormRef = ref()
const tableStore = new TableStore({
url: '/advance-boot/process/querySagEventsPage',
url: '/hzj/carrycapacityuser/queyDetailUser',
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
@@ -209,7 +209,29 @@ const tableStore = new TableStore({
]
}
})
// "area": "",
// "city": "",
// "endTime": "",
// "pageNum": {},
// "pageSize": {},
// "protocolCapacity": 0,
// "province": "",
// "region": "",
// "startTime": "",
// "userId": "",
// "userName": "",
// "userType": "",
// "voltage": ""
tableStore.table.params.searchValue = ''
tableStore.table.params.area = ''
tableStore.table.params.city = ''
tableStore.table.params.protocolCapacity = 0
tableStore.table.params.province = ''
tableStore.table.params.region = ''
tableStore.table.params.userId = ''
tableStore.table.params.userName = ''
tableStore.table.params.userType = ''
tableStore.table.params.voltage = ''
provide('tableStore', tableStore)
onMounted(() => {

View File

@@ -0,0 +1,11 @@
<template>
<div>占比 </div>
</template>
<script setup lang='ts'>
import { ref, reactive } from 'vue'
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,11 @@
<template>
<div>结果 </div>
</template>
<script setup lang='ts'>
import { ref, reactive } from 'vue'
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,11 @@
<template>
<div> 审核</div>
</template>
<script setup lang='ts'>
import { ref, reactive } from 'vue'
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,11 @@
<template>
<div> 计划管理</div>
</template>
<script setup lang='ts'>
import { ref, reactive } from 'vue'
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,42 @@
<template>
<div class="default-main">
<el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="普测计划管理" name="1">
<planManage />
</el-tab-pane>
<el-tab-pane label="普测计划审批" name="2">
<planAudits />
</el-tab-pane>
<el-tab-pane label="普测结果管理" name="3"><outcome /></el-tab-pane>
<el-tab-pane label="普测计划占比配置" name="4"><occupancy /></el-tab-pane>
</el-tabs>
</div>
</template>
<script setup lang="ts">
import { onMounted, reactive, ref, provide } from 'vue'
import occupancy from './components/occupancy.vue'
import outcome from './components/outcome.vue'
import planAudits from './components/planAudits.vue'
import planManage from './components/planManage.vue'
import { mainHeight } from '@/utils/layout'
defineOptions({
name: 'Region/overview'
})
const activeName = ref('1')
const Statistics = ref()
const compatibility = ref()
const layout = mainHeight(63) as any
</script>
<style lang="scss" scoped>
.bars_w {
width: 100%;
height: 500px;
}
::v-deep(.el-tabs__content) {
height: v-bind('layout.height');
overflow-y: auto;
}
</style>

View File

@@ -0,0 +1,15 @@
<template>
<div>123
general
</div>
</template>
<script setup lang='ts'>
import { ref, reactive } from 'vue'
</script>
<style lang="scss" scoped>
</style>

View File

@@ -18,6 +18,11 @@ export default defineConfig({
'/map': {
target: 'http://192.168.1.81:8088', //数据中心
changeOrigin: true,
},
'/hzj': {
target: 'http://550fa81d.nat123.fun', //黄正剑
changeOrigin: true,
rewrite: path => path.replace(/^\/hzj/, '')
}
}
},