kz-ui-base 1.0.127 → 1.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,7 +80,8 @@ export default {
80
80
  });
81
81
  }else{
82
82
  displayHideColumn={}
83
- this.columns.forEach((item,index) => {
83
+ this.columns&&this.columns.forEach((item,index) => {
84
+
84
85
  item.label=item.text
85
86
  item.key=index
86
87
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -49,13 +49,18 @@
49
49
  </el-form-item>
50
50
  </el-col>
51
51
 
52
- <div style="float: right">
53
- <el-button type="primary" @click="queryTableData">搜索</el-button>
54
- <el-button @click="reset">重置</el-button>
55
- </div>
52
+ <el-col :span="6" style="white-space:nowrap" >
53
+ <el-form-item label="标准类型" class="search-panel">
54
+ <dict-select type="technical_standard_type_code" v-model="searchParams.technicalStandardType" style="width:80%;" :disabled="technicalStandardType != null" clearable></dict-select>
55
+ </el-form-item>
56
+ </el-col>
56
57
 
57
58
  </el-form>
58
59
  </el-row>
60
+ <div style="float: right">
61
+ <el-button type="primary" @click="queryTableData">搜索</el-button>
62
+ <el-button @click="reset">重置</el-button>
63
+ </div>
59
64
  </div>
60
65
 
61
66
  </el-col>
@@ -290,6 +295,7 @@ export default class StandardList extends ListBasePage {
290
295
 
291
296
  @Prop()
292
297
  prodCategoryCode = null;
298
+ technicalStandardType = null;
293
299
  @Prop()
294
300
  setting;
295
301
 
@@ -298,6 +304,7 @@ export default class StandardList extends ListBasePage {
298
304
  technicalStandardCode: "",
299
305
  technicalStandardName: "",
300
306
  prodCategoryCode: this.prodCategoryCode ? this.prodCategoryCode : "",
307
+ technicalStandardType: this.technicalStandardType ? this.technicalStandardType : "",
301
308
  };
302
309
  // 列表分页参数
303
310
  listQueryParams = {
@@ -325,6 +332,7 @@ export default class StandardList extends ListBasePage {
325
332
  // { text: "标准分类", property: "technicalStandardClassName" },
326
333
  { text: "标准名称", property: "technicalStandardName", width: 320, align: "left" },
327
334
  { text: "标准代号", property: "technicalStandardCode", width: 200, align: "left" },
335
+ { text: "标准类型", property: "technicalStandardTypeLabel" },
328
336
  { text: "宜订级别", property: "standardLevelLabel", width: 100 },
329
337
  { text: "采标程度", property: "adoptionLevelLabel", width: 100 },
330
338
  { text: "采标号", property: "adoptionNo", width: 200 },
@@ -334,6 +342,7 @@ export default class StandardList extends ListBasePage {
334
342
  ];
335
343
  standardLevelCodeMap = {};
336
344
  adoptionLevelCodeMap = {};
345
+ technicalStandardTypeCodeMap = {};
337
346
  fileTypeCodeMap = {};
338
347
  deptIdMap = {};
339
348
  // 部门树选项
@@ -353,14 +362,16 @@ export default class StandardList extends ListBasePage {
353
362
  setDictMap("standard_level_code", self.standardLevelCodeMap).then(()=>{
354
363
  setDictMap("adoption_level_code", self.adoptionLevelCodeMap).then(()=>{
355
364
  setDictMap("file_type_code", self.fileTypeCodeMap).then(()=>{
356
- listDept().then(res => {
357
- let tmp = {};
358
- res.data.map(x=>{
359
- tmp[x.deptId] = x.deptName;
365
+ setDictMap("technical_standard_type_code", self.technicalStandardTypeCodeMap).then(()=> {
366
+ listDept().then(res => {
367
+ let tmp = {};
368
+ res.data.map(x => {
369
+ tmp[x.deptId] = x.deptName;
370
+ })
371
+ self.deptIdMap = tmp;
372
+ self.getTreeSelect();
373
+ self.getList();
360
374
  })
361
- self.deptIdMap = tmp;
362
- self.getTreeSelect();
363
- self.getList();
364
375
  })
365
376
  })
366
377
  })
@@ -420,7 +431,8 @@ export default class StandardList extends ListBasePage {
420
431
  row['standardLevelLabel'] = this.standardLevelCodeMap[row['standardLevelCode']];
421
432
  row['adoptionLevelLabel'] = this.adoptionLevelCodeMap[row['adoptionLevelCode']];
422
433
  row['fileTypeLabel'] = this.fileTypeCodeMap[row['fileTypeCode']];
423
- row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']]
434
+ row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']];
435
+ row['technicalStandardTypeLabel'] = this.technicalStandardTypeCodeMap[row['technicalStandardType']];
424
436
  }
425
437
  this.listData = response.rows;
426
438
  this.listQueryParams.total = Number(response.total);
@@ -475,7 +487,8 @@ export default class StandardList extends ListBasePage {
475
487
  row['standardLevelLabel'] = this.standardLevelCodeMap[row['standardLevelCode']];
476
488
  row['adoptionLevelLabel'] = this.adoptionLevelCodeMap[row['adoptionLevelCode']];
477
489
  row['fileTypeLabel'] = this.fileTypeCodeMap[row['fileTypeCode']];
478
- row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']]
490
+ row['controlDepartmentLabel'] = this.deptIdMap[row['controlDepartmentId']];
491
+ row['technicalStandardTypeLabel'] = this.technicalStandardTypeCodeMap[row['technicalStandardType']];
479
492
  }
480
493
  this.listData = response.rows;
481
494
  this.listQueryParams.total = Number(response.total);