MrShi
10 小时以前 e1281f6933755e07c7fb4b5bd8e8027cfb780e94
改bug
已修改2个文件
15 ■■■■ 文件已修改
screen/src/views/KeyCabinet.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/vite.config.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/views/KeyCabinet.vue
@@ -329,7 +329,7 @@
        getKeyUseRecord({ carCode: form.value.carCode, status: form.value.status })
            .then(res => {
                if (res.code === 200) {
                    // data5.value = res.data
                    data5.value = res.data
                }
            })
    }
@@ -353,7 +353,7 @@
                    timeOutNumPct: calculatePercentage(res.data.timeOutNum,[res.data.alcoholNum + res.data.timeOutNum + res.data.unCloseNum]),
                    unCloseNumPct: calculatePercentage(res.data.unCloseNum,[res.data.alcoholNum + res.data.timeOutNum + res.data.unCloseNum])
                }
                dataList5.value = [res.data.alcoholNum, res.data.unCloseNum, res.data.timeOutNum]
                dataList5.value = [res.data.alcoholNum, res.data.timeOutNum, res.data.unCloseNum]
                nextTick(() => {
                    initEchart1()
                })
@@ -427,6 +427,7 @@
                    itemStyle: {
                        borderRadius: 10,
                        color: function(params) {
                            console.log(params)
                            // 使用不同的渐变色
                            let colorList = [
                                {offset: 0, color: colors[params.dataIndex].color1}, // 0% 处的颜色
@@ -623,12 +624,12 @@
                            <div style="position: absolute;bottom: 0;right: 0;width: 10px;height: 10px;border-right: 1px solid #01D9FE;border-bottom: 1px solid #01D9FE;"></div>
                            <div style="color: #FFFFFF;font-size: 14px;font-weight: 400;">${params[0].axisValue}</div>
                            <div style="display: flex; align-items: center;margin-top: 4px;">
                                <div style="width: 12px;height: 12px;background: #00C2FF;border-radius: 50%;margin-right: 12px;"></div>
                                <div style="width: 12px;height: 12px;background: linear-gradient(to bottom, #50afd3, #1d4861);border-radius: 50%;margin-right: 12px;"></div>
                                <div style="color: #FFFFFF;font-size: 14px;font-weight: 400;">领取:</div>
                                <div style="color: #00F2F3;font-size: 14px;font-weight: 500;">${params[0].data}个</div>
                            </div>
                            <div style="display: flex; align-items: center;margin-top: 4px;">
                                <div style="width: 12px;height: 12px;background: #FF8A00;border-radius: 50%;margin-right: 12px;"></div>
                                <div style="width: 12px;height: 12px;background: linear-gradient(to bottom, rgb(255,184,0), rgba(255, 138, 0, 0.20));border-radius: 50%;margin-right: 12px;"></div>
                                <div style="color: #FFFFFF;font-size: 14px;font-weight: 400;">归还:</div>
                                <div style="color: #00F2F3;font-size: 14px;font-weight: 500;">${params[1].data}个</div>
                            </div>
screen/vite.config.js
@@ -25,12 +25,12 @@
  server: {
    proxy: {
      "/system_gateway": {
        // target: "http://192.168.1.45:10010",
        target: "http://192.168.0.7",
        target: "http://192.168.1.45:10010",
        // target: "http://192.168.0.7",
        // target: "http://10.50.250.253:8088/gateway_interface",
        // target: "https://atwl.ahzyssl.com/zhyq_interface",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/gateway_interface/, ""),
        rewrite: (path) => path.replace(/^\/system_gateway/, ""),
      },
    },
  },