|
@@ -11,15 +11,10 @@ let chartId=route.query.chartId
|
|
|
// 获取配置
|
|
|
const chartBaseUrl = ref('')
|
|
|
function getSystemConfig() {
|
|
|
- apiCommon.systemConfig().then(res => {
|
|
|
+ apiCommon.systemConfig({config:'ChartLibUrlPrefix'}).then(res => {
|
|
|
if (res.Ret === 200) {
|
|
|
- const arr = res.Data || []
|
|
|
- console.log(arr);
|
|
|
- arr.forEach(item => {
|
|
|
- if (item.ConfKey === 'ChartViewUrl') {
|
|
|
- chartBaseUrl.value = item.ConfVal
|
|
|
- }
|
|
|
- });
|
|
|
+ const ConfVal = res.data.Value || ''
|
|
|
+ chartBaseUrl.value = ConfVal
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -29,7 +24,8 @@ const chartInfo = ref(null)
|
|
|
function getChartDetail() {
|
|
|
chartInfo.value=null
|
|
|
apiChart.getChartDetail({
|
|
|
- ChartInfoId:Number(chartId)
|
|
|
+ UniqueCode: route.query.UniqueCode,
|
|
|
+ MiniSource: 'ht'
|
|
|
}).then(res => {
|
|
|
if (res.Ret === 200) {
|
|
|
chartInfo.value = res.Data
|
|
@@ -58,7 +54,7 @@ async function handleCollect() {
|
|
|
}
|
|
|
|
|
|
const chartRenderUrl = computed(() => {
|
|
|
- return `${chartBaseUrl.value}/chart/preview?code=${chartInfo.value.UniqueCode}&source=etamini&token=${route.query.token}`
|
|
|
+ return `${chartBaseUrl.value}/chart/previewHT?code=${chartInfo.value.UniqueCode}&token=${route.query.token}`
|
|
|
})
|
|
|
|
|
|
|