【ID1000399】仪器管理-用户仪器绑定-记录详情只显示最新记录详情,应该显示全部记录详情

master
382696293@qq.com 2 years ago
parent 5fbe8f88f7
commit b91b60258d

@ -50,6 +50,11 @@ public class WxInstrumentController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/listAll")
public List<WxInstrument> listAll(WxInstrumentReq wxInstrumentReq) {
return wxInstrumentService.selectWxInstrumentPage(wxInstrumentReq);
}
/** /**
* *
*/ */

@ -9,6 +9,14 @@ export function listInstrument(query) {
}) })
} }
export function listAllInstrument(query) {
return request({
url: '/system/instrument/listAll',
method: 'get',
params: query
})
}
// 查询仪器列详细 // 查询仪器列详细
export function getInstrument(id) { export function getInstrument(id) {
return request({ return request({

@ -367,7 +367,7 @@
<script> <script>
import { listUserInstrument, getInstrument, delInstrument, addInstrument, updateInstrument,changeSerial,changeGuarantee } from "@/api/system/userInstrument"; import { listUserInstrument, getInstrument, delInstrument, addInstrument, updateInstrument,changeSerial,changeGuarantee } from "@/api/system/userInstrument";
import {listInstrument} from "@/api/system/instrument"; import {listAllInstrument, listInstrument} from "@/api/system/instrument";
import {listLog,addLog} from "@/api/system/userInstrumentLog" import {listLog,addLog} from "@/api/system/userInstrumentLog"
export default { export default {
name: "Instrument", name: "Instrument",
@ -500,8 +500,9 @@ export default {
this.guaranteeForm.guarantee = ""; this.guaranteeForm.guarantee = "";
}, },
queryInstrument(){ queryInstrument(){
listInstrument({}).then(response => { listAllInstrument({}).then(response => {
this.instrumentList = response.rows; console.log(response)
this.instrumentList = response;
}); });
}, },
/** 查询用户仪器绑定列表 */ /** 查询用户仪器绑定列表 */

Loading…
Cancel
Save