Commit e9affbda authored by 高宇's avatar 高宇

删除菜单

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