apply-clients 7.1.36-yuchuan-9 → 7.1.36-yuchuan-11

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,90 +1,90 @@
1
- <template>
2
- <div id="unit" class="row" :class="{'binary':showItem}">
3
- <div :class="{'basic-main':!showItem,'binary-left':showItem}">
4
- <gongjian-apply-list @select-changed="idsearch" :styles="showItem?'col-sm-3':'col-sm-2'" v-if="stepControl"
5
- v-ref:jgDeviceAlarmlist @add="add"></gongjian-apply-list>
6
- </div>
7
- <div class="binary-right">
8
- <gongjian-apply-dispose :recordlist="recordlist" :model="model" :oldmodel="oldmodel" v-show="showItem"
9
- :f_distribution_state="f_distribution_state" :row="row" :rowsdata="rowsdata1"
10
- :warehousename="warehousename"
11
- ></gongjian-apply-dispose>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- export default {
18
- title: '政府报建',
19
- components: {},
20
- data() {
21
- return {
22
- f_alarmId: '',
23
- row: {},
24
- model: {},
25
- oldmodel: {},
26
- showItem: false,
27
- stepControl: true,
28
-
29
- // 分公司id串
30
- width: '100%',
31
- f_filialeids: this.$login.f.f_orgids,
32
- areaShow: false,
33
- areatype: '小区',
34
- arearow: {},
35
- style: 'col-sm-2'
36
- }
37
- },
38
- methods: {
39
- selected(obj) {
40
- this.style = 'col-sm-3 '
41
- if (obj.val && obj.val.id) {
42
- console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
43
- if (obj.val.f_filialeid !== this.f_filialeids) {
44
- this.refresh()
45
- return
46
- }
47
- this.areaShow = true
48
- this.$refs.addareamsg.cleardara()
49
- this.$refs.addareamsg.operation = 'modify'
50
- this.$refs.addareamsg.areatype = '小区'
51
- this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
52
- if (obj.val.f_slice_area && obj.val.f_area_code) {
53
- this.$refs.addareamsg.areamodel.slice_area = [{
54
- name: this.$refs.addareamsg.areamodel.f_slice_area,
55
- code: this.$refs.addareamsg.areamodel.f_area_code
56
- }]
57
- }
58
- this.$refs.addareamsg.initdata(obj.val)
59
- }
60
- },
61
- add (a) {
62
- console.log('新增')
63
- this.showItem = true
64
- this.model = {}
65
- this.oldmodel = {}
66
- },
67
- refresh() {
68
- this.areaShow = false
69
- this.$refs.arealist.$refs.paged.$refs.cri.search()
70
- },
71
- idsearch(row) {
72
- this.showItem = true
73
- this.model = JSON.parse(JSON.stringify(row.val))
74
- this.oldmodel = JSON.parse(JSON.stringify(row.val))
75
- },
76
- getAlarmData () {
77
- let data = {}
78
- }
79
- },
80
- events: {
81
- 'close'() {
82
- this.showItem = false
83
- this.$refs.stocklist.search()
84
- console.log('this.$refs', this.$refs)
85
- console.log('showitem', this.showItem)
86
- },
87
- }
88
- }
89
- </script>
90
-
1
+ <template>
2
+ <div id="unit" class="row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}">
4
+ <gongjian-apply-list @select-changed="idsearch" :styles="showItem?'col-sm-3':'col-sm-2'" v-if="stepControl"
5
+ v-ref:jgDeviceAlarmlist @add="add"></gongjian-apply-list>
6
+ </div>
7
+ <div class="binary-right">
8
+ <gongjian-apply-dispose :recordlist="recordlist" :model="model" :oldmodel="oldmodel" v-show="showItem"
9
+ :f_distribution_state="f_distribution_state" :row="row" :rowsdata="rowsdata1"
10
+ :warehousename="warehousename"
11
+ ></gongjian-apply-dispose>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ title: '政府报建',
19
+ components: {},
20
+ data() {
21
+ return {
22
+ f_alarmId: '',
23
+ row: {},
24
+ model: {},
25
+ oldmodel: {},
26
+ showItem: false,
27
+ stepControl: true,
28
+
29
+ // 分公司id串
30
+ width: '100%',
31
+ f_filialeids: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气',
32
+ areaShow: false,
33
+ areatype: '小区',
34
+ arearow: {},
35
+ style: 'col-sm-2'
36
+ }
37
+ },
38
+ methods: {
39
+ selected(obj) {
40
+ this.style = 'col-sm-3 '
41
+ if (obj.val && obj.val.id) {
42
+ console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
43
+ if (obj.val.f_filialeid !== this.f_filialeids) {
44
+ this.refresh()
45
+ return
46
+ }
47
+ this.areaShow = true
48
+ this.$refs.addareamsg.cleardara()
49
+ this.$refs.addareamsg.operation = 'modify'
50
+ this.$refs.addareamsg.areatype = '小区'
51
+ this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
52
+ if (obj.val.f_slice_area && obj.val.f_area_code) {
53
+ this.$refs.addareamsg.areamodel.slice_area = [{
54
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
55
+ code: this.$refs.addareamsg.areamodel.f_area_code
56
+ }]
57
+ }
58
+ this.$refs.addareamsg.initdata(obj.val)
59
+ }
60
+ },
61
+ add (a) {
62
+ console.log('新增')
63
+ this.showItem = true
64
+ this.model = {}
65
+ this.oldmodel = {}
66
+ },
67
+ refresh() {
68
+ this.areaShow = false
69
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
70
+ },
71
+ idsearch(row) {
72
+ this.showItem = true
73
+ this.model = JSON.parse(JSON.stringify(row.val))
74
+ this.oldmodel = JSON.parse(JSON.stringify(row.val))
75
+ },
76
+ getAlarmData () {
77
+ let data = {}
78
+ }
79
+ },
80
+ events: {
81
+ 'close'() {
82
+ this.showItem = false
83
+ this.$refs.stocklist.search()
84
+ console.log('this.$refs', this.$refs)
85
+ console.log('showitem', this.showItem)
86
+ },
87
+ }
88
+ }
89
+ </script>
90
+