浏览代码

事件列表和报修列表样式调整

seimin 2 年之前
父节点
当前提交
0ff763b5ca

+ 14 - 13
assets/js/controllers/desk/chartCtrl.js

@@ -147,14 +147,15 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
147 147
                     '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
148 148
                     '</div>'
149 149
             },
150
+            // {
151
+            //     name: 'item',
152
+            //     displayName: '序号',
153
+            //     width: 50,
154
+            //     cellTemplate: '<div>' +
155
+            //         '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
156
+            //         '</div>'
157
+            // }, 
150 158
             {
151
-                name: 'item',
152
-                displayName: '序号',
153
-                width: 50,
154
-                cellTemplate: '<div>' +
155
-                    '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
156
-                    '</div>'
157
-            }, {
158 159
                 name: 'bxcode',
159 160
                 displayName: '报修单号',
160 161
                 width: 150,
@@ -187,28 +188,28 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
187 188
             }, {
188 189
                 name: 'contacts',
189 190
                 displayName: '联系人',
190
-                width: 100,
191
+                width: '70',
191 192
                 cellTemplate: '<div>' +
192 193
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.contacts}}</div>' +
193 194
                     '</div>'
194 195
             }, {
195 196
                 name: 'requester.account',
196 197
                 displayName: '学工号',
197
-                width: 150,
198
+                width: 120,
198 199
                 cellTemplate: '<div>' +
199 200
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.requester.account}}</div>' +
200 201
                     '</div>'
201 202
             }, {
202 203
                 name: 'contactsInformation',
203 204
                 displayName: '联系电话',
204
-                width: 150,
205
+                width: 120,
205 206
                 cellTemplate: '<div>' +
206 207
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.contactsInformation}}</div>' +
207 208
                     '</div>'
208 209
             }, {
209 210
                 name: 'incident.acceptUser.name',
210 211
                 displayName: '受理人',
211
-                width: 150,
212
+                width: '70',
212 213
                 cellTemplate: '<div>' +
213 214
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" ng-if="row.entity.incident&&row.entity.incident.acceptUser">{{row.entity.incident.acceptUser.name||""}}</div>' +
214 215
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" ng-if="row.entity.rejectUser">{{row.entity.rejectUser.name||""}}</div>' +
@@ -225,14 +226,14 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
225 226
             {
226 227
                 name: 'serviceState.name',
227 228
                 displayName: '状态',
228
-                width: 150,
229
+                width: 70,
229 230
                 cellTemplate: '<div>' +
230 231
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.serviceState.name}}</div>' +
231 232
                     '</div>'
