Compare commits
6 Commits
8e89d8d1b0
...
0a2a081a28
Author | SHA1 | Date |
---|---|---|
wuhongjian | 0a2a081a28 | |
wuhongjian | 107e6205a2 | |
wuhongjian | 8e6fac427b | |
a0049873 | c41028ffaa | |
wuhongjian | a139bd809b | |
wuhongjian | b13577d4b4 |
|
@ -2,7 +2,7 @@
|
||||||
* @Author: kongjun qdkongjun@gmail.com
|
* @Author: kongjun qdkongjun@gmail.com
|
||||||
* @Date: 2022-06-20 09:29:59
|
* @Date: 2022-06-20 09:29:59
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-10-18 15:22:45
|
* @LastEditTime: 2022-10-18 15:46:51
|
||||||
* @FilePath: \back\src\views\main-sidebar.vue
|
* @FilePath: \back\src\views\main-sidebar.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.getNum()
|
this.getNum()
|
||||||
// this.$store.state.sidebarMenuList = window.SITE_CONFIG["menuList"];
|
// this.$store.state.sidebarMenuList = window.SITE_CONFIG.menuList
|
||||||
// 更新我的待办得数量
|
// 更新我的待办得数量
|
||||||
bus.$off('updateTaskNum')
|
bus.$off('updateTaskNum')
|
||||||
bus.$on('updateTaskNum', () => {
|
bus.$on('updateTaskNum', () => {
|
||||||
|
@ -96,6 +96,7 @@ export default {
|
||||||
menu.total = daibanNum
|
menu.total = daibanNum
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.$store.state.sidebarMenuList = menuList
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,11 @@
|
||||||
$t('reset')
|
$t('reset')
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- 导出 -->
|
||||||
|
<a class='export' :href="exportExcel+exportExcelType+'?'+exportExcelCondition+'&token='+token">导出</a>
|
||||||
|
<!-- <el-form-item>
|
||||||
|
<el-button type="primary" @click="exportExcel()">导出</el-button>
|
||||||
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-card shadow="never" class="aui-card--fill" v-if="homeIsShow">
|
<el-card shadow="never" class="aui-card--fill" v-if="homeIsShow">
|
||||||
<div class="mod-demand__bsdemand">
|
<div class="mod-demand__bsdemand">
|
||||||
|
@ -273,11 +278,12 @@
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import Cookies from 'js-cookie'
|
||||||
import componentServices from './componentServices.vue'
|
import componentServices from './componentServices.vue'
|
||||||
import AbilityDetail from './components/abilityDetails'
|
import AbilityDetail from './components/abilityDetails'
|
||||||
import applicationResources from './applicationResources.vue'
|
import applicationResources from './applicationResources.vue'
|
||||||
import ComponentUsed from './componentUsed.vue'
|
import ComponentUsed from './componentUsed.vue'
|
||||||
|
import qs from 'qs'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
// const props = defineProps({
|
// const props = defineProps({
|
||||||
// processDefinitionName: { type: String, default: null },
|
// processDefinitionName: { type: String, default: null },
|
||||||
|
@ -291,6 +297,10 @@ export default {
|
||||||
components: { componentServices, applicationResources, ComponentUsed, AbilityDetail },
|
components: { componentServices, applicationResources, ComponentUsed, AbilityDetail },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export',
|
||||||
|
exportExcelCondition: '',
|
||||||
|
exportExcelType: '',
|
||||||
|
token: Cookies.get('ucsToken'),
|
||||||
detailType: '',
|
detailType: '',
|
||||||
detailParamss: {},
|
detailParamss: {},
|
||||||
isBack: true,
|
isBack: true,
|
||||||
|
@ -374,7 +384,7 @@ export default {
|
||||||
{ name: '基础设施', key: 3 },
|
{ name: '基础设施', key: 3 },
|
||||||
{ name: '数据资源', key: 4 },
|
{ name: '数据资源', key: 4 },
|
||||||
{ name: '知识库', key: 5 },
|
{ name: '知识库', key: 5 },
|
||||||
{ name: '会议室', value: 6}
|
{ name: '会议室', value: 6 }
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
tableData2: [
|
tableData2: [
|
||||||
|
@ -399,7 +409,7 @@ export default {
|
||||||
{ name: '通用开发组件', value: 3 },
|
{ name: '通用开发组件', value: 3 },
|
||||||
{ name: '页面开发组件', value: 4 },
|
{ name: '页面开发组件', value: 4 },
|
||||||
{ name: '应用资源', value: 5 },
|
{ name: '应用资源', value: 5 },
|
||||||
{ name: '会议室', value: 6}
|
{ name: '会议室', value: 6 }
|
||||||
], // 类型备选列表
|
], // 类型备选列表
|
||||||
detailFlag: false, // 明细返回按钮显示标志位
|
detailFlag: false, // 明细返回按钮显示标志位
|
||||||
startDate: '', // 开始时间
|
startDate: '', // 开始时间
|
||||||
|
@ -482,7 +492,7 @@ export default {
|
||||||
this.status = '审核中'
|
this.status = '审核中'
|
||||||
} else if (this.examineStatus == '1') {
|
} else if (this.examineStatus == '1') {
|
||||||
this.status = '通过'
|
this.status = '通过'
|
||||||
}else if (this.examineStatus == '2') {
|
} else if (this.examineStatus == '2') {
|
||||||
this.status = '不通过'
|
this.status = '不通过'
|
||||||
} else {
|
} else {
|
||||||
this.status = this.examineStatus
|
this.status = this.examineStatus
|
||||||
|
@ -530,6 +540,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.tableData = res.data.data
|
this.tableData = res.data.data
|
||||||
this.total = res.data.data.total
|
this.total = res.data.data.total
|
||||||
|
this.exportExcelCondition = qs.stringify({
|
||||||
|
approveStatus: this.status,
|
||||||
|
deptId: this.abilityDepartment,
|
||||||
|
startDate: this.startDate,
|
||||||
|
endDate: this.endDate
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 组件服务部门使用情况列表-改为能力使用统计
|
// 组件服务部门使用情况列表-改为能力使用统计
|
||||||
|
@ -588,6 +604,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.tableData = res.data.data
|
this.tableData = res.data.data
|
||||||
this.total = res.data.data.total
|
this.total = res.data.data.total
|
||||||
|
this.exportExcelCondition = qs.stringify({
|
||||||
|
approveStatus: this.status,
|
||||||
|
deptId: this.abilityDepartment,
|
||||||
|
startDate: this.startDate,
|
||||||
|
endDate: this.endDate
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 点击查看详情
|
// 点击查看详情
|
||||||
|
@ -641,7 +663,7 @@ export default {
|
||||||
this.status = '审核中'
|
this.status = '审核中'
|
||||||
} else if (this.examineStatus == '1') {
|
} else if (this.examineStatus == '1') {
|
||||||
this.status = '通过'
|
this.status = '通过'
|
||||||
} else if (this.examineStatus == '2') {
|
} else if (this.examineStatus == '2') {
|
||||||
this.status = '不通过'
|
this.status = '不通过'
|
||||||
} else {
|
} else {
|
||||||
this.status = this.examineStatus
|
this.status = this.examineStatus
|
||||||
|
@ -662,6 +684,12 @@ export default {
|
||||||
console.log('111111', this.tableData, res.data.data)
|
console.log('111111', this.tableData, res.data.data)
|
||||||
this.tableData = res.data.data
|
this.tableData = res.data.data
|
||||||
this.total = res.data.data.total
|
this.total = res.data.data.total
|
||||||
|
this.exportExcelCondition = qs.stringify({
|
||||||
|
approveStatus: this.status,
|
||||||
|
deptId: this.abilityDepartment,
|
||||||
|
startDate: this.startDate,
|
||||||
|
endDate: this.endDate
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 能力使用明细
|
// 能力使用明细
|
||||||
|
@ -693,6 +721,12 @@ export default {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.tableData = res.data.data
|
this.tableData = res.data.data
|
||||||
this.total = res.data.data.total
|
this.total = res.data.data.total
|
||||||
|
this.exportExcelCondition = qs.stringify({
|
||||||
|
approveStatus: this.status,
|
||||||
|
deptId: this.abilityDepartment,
|
||||||
|
startDate: this.startDate,
|
||||||
|
endDate: this.endDate
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getReleaseTree (page) {
|
getReleaseTree (page) {
|
||||||
|
@ -799,6 +833,7 @@ export default {
|
||||||
if (!this.detailFlag) {
|
if (!this.detailFlag) {
|
||||||
this.detailFlag = !this.detailFlag
|
this.detailFlag = !this.detailFlag
|
||||||
}
|
}
|
||||||
|
this.exportExcelType = 'SelectDeptDetailTypeCountList'
|
||||||
this.getFirstTree()
|
this.getFirstTree()
|
||||||
} else if (this.choseId === 1) {
|
} else if (this.choseId === 1) {
|
||||||
// this.getReleaseTree()
|
// this.getReleaseTree()
|
||||||
|
@ -808,6 +843,7 @@ export default {
|
||||||
if (!this.detailFlag) {
|
if (!this.detailFlag) {
|
||||||
this.detailFlag = !this.detailFlag
|
this.detailFlag = !this.detailFlag
|
||||||
}
|
}
|
||||||
|
this.exportExcelType = 'SelectApplyDeptDetailTypeCountList'
|
||||||
this.getSecondTree()
|
this.getSecondTree()
|
||||||
} else {
|
} else {
|
||||||
// this.getUsedTree()
|
// this.getUsedTree()
|
||||||
|
@ -815,6 +851,7 @@ export default {
|
||||||
} else if (index === 3) {
|
} else if (index === 3) {
|
||||||
this.detailFlag = false
|
this.detailFlag = false
|
||||||
if (this.choseId === 0) {
|
if (this.choseId === 0) {
|
||||||
|
this.exportExcelType = 'SelectCensusResourceTable'
|
||||||
this.getOneDetail()
|
this.getOneDetail()
|
||||||
} else {
|
} else {
|
||||||
// this.getUsedTree()
|
// this.getUsedTree()
|
||||||
|
@ -822,6 +859,7 @@ export default {
|
||||||
} else if (index === 4) {
|
} else if (index === 4) {
|
||||||
this.detailFlag = false
|
this.detailFlag = false
|
||||||
if (this.choseId === 0) {
|
if (this.choseId === 0) {
|
||||||
|
this.exportExcelType = 'SelectCensusApplyTable'
|
||||||
this.getTwoDetail()
|
this.getTwoDetail()
|
||||||
} else {
|
} else {
|
||||||
// this.getUsedTree()
|
// this.getUsedTree()
|
||||||
|
@ -911,6 +949,13 @@ export default {
|
||||||
this.examineStatus = ''
|
this.examineStatus = ''
|
||||||
this.abilityDepartment = ''
|
this.abilityDepartment = ''
|
||||||
this.abilityType = ''
|
this.abilityType = ''
|
||||||
|
this.approveStatus = ''
|
||||||
|
this.exportExcelCondition = qs.stringify({
|
||||||
|
approveStatus: this.status,
|
||||||
|
deptId: this.abilityDepartment,
|
||||||
|
startDate: this.startDate,
|
||||||
|
endDate: this.endDate
|
||||||
|
})
|
||||||
if (this.departmentId === 1) {
|
if (this.departmentId === 1) {
|
||||||
// if (this.detailFlag) {
|
// if (this.detailFlag) {
|
||||||
// this.handleChose(3)
|
// this.handleChose(3)
|
||||||
|
@ -1100,4 +1145,31 @@ input::placeholder {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
.export {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #dcdfe6;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.export:hover {
|
||||||
|
border-color: #c5ddfd;
|
||||||
|
background-color: #ecf4fe;
|
||||||
|
color: #0058e1;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.export:active {
|
||||||
|
border-color: #c5ddfd;
|
||||||
|
background-color: #ecf4fe;
|
||||||
|
color: #0058e1;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.export:visited {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue