上海联调11.2

dev4
Panzihang 2023-11-02 17:03:09 +08:00
parent 91fbf82b05
commit 61ac97d239
3 changed files with 39 additions and 4 deletions

View File

@ -28,10 +28,10 @@
<p>张星星 - 堆场计划员</p>
<p>12341234567</p>
</view>
<view class="borTop" @click="messageSql('center')">
<!-- <view class="borTop" @click="messageSql('center')">
<uni-icons type="vip" size="16" />
<text>数据库管理</text>
</view>
</view> -->
<view class="borTop" @click="tabsPort('center')">
<uni-icons type="loop" size="16" />
<text>切换港区</text>

View File

@ -5,6 +5,41 @@
</template>
<script>
export default {
data() {
return {
loginObj: {},
}
},
mounted() {
this.loginObj = uni.getStorageSync('loginObj')
this.getInfo()
},
methods: {
getInfo() {
// /shp/iEDeliverySlipController/page GET
// /shp/iEDeliverySlipController/planPage?vvyId=2455a195e549db737fa4431f91995e46&importExportFlag=E GET
// /shp/iEDeliverySlipController/iEDeliverySlipPlanDamage splId POST
// /vesselVoyages/vvyId ID PUT
let obj = {
splId: "b3a2141b0ec99635f7bd69d1bd3b4a8a",
importExportFlag: "E"
}
uni.request({
url: `${this.$local}/shp/iEDeliverySlipController/iEDeliverySlipPlanDamage`,
data: obj,
header: {
'Content-Type': 'application/json', //
'Authorization': `Bearer ${this.loginObj.access_token}`
},
method: 'POST', //
success: (res) => {
console.log(res)
}
})
}
}
}
</script>
<style>

View File

@ -13,9 +13,9 @@
<!-- <button class="searchBtn" type="default" @click="dropTable"></button>
<button class="searchBtn" type="default" @click="dropData"></button> -->
<button class="searchBtn" type="default" @click="createTable"></button>
<!-- <button class="searchBtn" type="default" @click="createTable"></button>
<button class="searchBtn" type="default" @click="delAll"></button>
<button class="searchBtn" type="default" @click="delAllData"></button>
<button class="searchBtn" type="default" @click="delAllData"></button> -->
</view>
<view class="itemList">
<template v-if="itemList.length > 0">