去除 输出,
指标库添加权限
This commit is contained in:
parent
449613c13e
commit
5e276ed0b3
@ -93,8 +93,6 @@ export default {
|
|||||||
handleSelectionChange (val) {
|
handleSelectionChange (val) {
|
||||||
// 选项
|
// 选项
|
||||||
this.selectedList = val
|
this.selectedList = val
|
||||||
console.log('选中------')
|
|
||||||
console.log(val)
|
|
||||||
},
|
},
|
||||||
handelTargetFilterSubmit (val) {
|
handelTargetFilterSubmit (val) {
|
||||||
// 选择指标分类
|
// 选择指标分类
|
||||||
@ -113,7 +111,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSubmitPopup () {
|
handleSubmitPopup () {
|
||||||
this.$emit('cd', this.selectedList)
|
this.$emit('cd', this.selectedList)
|
||||||
console.log('选中')
|
|
||||||
console.dir(this.selectedList)
|
console.dir(this.selectedList)
|
||||||
this.$emit('update:isShowPopup', false)
|
this.$emit('update:isShowPopup', false)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -29,12 +29,9 @@ import { apiGetIndicatorType } from '@/api/target'
|
|||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
hundlePopupHide () {
|
hundlePopupHide () {
|
||||||
console.log('移动到---隐藏')
|
|
||||||
this.$emit('update:isShowPopupRadio', false)
|
this.$emit('update:isShowPopupRadio', false)
|
||||||
},
|
},
|
||||||
handleSubmitPopup () {
|
handleSubmitPopup () {
|
||||||
console.log('提交---隐藏')
|
|
||||||
console.log(this.radioSelectedId)
|
|
||||||
this.$emit('cd', this.radioSelectedId)
|
this.$emit('cd', this.radioSelectedId)
|
||||||
this.$emit('update:isShowPopupRadio', false)
|
this.$emit('update:isShowPopupRadio', false)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -38,7 +38,6 @@ import { getDimensions } from '@/api/data'
|
|||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
hundlePopupHide () {
|
hundlePopupHide () {
|
||||||
console.log('隐藏---------')
|
|
||||||
this.$emit('update:isShowTargetFiltrate', false)
|
this.$emit('update:isShowTargetFiltrate', false)
|
||||||
},
|
},
|
||||||
handleSubmitPopup () {
|
handleSubmitPopup () {
|
||||||
@ -49,7 +48,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handleRadio (area, val) {
|
handleRadio (area, val) {
|
||||||
// 选中值
|
// 选中值
|
||||||
console.log(val)
|
|
||||||
area.selectedId = val.id
|
area.selectedId = val.id
|
||||||
|
|
||||||
this.areaSelectedDic = val.id === -1 ? null : val
|
this.areaSelectedDic = val.id === -1 ? null : val
|
||||||
@ -67,7 +65,6 @@ export default {
|
|||||||
let data = res.data
|
let data = res.data
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listData[0].list = [{ id: -1, name: '全部' }].concat(data.list)
|
this.listData[0].list = [{ id: -1, name: '全部' }].concat(data.list)
|
||||||
console.log(this.listData)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -52,12 +52,12 @@ export default {
|
|||||||
this.activeIndex = '0'
|
this.activeIndex = '0'
|
||||||
} else if (!this.auth.roleSet) {
|
} else if (!this.auth.roleSet) {
|
||||||
this.activeIndex = '1'
|
this.activeIndex = '1'
|
||||||
} else if (!this.auth.target) {
|
} else if (!this.auth.setIndicatrix) {
|
||||||
this.activeIndex = '2'
|
this.activeIndex = '2'
|
||||||
} else {
|
} else {
|
||||||
this.activeIndex = ''
|
this.activeIndex = ''
|
||||||
}
|
}
|
||||||
if (this.auth.evaluationSet && this.auth.roleSet) {
|
if (this.auth.evaluationSet && this.auth.roleSet && this.auth.setIndicatrix) {
|
||||||
this.activeIndex = this.$route.query.activeIndex
|
this.activeIndex = this.$route.query.activeIndex
|
||||||
} else {
|
} else {
|
||||||
this.activeIndex = this.$route.query.activeIndex || '0'
|
this.activeIndex = this.$route.query.activeIndex || '0'
|
||||||
|
|||||||
@ -193,8 +193,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
if (this.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
console.log('this.$route.query:')
|
|
||||||
console.log(this.$route.query)
|
|
||||||
this.changeTargetId = this.$route.query.id
|
this.changeTargetId = this.$route.query.id
|
||||||
this.formData = this.$route.query
|
this.formData = this.$route.query
|
||||||
}
|
}
|
||||||
|
|||||||
@ -211,8 +211,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handlePopupMove (val) {
|
handlePopupMove (val) {
|
||||||
// 移动指标分类
|
// 移动指标分类
|
||||||
console.log('移动指标分类')
|
|
||||||
console.log(val)
|
|
||||||
let ids = this.selectedRowList.map(item => {
|
let ids = this.selectedRowList.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
}).join(',')
|
}).join(',')
|
||||||
@ -231,7 +229,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleRemove () {
|
handleRemove () {
|
||||||
console.log('删除指标')
|
|
||||||
this.$confirm('确认删除选中指标', '提示').then(() => {
|
this.$confirm('确认删除选中指标', '提示').then(() => {
|
||||||
let ids = this.selectedRowList.map(item => {
|
let ids = this.selectedRowList.map(item => {
|
||||||
return item.id
|
return item.id
|
||||||
@ -350,8 +347,6 @@ export default {
|
|||||||
type: val.type,
|
type: val.type,
|
||||||
indicatorType: val.indicatorType
|
indicatorType: val.indicatorType
|
||||||
}
|
}
|
||||||
console.log('跳转')
|
|
||||||
console.dir(val)
|
|
||||||
this.$router.push({ name: 'workbench-target-add', query: changeVal })
|
this.$router.push({ name: 'workbench-target-add', query: changeVal })
|
||||||
},
|
},
|
||||||
handleSelectionChange (val) {
|
handleSelectionChange (val) {
|
||||||
@ -359,8 +354,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handlePopupFiltrateSubmit (val) {
|
handlePopupFiltrateSubmit (val) {
|
||||||
// 筛选 选择指标类型
|
// 筛选 选择指标类型
|
||||||
console.log('筛选类型----')
|
|
||||||
console.log(val)
|
|
||||||
this.selectedTargetType = val
|
this.selectedTargetType = val
|
||||||
this.queryData.type = val ? val.id : -1
|
this.queryData.type = val ? val.id : -1
|
||||||
this.handleGetMenuList(this.queryData.type)
|
this.handleGetMenuList(this.queryData.type)
|
||||||
@ -389,8 +382,6 @@ export default {
|
|||||||
}
|
}
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
console.log('获取类型')
|
|
||||||
console.log(this.tableMenuData)
|
|
||||||
this.tableMenuData.forEach((item, index) => {
|
this.tableMenuData.forEach((item, index) => {
|
||||||
if (item.indicatorType === this.queryData.indicatorType) {
|
if (item.indicatorType === this.queryData.indicatorType) {
|
||||||
// 选中
|
// 选中
|
||||||
@ -405,7 +396,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取指标列表
|
// 获取指标列表
|
||||||
handleGetTargetList (indicatorType = -1, type = -1, name = '', currPage = 1) {
|
handleGetTargetList (indicatorType = -1, type = -1, name = '', currPage = 1) {
|
||||||
console.log(name)
|
|
||||||
this.queryData.name = name
|
this.queryData.name = name
|
||||||
this.queryData.indicatorType = indicatorType
|
this.queryData.indicatorType = indicatorType
|
||||||
let para = {
|
let para = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user