Quellcode durchsuchen

诊所维护加增删改

李帅 vor 3 Monaten
Ursprung
Commit
c301200212
1 geänderte Dateien mit 20 neuen und 13 gelöschten Zeilen
  1. 20 13
      src/views/settingsPage/clinicMaintenance/index.vue

+ 20 - 13
src/views/settingsPage/clinicMaintenance/index.vue

@@ -7,16 +7,6 @@
7 7
           placeholder="请输入姓名查找"
8 8
         ></el-input>
9 9
       </el-form-item>
10
-      <el-form-item label="日期">
11
-        <el-date-picker
12
-          type="month"
13
-          v-model="form.date"
14
-          format="yyyy 年 MM 月"
15
-          value-format="yyyy-MM"
16
-          :clearable="false"
17
-        >
18
-        </el-date-picker>
19
-      </el-form-item>
20 10
       <el-form-item>
21 11
         <el-button type="primary" @click="initList" icon="el-icon-search"
22 12
           >搜索</el-button
@@ -25,10 +15,27 @@
25 15
       </el-form-item>
26 16
     </el-form>
27 17
 
18
+    <el-row style="margin-bottom: 20px;">
19
+      <el-button type="primary" plain icon="el-icon-plus" size="mini"
20
+        >新增</el-button
21
+      >
22
+    </el-row>
23
+
28 24
     <el-table :data="tableData" style="width: 100%">
29
-      <el-table-column prop="date" label="日期" width="180"> </el-table-column>
30
-      <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
31
-      <el-table-column prop="address" label="地址"> </el-table-column>
25
+      <el-table-column prop="date" label="日期" align="center">
26
+      </el-table-column>
27
+      <el-table-column prop="name" label="姓名" align="center">
28
+      </el-table-column>
29
+      <el-table-column prop="address" label="地址" align="center">
30
+      </el-table-column>
31
+      <el-table-column fixed="right" label="操作" align="center">
32
+        <template slot-scope="scope">
33
+          <el-button type="text" size="small">编辑</el-button>
34
+          <el-button type="text" size="small" style="color: red"
35
+            >删除</el-button
36
+          >
37
+        </template>
38
+      </el-table-column>
32 39
     </el-table>
33 40
 
34 41
     <pagination