safecheck-client 3.0.33-77 → 3.0.33-79

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,135 +1,135 @@
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='$parent.selfSearch' class="search_area">
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-4" >
8
- <label class="font_normal_body">小&emsp;&emsp;区</label>
9
- <input type="text" class="input_search" v-model="model.f_residential_area"
10
- style="width: 60%" placeholder="小区" condition="tcpi.f_residential_area like '%{}%'">
11
- </div>
12
- <div class="form-group col-sm-4">
13
- <label class="font_normal_body">用户类型</label>
14
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
15
- :value-single="true" style="width: 60%"
16
- class="select_list select"
17
- :options='$parent.$parent.user_types' placeholder='用户类型'
18
- close-on-select
19
- condition="tcpi.f_user_type = '{}'"></v-select>
20
- </div>
21
- </div>
22
- <div class="row">
23
- <div class="col-sm-4 form-group">
24
- <label for="startDate" class="font_normal_body">计划开始:</label>
25
- <datepicker id="startDate" placeholder="计划开始"
26
- v-model="model.startDate"
27
- :value.sync="model.startDate"
28
- style="width: 60%;"
29
- :select-year="true"
30
- :disabled-days-of-Week="[]"
31
- :format="'yyyy-01-01 00:00:00'"
32
- condition="tcp.f_create_time >= '{}'"
33
- :show-reset-button="reset">
34
- </datepicker>
35
- </div>
36
- <div class="col-sm-4 form-group">
37
- <label for="endDate" class="font_normal_body">计划结束:</label>
38
- <datepicker id="endDate" placeholder="计划结束"
39
- v-model="model.endDate"
40
- :select-year="true"
41
- :value.sync="model.endDate"
42
- :disabled-days-of-Week="[]"
43
- style="width: 60%;"
44
- condition="tcp.f_create_time <= '{}'"
45
- :format="'yyyy-12-31 23:59:59'"
46
- :show-reset-button="reset">
47
- </datepicker>
48
- </div>
49
- <div class="col-sm-4 form-group" style="margin-top: 8px">
50
- <button class="button_search button_spacing" @click="search()">查询</button>
51
- <report-print id='yearPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
52
- <report-excel id='yearPrint'></report-excel>
53
- </div>
54
- </div>
55
- </div>
56
- </criteria>
57
- <div partial='list' id='yearPrint' class="list_area" style="overflow-y: scroll">
58
- <table class='tableprint' style="margin: 0px auto">
59
- <thead>
60
- <tr>
61
- <th colspan='12' style="font-weight: normal; text-align: left;">
62
- <h3 style="text-align: center">安检年报表</h3>
63
- </th>
64
- </tr>
65
- <tr>
66
- <th colspan='12' style="font-weight: normal; text-align: center;">
67
- 计划开始日期:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
68
- 计划结束日期:{{ model.model.endDate }}
69
- </th>
70
- </tr>
71
- </thead>
72
- <tr>
73
- <th colspan='12' style="font-weight: normal;">
74
- {{{ model.data.substring(26,model.data.length-8) }}}
75
- </th>
76
- </tr>
77
- <tr style="height: 100px"></tr>
78
- </table>
79
- </div>
80
- </criteria-paged>
81
- </div>
82
-
83
- </template>
84
-
85
- <script>
86
- import {DataModel, HttpResetClass} from 'vue-client'
87
-
88
- export default {
89
- title: '安检年报表',
90
- data () {
91
- let model = new DataModel('rs/report/safeStatisticsYear', {})
92
- // model.f_filialeid = '(' + this.$login.f.orgid + ')'
93
- return {
94
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
95
- userid: this.$login.f.id,
96
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
97
- model: model
98
- }
99
- },
100
- methods: {
101
- getRes (obj) {
102
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
103
- },
104
- selfSearch (args) {
105
- let condition = {
106
- condition1 : args.condition,
107
- condition2 : `1=1 and f_entry_status = '入户'`
108
- }
109
- if (args.model.f_checker_id){
110
- condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
111
- }
112
- if (args.model.f_user_type){
113
- condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
114
- }
115
- if (args.model.f_residential_area){
116
- condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
117
- }
118
- if (args.model.checkstart){
119
- condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
120
- }
121
- if (args.model.checkend){
122
- condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
123
- }
124
- this.model.search(condition, args.model)
125
- }
126
- },
127
- ready () {
128
- },
129
- computed: {
130
- selected () {
131
- return this.$refs.grid.selected
132
- }
133
- }
134
- }
135
- </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='$parent.selfSearch' class="search_area">
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-4" >
8
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
9
+ <input type="text" class="input_search" v-model="model.f_residential_area"
10
+ style="width: 60%" placeholder="小区" condition="tcpi.f_residential_area like '%{}%'">
11
+ </div>
12
+ <div class="form-group col-sm-4">
13
+ <label class="font_normal_body">用户类型</label>
14
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
15
+ :value-single="true" style="width: 60%"
16
+ class="select_list select"
17
+ :options='$parent.$parent.user_types' placeholder='用户类型'
18
+ close-on-select
19
+ condition="tcpi.f_user_type = '{}'"></v-select>
20
+ </div>
21
+ </div>
22
+ <div class="row">
23
+ <div class="col-sm-4 form-group">
24
+ <label for="startDate" class="font_normal_body">计划开始:</label>
25
+ <datepicker id="startDate" placeholder="计划开始"
26
+ v-model="model.startDate"
27
+ :value.sync="model.startDate"
28
+ style="width: 60%;"
29
+ :select-year="true"
30
+ :disabled-days-of-Week="[]"
31
+ :format="'yyyy-01-01 00:00:00'"
32
+ condition="tcp.f_create_time >= '{}'"
33
+ :show-reset-button="reset">
34
+ </datepicker>
35
+ </div>
36
+ <div class="col-sm-4 form-group">
37
+ <label for="endDate" class="font_normal_body">计划结束:</label>
38
+ <datepicker id="endDate" placeholder="计划结束"
39
+ v-model="model.endDate"
40
+ :select-year="true"
41
+ :value.sync="model.endDate"
42
+ :disabled-days-of-Week="[]"
43
+ style="width: 60%;"
44
+ condition="tcp.f_create_time <= '{}'"
45
+ :format="'yyyy-12-31 23:59:59'"
46
+ :show-reset-button="reset">
47
+ </datepicker>
48
+ </div>
49
+ <div class="col-sm-4 form-group" style="margin-top: 8px">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+ <report-print id='yearPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
52
+ <report-excel id='yearPrint'></report-excel>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </criteria>
57
+ <div partial='list' id='yearPrint' class="list_area" style="overflow-y: scroll">
58
+ <table class='tableprint' style="margin: 0px auto">
59
+ <thead>
60
+ <tr>
61
+ <th colspan='12' style="font-weight: normal; text-align: left;">
62
+ <h3 style="text-align: center">安检年报表</h3>
63
+ </th>
64
+ </tr>
65
+ <tr>
66
+ <th colspan='12' style="font-weight: normal; text-align: center;">
67
+ 计划开始日期:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
68
+ 计划结束日期:{{ model.model.endDate }}
69
+ </th>
70
+ </tr>
71
+ </thead>
72
+ <tr>
73
+ <th colspan='12' style="font-weight: normal;">
74
+ {{{ model.data.substring(26,model.data.length-8) }}}
75
+ </th>
76
+ </tr>
77
+ <tr style="height: 100px"></tr>
78
+ </table>
79
+ </div>
80
+ </criteria-paged>
81
+ </div>
82
+
83
+ </template>
84
+
85
+ <script>
86
+ import {DataModel, HttpResetClass} from 'vue-client'
87
+
88
+ export default {
89
+ title: '安检年报表',
90
+ data () {
91
+ let model = new DataModel('rs/report/safeStatisticsYear', {})
92
+ // model.f_filialeid = '(' + this.$login.f.orgid + ')'
93
+ return {
94
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
95
+ userid: this.$login.f.id,
96
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
97
+ model: model
98
+ }
99
+ },
100
+ methods: {
101
+ getRes (obj) {
102
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
103
+ },
104
+ selfSearch (args) {
105
+ let condition = {
106
+ condition1 : args.condition,
107
+ condition2 : `1=1 and f_entry_status = '入户'`
108
+ }
109
+ if (args.model.f_checker_id){
110
+ condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
111
+ }
112
+ if (args.model.f_user_type){
113
+ condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
114
+ }
115
+ if (args.model.f_residential_area){
116
+ condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
117
+ }
118
+ if (args.model.checkstart){
119
+ condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
120
+ }
121
+ if (args.model.checkend){
122
+ condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
123
+ }
124
+ this.model.search(condition, args.model)
125
+ }
126
+ },
127
+ ready () {
128
+ },
129
+ computed: {
130
+ selected () {
131
+ return this.$refs.grid.selected
132
+ }
133
+ }
134
+ }
135
+ </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('yangchunboneng')
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('fugou')
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
+ })
package/src/rongcheng.js CHANGED
@@ -262,7 +262,9 @@ export default function () {
262
262
  require(['./components/rongcheng/report/CheckPlanUserList'], resolve)
263
263
  })
264
264
 
265
-
265
+ Vue.component('safecheck-file-upload', (resolve) => {
266
+ require(['./components/Util/SafecheckUpload'], resolve)
267
+ })
266
268
 
267
269
  //隐患报表
268
270
  Vue.component('hiddensituation', (resolve) => { require(['./components/report/HiddenSituation'], resolve) })