|
@@ -1,14 +1,11 @@
|
|
|
<script setup>
|
|
|
import {ref,nextTick, reactive} from 'vue'
|
|
|
import apiETAChart from '@/api/chart'
|
|
|
-import {
|
|
|
- apiMyChartList,
|
|
|
- apiMyClassifyList,
|
|
|
- apiChartInMyClassifyList,
|
|
|
- apiChartAddToClassify,
|
|
|
- apiMyChartRemove,
|
|
|
- apiChartDel
|
|
|
-} from '@/api/myETA'
|
|
|
+import apiFutureChart from '@/api/futureChart'
|
|
|
+import apiCorrelationChart from '@/api/correlationChart'
|
|
|
+import apiLineEquationChart from '@/api/lineEquationChart'
|
|
|
+import apiStatisticFeatureChart from '@/api/statisticFeatureChart'
|
|
|
+import apiMyETAChart from '@/api/myETA'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
import {useChartRender} from '@/hooks/chart/render'
|
|
|
import {yearSelectOpt,sameOptionType} from '@/hooks/chart/config'
|
|
@@ -18,21 +15,25 @@ import { showToast,showDialog} from 'vant'
|
|
|
import ChartSaveOther from './components/ChartSaveOther.vue'
|
|
|
import _ from 'lodash';
|
|
|
import { useWindowSize } from '@vueuse/core'
|
|
|
+import {setClipboardData} from '@/hooks/common'
|
|
|
+import SetChartEnName from '@/components/SetChartEnName.vue'
|
|
|
+import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
|
|
|
|
const { width, height } = useWindowSize()
|
|
|
-
|
|
|
+const cachedViewsStore=useCachedViewsStore()
|
|
|
const {options,axisLimitState,chartRender}=useChartRender()
|
|
|
|
|
|
|
|
|
const route=useRoute()
|
|
|
const router=useRouter()
|
|
|
let chartCode=route.query.code
|
|
|
+let CHARTINS=null//图表实例
|
|
|
|
|
|
// 获取当前图表所在分类下的所有图表数据 用于上一张下一张切换
|
|
|
let allChartList=ref([])
|
|
|
async function getAllChartList(){
|
|
|
if(!route.query.cid) return
|
|
|
- const res=await apiMyChartList({
|
|
|
+ const res=await apiMyETAChart.myChartList({
|
|
|
CurrentIndex:1,
|
|
|
PageSize:1000000,
|
|
|
MyChartClassifyId:Number(route.query.cid)
|
|
@@ -65,17 +66,26 @@ async function getChartInfo(){
|
|
|
chartInfoData=res.Data
|
|
|
|
|
|
chartInfo.value=res.Data.ChartInfo
|
|
|
- if(res.Data.ChartInfo.Source===2){
|
|
|
+ if([2,5].includes(res.Data.ChartInfo.Source)){
|
|
|
edbList.value=[res.Data.EdbInfoList[0]]
|
|
|
}else{
|
|
|
edbList.value=res.Data.EdbInfoList
|
|
|
}
|
|
|
|
|
|
chartState.yearVal=res.Data.ChartInfo.DateType
|
|
|
-
|
|
|
+ if(res.Data.ChartInfo.DateType===5){
|
|
|
+ chartState.startTime=res.Data.ChartInfo.StartDate
|
|
|
+ chartState.endTime=res.Data.ChartInfo.EndDate
|
|
|
+ temStartTime.value=res.Data.ChartInfo.StartDate.split('-')
|
|
|
+ temEndTime.value=res.Data.ChartInfo.EndDate.split('-')
|
|
|
+ }
|
|
|
+ if(res.Data.ChartInfo.DateType===6){
|
|
|
+ chartState.startTime=res.Data.ChartInfo.StartDate
|
|
|
+ temStartTime.value=res.Data.ChartInfo.StartDate.split('-')
|
|
|
+ }
|
|
|
|
|
|
nextTick(()=>{
|
|
|
- chartRender({
|
|
|
+ CHARTINS=chartRender({
|
|
|
data:res.Data,
|
|
|
renderId:'chart-box',
|
|
|
lang:'zh',
|
|
@@ -103,29 +113,13 @@ async function reloadChartInfo(){
|
|
|
if(res.Ret!==200) return
|
|
|
chartInfo.value=res.Data.ChartInfo
|
|
|
|
|
|
- // const beforeOptions = sessionStorage.getItem('myChartbeforeOptions')
|
|
|
- // ? JSON.parse(sessionStorage.getItem('myChartbeforeOptions'))
|
|
|
- // : '';
|
|
|
- // //合并缓存配置和新的数据
|
|
|
- // const newarr = res.Data.EdbInfoList.map((item, index) => {
|
|
|
- // if (beforeOptions) {
|
|
|
- // const DataList = item.DataList;
|
|
|
- // return {
|
|
|
- // ...beforeOptions[index],
|
|
|
- // DataList,
|
|
|
- // };
|
|
|
- // } else {
|
|
|
- // return item;
|
|
|
- // }
|
|
|
- // })
|
|
|
- chartRender({
|
|
|
+ CHARTINS=chartRender({
|
|
|
data:{
|
|
|
...res.Data,
|
|
|
ChartInfo:{
|
|
|
...res.Data.ChartInfo,
|
|
|
Calendar:chartState.calendarType||'公历'
|
|
|
- },
|
|
|
- // EdbInfoList:newarr
|
|
|
+ }
|
|
|
},
|
|
|
renderId:'chart-box',
|
|
|
lang:'zh',
|
|
@@ -254,7 +248,7 @@ function handleConfirmLimitChange(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- chartRender({
|
|
|
+ CHARTINS=chartRender({
|
|
|
data:data,
|
|
|
renderId:'chart-box',
|
|
|
lang:'zh',
|
|
@@ -310,7 +304,7 @@ async function handleUpdateRender(val,isEdit){
|
|
|
edbList.value[index]=val
|
|
|
}
|
|
|
|
|
|
- chartRender({
|
|
|
+ CHARTINS=chartRender({
|
|
|
data:{
|
|
|
...chartInfoData,
|
|
|
EdbInfoList:edbList.value
|
|
@@ -331,7 +325,7 @@ let showMoreAction=ref(false)
|
|
|
// 复制到
|
|
|
let myChartClassifyList=[]//我的图库中的所有分类
|
|
|
async function getMyChartClassifyList(){
|
|
|
- const res=await apiMyClassifyList()
|
|
|
+ const res=await apiMyETAChart.myClassifyList()
|
|
|
if(res.Ret===200){
|
|
|
myChartClassifyList=res.Data.List||[]
|
|
|
}
|
|
@@ -340,7 +334,7 @@ getMyChartClassifyList()
|
|
|
let showCopyTo=ref(false)
|
|
|
let copyToOpt=ref([])
|
|
|
async function handleShowCopyTo(){
|
|
|
- const res=await apiChartInMyClassifyList({ChartInfoId:chartInfo.value.ChartInfoId})
|
|
|
+ const res=await apiMyETAChart.chartInMyClassifyList({ChartInfoId:chartInfo.value.ChartInfoId})
|
|
|
if(res.Ret===200){
|
|
|
const arr=res.Data||[]
|
|
|
copyToOpt.value=myChartClassifyList.map(e=>{
|
|
@@ -363,7 +357,7 @@ async function handleConfirmCopy(){
|
|
|
showToast('请选择分类')
|
|
|
return
|
|
|
}
|
|
|
- const res=await apiChartAddToClassify({
|
|
|
+ const res=await apiMyETAChart.chartAddToClassify({
|
|
|
ChartInfoId:chartInfo.value.ChartInfoId,
|
|
|
MyChartClassifyId:arr
|
|
|
})
|
|
@@ -385,12 +379,14 @@ function handleRemoveChart(){
|
|
|
showCancelButton:true
|
|
|
}).then(() => {
|
|
|
// on close
|
|
|
- apiMyChartRemove({
|
|
|
+ apiMyETAChart.myChartRemove({
|
|
|
MyChartClassifyId:Number(route.query.cid),
|
|
|
MyChartId:chartInfo.value.MyChartId
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
showToast('移出成功')
|
|
|
+ cachedViewsStore.removeCaches('MyETAIndex')
|
|
|
+ cachedViewsStore.removeCaches('MyETASearchList')
|
|
|
setTimeout(() => {
|
|
|
router.back()
|
|
|
}, 1500)
|
|
@@ -407,11 +403,13 @@ function handleDeleteChart(){
|
|
|
showCancelButton:true
|
|
|
}).then(() => {
|
|
|
// on close
|
|
|
- apiChartDel({
|
|
|
+ apiMyETAChart.chartDel({
|
|
|
ChartInfoId:chartInfo.value.ChartInfoId
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
showToast('删除成功')
|
|
|
+ cachedViewsStore.removeCaches('MyETAIndex')
|
|
|
+ cachedViewsStore.removeCaches('MyETASearchList')
|
|
|
setTimeout(() => {
|
|
|
router.back()
|
|
|
}, 1500)
|
|
@@ -423,6 +421,67 @@ function handleDeleteChart(){
|
|
|
// 另存为
|
|
|
let showSaveChartOther=ref(false)
|
|
|
|
|
|
+// 刷新
|
|
|
+async function handleChartRefresh(){
|
|
|
+ const { Source,ChartInfoId,UniqueCode } = chartInfo.value
|
|
|
+ let res=null
|
|
|
+ if(Source===1){
|
|
|
+ res= await apiETAChart.chartRefresh({ ChartInfoId })
|
|
|
+ }else if([2,5].includes(Source)){
|
|
|
+ res=await apiFutureChart.refreshChart({ ChartInfoId })
|
|
|
+ }else if([3,4].includes(Source)){
|
|
|
+ res=await apiCorrelationChart.refreshChart({ ChartInfoId })
|
|
|
+ }else if(Source===6){
|
|
|
+ res=await apiLineEquationChart.refreshChart({ ChartInfoId })
|
|
|
+ }else if([7,8,9].includes(Source)) {
|
|
|
+ res=await apiStatisticFeatureChart.refreshChart({ ChartInfoId })
|
|
|
+ }
|
|
|
+ if(res.Ret!==200)return
|
|
|
+ showToast('刷新成功')
|
|
|
+ showMoreAction.value=false
|
|
|
+ Source===1?reloadChartInfo():getChartInfo()
|
|
|
+}
|
|
|
+
|
|
|
+//分享
|
|
|
+function handleChartShare(){
|
|
|
+ const url=import.meta.env.VITE_CHART_LINK+`?code=${chartInfo.value.UniqueCode}&fromType=share&lang=ch`
|
|
|
+ setClipboardData(url)
|
|
|
+}
|
|
|
+
|
|
|
+//保存图片
|
|
|
+let savePicDialogShow = ref(false)
|
|
|
+let savePicSrc = ref('')
|
|
|
+function handleChartSavePicture(){
|
|
|
+ const {chartWidth,chartHeight} = CHARTINS
|
|
|
+ const svgData = CHARTINS.getSVG({
|
|
|
+ chart: {
|
|
|
+ width: chartWidth,
|
|
|
+ height: chartHeight,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(chartWidth,chartHeight);
|
|
|
+ const canvas = document.createElement('canvas')
|
|
|
+ const ctx = canvas.getContext('2d')
|
|
|
+ canvas.width = chartWidth*2
|
|
|
+ canvas.height = chartHeight*2
|
|
|
+ const image = new Image()
|
|
|
+ image.src = 'data:image/svg+xml;charset=utf-8,'+encodeURIComponent(svgData)
|
|
|
+ image.onload = ()=>{
|
|
|
+ ctx.drawImage(image, 0, 0,chartWidth*2,chartHeight*2);
|
|
|
+ savePicSrc.value = canvas.toDataURL('image/png');
|
|
|
+ savePicDialogShow.value = true
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 显示修改英文名称弹窗
|
|
|
+let showEidtEnName=ref(false)
|
|
|
+function handleShowEditEnName(){
|
|
|
+ showEidtEnName.value=true
|
|
|
+}
|
|
|
+function handleEditEnNameSuccess(){
|
|
|
+ reloadChartInfo()
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -431,18 +490,18 @@ let showSaveChartOther=ref(false)
|
|
|
<!-- 一般曲线图选择时间区间或者季节图选择日期 -->
|
|
|
<div
|
|
|
class="select-time-box"
|
|
|
- v-if="sameOptionType.includes(chartInfo.ChartType)||chartInfo.ChartType===2"
|
|
|
+ v-if="(sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1)||chartInfo.ChartType===2"
|
|
|
@click="chartState.showTimePop=true"
|
|
|
>
|
|
|
<img class="left-icon" src="@/assets/imgs/icon_calendar.png" alt="">
|
|
|
- <span :class="['val-box',!chartState.startTime?'val-box_grey':'']">{{chartState.startTime||'开始日期'}} ~ {{chartState.endTime||'结束日期'}}</span>
|
|
|
+ <span :class="['val-box',!chartState.startTime?'val-box_grey':'']">{{chartState.startTime||'开始日期'}} ~ {{chartState.startTime&&!chartState.endTime?'至今':chartState.endTime||'结束日期'}}</span>
|
|
|
<van-icon class="right-icon" name="arrow" />
|
|
|
</div>
|
|
|
|
|
|
<!-- pad端时间和操作按钮模块 -->
|
|
|
<div class="pad-time-action-wrap">
|
|
|
- <div class="left-time-box">
|
|
|
- <template v-if="sameOptionType.includes(chartInfo.ChartType)">
|
|
|
+ <div class="left-time-box" >
|
|
|
+ <template v-if="sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1">
|
|
|
<span :class="['item',chartState.yearVal==''?'active':'']" @click="handleYearChange({value:''})">全部</span>
|
|
|
<span
|
|
|
:class="['item',chartState.yearVal==item.value?'active':'']"
|
|
@@ -452,27 +511,19 @@ let showSaveChartOther=ref(false)
|
|
|
>{{item.name}}</span>
|
|
|
</template>
|
|
|
<span
|
|
|
- class="time-box"
|
|
|
- v-if="sameOptionType.includes(chartInfo.ChartType)||chartInfo.ChartType===2"
|
|
|
+ class="time-box"
|
|
|
+ v-if="(sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1)||chartInfo.ChartType===2"
|
|
|
@click="chartState.showTimePop=true"
|
|
|
- >{{chartState.startTime?chartState.startTime+'~'+chartState.endTime:'请选择时间段'}}</span>
|
|
|
+ >{{chartState.startTime?chartState.startTime+'~'+(chartState.endTime?chartState.endTime:'至今'):'请选择时间段'}}</span>
|
|
|
</div>
|
|
|
<div class="right-action-box">
|
|
|
- <div class="item red" @click.stop="handleRemoveChart" v-if="$route.query.iscommon!='true'">
|
|
|
- <img src="@/assets/imgs/myETA/icon_remove2.png" alt="">
|
|
|
- <span>移出</span>
|
|
|
- </div>
|
|
|
- <div class="item" @click.stop="handleShowCopyTo" v-if="$route.query.iscommon!='true'">
|
|
|
- <img src="@/assets/imgs/myETA/icon_copy2.png" alt="">
|
|
|
- <span>复制到</span>
|
|
|
+ <div class="item" @click="handleShowAxisLimitOpt" v-if="![3,4,6,7,8,9].includes(chartInfo.Source)">
|
|
|
+ <img src="@/assets/imgs/myETA/icon_limit2.png" alt="">
|
|
|
+ <span>上下限设置</span>
|
|
|
</div>
|
|
|
- <div class="item" @click.stop="showSaveChartOther=true">
|
|
|
- <img src="@/assets/imgs/myETA/icon_save2.png" alt="">
|
|
|
- <span>另存为</span>
|
|
|
- </div>
|
|
|
- <div class="item red" @click.stop="handleDeleteChart" v-if="chartInfo.IsEdit">
|
|
|
- <img src="@/assets/imgs/icon_del.png" alt="">
|
|
|
- <span>删除</span>
|
|
|
+ <div class="item" @click="showMoreAction=true">
|
|
|
+ <img src="@/assets/imgs/chartETA/more-icon.png" alt="">
|
|
|
+ <span>更多设置</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -486,7 +537,7 @@ let showSaveChartOther=ref(false)
|
|
|
</div>
|
|
|
|
|
|
<!-- 一般曲线图选择时间区间 -->
|
|
|
- <div class="select-year-box" v-if="sameOptionType.includes(chartInfo.ChartType)">
|
|
|
+ <div class="select-year-box" v-if="sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1">
|
|
|
<span :class="['item',chartState.yearVal==''?'active':'']" @click="handleYearChange({value:''})">全部</span>
|
|
|
<span
|
|
|
:class="['item',chartState.yearVal==item.value?'active':'']"
|
|
@@ -509,17 +560,12 @@ let showSaveChartOther=ref(false)
|
|
|
|
|
|
<!-- 指标模块 -->
|
|
|
<div class="edb-list-box">
|
|
|
- <!-- pad 设置上下限按钮 -->
|
|
|
- <span class="pad-limit-set-btn" @click="handleShowAxisLimitOpt" v-if="chartInfo.Source!=3&&chartInfo.ChartType!=8">设置上下限</span>
|
|
|
- <div class="list-lable">指标信息</div>
|
|
|
- <div class="list-box">
|
|
|
- <van-cell
|
|
|
- :title="item.EdbName"
|
|
|
- is-link
|
|
|
- v-for="item in edbList"
|
|
|
- :key="item.EdbInfoId"
|
|
|
- @click="handleShowEDBInfo(item)"
|
|
|
- />
|
|
|
+ <div class="list-box">
|
|
|
+ <div class="list-item" v-for="item in edbList" :key="item.EdbInfoId" @click="handleShowEDBInfo(item)">
|
|
|
+ <span class="date">{{item.LatestDate}}</span>
|
|
|
+ <span class="edb-name van-ellipsis" :style="{color:item.ChartColor}">{{item.EdbName}}</span>
|
|
|
+ <span class="value">{{item.LatestValue}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -533,7 +579,7 @@ let showSaveChartOther=ref(false)
|
|
|
<img class="icon" style="transform: rotate(180deg);" src="@/assets/imgs/icon_arrow.png" alt="">
|
|
|
<div>下一张</div>
|
|
|
</div>
|
|
|
- <div class="item" @click="handleShowAxisLimitOpt" v-if="chartInfo.Source!=3&&chartInfo.ChartType!=8">
|
|
|
+ <div class="item" @click="handleShowAxisLimitOpt" v-if="![3,4,6,7,8,9].includes(chartInfo.Source)">
|
|
|
<img class="icon" src="@/assets/imgs/myETA/icon_limit.png" alt="">
|
|
|
<div>上下限</div>
|
|
|
</div>
|
|
@@ -577,7 +623,7 @@ let showSaveChartOther=ref(false)
|
|
|
<van-popup
|
|
|
v-model:show="showEDB"
|
|
|
:position="width>650?'right':'bottom'"
|
|
|
- round
|
|
|
+ :round="width>650?false:true"
|
|
|
closeable
|
|
|
:style="width>650?{ width: '400px', height: '100%' }:''"
|
|
|
>
|
|
@@ -683,25 +729,35 @@ let showSaveChartOther=ref(false)
|
|
|
<!-- 更多操作弹窗 -->
|
|
|
<van-popup
|
|
|
v-model:show="showMoreAction"
|
|
|
- position="bottom"
|
|
|
+ :position="width>650?'center':'bottom'"
|
|
|
+ :style="width>650?{ width: '400px'}:''"
|
|
|
round
|
|
|
>
|
|
|
<div class="more-action-wrap">
|
|
|
- <div class="item" @click.stop="handleShowCopyTo" v-if="$route.query.iscommon!='true'">
|
|
|
- <img src="@/assets/imgs/myETA/icon_copy.png" alt="">
|
|
|
- <span>复制到</span>
|
|
|
+ <div class="van-ellipsis title-box">{{chartInfo.ChartName}}</div>
|
|
|
+ <div class="item" @click.stop="handleChartRefresh">
|
|
|
+ 刷新
|
|
|
</div>
|
|
|
- <div class="item" @click.stop="showSaveChartOther=true">
|
|
|
- <img src="@/assets/imgs/myETA/icon_save.png" alt="">
|
|
|
- <span>另存为</span>
|
|
|
+ <div class="item" @click.stop="handleChartShare" v-if="!chartInfo.Disabled">
|
|
|
+ 分享
|
|
|
</div>
|
|
|
<div class="item" @click.stop="handleRemoveChart" v-if="$route.query.iscommon!='true'">
|
|
|
- <img src="@/assets/imgs/myETA/icon_remove.png" alt="">
|
|
|
- <span>移出</span>
|
|
|
+ 移出
|
|
|
+ </div>
|
|
|
+ <div class="item" @click.stop="handleShowCopyTo" v-if="$route.query.iscommon!='true'">
|
|
|
+ 复制到
|
|
|
+ </div>
|
|
|
+ <div class="item" @click.stop="showSaveChartOther=true" v-if="chartInfo.Button.IsCopy">
|
|
|
+ 另存为
|
|
|
+ </div>
|
|
|
+ <div class="item" @click.stop="handleChartSavePicture" v-if="!chartInfo.Disabled">
|
|
|
+ 保存图片
|
|
|
+ </div>
|
|
|
+ <div class="item" @click.stop="handleShowEditEnName">
|
|
|
+ 设置英文名称
|
|
|
</div>
|
|
|
<div class="item" @click.stop="handleDeleteChart" v-if="chartInfo.IsEdit">
|
|
|
- <img src="@/assets/imgs/myETA/icon_del.png" alt="">
|
|
|
- <span>删除</span>
|
|
|
+ 删除
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
@@ -710,7 +766,7 @@ let showSaveChartOther=ref(false)
|
|
|
<van-popup
|
|
|
v-model:show="showCopyTo"
|
|
|
:position="width>650?'center':'bottom'"
|
|
|
- round
|
|
|
+ :round="width>650?true:false"
|
|
|
closeable
|
|
|
>
|
|
|
<div class="global-pop-wrap_mobile chart-copyto-wrap">
|
|
@@ -726,9 +782,9 @@ let showSaveChartOther=ref(false)
|
|
|
@click="item.select=!item.select"
|
|
|
>{{item.MyChartClassifyName}}</li>
|
|
|
</ul>
|
|
|
- <div v-if="copyToOpt.length===0" style="padding:50px 0;text-align:center">无数据</div>
|
|
|
+ <div v-if="copyToOpt.length===0" style="padding:50px 0;text-align:center">暂无分类,快去创建我的分类吧~</div>
|
|
|
</div>
|
|
|
- <div class="bot-btn-box" @click="handleConfirmCopy">确定</div>
|
|
|
+ <div class="bot-btn-box" @click="handleConfirmCopy" v-if="copyToOpt.length>0">确定</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
|
|
@@ -739,6 +795,32 @@ let showSaveChartOther=ref(false)
|
|
|
:show="showSaveChartOther"
|
|
|
@close="showSaveChartOther=false"
|
|
|
/>
|
|
|
+
|
|
|
+ <!--保存图片弹窗 -->
|
|
|
+ <van-popup
|
|
|
+ v-model:show="savePicDialogShow"
|
|
|
+ position="center"
|
|
|
+ round
|
|
|
+ >
|
|
|
+ <div class="chart-picture-box">
|
|
|
+ <img :src="savePicSrc" alt="">
|
|
|
+ <p style="text-align: center;color:#999;margin-top: 10px;">长按保存图片</p>
|
|
|
+ </div>
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <!-- 修改英文名称 -->
|
|
|
+ <van-popup
|
|
|
+ v-model:show="showEidtEnName"
|
|
|
+ position="bottom"
|
|
|
+ :style="{height:'100%'}"
|
|
|
+ >
|
|
|
+ <set-chart-en-name
|
|
|
+ :isShow="showEidtEnName"
|
|
|
+ :chartInfo="chartInfoData"
|
|
|
+ @cancel="showEidtEnName=false"
|
|
|
+ @success="handleEditEnNameSuccess"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -846,23 +928,18 @@ let showSaveChartOther=ref(false)
|
|
|
}
|
|
|
|
|
|
.edb-list-box{
|
|
|
- .pad-limit-set-btn{
|
|
|
- display: none;
|
|
|
- }
|
|
|
- .list-lable{
|
|
|
- font-size: 36px;
|
|
|
- color: #000;
|
|
|
- margin-bottom: 20px;
|
|
|
- margin-top: 40px;
|
|
|
- }
|
|
|
- :deep(.van-cell){
|
|
|
- padding-left: 0;
|
|
|
- padding-right: 0;
|
|
|
- font-size: 32px;
|
|
|
- }
|
|
|
- :deep(.van-cell:after){
|
|
|
- right: 0;
|
|
|
- left: 0;
|
|
|
+ margin-top: 20px;
|
|
|
+ .list-item{
|
|
|
+ padding:18px;
|
|
|
+ display: flex;
|
|
|
+ gap:0 20px;
|
|
|
+ border-bottom: 1px solid #DCDFE6;
|
|
|
+ &:last-child{
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ .edb-name{
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -940,17 +1017,19 @@ let showSaveChartOther=ref(false)
|
|
|
|
|
|
}
|
|
|
.more-action-wrap{
|
|
|
+ .title-box{
|
|
|
+ font-size: 36px;
|
|
|
+ font-weight: 600;
|
|
|
+ text-align: center;
|
|
|
+ padding: $page-padding;
|
|
|
+ }
|
|
|
.item{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ justify-content: center;
|
|
|
padding: 32px 34px;
|
|
|
- border-bottom: 1px solid $border-color;
|
|
|
+ border-top: 1px solid $border-color;
|
|
|
font-size: 32px;
|
|
|
- img{
|
|
|
- width: 48px;
|
|
|
- height: 48px;
|
|
|
- margin-right: 20px;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -995,6 +1074,17 @@ let showSaveChartOther=ref(false)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.chart-picture-box{
|
|
|
+ width: 300PX;
|
|
|
+ border-radius: 6PX;
|
|
|
+ padding: 10PX;
|
|
|
+ background-color: #fff;
|
|
|
+ img{
|
|
|
+ width: 100%;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
@media screen and (min-width:$media-width){
|
|
|
.chart-detail-page{
|
|
|
padding: 30px;
|
|
@@ -1045,29 +1135,9 @@ let showSaveChartOther=ref(false)
|
|
|
}
|
|
|
|
|
|
.edb-list-box{
|
|
|
- position: relative;
|
|
|
- left: -30px;
|
|
|
- border-top: 1px solid $border-color;
|
|
|
- width: 100vw;
|
|
|
- padding: 0 30px;
|
|
|
- .pad-limit-set-btn{
|
|
|
- display: block;
|
|
|
- position: absolute;
|
|
|
- right: 30px;
|
|
|
- top: 20px;
|
|
|
- color: $theme-color;
|
|
|
- }
|
|
|
- .list-lable{
|
|
|
- margin-top: 20px;
|
|
|
- font-size: 16px;
|
|
|
- margin-bottom: 14px;
|
|
|
- }
|
|
|
- :deep(.van-cell){
|
|
|
- font-size: 14px;
|
|
|
- padding: 10px 20px;
|
|
|
- }
|
|
|
- .list-box{
|
|
|
- border: 1px solid $border-color;
|
|
|
+ margin-top: 30px;
|
|
|
+ .list-item{
|
|
|
+ padding: 10px 0;
|
|
|
}
|
|
|
}
|
|
|
.fix-bot-action-box{
|
|
@@ -1091,6 +1161,7 @@ let showSaveChartOther=ref(false)
|
|
|
border: 1px solid $theme-color;
|
|
|
margin-right: 10px;
|
|
|
border-radius: 3px;
|
|
|
+ color: $theme-color;
|
|
|
&.active{
|
|
|
color: #fff;
|
|
|
background-color: $theme-color;
|
|
@@ -1157,6 +1228,17 @@ let showSaveChartOther=ref(false)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .more-action-wrap{
|
|
|
+ .title-box{
|
|
|
+ font-size: 18px;
|
|
|
+ padding: 20px $page-padding;
|
|
|
+ }
|
|
|
+ .item{
|
|
|
+ padding: 20px $page-padding;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.chart-copyto-wrap{
|
|
|
width: 375px;
|
|
|
.head-box{
|
|
@@ -1187,5 +1269,9 @@ let showSaveChartOther=ref(false)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .chart-picture-box{
|
|
|
+ width: 500PX;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|