| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button @click="submitForm" type="primary" :disabled="formLoading">拆机完成</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button @click="resetForm()">重置</el-button> |
| | | |
| | | <!-- 医生拆机列表 --> |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @current-change="onCurChange" > |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column label="作业类型" align="center" prop="jobType" /> |
| | | <el-table-column label="医生编号" align="center" prop="docId" /> |
| | |
| | | } |
| | | } |
| | | |
| | | const getSelectedRent = async (rentId) => { |
| | | formData.value = await DevRentApi.getDevRent(rentId) |
| | | } |
| | | |
| | | const loading = ref(true) // 列表的加载中 |
| | | const list = ref<JobRecordVO[]>([]) // 列表的数据 |
| | | const total = ref(0) // 列表的总页数 |
| | |
| | | } |
| | | } |
| | | |
| | | const onCurChange = (cur) => { |
| | | console.log( cur ) |
| | | console.log( cur.rentId) |
| | | getSelectedRent( cur.rentId ) |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | getList() |