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