Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev
# Conflicts: # back/src/views/modules/myAgent/demo/competency-application.vue
This commit is contained in:
commit
1e855be058
|
@ -105,6 +105,7 @@ router.beforeEach((to, from, next) => {
|
||||||
return next({ name: 'login' })
|
return next({ name: 'login' })
|
||||||
}
|
}
|
||||||
window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0)
|
window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0)
|
||||||
|
debugger
|
||||||
fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList)
|
fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList)
|
||||||
next({ ...to, replace: true })
|
next({ ...to, replace: true })
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
@ -137,6 +138,7 @@ function fnCurrentRouteIsPageRoute (route, pageRoutes = []) {
|
||||||
*/
|
*/
|
||||||
function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
|
function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
|
||||||
var temp = []
|
var temp = []
|
||||||
|
debugger
|
||||||
for (var i = 0; i < menuList.length; i++) {
|
for (var i = 0; i < menuList.length; i++) {
|
||||||
if (menuList[i].children && menuList[i].children.length >= 1) {
|
if (menuList[i].children && menuList[i].children.length >= 1) {
|
||||||
temp = temp.concat(menuList[i].children)
|
temp = temp.concat(menuList[i].children)
|
||||||
|
@ -187,6 +189,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
|
||||||
},
|
},
|
||||||
{ path: '*', redirect: { name: '404' } }
|
{ path: '*', redirect: { name: '404' } }
|
||||||
])
|
])
|
||||||
|
console.log('查询路由', routes)
|
||||||
window.SITE_CONFIG.dynamicMenuRoutes = routes
|
window.SITE_CONFIG.dynamicMenuRoutes = routes
|
||||||
window.SITE_CONFIG.dynamicMenuRoutesHasAdded = true
|
window.SITE_CONFIG.dynamicMenuRoutesHasAdded = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<span>日期:</span>
|
<span>日期:</span>
|
||||||
<el-date-picker v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期"
|
<el-date-picker v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss">
|
end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--审核状态-->
|
<!--审核状态-->
|
||||||
|
@ -43,7 +43,8 @@
|
||||||
|
|
||||||
<!--部门-->
|
<!--部门-->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<span>部门名称:</span>
|
<span v-if="this.departmentId === 1 || this.departmentId === 3">上架部门:</span>
|
||||||
|
<span v-else>申请部门:</span>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="abilityDepartment"
|
v-model="abilityDepartment"
|
||||||
placeholder="请选择部门"
|
placeholder="请选择部门"
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option label="全部" value=""></el-option>
|
<el-option label="全部" value=""></el-option>
|
||||||
<el-option v-for="item in departmentSelects" :key="item.label" v-bind="item"></el-option>
|
<el-option v-for="item in departmentSelects" :key="item.label" :label="item.label" :value="item.value" v-bind="item"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
@ -155,7 +156,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="yyzy" label="应用资源" min-width="100%">
|
<el-table-column prop="yyzy" label="应用资源" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="hys" label="会议室" min-width="100%" v-show='departmentId == 2'>
|
<el-table-column prop="hys" label="会议室" min-width="100%" v-show='departmentId == 2 || departmentId == 4'>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="zj" label="总计" min-width="100%">
|
<el-table-column prop="zj" label="总计" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -462,6 +463,7 @@ export default {
|
||||||
this.$http
|
this.$http
|
||||||
.get('/census/center/selectDeptDetailTypeCountList/', {
|
.get('/census/center/selectDeptDetailTypeCountList/', {
|
||||||
params: {
|
params: {
|
||||||
|
type: this.abilityType,
|
||||||
page: page || 1,
|
page: page || 1,
|
||||||
limit: 5,
|
limit: 5,
|
||||||
approveStatus: this.status,
|
approveStatus: this.status,
|
||||||
|
@ -527,6 +529,7 @@ export default {
|
||||||
this.$http
|
this.$http
|
||||||
.get('/census/center/selectApplyDeptDetailTypeCountList', {
|
.get('/census/center/selectApplyDeptDetailTypeCountList', {
|
||||||
params: {
|
params: {
|
||||||
|
type: this.abilityType,
|
||||||
page: page || 1,
|
page: page || 1,
|
||||||
limit: this.pageSize,
|
limit: this.pageSize,
|
||||||
approveStatus: this.status,
|
approveStatus: this.status,
|
||||||
|
@ -702,6 +705,7 @@ export default {
|
||||||
limit: 5,
|
limit: 5,
|
||||||
// page: page || 1,
|
// page: page || 1,
|
||||||
approveStatus: '',
|
approveStatus: '',
|
||||||
|
type: '',
|
||||||
deptId: '',
|
deptId: '',
|
||||||
params: '',
|
params: '',
|
||||||
startDate: ''
|
startDate: ''
|
||||||
|
@ -881,8 +885,8 @@ export default {
|
||||||
// 点击查询按钮查询数据
|
// 点击查询按钮查询数据
|
||||||
getDataList () {
|
getDataList () {
|
||||||
if (this.value1 && this.value1.length > 0) {
|
if (this.value1 && this.value1.length > 0) {
|
||||||
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd HH:mm:ss')
|
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd')
|
||||||
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd HH:mm:ss')
|
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd')
|
||||||
} else {
|
} else {
|
||||||
this.startDate = ''
|
this.startDate = ''
|
||||||
this.endDate = ''
|
this.endDate = ''
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<!--
|
<!--
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-27 11:27:22
|
* @Date: 2022-06-27 11:27:22
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-08-23 10:37:29
|
* @LastEditTime: 2022-10-19 11:10:50
|
||||||
* @Description: 能力申请
|
* @Description: 能力申请
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -168,7 +168,7 @@ export default {
|
||||||
created () {
|
created () {
|
||||||
bus.$off('competencyApplicationInit')
|
bus.$off('competencyApplicationInit')
|
||||||
bus.$on('competencyApplicationInit', () => {
|
bus.$on('competencyApplicationInit', () => {
|
||||||
this.getDataList();
|
this.getDataList()
|
||||||
bus.$emit('updateTaskNum')
|
bus.$emit('updateTaskNum')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-29 15:59:51
|
* @Date: 2022-06-29 15:59:51
|
||||||
* @LastEditors: Light
|
* @LastEditors: Light
|
||||||
* @LastEditTime: 2022-10-20 17:18:58
|
* @LastEditTime: 2022-10-21 09:31:25
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<!-- 流程业务表单 -->
|
<!-- 流程业务表单 -->
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
"body-parser": "^1.20.0",
|
"body-parser": "^1.20.0",
|
||||||
"chalk": "^4.1.1",
|
"chalk": "^4.1.1",
|
||||||
"chokidar": "^3.5.2",
|
"chokidar": "^3.5.2",
|
||||||
|
"compression-webpack-plugin": "^6.1.1",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-03-29 16:45:25
|
* @Date: 2022-03-29 16:45:25
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-08-25 11:18:05
|
* @LastEditTime: 2022-10-19 17:44:14
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -102,4 +102,4 @@
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -75,15 +75,10 @@ const params = {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
}
|
}
|
||||||
infrastructureInfo().then((res) => {
|
infrastructureInfo().then((res) => {
|
||||||
console.log('基础设施==================>', res.data.data)
|
console.log('基础设施======云图============>', res.data.data)
|
||||||
myDataList.value.forEach((val) => {
|
myDataList.value.forEach((val) => {
|
||||||
const obj = res.data.data.filter((item) => item.type === val.title)[0]
|
const obj = res.data.data.filter((item) => item.type === val.title)[0]
|
||||||
if (obj) {
|
if (obj) {
|
||||||
if (obj.type == '视频资源数量') {
|
|
||||||
if (uavAndIndividualSoldier.num) {
|
|
||||||
obj.amount = obj.amount - 0 + uavAndIndividualSoldier.num
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val.snum = obj.amount
|
val.snum = obj.amount
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -18,7 +18,19 @@ const {
|
||||||
donation,
|
donation,
|
||||||
} = require('./src/config')
|
} = require('./src/config')
|
||||||
const { webpackBarName, webpackBanner, donationConsole } = require('vab-config')
|
const { webpackBarName, webpackBanner, donationConsole } = require('vab-config')
|
||||||
|
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
||||||
|
const productionGzipExtensions = [
|
||||||
|
'js',
|
||||||
|
'css',
|
||||||
|
'html',
|
||||||
|
'svg',
|
||||||
|
'json',
|
||||||
|
'txt',
|
||||||
|
'ico',
|
||||||
|
]
|
||||||
|
// 是否开启gzip压缩
|
||||||
|
const isPro = process.env.NODE_ENV === 'production'
|
||||||
|
// const isPro = false
|
||||||
if (donation) donationConsole()
|
if (donation) donationConsole()
|
||||||
const { version, author } = require('./package.json')
|
const { version, author } = require('./package.json')
|
||||||
const Webpack = require('webpack')
|
const Webpack = require('webpack')
|
||||||
|
@ -92,7 +104,6 @@ module.exports = {
|
||||||
chainWebpack(config) {
|
chainWebpack(config) {
|
||||||
config.resolve.symlinks(true)
|
config.resolve.symlinks(true)
|
||||||
config.module.rule('svg').exclude.add(resolve('src/icon/remixIcon')).end()
|
config.module.rule('svg').exclude.add(resolve('src/icon/remixIcon')).end()
|
||||||
|
|
||||||
config.module
|
config.module
|
||||||
.rule('remixIcon')
|
.rule('remixIcon')
|
||||||
.test(/\.svg$/)
|
.test(/\.svg$/)
|
||||||
|
@ -110,21 +121,21 @@ module.exports = {
|
||||||
config.when(process.env.NODE_ENV !== 'development', (config) => {
|
config.when(process.env.NODE_ENV !== 'development', (config) => {
|
||||||
config.performance.set('hints', false)
|
config.performance.set('hints', false)
|
||||||
config.devtool('none')
|
config.devtool('none')
|
||||||
config.optimization.splitChunks({
|
// config.optimization.splitChunks({
|
||||||
chunks: 'all',
|
// chunks: 'all',
|
||||||
cacheGroups: {
|
// cacheGroups: {
|
||||||
libs: {
|
// libs: {
|
||||||
name: 'vue-admin-beautiful-libs',
|
// name: 'vue-admin-beautiful-libs',
|
||||||
test: /[\\/]node_modules[\\/]/,
|
// test: /[\\/]node_modules[\\/]/,
|
||||||
priority: 10,
|
// priority: 10,
|
||||||
chunks: 'initial',
|
// chunks: 'initial',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
config
|
// config
|
||||||
.plugin('banner')
|
// .plugin('banner')
|
||||||
.use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
|
// .use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
|
||||||
.end()
|
// .end()
|
||||||
config.module
|
config.module
|
||||||
.rule('images')
|
.rule('images')
|
||||||
.use('image-webpack-loader')
|
.use('image-webpack-loader')
|
||||||
|
@ -134,7 +145,19 @@ module.exports = {
|
||||||
})
|
})
|
||||||
.end()
|
.end()
|
||||||
})
|
})
|
||||||
|
if (isPro) {
|
||||||
|
// 生产环境下使用gzip 压缩
|
||||||
|
config.plugin('compressionPlugin').use(
|
||||||
|
new CompressionWebpackPlugin({
|
||||||
|
// filename: '[path].gz[query]',
|
||||||
|
algorithm: 'gzip',
|
||||||
|
test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
|
||||||
|
threshold: 10240, // 只有大小大于该值的资源会被处理 10240
|
||||||
|
minRatio: 0.8, // 只有压缩率小于这个值的资源才会被处理
|
||||||
|
deleteOriginalAssets: false, // 删除原文件
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
if (build7z) {
|
if (build7z) {
|
||||||
config.when(process.env.NODE_ENV === 'production', (config) => {
|
config.when(process.env.NODE_ENV === 'production', (config) => {
|
||||||
config
|
config
|
||||||
|
|
Loading…
Reference in New Issue