瀏覽代碼

统计配置开发

XMLWAN 5 年之前
父節點
當前提交
816d8f3cb6
共有 1 個文件被更改,包括 15 次插入4 次删除
  1. 15 4
      src/xt_pages/qcd/statisticalConfiguration.vue

+ 15 - 4
src/xt_pages/qcd/statisticalConfiguration.vue 查看文件

32
             </el-table-column>
32
             </el-table-column>
33
           <el-table-column label="操作" width="180">
33
           <el-table-column label="操作" width="180">
34
             <template slot-scope="scope">
34
             <template slot-scope="scope">
35
-              <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
35
+              <el-button size="mini" type="primary" @click="handleEdit(scope.row.id)">编辑</el-button>
36
               <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
36
               <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
37
             </template>
37
             </template>
38
           </el-table-column>
38
           </el-table-column>
177
         this.$router.push({ path: "/qcd/patientanalysis/checkStatistical" });
177
         this.$router.push({ path: "/qcd/patientanalysis/checkStatistical" });
178
       }
178
       }
179
     },
179
     },
180
-    handleEdit() {
180
+    handleEdit(id) {
181
       this.editDialog = true;
181
       this.editDialog = true;
182
+      getConfigurationDetail(id).then(response=>{
183
+         if(response.data.state == 1){
184
+         }
185
+      })
182
     },
186
     },
183
     
187
     
184
     //获取大项数据来源
188
     //获取大项数据来源
227
              this.form.large_range = ""
231
              this.form.large_range = ""
228
              this.form.min_range = ""
232
              this.form.min_range = ""
229
              this.form.sort = ""
233
              this.form.sort = ""
234
+             this.getConfigurationList()
230
             }
235
             }
231
           })
236
           })
232
         }
237
         }
233
       })
238
       })
234
     },
239
     },
235
    handleSizeChange(limit) {
240
    handleSizeChange(limit) {
236
-     // this.listQuery.limit = limit;
241
+      this.limit = limit;
237
       this.getConfigurationList();
242
       this.getConfigurationList();
238
     },
243
     },
239
     handleCurrentChange(page) {
244
     handleCurrentChange(page) {
240
-     // this.listQuery.page = page;
245
+      this.page = page;
241
       this.getConfigurationList();
246
       this.getConfigurationList();
242
     },
247
     },
243
     getConfigurationList(){
248
     getConfigurationList(){
244
       getConfigurationList(this.limit,this.page).then(response=>{
249
       getConfigurationList(this.limit,this.page).then(response=>{
245
         if(response.data.state === 1){
250
         if(response.data.state === 1){
246
           var configurationlist = response.data.data.configurationlist
251
           var configurationlist = response.data.data.configurationlist
252
+          for(let i=0;i<configurationlist.length;i++){
253
+            if(configurationlist[i].sort === 0){
254
+              configurationlist[i].sort = ""
255
+            }
256
+          }
247
           console.log("列表",configurationlist)
257
           console.log("列表",configurationlist)
248
           this.configuraData = configurationlist
258
           this.configuraData = configurationlist
249
           var total = response.data.data.total
259
           var total = response.data.data.total
250
           console.log("total",total)
260
           console.log("total",total)
261
+          this.total = total
251
         }
262
         }
252
       })
263
       })
253
     }
264
     }