Merge remote-tracking branch 'origin/master'

master
xs 2 months ago
commit 71345a58fc

@ -46,6 +46,12 @@ public class DmsBaseDeviceLedgerController extends BaseController
List<DmsBaseDeviceLedger> list = dmsBaseDeviceLedgerService.selectDmsBaseDeviceLedgerList(dmsBaseDeviceLedger);
return getDataTable(list);
}
@GetMapping("/deviceList")
public AjaxResult deviceList(DmsBaseDeviceLedger dmsBaseDeviceLedger)
{
List<DmsBaseDeviceLedger> list = dmsBaseDeviceLedgerService.selectDmsBaseDeviceLedgerList(dmsBaseDeviceLedger);
return AjaxResult.success(list);
}
/**
*

@ -8,6 +8,13 @@ export function listLedger(query) {
params: query
})
}
export function deviceList(query) {
return request({
url: '/dms/ledger/deviceList',
method: 'get',
params: query
})
}
// 查询设备台账信息详细
export function getLedger(deviceId) {

@ -64,41 +64,41 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['dms:dmsBaseAlarmRule:add']"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['dms:dmsBaseAlarmRule:edit']"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['dms:dmsBaseAlarmRule:remove']"
>删除
</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['dms:dmsBaseAlarmRule:add']"-->
<!-- >新增-->
<!-- </el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="success"-->
<!-- plain-->
<!-- icon="el-icon-edit"-->
<!-- size="mini"-->
<!-- :disabled="single"-->
<!-- @click="handleUpdate"-->
<!-- v-hasPermi="['dms:dmsBaseAlarmRule:edit']"-->
<!-- >修改-->
<!-- </el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="danger"-->
<!-- plain-->
<!-- icon="el-icon-delete"-->
<!-- size="mini"-->
<!-- :disabled="multiple"-->
<!-- @click="handleDelete"-->
<!-- v-hasPermi="['dms:dmsBaseAlarmRule:remove']"-->
<!-- >删除-->
<!-- </el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="warning"-->

@ -246,7 +246,7 @@
<script>
import { listDmsInspectRouteDetail, getDmsInspectRouteDetail, delDmsInspectRouteDetail, addDmsInspectRouteDetail, updateDmsInspectRouteDetail } from "@/api/dms/dmsInspectRouteDetail";
import { listDmsBaseInspectRoute } from '@/api/dms/dmsBaseInspectRoute'
import { listLedger } from '@/api/dms/ledger'
import { listLedger,deviceList } from '@/api/dms/ledger'
import { addDmsRepairDetail, updateDmsRepairDetail } from '@/api/dms/dmsRepairDetail'
import { listDmsBaseInspectStandard } from '@/api/dms/dmsBaseInspectStandard'
@ -325,9 +325,9 @@ export default {
},
//
getDevice(){
listLedger().then(response => {
deviceList().then(response => {
// console.log(response)
this.ledgerList = response.rows;
this.ledgerList = response.data;
})
},
/** 查询巡检线路信息列表 */

@ -328,7 +328,7 @@
<script>
import { listMaintDetail, getMaintDetail, delMaintDetail, addMaintDetail, updateMaintDetail } from "@/api/dms/maintDetail";
import { listLedger } from '@/api/dms/ledger'
import { listLedger,deviceList } from '@/api/dms/ledger'
import { listStation } from '@/api/dms/station'
import { getMaint, listMaint } from '@/api/dms/maint'
import { listStandard } from '@/api/dms/standard'
@ -439,8 +439,9 @@ export default {
},
/** 查询设备台账信息列表 */
getDeviceLedger() {
listLedger(this.queryParams).then(response => {
this.ledgerList = response.rows;
deviceList(this.queryParams).then(response => {
console.log(response.data)
this.ledgerList = response.data;
});
},
/** 查询保养计划明细列表 */

Loading…
Cancel
Save