优化
This commit is contained in:
@@ -74,7 +74,7 @@ public class DevicefaultcaeServiceImpl implements DevicefaultcaeService {
|
|||||||
map.put("classIds", classIds);
|
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");
|
JSONArray content = json.getJSONArray("content");
|
||||||
for (int i = 0; i < content.size(); i++) {
|
for (int i = 0; i < content.size(); i++) {
|
||||||
|
|||||||
@@ -55,8 +55,8 @@
|
|||||||
MAX(file.device_code) AS device_code,
|
MAX(file.device_code) AS device_code,
|
||||||
MAX(file.device_model) AS device_model,
|
MAX(file.device_model) AS device_model,
|
||||||
re.devicerecord_id,
|
re.devicerecord_id,
|
||||||
file.device_name,
|
MAX( file.device_name ) AS device_name,
|
||||||
file.extend_code
|
MAX( file.extend_code ) AS extend_code
|
||||||
FROM
|
FROM
|
||||||
EM_BI_DeviceRepairRequest re
|
EM_BI_DeviceRepairRequest re
|
||||||
LEFT JOIN EM_BI_EquipmentFile file ON file.devicerecord_id = re.devicerecord_id
|
LEFT JOIN EM_BI_EquipmentFile file ON file.devicerecord_id = re.devicerecord_id
|
||||||
@@ -90,6 +90,7 @@
|
|||||||
OPTION 输入.end_time <> ""
|
OPTION 输入.end_time <> ""
|
||||||
re.fault_time <= 输入.end_time
|
re.fault_time <= 输入.end_time
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
GROUP BY re.devicerecord_id
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDPAGEQUERY
|
ENDPAGEQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|||||||
@@ -142,12 +142,6 @@ export default {
|
|||||||
user: 'user'
|
user: 'user'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.getDepts()
|
|
||||||
this.query.use_id = this.user.dept.id
|
|
||||||
this.getSupDepts(this.user.dept.id)
|
|
||||||
this.crud.toQuery()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
clickChange(item) {
|
clickChange(item) {
|
||||||
this.tableRadio = item
|
this.tableRadio = item
|
||||||
@@ -175,7 +169,10 @@ export default {
|
|||||||
this.$refs.table.clearSelection()
|
this.$refs.table.clearSelection()
|
||||||
},
|
},
|
||||||
open() {
|
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() {
|
close() {
|
||||||
this.crud.resetQuery(false)
|
this.crud.resetQuery(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user