232 233
             }, {
233 234
                 name: 'createTime',
234 235
                 displayName: '报修时间',
235
-                width: 150,
236
+                width: 140,
236 237
                 cellTemplate: '<div>' +
237 238
                     '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center">{{grid.appScope.transferTime(row.entity.createTime)}}</div>' +
238 239
                     '</div>'

+ 7 - 11
assets/js/controllers/incident/incidentCtrl.js

@@ -201,7 +201,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
201 201
         $scope.gridOptions.columnDefs = [
202 202
             {
203 203
                 name: 'id',
204
-                displayName: '状态',
204
+                displayName: '#',
205 205
                 width: 35,
206 206
                 cellTemplate: '<div>' +
207 207
                     '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
@@ -226,8 +226,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
226 226
             {
227 227
                 name: 'requester.name',
228 228
                 displayName: '报修人',
229
-                width: '6%',
230
-                minWidth: '90',
229
+                width: '70',
231 230
                 enableSorting: false,
232 231
                 cellTemplate: '<div>' +
233 232
                     '<div class="ui-grid-cell-contents" >{{row.entity.requester.name}}</div>' +
@@ -262,15 +261,14 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
262 261
             {
263 262
                 name: 'houseNumber',
264 263
                 displayName: '校区区域地点',
265
-                width: '14%',
264
+                width: '150',
266 265
                 enableFiltering: false,
267 266
                 cellTemplate: '<div><div class="ui-grid-cell-contents">{{grid.appScope.areaplace(row.entity)}}</div></div>'
268 267
             },
269 268
             {
270 269
                 name: 'acceptUser.name',
271 270
                 displayName: '受理人',
272
-                width: '7%',
273
-                minWidth: '80',
271
+                width: '70',
274 272
                 enableSorting: false,
275 273
                 cellTemplate: '<div>' +
276 274
                     '<div class="ui-grid-cell-contents" >{{row.entity.acceptUser.name}}</div>' +
@@ -279,15 +277,14 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
279 277
             {
280 278
                 name: 'acceptDate',
281 279
                 displayName: '登记时间',
282
-                width: '10%',
283
-                minWidth: '140',
280
+                width: '140',
284 281
                 enableFiltering: false,
285 282
                 cellTemplate: '<div><div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}</div></div>'
286 283
             },
287 284
             {
288 285
                 name: 'groupORHandlerUser',
289 286
                 displayName: '处理人/组',
290
-                width: '10%',
287
+                width: '70',
291 288
                 enableFiltering: false,
292 289
                 cellTemplate: '<div>' +
293 290
                     '<div class="ui-grid-cell-contents">' +
@@ -297,8 +294,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
297 294
             {
298 295
                 name: 'state.name',
299 296
                 displayName: '状态',
300
-                width: '7%',
301
-                minWidth: '70',
297
+                width: '70',
302 298
                 enableSorting: false,
303 299
                 cellTemplate: '<div>' +
304 300
                     '<div class="ui-grid-cell-contents" >{{row.entity.state.name}}</div>' +

+ 18 - 9
assets/views/desk/chart.html

@@ -111,17 +111,20 @@
111 111
                   <div class="control-label pull-left margin-top-5 margin-right-5">
112 112
                     联系人:
113 113
                   </div>
114
-                  <input class="form-control pull-right inputcolor iptSize"
114
+                  <input style="margin-right:24px;width: 60%;" class="form-control pull-right inputcolor iptSize"
115 115
                     style="border-color: #dedede;color: #93989e;" type="text" ng-model="fileData.wxincident.contacts"
116 116
                     placeholder="" />
117
+                  <button style="position:absolute;right:0;padding:2px 4px;" ng-click="fileData.wxincident.contacts = undefined" class="btn btn-default">
118
+                      <span class="glyphicon glyphicon-trash"></span>
119
+                  </button>
117 120
                 </div>
118 121
               </div>
119 122
               <div class="form-group incidentsearch">
120 123
                 <div>
121
-                  <div class="control-label pull-left margin-top-5 margin-right-5">
124
+                  <div class="control-label pull-left margin-top-5">
122 125
                     报修时间:
123 126
                   </div>
124
-                  <input type="text" class="form-control pull-right incidentsearchsize iptSize"
127
+                  <input style="margin-right:24px;width: 60%;" type="text" class="form-control pull-right incidentsearchsize iptSize"
125 128
                     style="border-color: #dedede;" datepicker-popuptime="yyyy-MM-dd"
126 129
                     ng-model="fileData.wxincident.createTime" max-date="searchkeys.createTimeEnd" is-open="startOpened"
127 130
                     hour-time="true" ng-init="startOpened = false" close-text="关闭" ng-click="startOpen($event)"
@@ -131,7 +134,7 @@
131 134
               <div class="form-group incidentsearch">
132 135
                 <span class="panel-title text-dark pull-left">至</span>
133 136
                 <div>
134
-                  <input type="text" class="form-control selectzise pull-right incidentsearchsize iptSize"
137
+                  <input style="margin-right:24px;width: 60%;" type="text" class="form-control selectzise pull-right incidentsearchsize iptSize"
135 138
                     style="border-color: #dedede;" datepicker-popuptime="yyyy-MM-dd"
136 139
                     ng-model="fileData.wxincident.createTimeEnd" hour-time="true" min-date="searchkeys.createTime"
137 140
                     is-open="endOpened" ng-init="endOpened = false" close-text="关闭" ng-click="endOpen($event)"
@@ -140,17 +143,20 @@
140 143
               </div>
141 144
               <div class="form-group incidentsearch">
142 145
                 <div>
143
-                  <div class="control-label pull-left margin-top-5 margin-right-5">
146
+                  <div class="control-label pull-left margin-top-5">
144 147
                     联系电话:
145 148
                   </div>
146
-                  <input class="form-control pull-right inputcolor iptSize"
149
+                  <input style="margin-right:24px;width: 60%;" class="form-control pull-right inputcolor iptSize"
147 150
                     style="border-color: #dedede;color: #93989e;" type="text"
148 151
                     ng-model="fileData.wxincident.contactsInformation" placeholder="" />
152
+                  <button style="position:absolute;right:0;padding:2px 4px;" ng-click="fileData.wxincident.contactsInformation = undefined" class="btn btn-default">
153
+                      <span class="glyphicon glyphicon-trash"></span>
154
+                  </button>
149 155
                 </div>
150 156
               </div>
151 157
               <div class="form-group incidentsearch ksInput" ng-show="repairMain.valueconfig == 2">
152 158
                 <div>
153
-                  <div class="control-label pull-left margin-top-5 margin-right-5">
159
+                  <div class="control-label pull-left margin-top-5">
154 160
                     报修科室:
155 161
                   </div>
156 162
                   <div class="ks-wrap pull-right">
@@ -163,8 +169,8 @@
163 169
                 </div>
164 170
               </div>
165 171
               <div class="form-group incidentsearch">
166
-                <div class="control-label pull-left margin-top-5 margin-right-5">来源:</div>
167
-                <ui-select class="pull-right iptSize" ng-model="seiminObj.sourceType"
172
+                <div class="control-label pull-left margin-top-5">来源:</div>
173
+                <ui-select style="margin-right:24px;width: 60%;" class="pull-right iptSize" ng-model="seiminObj.sourceType"
168 174
                     theme="bootstrap" ng-change="changeSourceType(seiminObj.sourceType)">
169 175
                     <ui-select-match placeholder="请选择来源">
170 176
                         {{$select.selected.name}}
@@ -173,6 +179,9 @@
173 179
                         <div ng-bind-html="item.name | highlight: $select.search"></div>
174 180
                     </ui-select-choices>
175 181
                 </ui-select>
182
+                <button style="position:absolute;right:0;padding:2px 4px;" ng-click="seiminObj.sourceType = undefined;fileData.wxincident.sourceType = undefined;" class="btn btn-default">
183
+                  <span class="glyphicon glyphicon-trash"></span>
184
+                </button>
176 185
             </div>
177 186
             </form>
178 187
           </div>

+ 12 - 12
assets/views/incident/list.html

@@ -83,7 +83,7 @@
83 83
                         <div class="form-group incidentsearch" ng-if="repairMain.valueconfig == 1">
84 84
                             <div class="">
85 85
                                 <div class="control-label pull-left margin-top-5">报修人:</div>
86
-                                <ui-select style="margin-right:24px;" class="pull-right selectzise wt_width1 wt_width3"
86
+                                <ui-select style="margin-right:24px;width: 60%;" class="pull-right selectzise wt_width1 wt_width3"
87 87
                                     ng-model="searchkeys.requester" theme="bootstrap">
88 88
                                     <ui-select-match placeholder="请选择">
89 89
                                         {{$select.selected.name}}
@@ -110,7 +110,7 @@
110 110
                         <div class="form-group incidentsearch" ng-if="repairMain.valueconfig == 1">
111 111
                             <div class="">
112 112
                                 <div class="control-label pull-left margin-top-5">联系电话:</div>
113
-                                <input style="margin-right:24px;" class=" inputcolor wt_width1 wt_width3 pull-right" type="text"
113
+                                <input style="margin-right:24px;width: 60%;" class=" inputcolor wt_width1 wt_width3 pull-right" type="text"
114 114
                                     ng-model="searchkeys.requester.mphone" placeholder="" />
115 115
                                 <button style="position:absolute;right:0;padding:2px 4px;" ng-click="searchkeys.requester.mphone = undefined" class="btn btn-default">
116 116
                                     <span class="glyphicon glyphicon-trash"></span>
@@ -135,7 +135,7 @@
135 135
                         <div class="form-group incidentsearch">
136 136
                             <!-- <div class="pull-right"> -->
137 137
                             <div class="control-label pull-left margin-top-5 ">区域:</div>
138
-                            <ui-select style="margin-right:24px;" class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.area" theme="bootstrap"
138
+                            <ui-select style="margin-right:24px;width: 60%;" class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.area" theme="bootstrap"
139 139
                                 ng-change="onChangearea(searchkeys)">
140 140
                                 <ui-select-match placeholder="请选择">
141 141
                                     {{$select.selected.area}}
@@ -152,7 +152,7 @@
152 152
                         <div class="form-group incidentsearch">
153 153
                             <!-- <div class="pull-right"> -->
154 154
                             <div class="control-label pull-left margin-top-5">地点:</div>
155
-                            <ui-select style="margin-right:24px;" class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.place" theme="bootstrap"
155
+                            <ui-select style="margin-right:24px;width: 60%;" class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.place" theme="bootstrap"
156 156
                                 ng-change="onChangeplace(key)">
157 157
                                 <ui-select-match placeholder="请选择">
158 158
                                     {{$select.selected.place}}
@@ -168,7 +168,7 @@
168 168
                         </div>
169 169
                         <div class="form-group incidentsearch">
170 170
                             <div class="control-label pull-left margin-top-5">状态:</div>
171
-                            <ui-select style="margin-right:24px;" ng-disabled="isDisabledState" class="pull-right selectzise wt_width1 wt_width3" ng-model="othcode.state"
171
+                            <ui-select style="margin-right:24px;width: 60%;" ng-disabled="isDisabledState" class="pull-right selectzise wt_width1 wt_width3" ng-model="othcode.state"
172 172
                                 theme="bootstrap">
173 173
                                 <ui-select-match placeholder="请选择">
174 174
                                     {{$select.selected.name}}
@@ -183,7 +183,7 @@
183 183
                         </div>
184 184
                         <div class="form-group incidentsearch">
185 185
                             <div class="control-label pull-left margin-top-5">事件分类:</div>
186
-                            <multi-select-tree style="margin-right:24px;" data-default-label="请选择" class="pull-right selectzise wt_width1 wt_width3"
186
+                            <multi-select-tree style="margin-right:24px;width: 60%;" data-default-label="请选择" class="pull-right selectzise wt_width1 wt_width3"
187 187
                                 ng-model="cifilter_classic" data-input-model="select_treedata"
188 188
                                 data-output-model="cifilter_classics" theme="bootstrap" multi-select="false"
189 189
                                 data-callback="onFilterCallback(item)" data-select-only-leafs="false"
@@ -195,7 +195,7 @@
195 195
                         </div>
196 196
                         <div class="form-group incidentsearch">
197 197
                             <div class="control-label pull-left margin-top-5 ">受理人:</div>
198
-                            <ui-select style="margin-right:24px;" class="pull-right selectzise wt_width1 wt_width3"
198
+                            <ui-select style="margin-right:24px;width: 60%;" class="pull-right selectzise wt_width1 wt_width3"
199 199
                                 ng-model="searchkeys.acceptUser" theme="bootstrap">
200 200
                                 <ui-select-match placeholder="请选择">
201 201
                                     {{$select.selected.name}}
@@ -211,7 +211,7 @@
211 211
                         </div>
212 212
                         <div class="form-group incidentsearch">
213 213
                             <div class="control-label pull-left margin-top-5">处理人:</div>
214
-                            <ui-select style="margin-right:24px;" class="pull-right selectzise wt_width1 wt_width3"
214
+                            <ui-select style="margin-right:24px;width: 60%;" class="pull-right selectzise wt_width1 wt_width3"
215 215
                                 ng-model="searchkeys.handlingPersonnelUser" theme="bootstrap">
216 216
                                 <ui-select-match placeholder="请选择">
217 217
                                     {{$select.selected.name}}
@@ -228,7 +228,7 @@
228 228
                         <div class="form-group incidentsearch">
229 229
                             <div class="">
230 230
                                 <div class="control-label pull-left margin-top-5">登记时间:</div>
231
-                                <input style="margin-right:24px;" type="text" class=" incidentsearchsize wt_width5"
231
+                                <input style="margin-right:24px;width: 60%;" type="text" class=" incidentsearchsize wt_width5"
232 232
                                     datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDate"
233 233
                                     max-date="searchkeys.acceptDateEnd" is-open="startOpened" hour-time=true
234 234
                                     ng-init="startOpened = false" close-text="关闭" ng-click="startOpen($event)"
@@ -238,7 +238,7 @@
238 238
                         <div class="form-group incidentsearch">
239 239
                             <div class="">
240 240
                                 <div class="control-label pull-left margin-top-5">至</div>
241
-                                <input style="margin-right:24px;" type="text" class=" selectzise incidentsearchsize wt_width5"
241
+                                <input style="margin-right:24px;width: 60%;" type="text" class=" selectzise incidentsearchsize wt_width5"
242 242
                                     datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDateEnd" hour-time=true
243 243
                                     min-date="searchkeys.acceptDate" is-open="endOpened" ng-init="endOpened = false"
244 244
                                     close-text="关闭" ng-click="endOpen($event)" placeholder="" />
@@ -247,7 +247,7 @@
247 247
                         <div class="form-group incidentsearch">
248 248
                             <div>
249 249
                                 <div class="control-label pull-left margin-top-5">事件单号:</div>
250
-                                <input style="margin-right:24px;" class="f inputcolor wt_width1 wt_width3 pull-right" type="text"
250
+                                <input style="margin-right:24px;width: 60%;" class="f inputcolor wt_width1 wt_width3 pull-right" type="text"
251 251
                                     ng-model="searchkeys.incidentsign" placeholder="" />
252 252
                                 <button style="position:absolute;right:0;padding:2px 4px;" ng-click="searchkeys.incidentsign = undefined" class="btn btn-default">
253 253
                                     <span class="glyphicon glyphicon-trash"></span>
@@ -256,7 +256,7 @@
256 256
                         </div>
257 257
                         <div class="form-group incidentsearch">
258 258
                             <div class="control-label pull-left margin-top-5">是否逾期:</div>
259
-                            <ui-select style="margin-right:24px;" ng-change="selectTypeChange()" ng-model="searchkeys.selectType" class="pull-right selectzise wt_width1 wt_width3" theme="bootstrap">
259
+                            <ui-select style="margin-right:24px;width: 60%;" ng-change="selectTypeChange()" ng-model="searchkeys.selectType" class="pull-right selectzise wt_width1 wt_width3" theme="bootstrap">
260 260
                                 <ui-select-match placeholder="请选择">
261 261
                                     <span ng-bind="$select.selected.name"></span>
262 262
                                 </ui-select-match>