0602
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<view class="page-container">
|
||||
<scroll-view class="page-body" scroll-y>
|
||||
<view class="data-list">
|
||||
<view class="data-card" v-for="(item, index) in facilityList" :key="index">
|
||||
<view class="data-card-header">
|
||||
<text class="data-card-title">{{ item.name }}</text>
|
||||
<text class="data-card-tag blue">设施</text>
|
||||
</view>
|
||||
<view class="data-card-row">
|
||||
<text>绑定经办人</text>
|
||||
<text class="val">{{ item.operator }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 产生设施管理 -->
|
||||
<script>
|
||||
import { api } from '@/api'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
facilityList: [
|
||||
{ name: '内科门诊', operator: '李伟' },
|
||||
{ name: '外科病房', operator: '张明' },
|
||||
{ name: '手术室', operator: '王芳' }
|
||||
]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
api.prodFacility().then(res => {
|
||||
console.log('获取生产设施列表结果:', res)
|
||||
if (res.code === 1000) {
|
||||
this.facilityList = res.data || []
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user