style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -198,8 +198,9 @@
|
||||
============================================ */
|
||||
.pagination-container {
|
||||
margin-top: 16px;
|
||||
padding: 0 8px;
|
||||
padding: 0;
|
||||
text-align: right;
|
||||
background-color: transparent;
|
||||
|
||||
.el-pagination {
|
||||
.el-pager li {
|
||||
|
||||
@@ -96,8 +96,8 @@ function handleCurrentChange(val) {
|
||||
|
||||
<style scoped>
|
||||
.pagination-container {
|
||||
background: #fff;
|
||||
padding: 32px 16px;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
.pagination-container.hidden {
|
||||
display: none;
|
||||
|
||||
@@ -802,7 +802,7 @@ export function getTestResult(queryParams) {
|
||||
*/
|
||||
export function getInspectionApplicationList(queryParams) {
|
||||
return request({
|
||||
url: '/doctor-station/inspection/application-list',
|
||||
url: '/reg-doctorstation/request-form/get-inspection',
|
||||
method: 'get',
|
||||
params: queryParams,
|
||||
});
|
||||
|
||||
@@ -587,18 +587,21 @@ function initData() {
|
||||
formData.departmentName = props.patientInfo.departmentName || ''
|
||||
formData.doctorName = props.patientInfo.doctorName || ''
|
||||
}
|
||||
getInspectionList()
|
||||
// 只有在存在 encounterId 时才调用接口
|
||||
if (queryParams.encounterId) {
|
||||
getInspectionList()
|
||||
}
|
||||
}
|
||||
|
||||
// 获取检验申请单列表
|
||||
function getInspectionList() {
|
||||
loading.value = true
|
||||
|
||||
// 调用真实的API
|
||||
getInspectionApplicationList(queryParams.value).then((res) => {
|
||||
// 调用真实的API,只传递 encounterId 参数
|
||||
getInspectionApplicationList({ encounterId: queryParams.encounterId }).then((res) => {
|
||||
if (res.code === 200) {
|
||||
inspectionList.value = res.data.records || []
|
||||
total.value = res.data.total || 0
|
||||
inspectionList.value = res.data || []
|
||||
total.value = res.data?.length || 0
|
||||
} else {
|
||||
inspectionList.value = []
|
||||
total.value = 0
|
||||
|
||||
@@ -1106,7 +1106,7 @@ onMounted(() => {
|
||||
document.addEventListener('keydown', escKeyListener);
|
||||
// 初始化时自动创建第一个西药处方
|
||||
if (westernPrescriptions.value.length === 0) {
|
||||
handleAddWesternPrescription();
|
||||
handleAddPrescription();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -129,17 +129,17 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-container">
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-container">
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- 添加或修改公告对话框 -->
|
||||
@@ -192,15 +192,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Notice">
|
||||
import {
|
||||
addNotice,
|
||||
delNotice,
|
||||
getNotice,
|
||||
listNotice,
|
||||
publishNotice,
|
||||
unpublishNotice,
|
||||
updateNotice
|
||||
} from "@/api/system/notice";
|
||||
import { listNotice, getNotice, delNotice, addNotice, updateNotice, publishNotice, unpublishNotice } from "@/api/system/notice";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_notice_status, sys_notice_type } = proxy.useDict("sys_notice_status", "sys_notice_type");
|
||||
|
||||
Reference in New Issue
Block a user