safecheck-client 3.0.32-4 → 3.0.32-5

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,125 +1,125 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false'>
4
- <criteria partial='criteria' @condition-changed='search' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-4 form-group">
8
- <role-selector-safe
9
- role-name="安检员"
10
- role-lable="安&ensp;检&ensp;员"
11
- @re-res="$parent.$parent.getRes"
12
- :value.sync="model.f_checker_id"
13
- v-model="model.f_checker_id"
14
- condition="tcp.f_checker = '{}'">
15
- </role-selector-safe>
16
- </div>
17
- <div class="col-sm-2 form-group">
18
- <label for="startDate" class="font_normal_body">开始日期:</label>
19
- <datepicker id="startDate" placeholder="开始日期"
20
- v-model="model.startDate"
21
- :value.sync="model.startDate"
22
- style="width: 60%;"
23
- :disabled-days-of-Week="[]"
24
- :format="'yyyy-MM-dd 00:00:00'"
25
- condition="tcp.f_create_time >= '{}'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label for="endDate" class="font_normal_body">结束日期:</label>
31
- <datepicker id="endDate" placeholder="结束日期"
32
- v-model="model.endDate"
33
- :value.sync="model.endDate"
34
- :disabled-days-of-Week="[]"
35
- style="width: 60%;"
36
- condition="tcp.f_create_time <= '{}'"
37
- :format="'yyyy-MM-dd 23:59:59'"
38
- :show-reset-button="reset">
39
- </datepicker>
40
- </div>
41
- <div class="form-group col-sm-2">
42
- <label class="font_normal_body">用户类型</label>
43
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
- :value-single="true" style="width: 60%"
45
- class="select_list select"
46
- :options='$parent.$parent.user_types' placeholder='用户类型'
47
- close-on-select
48
- condition="tcpi.f_user_type = '{}'"></v-select>
49
- </div>
50
- <div class="form-group col-sm-2" >
51
- <label class="font_normal_body">小&emsp;&emsp;区</label>
52
- <input type="text" class="input_search" v-model="model.f_residential_area"
53
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
54
- </div>
55
- <div class="col-sm-4 form-group" style="margin-top: 8px">
56
- <button class="button_search button_spacing" @click="search()">查询</button>
57
- <report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
- <report-excel id='checkerPrint'></report-excel>
59
- </div>
60
- </div>
61
- </div>
62
- </criteria>
63
- <div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
64
- <table class='tableprint' style="margin: 0px auto">
65
- <thead>
66
- <tr>
67
- <th colspan='9' style="font-weight: normal; text-align: left;">
68
- <h3 style="text-align: center">安检员明细报表</h3>
69
- </th>
70
- </tr>
71
- <tr>
72
- <th colspan='9' style="font-weight: normal; text-align: center;">
73
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
- 结束时间:{{ model.model.endDate }}
75
- </th>
76
- </tr>
77
- </thead>
78
- <tr>
79
- <th colspan='9' style="font-weight: normal;">
80
- {{{ model.data.substring(26,model.data.length-8) }}}
81
- </th>
82
- </tr>
83
- <tr style="height: 100px"></tr>
84
- </table>
85
- </div>
86
- </criteria-paged>
87
- </div>
88
-
89
- </template>
90
-
91
- <script>
92
- import {DataModel, HttpResetClass} from 'vue-client'
93
-
94
- export default {
95
- title: '隐患报表',
96
- data () {
97
- let model = new DataModel('rs/report/checkerReport', {})
98
- // model.f_filialeid = '(' + this.$login.f.orgid + ')'
99
- return {
100
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
101
- userid: this.$login.f.id,
102
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
103
- model: model
104
- }
105
- },
106
- methods: {
107
- getRes (obj) {
108
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
109
- },
110
- },
111
- ready () {
112
- },
113
- computed: {
114
- selected () {
115
- return this.$refs.grid.selected
116
- }
117
- // outlets () {
118
- // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
119
- // },
120
- // operator () {
121
- // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
122
- // }
123
- }
124
- }
125
- </script>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false'>
4
+ <criteria partial='criteria' @condition-changed='search' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-4 form-group">
8
+ <role-selector-safe
9
+ role-name="安检员"
10
+ role-lable="安&ensp;检&ensp;员"
11
+ @re-res="$parent.$parent.getRes"
12
+ :value.sync="model.f_checker_id"
13
+ v-model="model.f_checker_id"
14
+ condition="tcp.f_checker = '{}'">
15
+ </role-selector-safe>
16
+ </div>
17
+ <div class="col-sm-2 form-group">
18
+ <label for="startDate" class="font_normal_body">开始日期:</label>
19
+ <datepicker id="startDate" placeholder="开始日期"
20
+ v-model="model.startDate"
21
+ :value.sync="model.startDate"
22
+ style="width: 60%;"
23
+ :disabled-days-of-Week="[]"
24
+ :format="'yyyy-MM-dd 00:00:00'"
25
+ condition="tcp.f_create_time >= '{}'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label for="endDate" class="font_normal_body">结束日期:</label>
31
+ <datepicker id="endDate" placeholder="结束日期"
32
+ v-model="model.endDate"
33
+ :value.sync="model.endDate"
34
+ :disabled-days-of-Week="[]"
35
+ style="width: 60%;"
36
+ condition="tcp.f_create_time <= '{}'"
37
+ :format="'yyyy-MM-dd 23:59:59'"
38
+ :show-reset-button="reset">
39
+ </datepicker>
40
+ </div>
41
+ <div class="form-group col-sm-2">
42
+ <label class="font_normal_body">用户类型</label>
43
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
+ :value-single="true" style="width: 60%"
45
+ class="select_list select"
46
+ :options='$parent.$parent.user_types' placeholder='用户类型'
47
+ close-on-select
48
+ condition="tcpi.f_user_type = '{}'"></v-select>
49
+ </div>
50
+ <div class="form-group col-sm-2" >
51
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
52
+ <input type="text" class="input_search" v-model="model.f_residential_area"
53
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
54
+ </div>
55
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
56
+ <button class="button_search button_spacing" @click="search()">查询</button>
57
+ <report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
+ <report-excel id='checkerPrint'></report-excel>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </criteria>
63
+ <div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
64
+ <table class='tableprint' style="margin: 0px auto">
65
+ <thead>
66
+ <tr>
67
+ <th colspan='9' style="font-weight: normal; text-align: left;">
68
+ <h3 style="text-align: center">安检员明细报表</h3>
69
+ </th>
70
+ </tr>
71
+ <tr>
72
+ <th colspan='9' style="font-weight: normal; text-align: center;">
73
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
+ 结束时间:{{ model.model.endDate }}
75
+ </th>
76
+ </tr>
77
+ </thead>
78
+ <tr>
79
+ <th colspan='9' style="font-weight: normal;">
80
+ {{{ model.data.substring(26,model.data.length-8) }}}
81
+ </th>
82
+ </tr>
83
+ <tr style="height: 100px"></tr>
84
+ </table>
85
+ </div>
86
+ </criteria-paged>
87
+ </div>
88
+
89
+ </template>
90
+
91
+ <script>
92
+ import {DataModel, HttpResetClass} from 'vue-client'
93
+
94
+ export default {
95
+ title: '隐患报表',
96
+ data () {
97
+ let model = new DataModel('rs/report/checkerReport', {})
98
+ // model.f_filialeid = '(' + this.$login.f.orgid + ')'
99
+ return {
100
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
101
+ userid: this.$login.f.id,
102
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
103
+ model: model
104
+ }
105
+ },
106
+ methods: {
107
+ getRes (obj) {
108
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
109
+ },
110
+ },
111
+ ready () {
112
+ },
113
+ computed: {
114
+ selected () {
115
+ return this.$refs.grid.selected
116
+ }
117
+ // outlets () {
118
+ // return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
119
+ // },
120
+ // operator () {
121
+ // return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
122
+ // }
123
+ }
124
+ }
125
+ </script>
@@ -1,111 +1,111 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false'>
4
- <criteria partial='criteria' @condition-changed='search' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-2 form-group">
8
- <label for="startDate" class="font_normal_body">开始日期:</label>
9
- <datepicker id="startDate" placeholder="开始日期"
10
- v-model="model.startDate"
11
- :value.sync="model.startDate"
12
- style="width: 60%;"
13
- :select-year="true"
14
- :disabled-days-of-Week="[]"
15
- :format="'yyyy-01-01 00:00:00'"
16
- condition="tcp.f_create_time >= '{}'"
17
- :show-reset-button="reset">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期:</label>
22
- <datepicker id="endDate" placeholder="结束日期"
23
- v-model="model.endDate"
24
- :select-year="true"
25
- :value.sync="model.endDate"
26
- :disabled-days-of-Week="[]"
27
- style="width: 60%;"
28
- condition="tcp.f_create_time <= '{}'"
29
- :format="'yyyy-12-31 23:59:59'"
30
- :show-reset-button="reset">
31
- </datepicker>
32
- </div>
33
- <div class="form-group col-sm-2" >
34
- <label class="font_normal_body">小&emsp;&emsp;区</label>
35
- <input type="text" class="input_search" v-model="model.f_residential_area"
36
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
37
- </div>
38
- <div class="form-group col-sm-2">
39
- <label class="font_normal_body">用户类型</label>
40
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
41
- :value-single="true" style="width: 60%"
42
- class="select_list select"
43
- :options='$parent.$parent.user_types' placeholder='用户类型'
44
- close-on-select
45
- condition="tcpi.f_user_type = '{}'"></v-select>
46
- </div>
47
- <div class="col-sm-4 form-group" style="margin-top: 8px">
48
- <button class="button_search button_spacing" @click="search()">查询</button>
49
- <report-print id='yearPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
50
- <report-excel id='yearPrint'></report-excel>
51
- </div>
52
- </div>
53
- </div>
54
- </criteria>
55
- <div partial='list' id='yearPrint' class="list_area" style="overflow-y: scroll">
56
- <table class='tableprint' style="margin: 0px auto">
57
- <thead>
58
- <tr>
59
- <th colspan='12' style="font-weight: normal; text-align: left;">
60
- <h3 style="text-align: center">安检年报表</h3>
61
- </th>
62
- </tr>
63
- <tr>
64
- <th colspan='12' style="font-weight: normal; text-align: center;">
65
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
66
- 结束时间:{{ model.model.endDate }}
67
- </th>
68
- </tr>
69
- </thead>
70
- <tr>
71
- <th colspan='12' style="font-weight: normal;">
72
- {{{ model.data.substring(26,model.data.length-8) }}}
73
- </th>
74
- </tr>
75
- <tr style="height: 100px"></tr>
76
- </table>
77
- </div>
78
- </criteria-paged>
79
- </div>
80
-
81
- </template>
82
-
83
- <script>
84
- import {DataModel, HttpResetClass} from 'vue-client'
85
-
86
- export default {
87
- title: '安检年报表',
88
- data () {
89
- let model = new DataModel('rs/report/safeStatisticsYear', {})
90
- // model.f_filialeid = '(' + this.$login.f.orgid + ')'
91
- return {
92
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
93
- userid: this.$login.f.id,
94
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
95
- model: model
96
- }
97
- },
98
- methods: {
99
- getRes (obj) {
100
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
101
- },
102
- },
103
- ready () {
104
- },
105
- computed: {
106
- selected () {
107
- return this.$refs.grid.selected
108
- }
109
- }
110
- }
111
- </script>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false'>
4
+ <criteria partial='criteria' @condition-changed='search' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group">
8
+ <label for="startDate" class="font_normal_body">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ style="width: 60%;"
13
+ :select-year="true"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-01-01 00:00:00'"
16
+ condition="tcp.f_create_time >= '{}'"
17
+ :show-reset-button="reset">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期:</label>
22
+ <datepicker id="endDate" placeholder="结束日期"
23
+ v-model="model.endDate"
24
+ :select-year="true"
25
+ :value.sync="model.endDate"
26
+ :disabled-days-of-Week="[]"
27
+ style="width: 60%;"
28
+ condition="tcp.f_create_time <= '{}'"
29
+ :format="'yyyy-12-31 23:59:59'"
30
+ :show-reset-button="reset">
31
+ </datepicker>
32
+ </div>
33
+ <div class="form-group col-sm-2" >
34
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
35
+ <input type="text" class="input_search" v-model="model.f_residential_area"
36
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
37
+ </div>
38
+ <div class="form-group col-sm-2">
39
+ <label class="font_normal_body">用户类型</label>
40
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
41
+ :value-single="true" style="width: 60%"
42
+ class="select_list select"
43
+ :options='$parent.$parent.user_types' placeholder='用户类型'
44
+ close-on-select
45
+ condition="tcpi.f_user_type = '{}'"></v-select>
46
+ </div>
47
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
48
+ <button class="button_search button_spacing" @click="search()">查询</button>
49
+ <report-print id='yearPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
50
+ <report-excel id='yearPrint'></report-excel>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </criteria>
55
+ <div partial='list' id='yearPrint' class="list_area" style="overflow-y: scroll">
56
+ <table class='tableprint' style="margin: 0px auto">
57
+ <thead>
58
+ <tr>
59
+ <th colspan='12' style="font-weight: normal; text-align: left;">
60
+ <h3 style="text-align: center">安检年报表</h3>
61
+ </th>
62
+ </tr>
63
+ <tr>
64
+ <th colspan='12' style="font-weight: normal; text-align: center;">
65
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
66
+ 结束时间:{{ model.model.endDate }}
67
+ </th>
68
+ </tr>
69
+ </thead>
70
+ <tr>
71
+ <th colspan='12' style="font-weight: normal;">
72
+ {{{ model.data.substring(26,model.data.length-8) }}}
73
+ </th>
74
+ </tr>
75
+ <tr style="height: 100px"></tr>
76
+ </table>
77
+ </div>
78
+ </criteria-paged>
79
+ </div>
80
+
81
+ </template>
82
+
83
+ <script>
84
+ import {DataModel, HttpResetClass} from 'vue-client'
85
+
86
+ export default {
87
+ title: '安检年报表',
88
+ data () {
89
+ let model = new DataModel('rs/report/safeStatisticsYear', {})
90
+ // model.f_filialeid = '(' + this.$login.f.orgid + ')'
91
+ return {
92
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
93
+ userid: this.$login.f.id,
94
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
95
+ model: model
96
+ }
97
+ },
98
+ methods: {
99
+ getRes (obj) {
100
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
101
+ },
102
+ },
103
+ ready () {
104
+ },
105
+ computed: {
106
+ selected () {
107
+ return this.$refs.grid.selected
108
+ }
109
+ }
110
+ }
111
+ </script>
package/src/main.js CHANGED
@@ -1,33 +1,33 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import safecheck from './safecheck'
6
- import echarts from 'echarts'
7
- // import safecheck from './rongcheng'
8
-
9
- all()
10
- // 验证码开关赋值
11
- var Verificationfalg = false
12
- system(Verificationfalg)
13
- // system()
14
- safecheck('yongzhou');
15
- // safecheck('rizhao')
16
- require('./bootstrap/less/bootstrap.less')
17
- require('./expandcss.less')
18
-
19
- Vue.prototype.$echarts = echarts
20
- Vue.android = false
21
-
22
- Vue.url = '/SafeCheck/rs/'
23
- if(Vue.android)
24
- Vue.url = Vue.staticUrl
25
- Vue.interval = 1*60*1000
26
- Vue.nopic = 'file:///android_asset/nopic.png'
27
- Vue.mapSetup = false
28
-
29
- /* eslint-disable no-new */
30
- new Vue({
31
- el: 'body',
32
- components: { App }
33
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import safecheck from './safecheck'
6
+ import echarts from 'echarts'
7
+ // import safecheck from './rongcheng'
8
+
9
+ all()
10
+ // 验证码开关赋值
11
+ var Verificationfalg = false
12
+ system(Verificationfalg)
13
+ // system()
14
+ safecheck(process.env.SAFE_CHECK);
15
+ // safecheck('rizhao')
16
+ require('./bootstrap/less/bootstrap.less')
17
+ require('./expandcss.less')
18
+
19
+ Vue.prototype.$echarts = echarts
20
+ Vue.android = false
21
+
22
+ Vue.url = '/SafeCheck/rs/'
23
+ if(Vue.android)
24
+ Vue.url = Vue.staticUrl
25
+ Vue.interval = 1*60*1000
26
+ Vue.nopic = 'file:///android_asset/nopic.png'
27
+ Vue.mapSetup = false
28
+
29
+ /* eslint-disable no-new */
30
+ new Vue({
31
+ el: 'body',
32
+ components: { App }
33
+ })