Merge branch 'hi-ucs-dev' of http://124.222.94.39:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
guoyue 2022-10-21 11:47:38 +08:00
commit b5f9531943
8 changed files with 87 additions and 39 deletions

View File

@ -105,6 +105,7 @@ router.beforeEach((to, from, next) => {
return next({ name: 'login' })
}
window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0)
debugger
fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList)
next({ ...to, replace: true })
}).catch(() => {
@ -137,6 +138,7 @@ function fnCurrentRouteIsPageRoute (route, pageRoutes = []) {
*/
function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
var temp = []
debugger
for (var i = 0; i < menuList.length; i++) {
if (menuList[i].children && menuList[i].children.length >= 1) {
temp = temp.concat(menuList[i].children)
@ -187,6 +189,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
},
{ path: '*', redirect: { name: '404' } }
])
console.log('查询路由', routes)
window.SITE_CONFIG.dynamicMenuRoutes = routes
window.SITE_CONFIG.dynamicMenuRoutesHasAdded = true
}

View File

@ -27,7 +27,7 @@
<el-form-item>
<span>日期</span>
<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-form-item>
<!--审核状态-->
@ -43,7 +43,8 @@
<!--部门-->
<el-form-item>
<span>部门名称</span>
<span v-if="this.departmentId === 1 || this.departmentId === 3">上架部门</span>
<span v-else>申请部门</span>
<el-select
v-model="abilityDepartment"
placeholder="请选择部门"
@ -51,18 +52,23 @@
clearable
>
<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-form-item>
<!--类型-->
<el-form-item>
<span>类型</span>
<el-select v-model="abilityType" placeholder="请选择类型" clearable>
<el-select v-if="this.departmentId === 2 || this.departmentId === 4" v-model="abilityType" placeholder="请选择类型" clearable>
<el-option label="全部" value=""></el-option>
<el-option v-for="(item, i) in typeOptions" :key="`${item.name}${i}`" :label="item.name" :value="item.name" v-bind="item">
</el-option>
</el-select>
<el-select v-else v-model="abilityType" placeholder="请选择类型" clearable>
<el-option label="全部" value=""></el-option>
<el-option v-for="(item, i) in typeOptions1" :key="`${item.name}${i}`" :label="item.name" :value="item.name" v-bind="item">
</el-option>
</el-select>
</el-form-item>
<!--操作按钮查询-->
@ -129,9 +135,9 @@
</el-table-column>
<el-table-column prop="tcfw" label="图层服务" min-width="100%">
</el-table-column>
<el-table-column prop="kfzj" label="通用开发组件" min-width="100%">
<el-table-column prop="kfzj" label="开发组件" min-width="100%">
</el-table-column>
<el-table-column prop="ywzj" label="业务能力组件" min-width="100%">
<el-table-column prop="ywzj" label="业务组件" min-width="100%">
</el-table-column>
</el-table-column>
<el-table-column prop="yyzy" label="应用资源" min-width="100%">
@ -148,14 +154,14 @@
</el-table-column>
<el-table-column prop="tcfw" label="图层服务" min-width="100%">
</el-table-column>
<el-table-column prop="kfzj" label="通用开发组件" min-width="100%">
<el-table-column prop="kfzj" label="开发组件" min-width="100%">
</el-table-column>
<el-table-column prop="ywzj" label="业务能力组件" min-width="100%">
<el-table-column prop="ywzj" label="业务组件" min-width="100%">
</el-table-column>
</el-table-column>
<el-table-column prop="yyzy" label="应用资源" min-width="100%">
</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 prop="zj" label="总计" min-width="100%">
</el-table-column>
@ -342,11 +348,19 @@ export default {
typeOptions: [
{ name: '智能算法', value: 1 },
{ name: '图层服务', value: 2 },
{ name: '通用开发组件', value: 3 },
{ name: '页面开发组件', value: 4 },
{ name: '开发组件', value: 3 },
{ name: '业务组件', value: 4 },
{ name: '应用资源', value: 5 },
{ name: '会议室', value: 6 }
], //
typeOptions1: [//
{ name: '智能算法', value: 1 },
{ name: '图层服务', value: 2 },
{ name: '开发组件', value: 3 },
{ name: '业务组件', value: 4 },
{ name: '应用资源', value: 5 },
], //
detailFlag: false, //
startDate: '', //
endDate: '' //
@ -462,6 +476,7 @@ export default {
this.$http
.get('/census/center/selectDeptDetailTypeCountList/', {
params: {
type: this.abilityType,
page: page || 1,
limit: 5,
approveStatus: this.status,
@ -527,6 +542,7 @@ export default {
this.$http
.get('/census/center/selectApplyDeptDetailTypeCountList', {
params: {
type: this.abilityType,
page: page || 1,
limit: this.pageSize,
approveStatus: this.status,
@ -702,6 +718,7 @@ export default {
limit: 5,
// page: page || 1,
approveStatus: '',
type: '',
deptId: '',
params: '',
startDate: ''
@ -881,8 +898,8 @@ export default {
//
getDataList () {
if (this.value1 && this.value1.length > 0) {
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd HH:mm:ss')
this.endDate = this.handleTime(this.value1[1], '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')
} else {
this.startDate = ''
this.endDate = ''

View File

@ -1,8 +1,8 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-06-27 11:27:22
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-23 10:37:29
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-10-19 11:10:50
* @Description: 能力申请
-->
<template>
@ -168,7 +168,7 @@ export default {
created () {
bus.$off('competencyApplicationInit')
bus.$on('competencyApplicationInit', () => {
this.getDataList();
this.getDataList()
bus.$emit('updateTaskNum')
})
}

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51
* @LastEditors: Light
* @LastEditTime: 2022-10-20 15:03:33
* @LastEditTime: 2022-10-21 09:31:25
* @Description: 告诉大家这是什么
-->
<!-- 流程业务表单 -->
@ -94,7 +94,7 @@
<el-radio-button label="退回" class="redAll" @click="showDialog('退回')">退回</el-radio-button>
</el-radio-group> -->
<!-- 委托 -->
<el-button type="info" @click="entrustTask()" v-if='taskEntrustFlag'>{{ $t('process.entrustTask') }}</el-button>
<el-button type="info" @click="entrustTask()" v-if='taskEntrustFlag && taskEntrustFlag2'>{{ $t('process.entrustTask') }}</el-button>
<el-button type="primary" @click="showDialog('同意')">同意</el-button>
<el-button type="danger" plain @click="showDialog('驳回')">驳回</el-button>
<!-- <el-input v-if="agreeOrList ==='同意' " v-model="inputAgree" placeholder="请输入同意意见"></el-input>
@ -132,6 +132,7 @@ export default {
data () {
return {
taskEntrustFlag: false,
taskEntrustFlag2: false,
dialogVisible: false,
renTaskEntrustVisible: false,
dialogType: '',
@ -268,6 +269,9 @@ export default {
this.dataForm,
'elas============================'
)
if (res.data.tAbilityApplicationDTOList[0].allowEntrust === true) {
this.taskEntrustFlag2 = true
}
if (res.data.tAbilityApplicationDTOList[0].applicationScene) {
res.data.tAbilityApplicationDTOList[0].applicationSceneStr = ''
res.data.tAbilityApplicationDTOList[0].applicationScene.map(

View File

@ -60,6 +60,7 @@
"body-parser": "^1.20.0",
"chalk": "^4.1.1",
"chokidar": "^3.5.2",
"compression-webpack-plugin": "^6.1.1",
"crypto-js": "^4.1.1",
"eslint": "^7.32.0",
"eslint-plugin-prettier": "^4.2.1",

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 16:45:25
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-08-25 11:18:05
* @LastEditTime: 2022-10-19 17:44:14
* @Description: 告诉大家这是什么
-->
<!DOCTYPE html>

View File

@ -69,7 +69,7 @@
<div class="content-index">{{ index + 1 }}</div>
<div class="content-neirong">{{ item.resourceName }}</div>
<div class="content-fangwenliang" v-if="taboldName === '好评榜'">
平均{{ item.score }}
{{ item.score }}
</div>
<div
class="content-fangwenliang"

View File

@ -18,7 +18,19 @@ const {
donation,
} = require('./src/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()
const { version, author } = require('./package.json')
const Webpack = require('webpack')
@ -92,7 +104,6 @@ module.exports = {
chainWebpack(config) {
config.resolve.symlinks(true)
config.module.rule('svg').exclude.add(resolve('src/icon/remixIcon')).end()
config.module
.rule('remixIcon')
.test(/\.svg$/)
@ -110,21 +121,21 @@ module.exports = {
config.when(process.env.NODE_ENV !== 'development', (config) => {
config.performance.set('hints', false)
config.devtool('none')
config.optimization.splitChunks({
chunks: 'all',
cacheGroups: {
libs: {
name: 'vue-admin-beautiful-libs',
test: /[\\/]node_modules[\\/]/,
priority: 10,
chunks: 'initial',
},
},
})
config
.plugin('banner')
.use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
.end()
// config.optimization.splitChunks({
// chunks: 'all',
// cacheGroups: {
// libs: {
// name: 'vue-admin-beautiful-libs',
// test: /[\\/]node_modules[\\/]/,
// priority: 10,
// chunks: 'initial',
// },
// },
// })
// config
// .plugin('banner')
// .use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
// .end()
config.module
.rule('images')
.use('image-webpack-loader')
@ -134,7 +145,19 @@ module.exports = {
})
.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) {
config.when(process.env.NODE_ENV === 'production', (config) => {
config