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

加装电梯列表字段更改

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