new-map
parent
66271f28ad
commit
ea1d35aa1f
|
|
@ -31,9 +31,11 @@
|
||||||
setDrawerProps({ confirmLoading: false })
|
setDrawerProps({ confirmLoading: false })
|
||||||
isUpdate.value = data?.isUpdate
|
isUpdate.value = data?.isUpdate
|
||||||
if (unref(isUpdate)) {
|
if (unref(isUpdate)) {
|
||||||
|
console.log(data)
|
||||||
|
|
||||||
await setFieldsValue({
|
await setFieldsValue({
|
||||||
id: data.id,
|
id: data.id,
|
||||||
week: data.week.toString(),
|
week: data.week,
|
||||||
year: dayjs(data.year.toString()),
|
year: dayjs(data.year.toString()),
|
||||||
price: data.price,
|
price: data.price,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,7 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '周',
|
title: '周',
|
||||||
dataIndex: 'week',
|
dataIndex: 'week_label',
|
||||||
customRender: ({ text }) => {
|
|
||||||
return '第 ' + text + ' 周'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '价格',
|
title: '价格',
|
||||||
|
|
@ -58,7 +55,7 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
valueField: 'key',
|
valueField: 'id',
|
||||||
},
|
},
|
||||||
colProps: { span: 8 },
|
colProps: { span: 8 },
|
||||||
},
|
},
|
||||||
|
|
@ -96,7 +93,7 @@ export const accountFormSchema: FormSchema[] = [
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
valueField: 'key',
|
valueField: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<Pagination
|
<Pagination
|
||||||
v-model:current="current"
|
v-model:current="current"
|
||||||
v-model:pageSize="pageSize"
|
v-model:pageSize="pageSize"
|
||||||
:total="52"
|
:total="48"
|
||||||
:showSizeChanger="false"
|
:showSizeChanger="false"
|
||||||
@change="changePage"
|
@change="changePage"
|
||||||
/>
|
/>
|
||||||
|
|
@ -110,6 +110,7 @@
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
rotate: 45,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
|
|
@ -148,6 +149,9 @@
|
||||||
Data.x_axis = resData.x_axis
|
Data.x_axis = resData.x_axis
|
||||||
Data.series = resData.series
|
Data.series = resData.series
|
||||||
|
|
||||||
|
current.value = Math.ceil(resData.c_week / pageSize.value)
|
||||||
|
console.log(current.value)
|
||||||
|
|
||||||
chartsInit()
|
chartsInit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -156,6 +160,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Data,
|
||||||
changePage,
|
changePage,
|
||||||
chartRef,
|
chartRef,
|
||||||
current,
|
current,
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,12 @@
|
||||||
label: {
|
label: {
|
||||||
show: false,
|
show: false,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
normal: {
|
||||||
|
show: isBack.value,
|
||||||
|
textStyle: {
|
||||||
|
color: '#fff',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
// areaColor: {
|
// areaColor: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue