Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
bae860c374

+ 3 - 0
src/xt_pages/data/components/consumables.vue View File

@@ -149,6 +149,9 @@
149 149
         is_charge:'',
150 150
         search_input: '',
151 151
         options: [{
152
+          value: '0',
153
+          label: '全部'
154
+        },{
152 155
           value: '1',
153 156
           label: '是'
154 157
         }, {

+ 30 - 5
src/xt_pages/data/components/drugs.vue View File

@@ -39,10 +39,10 @@
39 39
     </div>
40 40
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
41 41
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
42
-      <el-table-column prop="date" label="药品编码" width="80" align="center">
43
-        <template slot-scope="scope">
44
-          <div>{{scope.row.drug_code}}</div>
45
-        </template>
42
+      <el-table-column
43
+        type="index"
44
+        label="药品编码"
45
+        width="50">
46 46
       </el-table-column>
47 47
       <el-table-column prop="date" label="药品名称" align="center">
48 48
         <template slot-scope="scope">
@@ -97,6 +97,19 @@
97 97
 
98 98
     ></add-drugs>
99 99
     <!-- <maintain ref='maintain'></maintain> -->
100
+    <el-pagination
101
+      @size-change="handleSizeChange"
102
+      @current-change="handleCurrentChange"
103
+      :page-sizes="[10, 50, 100]"
104
+      :page-size="10"
105
+      background
106
+      align="right"
107
+      style="margin-top:20px;"
108
+      layout="total, sizes, prev, pager, next, jumper"
109
+      :total="total"
110
+    >
111
+    </el-pagination>
112
+
100 113
   </div>
101 114
 </template>
102 115
 
@@ -237,7 +250,11 @@
237 250
         current_id:0,
238 251
 
239 252
         search_input: '',
240
-        options: [{
253
+        options: [
254
+          {
255
+            value: '0',
256
+            label: '全部'
257
+          },{
241 258
           value: '1',
242 259
           label: '是'
243 260
         }, {
@@ -266,6 +283,14 @@
266 283
       }
267 284
     },
268 285
     methods: {
286
+      handleSizeChange(val) {
287
+        this.limit = val
288
+        this.getList()
289
+      },
290
+      handleCurrentChange(val) {
291
+        this.page = val
292
+        this.getList()
293
+      },
269 294
       changeInject(val){
270 295
         this.getList()
271 296