瀏覽代碼

refactor: 巡检样式调整

lanjianrong 4 年之前
父節點
當前提交
5da9c58301

+ 3 - 0
src/pages/Contract/Content/Income/components/Modal/index.tsx

@@ -165,6 +165,9 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
                     values.time = dayjsFormat(values.time, 'YYYY-MM-DD HH:mm:ss')
                     values.price = parseFloat(values.price)
                   }
+                  if (type === 'create') {
+                    values.price = parseFloat(values.price)
+                  }
                   onConfirm(values, type)
                 })
                 .catch(info => {

+ 1 - 1
src/pages/Quality/Content/Info/Summary/index.tsx

@@ -87,7 +87,7 @@ const Summary: React.FC<{}> = () => {
             <div>
               {state.rectifylist.map(item => {
                 return (
-                  <div key={item.id} className="pi-justify-between pi-lh-18 pi-height-18">
+                  <div key={item.id} className="pi-justify-between pi-lh-18 pi-height-18 pi-mg-2">
                     <Link to={{ pathname: '/console/quality/content/detail/info', state: { id: item.id } }}>{item.inspectionDetail}</Link>
                     <div className="pi-align-center">
                       <span className="pi-mg-right-5">{item.auditName}</span>

+ 7 - 3
src/pages/Quality/Content/Info/Summary/pieChart.tsx

@@ -28,11 +28,15 @@ const DemoPie: React.FC<{data: iPieChartProps}> = ({ data }) => {
       autoRotate: false,
       content: '{name}: {percentage}'
     },
+    statistic: {
+      title: false,
+      content: false
+    },
     interactions: [
       { type: 'element-selected' },
-      { type: 'pie-legend-active' },
-      // { type: 'element-active' }
-      { type: 'pie-statistic-active' }
+      // { type: 'pie-legend-active' },
+      { type: 'element-active' }
+      // { type: 'pie-statistic-active' }
     ],
     legend: {
       layout: 'horizontal',

+ 1 - 1
src/pages/Safe/Content/Info/Summary/index.tsx

@@ -87,7 +87,7 @@ const Summary: React.FC<{}> = () => {
             <div>
               {state.rectifylist.map(item => {
                 return (
-                  <div key={item.id} className="pi-justify-between pi-lh-18 pi-height-18">
+                  <div key={item.id} className="pi-justify-between pi-lh-18 pi-height-18 pi-mg-2">
                     <Link to={{ pathname: '/console/safe/content/detail/info', state: { id: item.id } }}>{item.inspectionDetail}</Link>
                     <div className="pi-align-center">
                       <span className="pi-mg-right-5">{item.auditName}</span>

+ 7 - 4
src/pages/Safe/Content/Info/Summary/pieChart.tsx

@@ -23,17 +23,20 @@ const DemoPie: React.FC<{data: iPieChartProps}> = ({ data }) => {
     renderer: 'canvas',
     innerRadius: 0.7,
     className: 'echarts-pie',
-
     label: {
       type: 'outer',
       autoRotate: false,
       content: '{name}: {percentage}'
     },
+    statistic: {
+      title: false,
+      content: false
+    },
     interactions: [
       { type: 'element-selected' },
-      { type: 'pie-legend-active' },
-      // { type: 'element-active' }
-      { type: 'pie-statistic-active' }
+      // { type: 'pie-legend-active' },
+      { type: 'element-active' }
+      // { type: 'pie-statistic-active' }
     ],
     legend: {
       layout: 'horizontal',