|
@@ -1,6 +1,6 @@
|
1
|
1
|
'use strict';
|
2
|
2
|
|
3
|
|
-app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$timeout", "$interval", "$modal", "SweetAlert", "uiGridConstants", "uiGridGroupingConstants", "Restangular", "api_bpm_data", "api_text", "api_user_data", function($scope, i18nService, $rootScope, $state, $timeout, $interval, $modal, SweetAlert, uiGridConstants, uiGridGroupingConstants, Restangular, api_bpm_data, api_text, api_user_data) {
|
|
3
|
+app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$timeout", "$interval", "$modal", "SweetAlert", "uiGridConstants", "uiGridGroupingConstants", "Restangular", "api_bpm_data", "api_text", "api_user_data", function ($scope, i18nService, $rootScope, $state, $timeout, $interval, $modal, SweetAlert, uiGridConstants, uiGridGroupingConstants, Restangular, api_bpm_data, api_text, api_user_data) {
|
4
|
4
|
$scope.langs = i18nService.getAllLangs();
|
5
|
5
|
$scope.lang = 'zh-cn';
|
6
|
6
|
i18nService.setCurrentLang($scope.lang);
|
|
@@ -31,126 +31,126 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
31
|
31
|
$scope.gridOptions.rowTemplate = "<div ng-click=\"lookFunction(row)\" ng-repeat=\"(colRenderIndex, col) in colContainer.renderedColumns track by col.uid\" ui-grid-one-bind-id-grid=\"rowRenderIndex + '-' + col.uid + '-cell'\" class=\"ui-grid-cell\" ng-class=\"{ 'ui-grid-row-header-cell': col.isRowHeader }\" role=\"{{col.isRowHeader ? 'rowheader' : 'gridcell'}}\" ui-grid-cell></div>";
|
32
|
32
|
|
33
|
33
|
|
34
|
|
- $scope.gridOptions.rowIdentity = function(row) {
|
|
34
|
+ $scope.gridOptions.rowIdentity = function (row) {
|
35
|
35
|
return row.id;
|
36
|
36
|
};
|
37
|
|
- $scope.gridOptions.getRowIdentity = function(row) {
|
|
37
|
+ $scope.gridOptions.getRowIdentity = function (row) {
|
38
|
38
|
return row.id;
|
39
|
39
|
};
|
40
|
40
|
|
41
|
41
|
$scope.gridOptions.columnDefs = [{
|
42
|
|
- name: 'item',
|
43
|
|
- displayName: '序号',
|
44
|
|
- width: 50,
|
45
|
|
- cellTemplate: '<div>' +
|
46
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
47
|
|
- '</div>'
|
48
|
|
- }, {
|
49
|
|
- name: 'incidentDescription',
|
50
|
|
- displayName: '事件描述',
|
51
|
|
- width: '20%',
|
52
|
|
- cellTemplate: '<div>' +
|
53
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.incidentDescription}}</div>' +
|
54
|
|
- '</div>'
|
55
|
|
- },
|
56
|
|
- {
|
57
|
|
- name: 'address',
|
58
|
|
- displayName: '地点',
|
59
|
|
- width: '10%',
|
60
|
|
- cellTemplate: '<div>' +
|
61
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.place.place||""}} {{row.entity.address}}</div>' +
|
62
|
|
- '</div>'
|
63
|
|
- }, {
|
64
|
|
- name: 'contacts',
|
65
|
|
- displayName: '联系人',
|
66
|
|
- width: '10%',
|
67
|
|
- cellTemplate: '<div>' +
|
68
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.contacts}}</div>' +
|
69
|
|
- '</div>'
|
70
|
|
- }, , {
|
71
|
|
- name: 'contactsInformation',
|
72
|
|
- displayName: '联系电话',
|
73
|
|
- width: '10%',
|
74
|
|
- cellTemplate: '<div>' +
|
75
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.contactsInformation}}</div>' +
|
76
|
|
- '</div>'
|
77
|
|
- }, {
|
78
|
|
- name: 'requester.name',
|
79
|
|
- displayName: '报修人',
|
80
|
|
- width: '10%',
|
81
|
|
- cellTemplate: '<div>' +
|
82
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.requester.name}}</div>' +
|
83
|
|
- '</div>'
|
84
|
|
- }, {
|
85
|
|
- name: 'state',
|
86
|
|
- displayName: '状态',
|
87
|
|
- width: '10%',
|
88
|
|
- cellTemplate: '<div>' +
|
89
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.state}}</div>' +
|
90
|
|
- '</div>'
|
91
|
|
- }, {
|
92
|
|
- name: 'createTime',
|
93
|
|
- displayName: '创建时间',
|
94
|
|
- width: '15%',
|
95
|
|
- cellTemplate: '<div>' +
|
96
|
|
- '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.createTime}}</div>' +
|
97
|
|
- '</div>'
|
98
|
|
- // },
|
99
|
|
- // {
|
100
|
|
- // name: '生成事件',
|
101
|
|
- // width: 80,
|
102
|
|
- // cellTemplate: '<div class="links cl-effect-1">' +
|
103
|
|
- // '<a ng-click="grid.appScope.selectRowFunction(row.entity)" tooltip="新建事件" tooltip-placement="left"><i class="fa fa-pencil-square-o"></i></a>' +
|
104
|
|
- // '</div>'
|
105
|
|
- },
|
106
|
|
- { name: '操作', cellTemplate: '<wechatoperator item="row.entity" colobject="col">', enableFiltering: false }
|
|
42
|
+ name: 'item',
|
|
43
|
+ displayName: '序号',
|
|
44
|
+ width: 50,
|
|
45
|
+ cellTemplate: '<div>' +
|
|
46
|
+ '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
|
47
|
+ '</div>'
|
|
48
|
+ }, {
|
|
49
|
+ name: 'incidentDescription',
|
|
50
|
+ displayName: '事件描述',
|
|
51
|
+ width: '20%',
|
|
52
|
+ cellTemplate: '<div>' +
|
|
53
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.incidentDescription}}</div>' +
|
|
54
|
+ '</div>'
|
|
55
|
+ },
|
|
56
|
+ {
|
|
57
|
+ name: 'address',
|
|
58
|
+ displayName: '地点',
|
|
59
|
+ width: '10%',
|
|
60
|
+ cellTemplate: '<div>' +
|
|
61
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.place.place||""}} {{row.entity.address}}</div>' +
|
|
62
|
+ '</div>'
|
|
63
|
+ }, {
|
|
64
|
+ name: 'contacts',
|
|
65
|
+ displayName: '联系人',
|
|
66
|
+ width: '10%',
|
|
67
|
+ cellTemplate: '<div>' +
|
|
68
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.contacts}}</div>' +
|
|
69
|
+ '</div>'
|
|
70
|
+ }, , {
|
|
71
|
+ name: 'contactsInformation',
|
|
72
|
+ displayName: '联系电话',
|
|
73
|
+ width: '10%',
|
|
74
|
+ cellTemplate: '<div>' +
|
|
75
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.contactsInformation}}</div>' +
|
|
76
|
+ '</div>'
|
|
77
|
+ }, {
|
|
78
|
+ name: 'requester.name',
|
|
79
|
+ displayName: '报修人',
|
|
80
|
+ width: '10%',
|
|
81
|
+ cellTemplate: '<div>' +
|
|
82
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.requester.name}}</div>' +
|
|
83
|
+ '</div>'
|
|
84
|
+ }, {
|
|
85
|
+ name: 'state',
|
|
86
|
+ displayName: '状态',
|
|
87
|
+ width: '10%',
|
|
88
|
+ cellTemplate: '<div>' +
|
|
89
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.state}}</div>' +
|
|
90
|
+ '</div>'
|
|
91
|
+ }, {
|
|
92
|
+ name: 'createTime',
|
|
93
|
+ displayName: '创建时间',
|
|
94
|
+ width: '15%',
|
|
95
|
+ cellTemplate: '<div>' +
|
|
96
|
+ '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center" >{{row.entity.createTime}}</div>' +
|
|
97
|
+ '</div>'
|
|
98
|
+ // },
|
|
99
|
+ // {
|
|
100
|
+ // name: '生成事件',
|
|
101
|
+ // width: 80,
|
|
102
|
+ // cellTemplate: '<div class="links cl-effect-1">' +
|
|
103
|
+ // '<a ng-click="grid.appScope.selectRowFunction(row.entity)" tooltip="新建事件" tooltip-placement="left"><i class="fa fa-pencil-square-o"></i></a>' +
|
|
104
|
+ // '</div>'
|
|
105
|
+ },
|
|
106
|
+ { name: '操作', cellTemplate: '<wechatoperator item="row.entity" colobject="col">', enableFiltering: false }
|
107
|
107
|
];
|
108
|
108
|
$scope.value = 10;
|
109
|
|
- $scope.decrement = function() {
|
|
109
|
+ $scope.decrement = function () {
|
110
|
110
|
$scope.value = $scope.value - 1;
|
111
|
111
|
};
|
112
|
|
- $scope.searchstate = '未转换';
|
|
112
|
+ // $scope.searchstate = '未转换';
|
113
|
113
|
$scope.searchkeys = {};
|
114
|
|
- $scope.onChange = function(searchType) {
|
|
114
|
+ $scope.onChange = function (searchType) {
|
115
|
115
|
$scope.searchstate = searchType;
|
116
|
116
|
defaultFilterData = $scope.memoryfilterData;
|
117
|
117
|
defaultFilterData.wxincident['state'] = searchType;
|
118
|
118
|
// sessionStorage.searchchart.state = searchType;
|
119
|
119
|
$scope.refreshData('expand-right', defaultFilterData);
|
120
|
120
|
}
|
121
|
|
- $scope.record = function() {
|
122
|
|
- api_text.record($rootScope.takes).then(function(data) {
|
|
121
|
+ $scope.record = function () {
|
|
122
|
+ api_text.record($rootScope.takes).then(function (data) {
|
123
|
123
|
if (data.errno == 0) {
|
124
|
124
|
$scope.busy = false;
|
125
|
125
|
}
|
126
|
126
|
})
|
127
|
127
|
};
|
128
|
128
|
$scope.parameters = null;
|
129
|
|
- $scope.open = function($event) {
|
|
129
|
+ $scope.open = function ($event) {
|
130
|
130
|
$event.preventDefault();
|
131
|
131
|
$event.stopPropagation();
|
132
|
132
|
|
133
|
133
|
$scope.opened = !$scope.opened;
|
134
|
134
|
};
|
135
|
|
- $scope.endOpen = function($event) {
|
|
135
|
+ $scope.endOpen = function ($event) {
|
136
|
136
|
$event.preventDefault();
|
137
|
137
|
$event.stopPropagation();
|
138
|
138
|
$scope.startOpened = false;
|
139
|
139
|
$scope.endOpened = !$scope.endOpened;
|
140
|
140
|
};
|
141
|
|
- $scope.startOpen = function($event) {
|
|
141
|
+ $scope.startOpen = function ($event) {
|
142
|
142
|
$event.preventDefault();
|
143
|
143
|
$event.stopPropagation();
|
144
|
144
|
$scope.endOpened = false;
|
145
|
145
|
$scope.startOpened = !$scope.startOpened;
|
146
|
146
|
};
|
147
|
147
|
|
148
|
|
- var getUser = function(fieldatas) {
|
149
|
|
- api_user_data.fetchDataList('requester', fieldatas).then(function(data) {
|
|
148
|
+ var getUser = function (fieldatas) {
|
|
149
|
+ api_user_data.fetchDataList('requester', fieldatas).then(function (data) {
|
150
|
150
|
$scope.requester = data.list;
|
151
|
151
|
});
|
152
|
152
|
}
|
153
|
|
- $scope.onChangehandling = function(key) {
|
|
153
|
+ $scope.onChangehandling = function (key) {
|
154
|
154
|
var filuser = {
|
155
|
155
|
"idx": 0,
|
156
|
156
|
"sum": 10,
|
|
@@ -159,7 +159,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
159
|
159
|
getUser(filuser);
|
160
|
160
|
}
|
161
|
161
|
getUser({ "idx": 0, "sum": 10 });
|
162
|
|
- $scope.chiceIncident = function(item) {
|
|
162
|
+ $scope.chiceIncident = function (item) {
|
163
|
163
|
var fildata = {};
|
164
|
164
|
if (sessionStorage.searchincident) {
|
165
|
165
|
fildata = JSON.parse(sessionStorage.getItem("searchchart"));
|
|
@@ -168,23 +168,24 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
168
|
168
|
} else {
|
169
|
169
|
fildata = defaultFilterData;
|
170
|
170
|
}
|
171
|
|
- if (!fildata.incident) {
|
172
|
|
- fildata['wxincident'] = {};
|
173
|
|
- }
|
|
171
|
+ // if (!fildata.incident) {
|
|
172
|
+ // fildata['wxincident'] = {};
|
|
173
|
+ // }
|
174
|
174
|
if (item.createTime) {
|
175
|
175
|
item.createTime = moment(item.createTime).format('YYYY-MM-DD HH:mm:ss');
|
176
|
176
|
}
|
177
|
177
|
if (item.createTimeEnd) {
|
178
|
178
|
item.createTimeEnd = moment(new Date(item.createTimeEnd).getTime() + 86399999).format('YYYY-MM-DD HH:mm:ss');
|
179
|
179
|
}
|
180
|
|
- angular.extend(fildata.wxincident, item)
|
|
180
|
+ // angular.extend(fildata.wxincident, item)
|
181
|
181
|
sessionStorage['searchchart'] = angular.copy(JSON.stringify(fildata));
|
|
182
|
+ console.log(sessionStorage['searchchart'])
|
182
|
183
|
$scope.memoryfilterData = fildata;
|
183
|
184
|
$scope.refreshData('expand-right', fildata);
|
184
|
185
|
}
|
185
|
|
- $scope.gridOptions.onRegisterApi = function(gridApi) {
|
|
186
|
+ $scope.gridOptions.onRegisterApi = function (gridApi) {
|
186
|
187
|
$scope.gridApi = gridApi;
|
187
|
|
- gridApi.pagination.on.paginationChanged($scope, function(newPage, pageSize) {
|
|
188
|
+ gridApi.pagination.on.paginationChanged($scope, function (newPage, pageSize) {
|
188
|
189
|
var filtersData = $scope.memoryfilterData;
|
189
|
190
|
filtersData.idx = newPage - 1;
|
190
|
191
|
filtersData.sum = pageSize;
|
|
@@ -199,40 +200,48 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
199
|
200
|
}
|
200
|
201
|
|
201
|
202
|
};
|
202
|
|
- $scope.memoryfilterData = defaultFilterData = {
|
203
|
|
- // "assignee":$rootScope.user.id,
|
204
|
|
- // "candidateGroups":$rootScope.user.group[0].id,
|
205
|
|
- "idx": 0,
|
206
|
|
- "wxincident": { "state": "未转换" },
|
207
|
|
- "sum": mun
|
208
|
|
- };
|
|
203
|
+ var searchchartObj = JSON.parse(sessionStorage.getItem("searchchart"));
|
|
204
|
+ if (searchchartObj) {
|
|
205
|
+ $scope.memoryfilterData = defaultFilterData = searchchartObj;
|
|
206
|
+ $scope.searchstate = searchchartObj.wxincident.state;
|
|
207
|
+ } else {
|
|
208
|
+ $scope.memoryfilterData = defaultFilterData = {
|
|
209
|
+ // "assignee":$rootScope.user.id,
|
|
210
|
+ // "candidateGroups":$rootScope.user.group[0].id,
|
|
211
|
+ "idx": 0,
|
|
212
|
+ "wxincident": { "state": "未转换" },
|
|
213
|
+ "sum": mun
|
|
214
|
+ };
|
|
215
|
+ $scope.searchstate = $scope.memoryfilterData.wxincident.state;
|
|
216
|
+ }
|
209
|
217
|
|
210
|
|
- $scope.selectRowFunction = function(data) {
|
|
218
|
+
|
|
219
|
+ $scope.selectRowFunction = function (data) {
|
211
|
220
|
var formdata = {
|
212
|
|
- 'model': {
|
213
|
|
- 'incident': {
|
214
|
|
- 'requester': data.requester,
|
215
|
|
- 'area': data.area,
|
216
|
|
- 'place': data.place,
|
217
|
|
- 'houseNumber': data.address,
|
218
|
|
- 'contacts': data.contacts,
|
219
|
|
- 'contactsInformation': data.contactsInformation,
|
220
|
|
- // 'category': data.wxIncidentClassifyDTO.category,
|
221
|
|
- 'description': data.incidentDescription,
|
222
|
|
- 'source': { 'id': 4 },
|
223
|
|
- 'sourceType': data.sourceType,
|
224
|
|
- 'fileUrl': data.fileUrl
|
225
|
|
- },
|
226
|
|
- 'requestershow': data.requester,
|
227
|
|
- 'flow': data.id
|
228
|
|
- }
|
|
221
|
+ 'model': {
|
|
222
|
+ 'incident': {
|
|
223
|
+ 'requester': data.requester,
|
|
224
|
+ 'area': data.area,
|
|
225
|
+ 'place': data.place,
|
|
226
|
+ 'houseNumber': data.address,
|
|
227
|
+ 'contacts': data.contacts,
|
|
228
|
+ 'contactsInformation': data.contactsInformation,
|
|
229
|
+ // 'category': data.wxIncidentClassifyDTO.category,
|
|
230
|
+ 'description': data.incidentDescription,
|
|
231
|
+ 'source': { 'id': 4 },
|
|
232
|
+ 'sourceType': data.sourceType,
|
|
233
|
+ 'fileUrl': data.fileUrl
|
|
234
|
+ },
|
|
235
|
+ 'requestershow': data.requester,
|
|
236
|
+ 'flow': data.id
|
229
|
237
|
}
|
230
|
|
- // if (data.requester.requesterTypeDTO && data.requester.requesterTypeDTO.id == 2) {
|
231
|
|
- // angular.extend(formdata.model.incident, { 'priority': { 'id': 2 } });
|
232
|
|
- // }
|
|
238
|
+ }
|
|
239
|
+ // if (data.requester.requesterTypeDTO && data.requester.requesterTypeDTO.id == 2) {
|
|
240
|
+ // angular.extend(formdata.model.incident, { 'priority': { 'id': 2 } });
|
|
241
|
+ // }
|
233
|
242
|
$state.go('app.incident.chart', { 'model': JSON.stringify(formdata) });
|
234
|
243
|
};
|
235
|
|
- $scope.lookFunction = function(data) {
|
|
244
|
+ $scope.lookFunction = function (data) {
|
236
|
245
|
// var data = row.entity;
|
237
|
246
|
var formdata = {
|
238
|
247
|
'model': {
|
|
@@ -267,7 +276,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
267
|
276
|
// $state.go('app.detail', { formKey:'statusform', pdKey:'incident', dataId: data.id,processInstanceId: data.processInstanceId});
|
268
|
277
|
|
269
|
278
|
// };
|
270
|
|
- $scope.onDblClick = function(row) {
|
|
279
|
+ $scope.onDblClick = function (row) {
|
271
|
280
|
var data = row.entity;
|
272
|
281
|
var formdata = {
|
273
|
282
|
'model': {
|
|
@@ -310,7 +319,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
310
|
319
|
"sum": mun
|
311
|
320
|
};
|
312
|
321
|
$scope.ldloading = {};
|
313
|
|
- $scope.refreshData = function(style, filterData) {
|
|
322
|
+ $scope.refreshData = function (style, filterData) {
|
314
|
323
|
$scope.ldloading[style.replace('-', '_')] = true;
|
315
|
324
|
// if (angular.isUndefined(filterData)) {
|
316
|
325
|
// filterData = defaultFilterData;
|
|
@@ -321,7 +330,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
321
|
330
|
$scope.searchkeys = filterData.wxincident;
|
322
|
331
|
// $scope.searchstate = filterData.state;
|
323
|
332
|
$scope.gridOptions.paginationCurrentPage = 1 + filterData.idx;
|
324
|
|
- $scope.searchstate = filterData.wxincident.searchType;
|
|
333
|
+ $scope.searchstate = filterData.wxincident.state;
|
325
|
334
|
} else {
|
326
|
335
|
filterData = defaultFilterData;
|
327
|
336
|
}
|
|
@@ -329,7 +338,8 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
329
|
338
|
$scope.myData = [];
|
330
|
339
|
$scope.gridOptions['sum'] = filterData.sum;
|
331
|
340
|
sessionStorage['searchchart'] = angular.copy(JSON.stringify(filterData));
|
332
|
|
- api_bpm_data.fetchDataList("wxincident", filterData).then(function(data) {
|
|
341
|
+ console.log(sessionStorage['searchchart'])
|
|
342
|
+ api_bpm_data.fetchDataList("wxincident", filterData).then(function (data) {
|
333
|
343
|
var myData = Restangular.stripRestangular(data);
|
334
|
344
|
$scope.gridOptions['totalItems'] = myData.totalNum;
|
335
|
345
|
$scope.myData = myData.list;
|
|
@@ -338,28 +348,28 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
|
338
|
348
|
}
|
339
|
349
|
// console.log($scope.myData)
|
340
|
350
|
$scope.ldloading[style.replace('-', '_')] = false;
|
341
|
|
- }, function() {
|
|
351
|
+ }, function () {
|
342
|
352
|
$scope.ldloading[style.replace('-', '_')] = false;
|
343
|
353
|
});
|
344
|
354
|
};
|
345
|
355
|
|
346
|
356
|
$scope.refreshData('expand-right');
|
347
|
357
|
}]);
|
348
|
|
-app.controller('Wechatoperator', ['$rootScope', '$http', '$scope', '$modal', function($rootScope, $http, $scope, $modal) {
|
|
358
|
+app.controller('Wechatoperator', ['$rootScope', '$http', '$scope', '$modal', function ($rootScope, $http, $scope, $modal) {
|
349
|
359
|
$scope.handle = false;
|
350
|
360
|
if ($scope.item.state == "未转换") {
|
351
|
361
|
$scope.handle = true;
|
352
|
362
|
} else { $scope.handle = false; }
|
353
|
|
- $scope.edit = function() {
|
|
363
|
+ $scope.edit = function () {
|
354
|
364
|
$scope.colobject.grid.appScope.selectRowFunction($scope.item);
|
355
|
365
|
$scope.doEdit($scope.item.id);
|
356
|
366
|
}
|
357
|
|
- $scope.look = function() {
|
|
367
|
+ $scope.look = function () {
|
358
|
368
|
$scope.colobject.grid.appScope.lookFunction($scope.item);
|
359
|
369
|
$scope.doEdit($scope.item.id);
|
360
|
370
|
}
|
361
|
371
|
}]);
|
362
|
|
-app.directive('wechatoperator', function() {
|
|
372
|
+app.directive('wechatoperator', function () {
|
363
|
373
|
return {
|
364
|
374
|
restrict: 'E',
|
365
|
375
|
scope: {
|