diff --git a/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxInstrumentController.java b/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxInstrumentController.java index 461be31..ac28863 100644 --- a/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxInstrumentController.java +++ b/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxInstrumentController.java @@ -50,6 +50,11 @@ public class WxInstrumentController extends BaseController { return getDataTable(list); } + @GetMapping("/listAll") + public List listAll(WxInstrumentReq wxInstrumentReq) { + return wxInstrumentService.selectWxInstrumentPage(wxInstrumentReq); + } + /** * 获取全部的仪器 */ diff --git a/flossom-ui/src/api/system/instrument.js b/flossom-ui/src/api/system/instrument.js index f911792..5945476 100644 --- a/flossom-ui/src/api/system/instrument.js +++ b/flossom-ui/src/api/system/instrument.js @@ -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) { return request({ diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue index f2fe16c..e75e6b2 100644 --- a/flossom-ui/src/views/system/instrument/index.vue +++ b/flossom-ui/src/views/system/instrument/index.vue @@ -518,7 +518,7 @@ - + @@ -1879,24 +1879,28 @@ export default { submitForm() { // 初次护理弹窗检验 for (let i = 0; i < this.nurseList.length; i++) { - if(this.nurseList[i].file == '') { - this.$modal.msgError('请上传初次护理弹窗提示视频或图片'); - return; - } - if(this.nurseList[i].message == '') { - this.$modal.msgError('请上传初次护理规则提示内容'); - return; + if(this.nurseList[i].file != '' || this.nurseList[i].message != '') { + if(this.nurseList[i].file == '') { + this.$modal.msgError('请上传初次护理弹窗提示视频或图片'); + return; + } + if(this.nurseList[i].message == '') { + this.$modal.msgError('请上传初次护理规则提示内容'); + return; + } } } // 仪器介绍校验 for (let i = 0; i < this.introduceList.length; i++) { - if(this.introduceList[i].file == '') { - this.$modal.msgError('请上传仪器介绍弹窗提示视频或图片'); - return; - } - if(this.introduceList[i].message == '') { - this.$modal.msgError('请上传仪器介绍规则提示内容'); - return; + if(this.introduceList[i].file != '' || this.introduceList[i].message != '') { + if (this.introduceList[i].file == '') { + this.$modal.msgError('请上传仪器介绍弹窗提示视频或图片'); + return; + } + if (this.introduceList[i].message == '') { + this.$modal.msgError('请上传仪器介绍规则提示内容'); + return; + } } } this.form.nurseList = this.nurseList diff --git a/flossom-ui/src/views/system/userInstrument/index.vue b/flossom-ui/src/views/system/userInstrument/index.vue index c75be03..0785a91 100644 --- a/flossom-ui/src/views/system/userInstrument/index.vue +++ b/flossom-ui/src/views/system/userInstrument/index.vue @@ -367,7 +367,7 @@