Browse Source

新增删除传染病的删除按钮

xiaochan 2 năm trước cách đây
mục cha
commit
d26704e077

+ 8 - 1
src/api/zhu-yuan-yi-sheng/infectious-diseases.js

@@ -16,7 +16,6 @@ export function confirmCrb(data) {
     })
 }
 
-
 export function updateCrb(data) {
     return request({
         url: '/contagiousDisease/updateCrb',
@@ -24,3 +23,11 @@ export function updateCrb(data) {
         data
     })
 }
+
+export function delCrb(patNo, times, cardNo) {
+    return request({
+        url: '/contagiousDisease/delCrb',
+        method: 'get',
+        params: {patNo, times, cardNo}
+    })
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 522 - 513
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/report-of-infectious-diseases/DialogDiseases.vue


+ 8 - 5
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/report-of-infectious-diseases/ReportOfInfectiousDiseases.vue

@@ -2,14 +2,17 @@
   <xc-dialog-v2 v-model="dialog"
                 title="传染病上报"
                 maximize
-                show-button
                 @closed="emits('closed')"
-                destroy-on-close
-                @confirm="confirm">
+                destroy-on-close>
     <dialog-diseases :pat-no="props.patNo"
                      :times="props.times"
                      :ward="props.ward"
                      ref="dialogRef"/>
+
+    <template #footer>
+      <el-button @click="emits('closed')" type="danger">取消</el-button>
+      <el-button v-el-btn="confirm" type="primary">确认</el-button>
+    </template>
   </xc-dialog-v2>
 </template>
 
@@ -38,8 +41,8 @@ const emits = defineEmits(['closed'])
 let dialog = $ref(true)
 const dialogRef = ref(null)
 
-const confirm = () => {
-  dialogRef.value.confirm()
+const confirm = async () => {
+  await dialogRef.value.confirm()
 }
 </script>
 

+ 6 - 0
src/utils/vxe-formatter.ts

@@ -0,0 +1,6 @@
+import {VxeColumnPropTypes} from "vxe-table";
+import XEUtils from "xe-utils";
+
+export const vxeFormatTime: VxeColumnPropTypes.Formatter = ({cellValue}) => {
+    return XEUtils.toDateString(cellValue, 'yy-MM-dd HH:mm')
+}

+ 4 - 5
src/views/settings/Test.vue

@@ -1,9 +1,7 @@
 <template>
-  <div @click="上面">
-    <el-button v-el-btn="el1">不传参数</el-button>
-  </div>
+  <el-button v-el-btn="el1">不传参数</el-button>
   <el-button v-el-btn="{func:el1, value: 23}">单个传参</el-button>
-  <el-button v-el-btn="{func:el1, value: {a: 1 ,b: 2}}">多个传参</el-button>
+  <el-button v-el-btn="{func:el1, value: {a: 1 ,b: 2}}" type="danger">多个传参</el-button>
 
   <div style="border: 1px solid; height: 200px; width: 200px"
        v-loading="loading"/>
@@ -16,8 +14,9 @@ import sleep from "@/utils/sleep";
 const loading = ref(false)
 
 const el1 = async (val) => {
+  console.log(val)
   loading.value = true
-  await sleep(500)
+  await sleep(3000)
   loading.value = false
 }
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác