能力统计样式
This commit is contained in:
parent
99d821ab7e
commit
872227b425
|
@ -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 1,3 2,4 两个值共同判断
|
// departmentId 1,3 2,4 两个值共同判断
|
||||||
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 ''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue