diff --git a/common/createDataTable.js b/common/createDataTable.js index 2d180c4..f645944 100644 --- a/common/createDataTable.js +++ b/common/createDataTable.js @@ -32,6 +32,8 @@ module.exports = { this.createMafiListRespList() // 创建安全巡检 this.createSafetyInspectionRespList() + // 创建安全巡检图片上传地址 + this.createSafetyInspectionRespUrlList() // 创建作业查询 this.createShipmentShipLoadPlansRespList() // 创建船舶资料 @@ -123,6 +125,12 @@ module.exports = { 'CREATE TABLE if not exists safetyInspectionRespList ("webId" text NOT NULL,"vvyId" text,"vvyName" text,"type" text,"remark" text,"tradeTypeName" text,"importExportFlagName" text,"spmName" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' this.executeSql(sql) }, + // 创建安全巡检图片上传地址 safetyInspectionRespUrlList + createSafetyInspectionRespUrlList() { + let sql = + 'CREATE TABLE if not exists safetyInspectionRespUrlList ("webId" text NOT NULL,"contactId" text,"url" text,"webStatus" text,"webDate" text, PRIMARY KEY("webId"));' + this.executeSql(sql) + }, // 创建作业查询 shipmentShipLoadPlansRespList createShipmentShipLoadPlansRespList() { let sql = diff --git a/common/util.js b/common/util.js index 278228f..73aa701 100644 --- a/common/util.js +++ b/common/util.js @@ -23,7 +23,6 @@ module.exports = { }, compress(base64String, w, quality) { - console.log(base64String.length); var getMimeType = (urlData) => { var arr = urlData.split(","); var mime = arr[0].match(/:(.*?);/)[1]; @@ -55,7 +54,6 @@ module.exports = { ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.drawImage(newImage, 0, 0, canvas.width, canvas.height); var base64 = canvas.toDataURL(getMimeType(base64String), quality); - console.log(base64); return base64; }); diff --git a/components/head-info/head-info.vue b/components/head-info/head-info.vue index b83fbf5..4d356e7 100644 --- a/components/head-info/head-info.vue +++ b/components/head-info/head-info.vue @@ -1,42 +1,58 @@ @@ -63,12 +79,53 @@ portId: "", portName: "", activeIndex: 0, + navList: [{ + url: "/pages/index/index", + name: "装船指令", + type: false, + imageUrl: "../../static/images/theme/zcIcon1-1.png", + imageUrl2: "../../static/images/theme/zcIcon1-2.png" + }, + { + url: "/pages/discharge/index", + name: "卸船指令", + type: false, + imageUrl: "../../static/images/theme/xcIcon1-1.png", + imageUrl2: "../../static/images/theme/xcIcon1-2.png" + }, { + url: "/pages/shipWork/index", + name: "船舶作业", + type: false, + imageUrl: "../../static/images/theme/cbIcon1-1.png", + imageUrl2: "../../static/images/theme/cbIcon1-2.png" + }, { + url: "/pages/quality/index", + name: "货物质量", + type: false, + imageUrl: "../../static/images/theme/cbIcon1-1.png", + imageUrl2: "../../static/images/theme/cbIcon1-2.png" + }, { + url: "/pages/monitor/index", + name: "场位监控", + type: false, + imageUrl: "../../static/images/theme/cbIcon1-1.png", + imageUrl2: "../../static/images/theme/cbIcon1-2.png" + } + ], } }, + props: { + navIndex: { + type: Number, + default: 0, + required: true + }, + }, mounted() { this.activeIndex = uni.getStorageSync("selectPortIndex") this.portId = this.portList[this.activeIndex].value this.portName = this.portList[this.activeIndex].title + this.navList[this.navIndex].type = true }, methods: { showInfo() { @@ -127,50 +184,102 @@ + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 3b370f9..9e47faa 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,8 +1,7 @@ @@ -487,15 +549,25 @@ .container { padding: 20px 30px; - input::placeholder { - color: #6a6a6a !important; + /deep/.uni-steps { + height: 80px; + justify-content: center; } - .formTitle { - padding-left: 10px; - border-left: 5px solid #2979ff; + /deep/.uni-steps__row-title { font-size: 20px; - font-weight: bold; + } + + /deep/.uni-icons { + font-size: 32px !important; + } + + /deep/.uni-steps__row-container { + margin-top: 14px; + } + + input::placeholder { + color: #6a6a6a !important; } .ul { @@ -527,14 +599,6 @@ } } - .zisun { - display: flex; - - .liTitle { - margin-top: 10px; - } - } - .picture { margin-top: 20px; diff --git a/pages/quality/index.vue b/pages/quality/index.vue index fb59447..fef1001 100644 --- a/pages/quality/index.vue +++ b/pages/quality/index.vue @@ -1,8 +1,7 @@