safecheck-client 3.0.30-96 → 3.0.30-98

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.
@@ -1,12 +1,12 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- 'paper-main': (resolve) => {require(['./pc/PaperList.vue'], resolve)},
7
- }
8
- exports.specialComp = specialComp
9
-
10
-
11
-
12
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'paper-main': (resolve) => {require(['./pc/PaperList.vue'], resolve)},
7
+ }
8
+ exports.specialComp = specialComp
9
+
10
+
11
+
12
+
@@ -65,14 +65,14 @@
65
65
  <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
66
66
  <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
67
67
  </div>
68
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
69
- <label class="font_normal_body">隐患名称</label>
68
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
69
+ <label class="font_normal_body">隐患原因</label>
70
70
  <v-select :value.sync="model.f_item_name"
71
71
  v-model='model.f_item_name'
72
72
  style="width: 60%"
73
73
  class="select_list select"
74
74
  :options='$parent.$parent.DefectConfigs'
75
- placeholder='隐患名称'
75
+ placeholder='隐患原因'
76
76
  :multiple="true"
77
77
  condition="f_item_name in {}"></v-select>
78
78
  </div>
@@ -409,7 +409,7 @@
409
409
  try {
410
410
  let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
411
411
  Vue.config = res.data
412
- self.getDefectInfoConfig(res.data)
412
+ self.getDeviceTypes(res.data)
413
413
  } catch (error) {
414
414
  // 忽略704,文件找不到异常R
415
415
  if (error.status !== 704) {
@@ -509,6 +509,33 @@
509
509
  }
510
510
  },
511
511
  methods: {
512
+ getDeviceTypes(val) {
513
+ try {
514
+ if (val.safecheck.DevicesSetConfig != undefined) {
515
+ this.DefectConfig = val.safecheck.DevicesConfig
516
+ for (var Key1 in this.DefectConfig) {
517
+ this.device_types.push({label: Key1, value: Key1})
518
+ }
519
+ }
520
+ } catch (e) {
521
+ }
522
+ },
523
+ async getDefectInfoConfig() {
524
+ var resData = await new HttpResetClass().load('POST', '/rs/sql/tel_singleTable_GroupBy', {data: {
525
+ items: 'f_item_name',
526
+ tablename: 't_devices_items',
527
+ condition: 'f_is_defect = true',
528
+ groupitem: 'f_item_name',
529
+ }}, {
530
+ warnMsg: null,
531
+ resolveMsg: null
532
+ })
533
+ if (resData.data) {
534
+ for (let i = 0; i < resData.data.length; i++) {
535
+ this.DefectConfigs.push({label: resData.data[i].f_item_name, value: resData.data[i].f_item_name})
536
+ }
537
+ }
538
+ },
512
539
  isChecked(row) {
513
540
  return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
514
541
  },
@@ -686,23 +713,6 @@
686
713
  this.cancel1()
687
714
  this.$showMessage('本次转维修成功'+successCount+'单')
688
715
  },
689
- getDefectInfoConfig(val){
690
- try {
691
- if (val.safecheck.DevicesSetConfig != undefined) {
692
- this.DefectConfig = val.safecheck.DevicesConfig
693
- // 获取到配置项,进行遍历,获取每个隐患项
694
- for (var Key1 in this.DefectConfig){
695
- this.device_types.push({label:Key1,value:Key1})
696
- for(var Key2 in this.DefectConfig[Key1].items){
697
- this.DefectConfigs.push({label:Key2,value:Key2})
698
- }
699
- }
700
- // 非民用或其他配置项加入,在进行遍历
701
- }
702
- }catch (e) {
703
- //tag
704
- }
705
- },
706
716
  showaudio(){
707
717
  //tag
708
718
  this.audioshow=!this.audioshow
@@ -885,6 +895,7 @@
885
895
  //this.pianqu()
886
896
  this.Mreadibook(`('${this.$login.f.orgid}')`)
887
897
  co(gen)
898
+ this.getDefectInfoConfig()
888
899
  }
889
900
  }
890
901
  </script>
@@ -49,9 +49,9 @@
49
49
  </div>
50
50
  <div class="row" v-show="!$parent.$parent.$parent.showItem">
51
51
  <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
52
- <label class="font_normal_body">用户类型</label>
52
+ <label class="font_normal_body">用气类型</label>
53
53
  <v-select id="f_usertype"
54
- placeholder='用户类型'
54
+ placeholder='用气类型'
55
55
  class="select select_list"
56
56
  :value.sync="model.f_usertype"
57
57
  :value-single="true"
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ all()
11
11
  var Verificationfalg = false
12
12
  system(Verificationfalg)
13
13
  // system()
14
- safecheck(process.env.SAFE_CHECK);
14
+ safecheck('fugou');
15
15
  // safecheck('rizhao')
16
16
  require('./bootstrap/less/bootstrap.less')
17
17
  require('./expandcss.less')