dms模块优化

master
zch 3 months ago
parent 82165894ba
commit d7de1e9dc8

@ -48,6 +48,7 @@ public class DmsBaseTransferInfoController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DmsBaseTransferInfo dmsBaseTransferInfo) public TableDataInfo list(DmsBaseTransferInfo dmsBaseTransferInfo)
{ {
startPage();
List<DmsBaseTransferInfo> list = dmsBaseTransferInfoService.selectDmsBaseTransferInfoList(dmsBaseTransferInfo); List<DmsBaseTransferInfo> list = dmsBaseTransferInfoService.selectDmsBaseTransferInfoList(dmsBaseTransferInfo);
return getDataTable(list); return getDataTable(list);
} }

@ -56,7 +56,6 @@ public class DmsBaseLubeStandardServiceImpl implements IDmsBaseLubeStandardServi
@Override @Override
public int insertDmsBaseLubeStandard(DmsBaseLubeStandard dmsBaseLubeStandard) public int insertDmsBaseLubeStandard(DmsBaseLubeStandard dmsBaseLubeStandard)
{ {
//ZCH
DmsBaseLubeStandard LubeStandard = new DmsBaseLubeStandard(); DmsBaseLubeStandard LubeStandard = new DmsBaseLubeStandard();
LubeStandard.setLubeStandardCode(dmsBaseLubeStandard.getLubeStandardCode()); LubeStandard.setLubeStandardCode(dmsBaseLubeStandard.getLubeStandardCode());
List<DmsBaseLubeStandard> dmsBaseLubeStandardList = dmsBaseLubeStandardMapper. List<DmsBaseLubeStandard> dmsBaseLubeStandardList = dmsBaseLubeStandardMapper.

@ -79,7 +79,6 @@ public class DmsBaseLubeStationServiceImpl implements IDmsBaseLubeStationService
@Override @Override
public int updateDmsBaseLubeStation(DmsBaseLubeStation dmsBaseLubeStation) public int updateDmsBaseLubeStation(DmsBaseLubeStation dmsBaseLubeStation)
{ {
//ZCH
DmsBaseLubeStation BaseLubeStation = new DmsBaseLubeStation(); DmsBaseLubeStation BaseLubeStation = new DmsBaseLubeStation();
BaseLubeStation.setLubeStationCode(dmsBaseLubeStation.getLubeStationCode()); BaseLubeStation.setLubeStationCode(dmsBaseLubeStation.getLubeStationCode());
List<DmsBaseLubeStation> dmsBaseLubeStationList = dmsBaseLubeStationMapper List<DmsBaseLubeStation> dmsBaseLubeStationList = dmsBaseLubeStationMapper

@ -89,7 +89,6 @@ public class DmsBaseMaintStandardServiceImpl implements IDmsBaseMaintStandardSer
throw new ServiceException("保养标准编码已存在"); throw new ServiceException("保养标准编码已存在");
} }
LoginUser user = SecurityUtils.getLoginUser(); LoginUser user = SecurityUtils.getLoginUser();
dmsBaseMaintStandard.setUpdateBy(user.getUsername()); dmsBaseMaintStandard.setUpdateBy(user.getUsername());
dmsBaseMaintStandard.setUpdateTime(DateUtils.getNowDate()); dmsBaseMaintStandard.setUpdateTime(DateUtils.getNowDate());
return dmsBaseMaintStandardMapper.updateDmsBaseMaintStandard(dmsBaseMaintStandard); return dmsBaseMaintStandardMapper.updateDmsBaseMaintStandard(dmsBaseMaintStandard);

@ -361,7 +361,6 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const inspectProjectIds = row.inspectProjectId || this.ids; const inspectProjectIds = row.inspectProjectId || this.ids;
inspectProjectCode
const inspectProjectCode = row.inspectProjectCode || this.ids; const inspectProjectCode = row.inspectProjectCode || this.ids;
this.$modal.confirm('是否确认删除巡检项目信息编号为"' + inspectProjectCode + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除巡检项目信息编号为"' + inspectProjectCode + '"的数据项?').then(function() {
return delDmsBaseInspectProject(inspectProjectIds); return delDmsBaseInspectProject(inspectProjectIds);

@ -246,13 +246,13 @@ export default {
// //
rules: { rules: {
deviceId: [ deviceId: [
{ required: true, message: "设备ID关联dms_base_device_ledger的device_id不能为空", trigger: "blur" } { required: true, message: "设备ID不能为空", trigger: "blur" }
], ],
paramName: [ paramName: [
{ required: true, message: "参数名称不能为空", trigger: "blur" } { required: true, message: "参数名称不能为空", trigger: "blur" }
], ],
paramCode: [ paramCode: [
{ required: true, message: "是否标识1-是2-否不能为空", trigger: "blur" } { required: true, message: "参数编号不能为空", trigger: "blur" }
], ],
} }
}; };

@ -273,11 +273,11 @@ export default {
created() { created() {
this.getList(); this.getList();
this.getDeviceTypeList(); this.getDeviceTypeList();
this.getStandards(); this.getStandard();
}, },
methods: { methods: {
/** 查询保养标准信息列表 */ /** 查询保养标准信息列表 */
getStandards() { getStandard() {
getMaintStandardlist({}).then(response => { getMaintStandardlist({}).then(response => {
this.standardList = response.data; this.standardList = response.data;
}); });

Loading…
Cancel
Save