safecheck-client 3.0.30-29 → 3.0.30-33

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,100 +1,110 @@
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="col-sm-4 form-group" style="margin-top: 8px">
39
- <button class="button_search button_spacing" @click="search()">查询</button>
40
- <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
41
- <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
42
- </div>
43
- </div>
44
- </div>
45
- </criteria>
46
- <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
47
- <table class='tableprint' style="margin: 0px auto">
48
- <thead>
49
- <tr>
50
- <th colspan='5' style="font-weight: normal; text-align: left;">
51
- <h3 style="text-align: center">安检年报表</h3>
52
- </th>
53
- </tr>
54
- <tr>
55
- <th colspan='5' style="font-weight: normal; text-align: center;">
56
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
57
- 结束时间:{{ model.model.endDate }}
58
- </th>
59
- </tr>
60
- </thead>
61
- <tr>
62
- <th colspan='5' style="font-weight: normal;">
63
- {{{ model.data.substring(26,model.data.length-8) }}}
64
- </th>
65
- </tr>
66
- </table>
67
- </div>
68
- </criteria-paged>
69
- </div>
70
-
71
- </template>
72
-
73
- <script>
74
- import {DataModel, HttpResetClass} from 'vue-client'
75
-
76
- export default {
77
- title: '安检年报表',
78
- data () {
79
- let model = new DataModel('rs/report/safeStatisticsYear', {})
80
- // model.f_filialeid = '(' + this.$login.f.orgid + ')'
81
- return {
82
- userid: this.$login.f.id,
83
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
84
- model: model
85
- }
86
- },
87
- methods: {
88
- getRes (obj) {
89
- this.model.f_filialeid = this.$login.convertToIn(obj.resids)
90
- },
91
- },
92
- ready () {
93
- },
94
- computed: {
95
- selected () {
96
- return this.$refs.grid.selected
97
- }
98
- }
99
- }
100
- </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 class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
50
+ <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </criteria>
55
+ <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
56
+ <table class='tableprint' style="margin: 0px auto">
57
+ <thead>
58
+ <tr>
59
+ <th colspan='5' style="font-weight: normal; text-align: left;">
60
+ <h3 style="text-align: center">安检年报表</h3>
61
+ </th>
62
+ </tr>
63
+ <tr>
64
+ <th colspan='5' 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='5' style="font-weight: normal;">
72
+ {{{ model.data.substring(26,model.data.length-8) }}}
73
+ </th>
74
+ </tr>
75
+ </table>
76
+ </div>
77
+ </criteria-paged>
78
+ </div>
79
+
80
+ </template>
81
+
82
+ <script>
83
+ import {DataModel, HttpResetClass} from 'vue-client'
84
+
85
+ export default {
86
+ title: '安检年报表',
87
+ data () {
88
+ let model = new DataModel('rs/report/safeStatisticsYear', {})
89
+ // model.f_filialeid = '(' + this.$login.f.orgid + ')'
90
+ return {
91
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
92
+ userid: this.$login.f.id,
93
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
94
+ model: model
95
+ }
96
+ },
97
+ methods: {
98
+ getRes (obj) {
99
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids)
100
+ },
101
+ },
102
+ ready () {
103
+ },
104
+ computed: {
105
+ selected () {
106
+ return this.$refs.grid.selected
107
+ }
108
+ }
109
+ }
110
+ </script>
@@ -1,128 +1,136 @@
1
- <template>
2
-
3
- <div style="height: 25px;width: auto">
4
- <button class="button_spacing button_search" @click="showaudio(1)" :class="{color:searchs.search1}">
5
- 安检情况明细
6
- </button>
7
- <button class="button_spacing button_search" @click="showaudio(2)" :class="{color:searchs.search2}">
8
- 小区隐患明细表
9
- </button>
10
- <button class="button_spacing button_search" @click="showaudio(3)" :class="{color:searchs.search3}">
11
- 隐患类型明细表工商
12
- </button>
13
- <button class="button_spacing button_search" @click="showaudio(4)" :class="{color:searchs.search4}">
14
- 隐患类型明细表民用
15
- </button>
16
- <button class="button_spacing button_search" @click="showaudio(5)" :class="{color:searchs.search5}">
17
- 安检员明细
18
- </button>
19
- <button class="button_spacing button_search" @click="showaudio(6)" :class="{color:searchs.search6}">
20
- 安检日报表
21
- </button>
22
- <button class="button_spacing button_search" @click="showaudio(7)" :class="{color:searchs.search7}">
23
- 安检月报表
24
- </button>
25
- <button class="button_spacing button_search" @click="showaudio(8)" :class="{color:searchs.search8}">
26
- 安检年报表
27
- </button>
28
- </div>
29
- <!--安检情况明细-->
30
- <div v-if="searchs.search1">
31
- <safe-detail></safe-detail>
32
- </div>
33
- <!--小区隐患明细表-->
34
- <div v-if="searchs.search2">
35
- <community-detail ></community-detail>
36
- </div>
37
- <!--隐患类型明细表工商-->
38
- <div v-if="searchs.search3">
39
- <community-type-detail-g ></community-type-detail-g>
40
- </div>
41
- <!--隐患类型明细表民用-->
42
- <div v-if="searchs.search4">
43
- <community-type-detail-m ></community-type-detail-m>
44
- </div>
45
- <!-- 安检员明细-->
46
- <div v-if="searchs.search5">
47
- <safe-statistics ></safe-statistics>
48
- </div>
49
- <!--安检日报表-->
50
- <div v-if="searchs.search6">
51
- <safe-statistics-day ></safe-statistics-day>
52
- </div>
53
- <!--安检月报表-->
54
- <div v-if="searchs.search7">
55
- <safe-statistics-month ></safe-statistics-month>
56
- </div>
57
- <!--安检年报表-->
58
- <div v-if="searchs.search8">
59
- <safe-statistics-year ></safe-statistics-year>
60
- </div>
61
- </template>
62
-
63
-
64
- <script>
65
- import * as Util from '../../Util'
66
- import {HttpResetClass} from "vue-client";
67
-
68
- export default {
69
- title: '安检报表',
70
- data() {
71
- return {
72
- searchs: {
73
- search1: false,
74
- search2: false,
75
- search3: false,
76
- search4: false,
77
- search5: false,
78
- search6: false,
79
- search7: false,
80
- search8: false
81
- },
82
- currentActiveSearch:''
83
- }
84
- },
85
- methods: {
86
- showaudio(index){
87
- for (const key in this.searchs) {
88
- this.searchs[key] = false;
89
- }
90
- this.searchs[`search${index}`] = true;
91
- this.currentActiveSearch = index;
92
- }
93
- }
94
- }
95
- </script>
96
-
97
- <style scoped>
98
- .div-1 {
99
- height: 99%;
100
- width: 100%
101
- }
102
- .color{
103
- background-color: #f7cb32;
104
- }
105
- .div-2 {
106
- height: 7%;
107
- width: 100%;
108
- }
109
-
110
- .div-3 {
111
- height: 90%;
112
- width: 100%;
113
- overflow-y: scroll;
114
- }
115
-
116
- .td-1 {
117
- float: left;
118
- }
119
-
120
- .td-2 {
121
- float: right;
122
- }
123
-
124
- .td-3 {
125
- margin-bottom: 1%;
126
- }
127
-
128
- </style>
1
+ <template>
2
+
3
+ <div style="height: 25px;width: auto">
4
+ <button class="button_spacing button_search" @click="showaudio(1)" :class="{color:searchs.search1}">
5
+ 安检情况明细
6
+ </button>
7
+ <button class="button_spacing button_search" @click="showaudio(2)" :class="{color:searchs.search2}">
8
+ 小区隐患明细表
9
+ </button>
10
+ <button class="button_spacing button_search" @click="showaudio(3)" :class="{color:searchs.search3}">
11
+ 隐患类型明细表工商
12
+ </button>
13
+ <button class="button_spacing button_search" @click="showaudio(4)" :class="{color:searchs.search4}">
14
+ 隐患类型明细表民用
15
+ </button>
16
+ <button class="button_spacing button_search" @click="showaudio(5)" :class="{color:searchs.search5}">
17
+ 安检员明细(有计划)
18
+ </button>
19
+ <button class="button_spacing button_search" @click="showaudio(9)" :class="{color:searchs.search9}">
20
+ 安检员明细(无计划)
21
+ </button>
22
+ <button class="button_spacing button_search" @click="showaudio(6)" :class="{color:searchs.search6}">
23
+ 安检日报表
24
+ </button>
25
+ <button class="button_spacing button_search" @click="showaudio(7)" :class="{color:searchs.search7}">
26
+ 安检月报表
27
+ </button>
28
+ <button class="button_spacing button_search" @click="showaudio(8)" :class="{color:searchs.search8}">
29
+ 安检年报表
30
+ </button>
31
+ </div>
32
+ <!--安检情况明细-->
33
+ <div v-if="searchs.search1">
34
+ <safe-detail></safe-detail>
35
+ </div>
36
+ <!--小区隐患明细表-->
37
+ <div v-if="searchs.search2">
38
+ <community-detail ></community-detail>
39
+ </div>
40
+ <!--隐患类型明细表工商-->
41
+ <div v-if="searchs.search3">
42
+ <community-type-detail-g ></community-type-detail-g>
43
+ </div>
44
+ <!--隐患类型明细表民用-->
45
+ <div v-if="searchs.search4">
46
+ <community-type-detail-m ></community-type-detail-m>
47
+ </div>
48
+ <!-- 安检员明细-->
49
+ <div v-if="searchs.search5">
50
+ <safe-statistics ></safe-statistics>
51
+ </div>
52
+ <!--安检日报表-->
53
+ <div v-if="searchs.search6">
54
+ <safe-statistics-day ></safe-statistics-day>
55
+ </div>
56
+ <!--安检月报表-->
57
+ <div v-if="searchs.search7">
58
+ <safe-statistics-month ></safe-statistics-month>
59
+ </div>
60
+ <!--安检年报表-->
61
+ <div v-if="searchs.search8">
62
+ <safe-statistics-year ></safe-statistics-year>
63
+ </div>
64
+ <!--安检年报表-->
65
+ <div v-if="searchs.search9">
66
+ <no-checkplan-safecheck ></no-checkplan-safecheck>
67
+ </div>
68
+ </template>
69
+
70
+
71
+ <script>
72
+ import * as Util from '../../Util'
73
+ import {HttpResetClass} from "vue-client";
74
+
75
+ export default {
76
+ title: '安检报表',
77
+ data() {
78
+ return {
79
+ searchs: {
80
+ search1: false,
81
+ search2: false,
82
+ search3: false,
83
+ search4: false,
84
+ search5: false,
85
+ search6: false,
86
+ search7: false,
87
+ search8: false,
88
+ search9: false
89
+ },
90
+ currentActiveSearch:''
91
+ }
92
+ },
93
+ methods: {
94
+ showaudio(index){
95
+ for (const key in this.searchs) {
96
+ this.searchs[key] = false;
97
+ }
98
+ this.searchs[`search${index}`] = true;
99
+ this.currentActiveSearch = index;
100
+ }
101
+ }
102
+ }
103
+ </script>
104
+
105
+ <style scoped>
106
+ .div-1 {
107
+ height: 99%;
108
+ width: 100%
109
+ }
110
+ .color{
111
+ background-color: #f7cb32;
112
+ }
113
+ .div-2 {
114
+ height: 7%;
115
+ width: 100%;
116
+ }
117
+
118
+ .div-3 {
119
+ height: 90%;
120
+ width: 100%;
121
+ overflow-y: scroll;
122
+ }
123
+
124
+ .td-1 {
125
+ float: left;
126
+ }
127
+
128
+ .td-2 {
129
+ float: right;
130
+ }
131
+
132
+ .td-3 {
133
+ margin-bottom: 1%;
134
+ }
135
+
136
+ </style>
@@ -1,23 +1,24 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- "plan-manage":(resolve) => { require(['./pc/PlanManage.vue'], resolve) },
7
- "role-selector-safe":(resolve) => { require(['./pc/RoleSelector.vue'], resolve) },
8
- "check-user-list":(resolve) => { require(['./pc/checkUserList.vue'], resolve) },
9
- "safe-table":(resolve) => { require(['./pc/safeTable.vue'], resolve) },
10
- "safe-detail":(resolve) => { require(['./pc/safeDetail.vue'], resolve) },
11
- "community-detail":(resolve) => { require(['./pc/communityDetail.vue'], resolve) },
12
- "community-type-detail-g":(resolve) => { require(['./pc/communityTypeDetailG.vue'], resolve) },
13
- "community-type-detail-m":(resolve) => { require(['./pc/communityTypeDetailM.vue'], resolve) },
14
- "safe-statistics":(resolve) => { require(['./pc/safeStatistics.vue'], resolve) },
15
- "safe-statistics-day":(resolve) => { require(['./pc/safeStatisticsDay.vue'], resolve) },
16
- "safe-statistics-month":(resolve) => { require(['./pc/safeStatisticsMonth.vue'], resolve) },
17
- "safe-statistics-year":(resolve) => { require(['./pc/safeStatisticsYear.vue'], resolve) },
18
- }
19
- exports.specialComp = specialComp
20
-
21
-
22
-
23
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ "plan-manage":(resolve) => { require(['./pc/PlanManage.vue'], resolve) },
7
+ "role-selector-safe":(resolve) => { require(['./pc/RoleSelector.vue'], resolve) },
8
+ "check-user-list":(resolve) => { require(['./pc/checkUserList.vue'], resolve) },
9
+ "safe-table":(resolve) => { require(['./pc/safeTable.vue'], resolve) },
10
+ "safe-detail":(resolve) => { require(['./pc/safeDetail.vue'], resolve) },
11
+ "community-detail":(resolve) => { require(['./pc/communityDetail.vue'], resolve) },
12
+ "community-type-detail-g":(resolve) => { require(['./pc/communityTypeDetailG.vue'], resolve) },
13
+ "community-type-detail-m":(resolve) => { require(['./pc/communityTypeDetailM.vue'], resolve) },
14
+ "safe-statistics":(resolve) => { require(['./pc/safeStatistics.vue'], resolve) },
15
+ "safe-statistics-day":(resolve) => { require(['./pc/safeStatisticsDay.vue'], resolve) },
16
+ "safe-statistics-month":(resolve) => { require(['./pc/safeStatisticsMonth.vue'], resolve) },
17
+ "safe-statistics-year":(resolve) => { require(['./pc/safeStatisticsYear.vue'], resolve) },
18
+ "no-checkplan-safecheck":(resolve) => { require(['./pc/NoCheckplanSafecheck.vue'], resolve) },
19
+ }
20
+ exports.specialComp = specialComp
21
+
22
+
23
+
24
+
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(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
- })
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
+ })