Commit 27941f7d authored by 郭铭瑶's avatar 郭铭瑶 🤘

加装电梯列表字段更改

parent ada8726c
......@@ -32,13 +32,6 @@ function copyName(name) {
document.execCommand('Copy')
document.body.removeChild(input)
}
document.addEventListener('dblclick', (e) => {
console.log(e)
console.log(e.target?._uid)
e.target?.classList?.add('need-update')
// e.target.innerText = 'test'
})
</script>
<style lang="stylus" scoped>
......
......@@ -114,24 +114,27 @@ function fetchList() {
params,
})
.then((res) => {
// 0-可加装 1-较难加装 2-不可加装
const switchType = (type) => {
switch (type) {
case '0':
return '可加装'
case '1':
return '较难加装'
case '2':
return '不可加装'
default:
return ''
}
}
// // 0-可加装 1-较难加装 2-不可加装
// const switchType = (type) => {
// switch (type) {
// case '0':
// return '可加装'
// case '1':
// return '较难加装'
// case '2':
// return '不可加装'
// default:
// return ''
// }
// }
list.value = (res?.data?.content || []).map((item) => ({
...item,
name: item.stNameFrst,
address: item.unitAddr,
status: switchType(item.evaluateType),
status:
curTab.value === '7'
? item.finishInstallationTime?.split(' ')?.[0] || '暂无'
: item.startInstallationTime?.split(' ')?.[0] || '暂无',
}))
})
}
......@@ -140,7 +143,6 @@ fetchList()
function onClick(data) {
bus.emit('elevatorInfo', data)
}
</script>
<style lang="stylus" scoped>
......
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