优化
This commit is contained in:
@@ -74,7 +74,7 @@ public class DevicefaultcaeServiceImpl implements DevicefaultcaeService {
|
||||
map.put("classIds", classIds);
|
||||
}
|
||||
|
||||
JSONObject json = WQL.getWO("EM_DEVICEFAULTCAE01").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "dept.name,file.device_code");
|
||||
JSONObject json = WQL.getWO("EM_DEVICEFAULTCAE01").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "dept_name,device_code");
|
||||
/* // 处理平均故障间隔时间 && 平均故障修复时间*/
|
||||
JSONArray content = json.getJSONArray("content");
|
||||
for (int i = 0; i < content.size(); i++) {
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
MAX(file.device_code) AS device_code,
|
||||
MAX(file.device_model) AS device_model,
|
||||
re.devicerecord_id,
|
||||
file.device_name,
|
||||
file.extend_code
|
||||
MAX( file.device_name ) AS device_name,
|
||||
MAX( file.extend_code ) AS extend_code
|
||||
FROM
|
||||
EM_BI_DeviceRepairRequest re
|
||||
LEFT JOIN EM_BI_EquipmentFile file ON file.devicerecord_id = re.devicerecord_id
|
||||
@@ -90,6 +90,7 @@
|
||||
OPTION 输入.end_time <> ""
|
||||
re.fault_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
GROUP BY re.devicerecord_id
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -142,12 +142,6 @@ export default {
|
||||
user: 'user'
|
||||
})
|
||||
},
|
||||
created() {
|
||||
this.getDepts()
|
||||
this.query.use_id = this.user.dept.id
|
||||
this.getSupDepts(this.user.dept.id)
|
||||
this.crud.toQuery()
|
||||
},
|
||||
methods: {
|
||||
clickChange(item) {
|
||||
this.tableRadio = item
|
||||
@@ -175,7 +169,10 @@ export default {
|
||||
this.$refs.table.clearSelection()
|
||||
},
|
||||
open() {
|
||||
this.crud.resetQuery(true)
|
||||
this.getDepts()
|
||||
this.query.use_id = this.user.dept.id
|
||||
this.getSupDepts(this.user.dept.id)
|
||||
this.crud.toQuery()
|
||||
},
|
||||
close() {
|
||||
this.crud.resetQuery(false)
|
||||
|
||||
Reference in New Issue
Block a user