diff --git a/src/api/propertyPlan/index.js b/src/api/propertyPlan/index.js new file mode 100644 index 0000000..0838a9f --- /dev/null +++ b/src/api/propertyPlan/index.js @@ -0,0 +1,41 @@ +import request from "@/utils/request"; + +export function index (params) { + return request({ + url: '/api/admin/property-plan/index', + method: 'get', + params + }) +} + +export function show (params) { + return request({ + url: '/api/admin/property-plan/show', + method: 'get', + params + }) +} + +export function store (data) { + return request({ + url: '/api/admin/property-plan/store', + method: 'post', + data + }) +} + +export function save (data) { + return request({ + url: '/api/admin/property-plan/save', + method: 'post', + data + }) +} + +export function destroy (params) { + return request({ + url: '/api/admin/property-plan/destroy', + method: 'get', + params + }) +} diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1478809..e67f3e1 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,54 +2,6 @@
{row.department.name}
{ - row.plan?.map(i => { + row.plan?.map((i,index) => { return ({i.name}
+{i.name}
{ i.money }
+{ i.money }
) }) } @@ -146,9 +146,9 @@ export default { },0) } { - row.plan?.map(i => { + row.plan?.map((i,index) => { return ( -{ i.detail[z].plan_total }
+{ i.detail[z].plan_total }
) }) } @@ -169,9 +169,9 @@ export default { },0) } { - row.plan?.map(i => { + row.plan?.map((i,index) => { return ( -{ i.detail[z].act_total }
+{ i.detail[z].act_total }
) }) } @@ -194,9 +194,9 @@ export default { },0)) }% { - row.plan?.map(i => { + row.plan?.map((i,index) => { return ( -{ this.percent(i.detail[z].act_total,i.detail[z].plan_total) }%
+{ this.percent(i.detail[z].act_total,i.detail[z].plan_total) }%
) }) } @@ -219,9 +219,9 @@ export default { '/' } { - row.plan?.map(i => { + row.plan?.map((i,index) => { return ( -{ +
{ i.detail?.reduce((a,b) => { return a + parseInt(b.plan_total) },0) @@ -250,7 +250,7 @@ export default { }, }, computed: {}, - created() { + created() { this.select.year = this.$moment().format('YYYY'); this.getList(); }, @@ -258,6 +258,9 @@ export default {