diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue index cfc70af3..85387266 100644 --- a/back/src/views/modules/abilityStatistics/index.vue +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -69,14 +69,15 @@ - + - - - + + + + {{ $t('query') }} @@ -235,7 +236,7 @@ import Template from '../devtools/template.vue' // }) export default { components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template }, - data() { + data () { return { checked: false, departmentSelects: [], @@ -347,7 +348,7 @@ export default { abilityType: '', // 能力 beginTime: '', // 开始时间 endTime: '', // 结束时间 - resourceName:'',//资源名称 + resourceName: '', // 资源名称 typeOptions: [ { name: '智能算法', value: 1 }, { name: '图层服务', value: 2 }, @@ -369,7 +370,7 @@ export default { endDate: '' // 结束时间 } }, - created() { + created () { this.$http.get('/sys/dept/all').then(res => { // console.log('获取部门=========>', res) this.departmentSelects = [] @@ -390,7 +391,7 @@ export default { // const date2 = new Date(year2, month2, day2, 7) // this.value1.unshift(date2) }, - mounted() { + mounted () { // this.getFirstTree() console.log('this.$route.query.Id;', this.$route.query.type) if (this.$route.query.type === 'use') { @@ -410,7 +411,7 @@ export default { // ...mapState(['departmentSelects']) }, methods: { - chagneCheckbox() { + chagneCheckbox () { if (this.checked) { this.tableData = this.tableDataClone.filter(val => val.count !== 0) this.total = this.tableData.length @@ -419,7 +420,7 @@ export default { this.total = this.tableData.length } }, - closeModal() { + closeModal () { this.detailsVisible = false }, handleCurrentChange (val) { @@ -439,7 +440,7 @@ export default { // this.getReleaseTree(val) // } }, - getTreeName(data) { + getTreeName (data) { this.$http .get('/census/center/v3/treeList/', { params: { @@ -469,7 +470,7 @@ export default { // }, // 组件服务部门发布情况--改为能力上架统计 - getFirstTree(page) { + getFirstTree (page) { if (this.examineStatus == '-1') { this.status = '' } else if (this.examineStatus == '0') { @@ -531,12 +532,12 @@ export default { deptId: this.abilityDepartment, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName }) }) }, // 组件服务部门使用情况列表-改为能力使用统计 - getSecondTree(page) { + getSecondTree (page) { if (this.examineStatus == '-1') { this.status = '' } else if (this.examineStatus == '0') { @@ -598,13 +599,13 @@ export default { deptId: this.abilityDepartment, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName - + resourceName: this.resourceName + }) }) }, // 点击查看详情 - detailClick(row) { + detailClick (row) { this.detailParamss = {} const applyNumber = row.applyNumber if (this.departmentId == 3) { // 能力上架 @@ -646,7 +647,7 @@ export default { } }, // 能力上架明细 能力上架统计 - getOneDetail(page) { + getOneDetail (page) { var passAndReview = '' // 转变"通过"字段为通过 if (this.examineStatus == '-1') { this.status = '' @@ -669,7 +670,7 @@ export default { type: this.abilityType, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName } }) .then((res) => { @@ -682,12 +683,12 @@ export default { deptId: this.abilityDepartment, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName }) }) }, // 能力使用明细 能力使用统计 - getTwoDetail(page) { + getTwoDetail (page) { var passAndReview = '' // 转变"通过"字段为通过 if (this.examineStatus == '-1') { this.status = '' @@ -710,7 +711,7 @@ export default { type: this.abilityType, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName } }) .then((res) => { @@ -722,11 +723,11 @@ export default { deptId: this.abilityDepartment, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName }) }) }, - getReleaseTree(page) { + getReleaseTree (page) { this.$http .get('/census/center/selectApplyDeptDetailTypeCountList/', { params: { @@ -773,7 +774,7 @@ export default { }) }, // 应用资源部门使用情况列表 - getUsedTree() { + getUsedTree () { this.$http .get('/census/center/v3/resourceReleaseDetails/', { params: { @@ -787,7 +788,7 @@ export default { this.tableData = res.data.data.list }) }, - handleClick(row) { + handleClick (row) { if (this.choseId === 0) { if (this.departmentId === 1) { this.homeIsShow = false @@ -808,7 +809,7 @@ export default { } }, // 选择组件 - choseBtn(index) { + choseBtn (index) { this.choseId = index this.handleChose(1) }, @@ -824,11 +825,11 @@ export default { // } // }, // 选择发布or使用表格 - handleChose(index) { + handleChose (index) { this.checked = false this.departmentId = index - this.currentPage=1 - this.pageSize=10 + this.currentPage = 1 + this.pageSize = 10 if (index === 1) { if (this.choseId === 0) { if (!this.detailFlag) { @@ -868,32 +869,32 @@ export default { } }, // 翻页 - handleSizeChange(val) { + handleSizeChange (val) { console.log(`每页 ${val} 条`) }, - closeChild() { + closeChild () { this.homeIsShow = true this.servicesIsShow = false this.handleCurrentChange(1) }, - closeChild2() { + closeChild2 () { this.homeIsShow = true this.UsedIsShow = false this.handleCurrentChange(1) }, - closeApplication() { + closeApplication () { this.homeIsShow = true this.resourcesIsShow = false this.handleCurrentChange(1) }, - changeIiem(){ - this.currentPage=1 - this.pageSize=10 + changeIiem () { + this.currentPage = 1 + this.pageSize = 10 }, // 明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数 goToDetail () { - this.currentPage=1 - this.pageSize=10 + this.currentPage = 1 + this.pageSize = 10 this.detailFlag = !this.detailFlag if (this.departmentId === 1) { this.handleChose(3) @@ -905,10 +906,10 @@ export default { } }, // 返回按钮 - goToBack() { + goToBack () { this.checked = false - this.currentPage=1, - this.pageSize=10, + this.currentPage = 1, + this.pageSize = 10, // departmentId 1,3 2,4 两个值共同判断 this.detailFlag = !this.detailFlag if (this.departmentId === 3) { @@ -921,7 +922,7 @@ export default { } }, // 点击查询按钮查询数据 - getDataList() { + getDataList () { if (this.value1 && this.value1.length > 0) { // this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd') // this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd') @@ -954,7 +955,7 @@ export default { } }, // 重置按钮查询数据 - resetDataList() { + resetDataList () { this.value1 = [] this.startDate = '' this.endDate = '' @@ -967,7 +968,7 @@ export default { deptId: this.abilityDepartment, startDate: this.startDate, endDate: this.endDate, - resourceName:this.resourceName + resourceName: this.resourceName }) if (this.departmentId === 1) { // if (this.detailFlag) { @@ -993,7 +994,7 @@ export default { } }, // 定义格式化函数: - handleTime(time, format) { + handleTime (time, format) { if (time == null || time == undefined || time == '') { return '' }