safecheck-client 3.0.34-66 → 3.0.34-67
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/App.vue +31 -31
- package/src/components/android/AreaSelect.vue +198 -198
- package/src/components/android/BuildingSelect.vue +192 -192
- package/src/components/android/CheckPlanSelect.vue +229 -229
- package/src/components/android/SafecheckDevices.vue +1298 -1298
- package/src/components/android/UserinfoSelect.vue +672 -702
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/baiyin/pc/PaperList.vue +790 -790
- package/src/filiale/bayan/pc/PaperList.vue +900 -900
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
- package/src/filiale/siyang/android.js +11 -12
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -576
- package/src/main.js +33 -33
- package/src/safecheck-android.js +304 -305
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +0 -502
- package/src/filiale/siyang/android/AddPlanItem.vue +0 -446
@@ -1,229 +1,229 @@
|
|
1
|
-
<style scoped>
|
2
|
-
.app-row {
|
3
|
-
background-color: white;
|
4
|
-
padding: 10px 10px 0 10px;
|
5
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
6
|
-
}
|
7
|
-
|
8
|
-
.font {
|
9
|
-
font: 15px PingFang-SC-Medium;
|
10
|
-
color: #666666;
|
11
|
-
}
|
12
|
-
|
13
|
-
.input-font {
|
14
|
-
font: 15px PingFang-SC-Medium;
|
15
|
-
color: #333333;
|
16
|
-
}
|
17
|
-
|
18
|
-
.btn-font {
|
19
|
-
font: 600 16px PingFang-SC-Bold;
|
20
|
-
color: #499EDF;
|
21
|
-
}
|
22
|
-
|
23
|
-
.btn-color {
|
24
|
-
background-color: #FFFFFF;
|
25
|
-
border-radius: 10px;
|
26
|
-
border: 1px solid #499EDF;
|
27
|
-
}
|
28
|
-
|
29
|
-
.app-text {
|
30
|
-
font-size: 12px;
|
31
|
-
}
|
32
|
-
|
33
|
-
.panel-self {
|
34
|
-
border-radius: 10px;
|
35
|
-
border: 1px solid #499EDF;
|
36
|
-
background-color: #F8F8F8;
|
37
|
-
}
|
38
|
-
|
39
|
-
table {
|
40
|
-
text-align: center;
|
41
|
-
white-space: nowrap;
|
42
|
-
font-size: 12px;
|
43
|
-
width: 50%;
|
44
|
-
border-collapse: collapse;
|
45
|
-
margin: 20px 0;
|
46
|
-
margin: auto;
|
47
|
-
}
|
48
|
-
|
49
|
-
th,
|
50
|
-
td {
|
51
|
-
padding: 12px;
|
52
|
-
border-bottom: 1px solid #ddd;
|
53
|
-
}
|
54
|
-
|
55
|
-
th {
|
56
|
-
background-color: #f2f2f2;
|
57
|
-
}
|
58
|
-
|
59
|
-
tr:hover {
|
60
|
-
background-color: #f5f5f5;
|
61
|
-
}
|
62
|
-
</style>
|
63
|
-
<template>
|
64
|
-
<div style="height: auto;width: 100%">
|
65
|
-
<criteria-paged :model="model" v-ref:paged :pager="false">
|
66
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
67
|
-
<div partial>
|
68
|
-
<form>
|
69
|
-
<div class="row app-row">
|
70
|
-
<div class="col-xs-4">
|
71
|
-
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
72
|
-
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
73
|
-
</div>
|
74
|
-
<v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
|
75
|
-
:options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'"
|
76
|
-
v-model="model.f_plan_name" condition="f_plan_name = '{}'" close-on-select clear-button>
|
77
|
-
</v-select>
|
78
|
-
</div>
|
79
|
-
<div class="row app-row">
|
80
|
-
<div class="col-xs-4">
|
81
|
-
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
82
|
-
<label for="f_plan_name" class="font text-left">计划类型:</label>
|
83
|
-
</div>
|
84
|
-
<v-select id="f_plan_name" :value.sync="model.f_safecheck_type" class="input-font"
|
85
|
-
:options='$parent.$parent.safecheckTypes' placeholder='计划类型' :width="'60%'"
|
86
|
-
v-model="model.f_safecheck_type" condition="f_safecheck_type = '{}'" close-on-select
|
87
|
-
clear-button>
|
88
|
-
</v-select>
|
89
|
-
</div>
|
90
|
-
<div class="row app-row">
|
91
|
-
<div class="col-xs-4">
|
92
|
-
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
-
<label for="f_plan_name" class="font text-left">计划时间:</label>
|
94
|
-
</div>
|
95
|
-
<datepicker id="f_start_date" style="width: 30%;" :value.sync="model.f_start_date"
|
96
|
-
:disabled-days-of-Week="[]" v-model="model.f_start_date" class="input-font"
|
97
|
-
:format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'">
|
98
|
-
</datepicker>-
|
99
|
-
<datepicker id="f_end_date" style="width: 30%;" :value.sync="model.f_end_date"
|
100
|
-
:disabled-days-of-Week="[]" v-model="model.f_end_date" class="input-font"
|
101
|
-
:format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'">
|
102
|
-
</datepicker>
|
103
|
-
</div>
|
104
|
-
<div class="row text-center" style="margin-top: 20px;">
|
105
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
106
|
-
@click="search">查询</button>
|
107
|
-
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png"
|
108
|
-
style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
109
|
-
</div>
|
110
|
-
<div class="col-sm-12">
|
111
|
-
</div>
|
112
|
-
<div style="height:30px;"></div>
|
113
|
-
</form>
|
114
|
-
</div>
|
115
|
-
</criteria>
|
116
|
-
<list :model="model" partial='list'>
|
117
|
-
<div partial>
|
118
|
-
<div class="auto app-text" style="margin-top: 5px;">
|
119
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
120
|
-
<div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoAreaSelect(row)">
|
121
|
-
<div class="col-xs-12">
|
122
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
123
|
-
<b>计划名称:</b>
|
124
|
-
</p>
|
125
|
-
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{
|
126
|
-
row.f_plan_name }}</p>
|
127
|
-
</div>
|
128
|
-
<div class="col-xs-12">
|
129
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
130
|
-
<b>计划发型:</b>
|
131
|
-
</p>
|
132
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
|
133
|
-
row.f_safecheck_type }}</p>
|
134
|
-
</div>
|
135
|
-
<div class="col-xs-12">
|
136
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
137
|
-
<b>计划时间:</b>
|
138
|
-
</p>
|
139
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
|
140
|
-
row.f_issue_time }}</p>
|
141
|
-
</div>
|
142
|
-
<div class="col-xs-12">
|
143
|
-
<table>
|
144
|
-
<tr>
|
145
|
-
<td style="color: #00A3F0">{{ row.jihuazongshu }}</td>
|
146
|
-
<td style="color: #3CC51F">{{ row.yijian }}</td>
|
147
|
-
<td style="color: coral">{{ row.weijian }}</td>
|
148
|
-
<td style="color: red">{{ row.daofangbuyu }}</td>
|
149
|
-
</tr>
|
150
|
-
<tr>
|
151
|
-
<th>计划总户数</th>
|
152
|
-
<th>已检户数</th>
|
153
|
-
<th>未检户数</th>
|
154
|
-
<th>到访不遇户数</th>
|
155
|
-
</tr>
|
156
|
-
</table>
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
</list>
|
163
|
-
</criteria-paged>
|
164
|
-
</div>
|
165
|
-
</template>
|
166
|
-
<script>
|
167
|
-
import LocalPagedList from '../../plugins/LocalPagedList'
|
168
|
-
export default {
|
169
|
-
title: 'current-create',
|
170
|
-
data() {
|
171
|
-
return {
|
172
|
-
planNameOptions: [{ label: '请选择', value: '' },],
|
173
|
-
safecheckTypes: [{ label: '请选择', value: '' }, { label: '年度安检', value: '年度安检' }, { label: '抽检', value: '抽检' }],
|
174
|
-
model: new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }),
|
175
|
-
}
|
176
|
-
},
|
177
|
-
ready() {
|
178
|
-
this.getAllPlanName()
|
179
|
-
},
|
180
|
-
methods: {
|
181
|
-
getNewOrder() {
|
182
|
-
HostApp.__this__ = this
|
183
|
-
HostApp.logicWithHint({
|
184
|
-
'logic': 'SafeCheckServiceTimeOut',
|
185
|
-
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
186
|
-
'data': { params: '' },
|
187
|
-
'backresult': 1
|
188
|
-
})
|
189
|
-
HostApp.logicWithHint({
|
190
|
-
'logic': 'FreshPlanItem',
|
191
|
-
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
192
|
-
'data': { params: '' },
|
193
|
-
'backresult': 1
|
194
|
-
})
|
195
|
-
},
|
196
|
-
getNewOrderCallBack() {
|
197
|
-
this.model.search()
|
198
|
-
},
|
199
|
-
gotoAreaSelect(row) {
|
200
|
-
var _this = this
|
201
|
-
_this.$goto('area-select-safe', { row: row }, 'self', _this.$back)
|
202
|
-
},
|
203
|
-
search(args) {
|
204
|
-
let condition = '1=1'
|
205
|
-
this.model.rows = []
|
206
|
-
let criteria = {
|
207
|
-
items: `tcp.id,tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type,COUNT(tcp.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
|
208
|
-
tablename: 't_check_plan tcp LEFT JOIN t_check_plan_item tcpi ON tcp.id = tcpi.f_plan_id',
|
209
|
-
condition: args.condition || condition,
|
210
|
-
groupitem: 'tcp.id,tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type'
|
211
|
-
}
|
212
|
-
let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
|
213
|
-
this.model.rows = result.data.rows
|
214
|
-
},
|
215
|
-
getAllPlanName() {
|
216
|
-
let criteria = {
|
217
|
-
items: 'f_plan_name',
|
218
|
-
tablename: 't_check_plan',
|
219
|
-
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
220
|
-
groupitem: 'f_plan_name'
|
221
|
-
}
|
222
|
-
let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
|
223
|
-
if (result.code == 200) {
|
224
|
-
result.data.rows.forEach(item => this.planNameOptions.push({ label: item.f_plan_name, value: item.f_plan_name }))
|
225
|
-
}
|
226
|
-
},
|
227
|
-
}
|
228
|
-
}
|
229
|
-
</script>
|
1
|
+
<style scoped>
|
2
|
+
.app-row {
|
3
|
+
background-color: white;
|
4
|
+
padding: 10px 10px 0 10px;
|
5
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
6
|
+
}
|
7
|
+
|
8
|
+
.font {
|
9
|
+
font: 15px PingFang-SC-Medium;
|
10
|
+
color: #666666;
|
11
|
+
}
|
12
|
+
|
13
|
+
.input-font {
|
14
|
+
font: 15px PingFang-SC-Medium;
|
15
|
+
color: #333333;
|
16
|
+
}
|
17
|
+
|
18
|
+
.btn-font {
|
19
|
+
font: 600 16px PingFang-SC-Bold;
|
20
|
+
color: #499EDF;
|
21
|
+
}
|
22
|
+
|
23
|
+
.btn-color {
|
24
|
+
background-color: #FFFFFF;
|
25
|
+
border-radius: 10px;
|
26
|
+
border: 1px solid #499EDF;
|
27
|
+
}
|
28
|
+
|
29
|
+
.app-text {
|
30
|
+
font-size: 12px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.panel-self {
|
34
|
+
border-radius: 10px;
|
35
|
+
border: 1px solid #499EDF;
|
36
|
+
background-color: #F8F8F8;
|
37
|
+
}
|
38
|
+
|
39
|
+
table {
|
40
|
+
text-align: center;
|
41
|
+
white-space: nowrap;
|
42
|
+
font-size: 12px;
|
43
|
+
width: 50%;
|
44
|
+
border-collapse: collapse;
|
45
|
+
margin: 20px 0;
|
46
|
+
margin: auto;
|
47
|
+
}
|
48
|
+
|
49
|
+
th,
|
50
|
+
td {
|
51
|
+
padding: 12px;
|
52
|
+
border-bottom: 1px solid #ddd;
|
53
|
+
}
|
54
|
+
|
55
|
+
th {
|
56
|
+
background-color: #f2f2f2;
|
57
|
+
}
|
58
|
+
|
59
|
+
tr:hover {
|
60
|
+
background-color: #f5f5f5;
|
61
|
+
}
|
62
|
+
</style>
|
63
|
+
<template>
|
64
|
+
<div style="height: auto;width: 100%">
|
65
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
66
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
67
|
+
<div partial>
|
68
|
+
<form>
|
69
|
+
<div class="row app-row">
|
70
|
+
<div class="col-xs-4">
|
71
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
72
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
73
|
+
</div>
|
74
|
+
<v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
|
75
|
+
:options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'"
|
76
|
+
v-model="model.f_plan_name" condition="f_plan_name = '{}'" close-on-select clear-button>
|
77
|
+
</v-select>
|
78
|
+
</div>
|
79
|
+
<div class="row app-row">
|
80
|
+
<div class="col-xs-4">
|
81
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
82
|
+
<label for="f_plan_name" class="font text-left">计划类型:</label>
|
83
|
+
</div>
|
84
|
+
<v-select id="f_plan_name" :value.sync="model.f_safecheck_type" class="input-font"
|
85
|
+
:options='$parent.$parent.safecheckTypes' placeholder='计划类型' :width="'60%'"
|
86
|
+
v-model="model.f_safecheck_type" condition="f_safecheck_type = '{}'" close-on-select
|
87
|
+
clear-button>
|
88
|
+
</v-select>
|
89
|
+
</div>
|
90
|
+
<div class="row app-row">
|
91
|
+
<div class="col-xs-4">
|
92
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
+
<label for="f_plan_name" class="font text-left">计划时间:</label>
|
94
|
+
</div>
|
95
|
+
<datepicker id="f_start_date" style="width: 30%;" :value.sync="model.f_start_date"
|
96
|
+
:disabled-days-of-Week="[]" v-model="model.f_start_date" class="input-font"
|
97
|
+
:format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'">
|
98
|
+
</datepicker>-
|
99
|
+
<datepicker id="f_end_date" style="width: 30%;" :value.sync="model.f_end_date"
|
100
|
+
:disabled-days-of-Week="[]" v-model="model.f_end_date" class="input-font"
|
101
|
+
:format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'">
|
102
|
+
</datepicker>
|
103
|
+
</div>
|
104
|
+
<div class="row text-center" style="margin-top: 20px;">
|
105
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
106
|
+
@click="search">查询</button>
|
107
|
+
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png"
|
108
|
+
style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
109
|
+
</div>
|
110
|
+
<div class="col-sm-12">
|
111
|
+
</div>
|
112
|
+
<div style="height:30px;"></div>
|
113
|
+
</form>
|
114
|
+
</div>
|
115
|
+
</criteria>
|
116
|
+
<list :model="model" partial='list'>
|
117
|
+
<div partial>
|
118
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
119
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
120
|
+
<div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoAreaSelect(row)">
|
121
|
+
<div class="col-xs-12">
|
122
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
123
|
+
<b>计划名称:</b>
|
124
|
+
</p>
|
125
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{
|
126
|
+
row.f_plan_name }}</p>
|
127
|
+
</div>
|
128
|
+
<div class="col-xs-12">
|
129
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
130
|
+
<b>计划发型:</b>
|
131
|
+
</p>
|
132
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
|
133
|
+
row.f_safecheck_type }}</p>
|
134
|
+
</div>
|
135
|
+
<div class="col-xs-12">
|
136
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left">
|
137
|
+
<b>计划时间:</b>
|
138
|
+
</p>
|
139
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
|
140
|
+
row.f_issue_time }}</p>
|
141
|
+
</div>
|
142
|
+
<div class="col-xs-12">
|
143
|
+
<table>
|
144
|
+
<tr>
|
145
|
+
<td style="color: #00A3F0">{{ row.jihuazongshu }}</td>
|
146
|
+
<td style="color: #3CC51F">{{ row.yijian }}</td>
|
147
|
+
<td style="color: coral">{{ row.weijian }}</td>
|
148
|
+
<td style="color: red">{{ row.daofangbuyu }}</td>
|
149
|
+
</tr>
|
150
|
+
<tr>
|
151
|
+
<th>计划总户数</th>
|
152
|
+
<th>已检户数</th>
|
153
|
+
<th>未检户数</th>
|
154
|
+
<th>到访不遇户数</th>
|
155
|
+
</tr>
|
156
|
+
</table>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
</list>
|
163
|
+
</criteria-paged>
|
164
|
+
</div>
|
165
|
+
</template>
|
166
|
+
<script>
|
167
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
168
|
+
export default {
|
169
|
+
title: 'current-create',
|
170
|
+
data() {
|
171
|
+
return {
|
172
|
+
planNameOptions: [{ label: '请选择', value: '' },],
|
173
|
+
safecheckTypes: [{ label: '请选择', value: '' }, { label: '年度安检', value: '年度安检' }, { label: '抽检', value: '抽检' }],
|
174
|
+
model: new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }),
|
175
|
+
}
|
176
|
+
},
|
177
|
+
ready() {
|
178
|
+
this.getAllPlanName()
|
179
|
+
},
|
180
|
+
methods: {
|
181
|
+
getNewOrder() {
|
182
|
+
HostApp.__this__ = this
|
183
|
+
HostApp.logicWithHint({
|
184
|
+
'logic': 'SafeCheckServiceTimeOut',
|
185
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
186
|
+
'data': { params: '' },
|
187
|
+
'backresult': 1
|
188
|
+
})
|
189
|
+
HostApp.logicWithHint({
|
190
|
+
'logic': 'FreshPlanItem',
|
191
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
192
|
+
'data': { params: '' },
|
193
|
+
'backresult': 1
|
194
|
+
})
|
195
|
+
},
|
196
|
+
getNewOrderCallBack() {
|
197
|
+
this.model.search()
|
198
|
+
},
|
199
|
+
gotoAreaSelect(row) {
|
200
|
+
var _this = this
|
201
|
+
_this.$goto('area-select-safe', { row: row }, 'self', _this.$back)
|
202
|
+
},
|
203
|
+
search(args) {
|
204
|
+
let condition = '1=1'
|
205
|
+
this.model.rows = []
|
206
|
+
let criteria = {
|
207
|
+
items: `tcp.id,tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type,COUNT(tcp.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
|
208
|
+
tablename: 't_check_plan tcp LEFT JOIN t_check_plan_item tcpi ON tcp.id = tcpi.f_plan_id',
|
209
|
+
condition: args.condition || condition,
|
210
|
+
groupitem: 'tcp.id,tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type'
|
211
|
+
}
|
212
|
+
let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
|
213
|
+
this.model.rows = result.data.rows
|
214
|
+
},
|
215
|
+
getAllPlanName() {
|
216
|
+
let criteria = {
|
217
|
+
items: 'f_plan_name',
|
218
|
+
tablename: 't_check_plan',
|
219
|
+
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
220
|
+
groupitem: 'f_plan_name'
|
221
|
+
}
|
222
|
+
let result = HostApp._executeTask({ 'type': 'sql', 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria } })
|
223
|
+
if (result.code == 200) {
|
224
|
+
result.data.rows.forEach(item => this.planNameOptions.push({ label: item.f_plan_name, value: item.f_plan_name }))
|
225
|
+
}
|
226
|
+
},
|
227
|
+
}
|
228
|
+
}
|
229
|
+
</script>
|