Browse Source

拉伸曲线300折线图调整

master
songguoqiang 1 year ago
parent
commit
2a322150fc
  1. 4
      .env.production
  2. 22
      src/components/Qxview/src/QxviewThree.vue

4
.env.production

@ -5,11 +5,11 @@ VITE_DEV=false
# 请求路径 # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:26110' # VITE_BASE_URL='http://dev.ccwin-in.com:26110'
VITE_BASE_URL='http://10.140.10.4:26112' VITE_BASE_URL='http://10.140.10.4:26110'
# 上传路径 # 上传路径
# VITE_UPLOAD_URL='http://dev.ccwin-in.com:26110/api/admin-api/infra/file/upload' # VITE_UPLOAD_URL='http://dev.ccwin-in.com:26110/api/admin-api/infra/file/upload'
VITE_UPLOAD_URL='http://10.140.10.4:26112/api/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://10.140.10.4:26112/api/infra/file/upload'
# 接口前缀 # 接口前缀
VITE_API_BASEPATH= VITE_API_BASEPATH=

22
src/components/Qxview/src/QxviewThree.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog v-model="dialogVisible" title="曲线明细" width="800"> <Dialog v-model="dialogVisible" title="曲线明细" width="1200">
<el-row class="mt-5px" :gutter="20" justify="space-between"> <el-row class="mt-5px" :gutter="20" justify="space-between">
<el-col :xl="16" :lg="16" :md="24" :sm="24" :xs="24"> <el-col :xl="16" :lg="16" :md="24" :sm="24" :xs="24">
<el-card shadow="never"> <el-card shadow="never">
@ -7,7 +7,7 @@
<el-row :gutter="20" justify="space-between"> <el-row :gutter="20" justify="space-between">
<el-col :xl="24" :lg="24" :md="24" :sm="24" :xs="24"> <el-col :xl="24" :lg="24" :md="24" :sm="24" :xs="24">
<el-skeleton :loading="loading" animated> <el-skeleton :loading="loading" animated>
<Echart :options="lineOptionsData" :width="450" :height="400" /> <Echart :options="lineOptionsData" :width="700" :height="400" />
</el-skeleton> </el-skeleton>
</el-col> </el-col>
</el-row> </el-row>
@ -58,6 +58,8 @@ const dialogVisible = ref(false) // 弹窗的是否展示
const lineOptionsData = reactive<EChartsOption>(lineOptions) as EChartsOption const lineOptionsData = reactive<EChartsOption>(lineOptions) as EChartsOption
const open = (bhList , vData , title) => { const open = (bhList , vData , title) => {
console.log('bhList',bhList);
console.log('vData',vData);
sybhList.value = bhList sybhList.value = bhList
initData(vData , title) initData(vData , title)
loading.value = false loading.value = false
@ -85,12 +87,24 @@ const initData = async (datas , title) => {
set( set(
lineOptionsData, lineOptionsData,
'xAxis.data', 'xAxis.data',
datas.map((v) => t(v.syl)) datas.map((v) => t(v.wy))
)
// set(
// lineOptionsData,
// 'xAxis.name',
// '(mm)'
// )
set(
lineOptionsData,
'yAxis.name',
'(kN)'
) )
set(lineOptionsData, 'series', [ set(lineOptionsData, 'series', [
{ {
name: title, name: title,
data: datas.map((v) => v.wy), data: datas.map((v) => v.syl/1000),
type: 'line' type: 'line'
} }
]) ])

Loading…
Cancel
Save