Commit e9affbda authored by 高宇's avatar 高宇

删除菜单

parent c4ceffaa
......@@ -337,7 +337,7 @@
</template>
<script>
import { getEquipment } from '@/api/equipment/application'
import { listWbApply, deleteLogical, detailList, batchAddition, detail } from '@/api/equipment/draw'
import { listWbApply, deleteLogical, batchAddition, detail } from '@/api/equipment/draw'
import { parseTime } from '@/utils'
export default {
name: 'Draw',
......@@ -515,10 +515,14 @@ export default {
plocation: this.queryParamsDetail.plocation
}
getEquipment(obj).then(res => {
res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
this.totalDetail = res.total
this.detailApplyList = res.rows
this.loadingDetail = false
if (res.code === 200) {
if (res.data.createDate !== null) {
res.data.createDate = parseTime(res.data.createDate, '{y}-{m}-{d}')
}
this.detailApplyList = res.data
this.loadingDetail = false
this.openHandle = true
}
})
},
handle(row) {
......@@ -539,27 +543,17 @@ export default {
rows: this.queryParamsDetail.rows
}
getEquipment(obj).then(res => {
if (res.code && res.code === null ) {
this.$message.warning(res.message)
}
console.log('res')
if (res.rows.createDate && res.rows.createDate !== null) {
res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
if (res.code === 200) {
if (res.data.createDate !== null) {
res.data.createDate = parseTime(res.data.createDate, '{y}-{m}-{d}')
}
this.detailApplyList = res.data
this.loadingDetail = false
this.openHandle = true
}
this.detailApplyList = res.rows
this.loadingDetail = false
this.openHandle = true
})
// this.applyId = row.businessId
this.title = '处理'
// this.openHandle = !this.openHandle
this.loadingDetail = true
// detailList(this.queryParamsDetail).then(res => {
// res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
// this.totalDetail = res.total
// this.detailApplyList = res.rows
// this.loadingDetail = false
// })
},
// 获取所选行详情信息
handleDetail(row) {
......
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