能力统计样式

This commit is contained in:
a0049873 2022-11-11 09:48:13 +08:00
parent 99d821ab7e
commit 872227b425
1 changed files with 47 additions and 46 deletions

View File

@ -74,7 +74,8 @@
<!-- <span v-if="this.departmentId === 2 || this.departmentId === 4">资源名称</span> -->
<el-input v-model="resourceName" placeholder="请输入资源名称" clearable></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" style="display: flex;justify-content: end;margin-right: 40px;">
<!--操作按钮查询-->
<el-form-item>
<el-button type="primary" @click="getDataList()">{{ $t('query') }}</el-button>
@ -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 13 24
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 ''
}