diff --git a/dist.zip b/dist.zip new file mode 100644 index 00000000..dcdab5a5 Binary files /dev/null and b/dist.zip differ diff --git a/src/assets/js/api/insect.js b/src/assets/js/api/insect.js index 29bfec73..cb36fd21 100644 --- a/src/assets/js/api/insect.js +++ b/src/assets/js/api/insect.js @@ -5,9 +5,13 @@ import { get,post } from '../http' -// 删除巡检点 -export const deletePointApi = data => get('/xmgl/checkingPoint/delete', data); -// 新建巡检点 -export const addPointApi = data => post('/xmgl/checkingPoint/add', data); -// 查询巡检点列表 -export const getPointListApi = data => post('/xmgl/checkingPoint/selectPage', data); +// 巡检点模块 +export const deletePointApi = data => get('/xmgl/checkingPoint/delete', data); // 删除巡检点 +export const addPointApi = data => post('/xmgl/checkingPoint/add', data); // 新建巡检点 +export const getPointListApi = data => post('/xmgl/checkingPoint/selectPage', data); // 查询巡检点列表 + +// 巡检记录模块 +export const getCheckPointApi = data => post('/xmgl/checkingPointInfo/selectPage', data); // 查询巡检点记录列表 + + + diff --git a/src/views/projectFront/inspecPoint/inspection.vue b/src/views/projectFront/inspecPoint/inspection.vue index 3930eb9c..d6a40023 100644 --- a/src/views/projectFront/inspecPoint/inspection.vue +++ b/src/views/projectFront/inspecPoint/inspection.vue @@ -20,6 +20,7 @@ @@ -33,7 +34,7 @@
@@ -94,7 +95,7 @@ 生成二维码
@@ -110,7 +111,7 @@ import { addPointApi, deletePointApi } from "@/assets/js/api/insect.js"; -import QRCode from "qrcodejs2"; +// import QRCode from "qrcodejs2"; export default { data() { return { @@ -164,6 +165,7 @@ export default { getPointListApi(data).then(res => { console.log("----巡检点列表", res); this.tableData = res.result.records + this.total = res.result.total }); }, // 刷新 @@ -246,24 +248,6 @@ export default { this.$refs["cardForm"].validate(valid => { if (valid) { - document.getElementById("qrCode").innerHTML = ""; - console.log("QRCode", QRCode); - let QRCodeData = new QRCode(this.$refs.qrCodeDiv, { - text: JSON.stringify(data), - width: 150, - height: 150, - colorDark: "#333333", //二维码颜色 - colorLight: "#ffffff", //二维码背景色 - correctLevel: QRCode.CorrectLevel.L //容错率,L/M/H - }); - console.log("QRCodeData", QRCodeData); - setTimeout(() => { - let img = QRCodeData._el.innerHTML; - let baseurl = img - .split("=")[5].split('"')[1] - console.log("baseurl", baseurl); - data.qrCode = baseurl; - data.createDate = this.selectNowDate(); addPointApi(data).then(res => { console.log("新增", res); if (res.code == 200) { @@ -271,7 +255,32 @@ export default { this.getPointList() } }); - }, 500); + // document.getElementById("qrCode").innerHTML = ""; + // console.log("QRCode", QRCode); + // let QRCodeData = new QRCode(this.$refs.qrCodeDiv, { + // text: JSON.stringify(data), + // width: 150, + // height: 150, + // colorDark: "#333333", //二维码颜色 + // colorLight: "#ffffff", //二维码背景色 + // correctLevel: QRCode.CorrectLevel.L //容错率,L/M/H + // }); + // console.log("QRCodeData", QRCodeData); + // setTimeout(() => { + // let img = QRCodeData._el.innerHTML; + // let baseurl = img + // .split("=")[5].split('"')[1] + // console.log("baseurl", baseurl); + // data.qrCode = baseurl; + // data.createDate = this.selectNowDate(); + // addPointApi(data).then(res => { + // console.log("新增", res); + // if (res.code == 200) { + // this.cardDialog = false; + // this.getPointList() + // } + // }); + // }, 500); } }); } diff --git a/src/views/projectFront/inspecPoint/selfInspect.vue b/src/views/projectFront/inspecPoint/selfInspect.vue index 7e56198b..960af330 100644 --- a/src/views/projectFront/inspecPoint/selfInspect.vue +++ b/src/views/projectFront/inspecPoint/selfInspect.vue @@ -1,18 +1,12 @@