Commit 6a18f60e authored by 高宇's avatar 高宇

删除菜单

parent 1f946d7a
...@@ -521,7 +521,7 @@ export default { ...@@ -521,7 +521,7 @@ export default {
methods: { methods: {
// 判断日期是否相同 // 判断日期是否相同
isSameMonthDates(datesArray) { isSameMonthDates(datesArray) {
console.log('datesArray',datesArray) console.log('datesArray', datesArray)
// 如果数组中只有一个元素,返回日期相同 // 如果数组中只有一个元素,返回日期相同
if (datesArray.length === 1) { if (datesArray.length === 1) {
return true return true
...@@ -555,7 +555,7 @@ export default { ...@@ -555,7 +555,7 @@ export default {
}) })
}) })
console.log('i', i) console.log('i', i)
console.log('number',number) console.log('number', number)
if (i === number) { if (i === number) {
console.log('1false') console.log('1false')
return false return false
...@@ -573,7 +573,11 @@ export default { ...@@ -573,7 +573,11 @@ export default {
} }
}, },
replace(value) { replace(value) {
if (this.dictList.find(item => item.dictValue === value)) {
return this.dictList.find(item => item.dictValue === value).dictLabel return this.dictList.find(item => item.dictValue === value).dictLabel
} else {
return value
}
}, },
getCodeDict() { getCodeDict() {
const obj = { const obj = {
...@@ -694,12 +698,12 @@ export default { ...@@ -694,12 +698,12 @@ export default {
this.loadingDetail = false this.loadingDetail = false
return this.$message.warning('您选择的设备数据不符合您申请设备的数量') return this.$message.warning('您选择的设备数据不符合您申请设备的数量')
} }
console.log('是否打开弹框',this.condition(this.canceList, this.detailApplyList, this.singleDetails.pnumber)) console.log('是否打开弹框', this.condition(this.canceList, this.detailApplyList, this.singleDetails.pnumber))
if (this.condition(this.canceList, this.detailApplyList, this.singleDetails.pnumber)) { if (this.condition(this.canceList, this.detailApplyList, this.singleDetails.pnumber)) {
this.monthDate = true this.monthDate = true
this.openHandle = false this.openHandle = false
} }
console.log('monthDate',this.monthDate) console.log('monthDate', this.monthDate)
if (this.monthDate) { if (this.monthDate) {
this.openLogin = true this.openLogin = true
} }
...@@ -866,8 +870,6 @@ export default { ...@@ -866,8 +870,6 @@ export default {
this.handleQuery() this.handleQuery()
}, },
// warehouse的重置按钮 // warehouse的重置按钮
resetQueryWarehouse() { resetQueryWarehouse() {
this.queryParamsDetail.pn = null this.queryParamsDetail.pn = null
......
...@@ -617,6 +617,9 @@ export default { ...@@ -617,6 +617,9 @@ export default {
} }
}, },
replace(value) { replace(value) {
if (this.dictList.length === 0) {
return value
}
let label = '' let label = ''
if (this.dictList.length > 0) { if (this.dictList.length > 0) {
this.dictList.forEach(item => { this.dictList.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment