能力统计样式

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

@ -69,14 +69,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!--资源名称 仅明细添加--> <!--资源名称 仅明细添加-->
<el-form-item v-if="this.departmentId === 3 || this.departmentId === 4"> <el-form-item v-if="this.departmentId === 3 || this.departmentId === 4">
<!-- <span v-if="this.departmentId === 2 || this.departmentId === 4">资源名称</span> --> <!-- <span v-if="this.departmentId === 2 || this.departmentId === 4">资源名称</span> -->
<el-input v-model="resourceName" placeholder="请输入资源名称" clearable></el-input> <el-input v-model="resourceName" placeholder="请输入资源名称" clearable></el-input>
</el-form-item> </el-form-item>
</el-form>
<!--操作按钮查询--> <el-form :inline="true" style="display: flex;justify-content: end;margin-right: 40px;">
<el-form-item> <!--操作按钮查询-->
<el-form-item>
<el-button type="primary" @click="getDataList()">{{ $t('query') }}</el-button> <el-button type="primary" @click="getDataList()">{{ $t('query') }}</el-button>
</el-form-item> </el-form-item>
<!--操作按钮重置--> <!--操作按钮重置-->
@ -235,7 +236,7 @@ import Template from '../devtools/template.vue'
// }) // })
export default { export default {
components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template }, components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template },
data() { data () {
return { return {
checked: false, checked: false,
departmentSelects: [], departmentSelects: [],
@ -347,7 +348,7 @@ export default {
abilityType: '', // abilityType: '', //
beginTime: '', // beginTime: '', //
endTime: '', // endTime: '', //
resourceName:'',// resourceName: '', //
typeOptions: [ typeOptions: [
{ name: '智能算法', value: 1 }, { name: '智能算法', value: 1 },
{ name: '图层服务', value: 2 }, { name: '图层服务', value: 2 },
@ -369,7 +370,7 @@ export default {
endDate: '' // endDate: '' //
} }
}, },
created() { created () {
this.$http.get('/sys/dept/all').then(res => { this.$http.get('/sys/dept/all').then(res => {
// console.log('=========>', res) // console.log('=========>', res)
this.departmentSelects = [] this.departmentSelects = []
@ -390,7 +391,7 @@ export default {
// const date2 = new Date(year2, month2, day2, 7) // const date2 = new Date(year2, month2, day2, 7)
// this.value1.unshift(date2) // this.value1.unshift(date2)
}, },
mounted() { mounted () {
// this.getFirstTree() // this.getFirstTree()
console.log('this.$route.query.Id;', this.$route.query.type) console.log('this.$route.query.Id;', this.$route.query.type)
if (this.$route.query.type === 'use') { if (this.$route.query.type === 'use') {
@ -410,7 +411,7 @@ export default {
// ...mapState(['departmentSelects']) // ...mapState(['departmentSelects'])
}, },
methods: { methods: {
chagneCheckbox() { chagneCheckbox () {
if (this.checked) { if (this.checked) {
this.tableData = this.tableDataClone.filter(val => val.count !== 0) this.tableData = this.tableDataClone.filter(val => val.count !== 0)
this.total = this.tableData.length this.total = this.tableData.length
@ -419,7 +420,7 @@ export default {
this.total = this.tableData.length this.total = this.tableData.length
} }
}, },
closeModal() { closeModal () {
this.detailsVisible = false this.detailsVisible = false
}, },
handleCurrentChange (val) { handleCurrentChange (val) {
@ -439,7 +440,7 @@ export default {
// this.getReleaseTree(val) // this.getReleaseTree(val)
// } // }
}, },
getTreeName(data) { getTreeName (data) {
this.$http this.$http
.get('/census/center/v3/treeList/', { .get('/census/center/v3/treeList/', {
params: { params: {
@ -469,7 +470,7 @@ export default {
// }, // },
// -- // --
getFirstTree(page) { getFirstTree (page) {
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
} else if (this.examineStatus == '0') { } else if (this.examineStatus == '0') {
@ -531,12 +532,12 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
}) })
}) })
}, },
// 使-使 // 使-使
getSecondTree(page) { getSecondTree (page) {
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
} else if (this.examineStatus == '0') { } else if (this.examineStatus == '0') {
@ -598,13 +599,13 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
}) })
}) })
}, },
// //
detailClick(row) { detailClick (row) {
this.detailParamss = {} this.detailParamss = {}
const applyNumber = row.applyNumber const applyNumber = row.applyNumber
if (this.departmentId == 3) { // if (this.departmentId == 3) { //
@ -646,7 +647,7 @@ export default {
} }
}, },
// //
getOneDetail(page) { getOneDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
@ -669,7 +670,7 @@ export default {
type: this.abilityType, type: this.abilityType,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
} }
}) })
.then((res) => { .then((res) => {
@ -682,12 +683,12 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
}) })
}) })
}, },
// 使 使 // 使 使
getTwoDetail(page) { getTwoDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if (this.examineStatus == '-1') { if (this.examineStatus == '-1') {
this.status = '' this.status = ''
@ -710,7 +711,7 @@ export default {
type: this.abilityType, type: this.abilityType,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
} }
}) })
.then((res) => { .then((res) => {
@ -722,11 +723,11 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
}) })
}) })
}, },
getReleaseTree(page) { getReleaseTree (page) {
this.$http this.$http
.get('/census/center/selectApplyDeptDetailTypeCountList/', { .get('/census/center/selectApplyDeptDetailTypeCountList/', {
params: { params: {
@ -773,7 +774,7 @@ export default {
}) })
}, },
// 使 // 使
getUsedTree() { getUsedTree () {
this.$http this.$http
.get('/census/center/v3/resourceReleaseDetails/', { .get('/census/center/v3/resourceReleaseDetails/', {
params: { params: {
@ -787,7 +788,7 @@ export default {
this.tableData = res.data.data.list this.tableData = res.data.data.list
}) })
}, },
handleClick(row) { handleClick (row) {
if (this.choseId === 0) { if (this.choseId === 0) {
if (this.departmentId === 1) { if (this.departmentId === 1) {
this.homeIsShow = false this.homeIsShow = false
@ -808,7 +809,7 @@ export default {
} }
}, },
// //
choseBtn(index) { choseBtn (index) {
this.choseId = index this.choseId = index
this.handleChose(1) this.handleChose(1)
}, },
@ -824,11 +825,11 @@ export default {
// } // }
// }, // },
// or使 // or使
handleChose(index) { handleChose (index) {
this.checked = false this.checked = false
this.departmentId = index this.departmentId = index
this.currentPage=1 this.currentPage = 1
this.pageSize=10 this.pageSize = 10
if (index === 1) { if (index === 1) {
if (this.choseId === 0) { if (this.choseId === 0) {
if (!this.detailFlag) { if (!this.detailFlag) {
@ -868,32 +869,32 @@ export default {
} }
}, },
// //
handleSizeChange(val) { handleSizeChange (val) {
console.log(`每页 ${val}`) console.log(`每页 ${val}`)
}, },
closeChild() { closeChild () {
this.homeIsShow = true this.homeIsShow = true
this.servicesIsShow = false this.servicesIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
closeChild2() { closeChild2 () {
this.homeIsShow = true this.homeIsShow = true
this.UsedIsShow = false this.UsedIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
closeApplication() { closeApplication () {
this.homeIsShow = true this.homeIsShow = true
this.resourcesIsShow = false this.resourcesIsShow = false
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
changeIiem(){ changeIiem () {
this.currentPage=1 this.currentPage = 1
this.pageSize=10 this.pageSize = 10
}, },
// ////////// // //////////
goToDetail () { goToDetail () {
this.currentPage=1 this.currentPage = 1
this.pageSize=10 this.pageSize = 10
this.detailFlag = !this.detailFlag this.detailFlag = !this.detailFlag
if (this.departmentId === 1) { if (this.departmentId === 1) {
this.handleChose(3) this.handleChose(3)
@ -905,10 +906,10 @@ export default {
} }
}, },
// //
goToBack() { goToBack () {
this.checked = false this.checked = false
this.currentPage=1, this.currentPage = 1,
this.pageSize=10, this.pageSize = 10,
// departmentId 13 24 // departmentId 13 24
this.detailFlag = !this.detailFlag this.detailFlag = !this.detailFlag
if (this.departmentId === 3) { if (this.departmentId === 3) {
@ -921,7 +922,7 @@ 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') // this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd')
// this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd') // this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd')
@ -954,7 +955,7 @@ export default {
} }
}, },
// //
resetDataList() { resetDataList () {
this.value1 = [] this.value1 = []
this.startDate = '' this.startDate = ''
this.endDate = '' this.endDate = ''
@ -967,7 +968,7 @@ export default {
deptId: this.abilityDepartment, deptId: this.abilityDepartment,
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate, endDate: this.endDate,
resourceName:this.resourceName resourceName: this.resourceName
}) })
if (this.departmentId === 1) { if (this.departmentId === 1) {
// if (this.detailFlag) { // if (this.detailFlag) {
@ -993,7 +994,7 @@ export default {
} }
}, },
// //
handleTime(time, format) { handleTime (time, format) {
if (time == null || time == undefined || time == '') { if (time == null || time == undefined || time == '') {
return '' return ''
} }