diff --git a/src/api/big/resource.js b/src/api/big/resource.js new file mode 100644 index 0000000..f8899db --- /dev/null +++ b/src/api/big/resource.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function homepageStatistics(query) { + return request({ + url: '/big/resource/homepageStatistics', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/business/import.js b/src/api/business/import.js index 3124286..399d9e4 100644 --- a/src/api/business/import.js +++ b/src/api/business/import.js @@ -60,3 +60,29 @@ export function printImport(query) { params: query }) } + +// 开始导入任务 +export function startImport(id) { + return request({ + url: '/business/import/start/' + id, + method: 'post', + }) +} + +// 导入任务日志 +export function importLog(id, offset) { + return request({ + url: '/business/import/log/' + id, + method: 'get', + params: {offset} + }) +} + +// 下载导入任务日志 +export function downloadLog(id) { + return request({ + url: '/business/import/downloadLog/' + id, + method: 'get', + responseType: 'blob', + }) +} diff --git a/src/api/resource/land.js b/src/api/resource/land.js index 8cd5a69..25b3c2e 100644 --- a/src/api/resource/land.js +++ b/src/api/resource/land.js @@ -75,4 +75,4 @@ export function printLand(query) { method: 'get', params: query }) -} +} \ No newline at end of file diff --git a/src/components/house/MapField.vue b/src/components/gis/MapField.vue similarity index 100% rename from src/components/house/MapField.vue rename to src/components/gis/MapField.vue diff --git a/src/utils/index.js b/src/utils/index.js index 9375db7..8dd6b7d 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -388,3 +388,31 @@ export function isNumberStr(str) { return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str) } +export function save(name, src) { + let a = 0; + let url = null; + try + { + url = window.URL.createObjectURL(new Blob([src])) + a = document.createElement('a'); + document.body.append(a); + a.style.display = 'none' + a.href = url; + a.setAttribute('download', name) + a.click(); + return true; + } + catch(e) + { + console.error(e); + return false; + } + finally + { + if(a) + a.remove(); + if(url) + window.URL.revokeObjectURL(url); + } +} + diff --git a/src/views/app/index.vue b/src/views/app/index.vue index 7d69a92..6a23adb 100644 --- a/src/views/app/index.vue +++ b/src/views/app/index.vue @@ -14,7 +14,7 @@ - +

通知

diff --git a/src/views/app/login.vue b/src/views/app/login.vue index e1b640b..8adeec9 100644 --- a/src/views/app/login.vue +++ b/src/views/app/login.vue @@ -55,7 +55,7 @@ -

中农融信北京科技股份有限公司

+

{{this.$store.getters.technicalSupport == "" ? "中农融信(北京)科技股份有限公司" : this.$store.getters.technicalSupport}}

diff --git a/src/views/app/map-bf.vue b/src/views/app/map-bf.vue index 83c8796..89c62f9 100644 --- a/src/views/app/map-bf.vue +++ b/src/views/app/map-bf.vue @@ -183,13 +183,13 @@ import { deptTreeSelect } from "@/api/system/user" import {getConfigKey} from "@/api/system/config"; import {getDept,getInfoByImportCode} from "@/api/system/dept"; - import MapField from "@/components/house/MapField"; + import $ from "jquery"; export default { name: "contractedVillageContractor", - components: { Treeselect, Splitpanes, Pane,MapField }, + components: { Treeselect, Splitpanes, Pane }, data() { return { form: {}, diff --git a/src/views/app/project/list.vue b/src/views/app/project/list.vue index b1bcd53..39918e2 100644 --- a/src/views/app/project/list.vue +++ b/src/views/app/project/list.vue @@ -1,39 +1,21 @@ - @@ -59,7 +40,6 @@ diff --git a/src/views/index.vue b/src/views/index.vue index d7d8be7..9fbf71d 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -11,72 +11,90 @@

地块总数

-

12,345

+

承包总金额

-

¥ 456,789

+

¥

待调查总数

-

8,642

+

兑现总金额

-

8,642

+

¥

已调查总数

-

¥ 456,789

+

尚欠总金额

-

¥ 456,789

+

¥

地块总面积

-

8,642

+

-

经营总面积

-

¥ 456,789

+

年总收益

+

¥

-

机动地总面积

-

¥ 456,789

+

-

年总收益

-

8,642

+

经营总面积

+

+