iZaiZaiA 3 years ago
parent
commit
fc8e612dc3

BIN
src/assets/view/Web2x_x.webp


+ 1 - 1
src/config/index.js

@@ -17,7 +17,7 @@ export default {
     statusWhiteList: [],    //http的status默认放行列表
     ossUrl: 'https://bladex-test-info.oss-cn-chengdu.aliyuncs.com', //oss地址
     smsPhone: '',  //测试接受短信验证码的手机号
-    dev_version: '202209141515',    //开发版本号
+    dev_version: '202209141800',    //开发版本号
     prod_host: 'http://47.110.251.215:8090',  //线上
     dev_host: 'http://192.168.4.6', //黄键楠
     //dev_host: 'http://192.168.3.13', //祝炜

+ 5 - 4
src/layout/modules/HelpInfoBar.vue

@@ -38,7 +38,7 @@
 <script setup>
 import { ref,watch,nextTick } from "vue";
 import { useRouter,useRoute } from 'vue-router'
-import { useAppStore } from "~src/store/index";
+import { useAppStore } from "~src/store";
 import ScreenShot from "js-web-screen-shot";
 import { getStoreData }  from '~src/utils/storage'
 import { getOneObjValue, getObjValue } from "vue-utils-plus"
@@ -95,15 +95,16 @@ const bubbleUpdate = (val) => {
 
 //工单服务\需求反馈
 const screenShortClick = () => {
-    setTimeout(() => {
+    nextTick(() => {
         new ScreenShot({
             enableWebRtc: webRtcVal.value,        //截图方式
             clickCutFullScreen: fullScreenVal.value,   //全屏
             loadCrossImg: true,         //跨域
-            level: 99999,
+            level: 999999,
             completeCallback: getScreenShotImg
         });
-    }, 500)
+        /*setTimeout(() => {}, 800)*/
+    })
 }
 
 //获取裁剪区域图片信息

+ 26 - 48
src/styles/ledger/query.scss

@@ -1,59 +1,37 @@
 .hc-layout-box {
     position: relative;
+    height: 100%;
     display: flex;
-    height: calc(100% - 59px);
-    overflow: hidden;
-    .hc-layout-menu-box {
-        background: white;
+    .hc-no-table-form {
         position: relative;
-        width: 280px;
         height: 100%;
-        overflow: auto;
-        border-right: 1px solid #eeeeee;
-        border-top: 1px solid #eeeeee;
-    }
-    .hc-layout-content-box {
-        flex: 1;
-        position: relative;
-        overflow: auto;
-        .card-content-box {
-            height: 100%;
-        }
-        .form-content-box {
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        .table-form-no {
             position: relative;
-            height: 100%;
-            display: flex;
-            overflow: hidden;
-            background: white;
-            margin: 0 24px;
-            border: 1px solid #eeeeee;
-            border-bottom: 0;
-            padding-bottom: 85px;
-            .table-form-box {
-                position: relative;
-                flex: 1;
-                overflow: auto;
-                height: 100%;
-                padding: 20px;
-                border-right: 1px solid #eeeeee;
-            }
-            .table-form-tools-box {
-                position: relative;
-                width: 390px;
-                height: 100%;
-                overflow: auto;
-                padding: 20px 24px 20px 20px;
+            img {
+                width: 350px;
             }
-            .foot-btn-box {
-                position: absolute;
-                bottom: 0;
-                right: 0;
-                left: 0;
-                padding: 24px;
-                background: white;
-                z-index: 22;
-                box-shadow: 0 -3px 6px rgba(0,0,0,0.06);
+            .desc {
+                text-align: center;
+                font-size: 20px;
+                color: #aaa;
             }
         }
     }
+    .hc-layout-left {
+        position: relative;
+        width: 260px;
+        height: 100%;
+        color: #1A1A1A;
+        border-radius: 10px;
+        background-color: #f1f5f8;
+        box-shadow: -2px 0 10px 0 rgba(32,37,50,0.03), 0 10px 21px 20px rgba(32,37,50,0.03);
+    }
+    .hc-layout-content {
+        flex: 1;
+        position: relative;
+        margin-left: 24px;
+    }
 }

+ 1 - 0
src/views/data-fill/components/ListItem.vue

@@ -586,6 +586,7 @@ const getOffsetTop = (key = '') => {
 //通知数据更新
 const renewData = () => {
     emit('renew')
+    ActiveKey.value = ''
 }
 
 //获取表单数据

+ 76 - 2
src/views/ledger/query.vue

@@ -1,8 +1,65 @@
 <template>
-    <div>台账日志</div>
+    <div class="hc-layout-box" v-loading="boxLoading">
+        <HcCard ui="flex-1" v-if="false">
+            <div class="hc-no-table-form">
+                <div class="table-form-no">
+                    <img :src="nowebp" alt=""/>
+                    <div class="desc">暂无相关数据</div>
+                </div>
+            </div>
+        </HcCard>
+        <div class="hc-layout-left">
+            <el-scrollbar>
+                <el-menu default-active="2" class="hc-ledger-query-menu" unique-opened>
+                    <el-sub-menu v-for="item in menuOptions" :key="item?.primaryKeyId" :index="item?.primaryKeyId">
+                        <template #title>{{item?.title}}</template>
+                        <el-menu-item :index="`${item?.primaryKeyId}-form`">日志填报</el-menu-item>
+                        <el-menu-item :index="`${item?.primaryKeyId}-table`">日志列表查看</el-menu-item>
+                    </el-sub-menu>
+                </el-menu>
+            </el-scrollbar>
+        </div>
+        <div class="hc-layout-content">
+            123456
+        </div>
+    </div>
 </template>
 
 <script setup>
+import {ref, watch, onMounted} from "vue";
+import {useAppStore} from "~src/store";
+import nowebp from '~src/assets/view/Web2x_x.webp';
+import queryApi from '~api/ledger/query';
+import {getArrValue} from "vue-utils-plus"
+
+//初始变量
+const useAppState = useAppStore()
+
+//全局变量
+const projectId = ref(useAppState.getProjectId);
+const contractId = ref(useAppState.getContractId);
+
+//渲染完成
+onMounted(()=> {
+    queryLogList()
+})
+
+//获取当前合同段下的日志类型
+const boxLoading = ref(false)
+const menuOptions = ref([]);
+const queryLogList = async () => {
+    boxLoading.value = true
+    const {error, code, data} = await queryApi.queryLogList({
+        contractId: contractId.value
+    })
+    //判断状态
+    boxLoading.value = false
+    if (!error && code === 200) {
+        menuOptions.value = getArrValue(data)
+    } else {
+        menuOptions.value = []
+    }
+}
 
 </script>
 
@@ -10,5 +67,22 @@
 @import "../../styles/ledger/query.scss";
 </style>
 <style lang="scss">
-
+.hc-ledger-query-menu.el-menu {
+    padding: 5px 24px;
+    border-right: 0;
+    background-color: initial;
+    --el-menu-text-color: #595959;
+    .el-menu {
+        border-right: 0;
+        background-color: initial;
+    }
+    .el-sub-menu, .el-menu-item {
+        user-select: none;
+    }
+    .el-sub-menu .el-menu-item.is-active {
+        background: #f1f5f8;
+        border-radius: 6px;
+        box-shadow: 4px 4px 8px 0 rgba(54,92,167,0.15), -4px -4px 8px 0 #ffffff;
+    }
+}
 </style>