|
@@ -12,14 +12,14 @@
|
|
{{values.currentNum}}{{length}}
|
|
{{values.currentNum}}{{length}}
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <a :href="downloadProject('excel')">
|
|
|
|
|
|
+ <a :href="downloadProject('excel')" target="_self">
|
|
|
|
|
|
<!-- <a :href=`/api/datacenter/graphic/export?code=对象ID${localStorage.getItem('RelationType')?relType=${localStorage.getItem('RelationType')} : null}${ localStorage.getItem('ZoneType') ? `&zoneType=${localStorage.getItem('ZoneType')}` : null}` >-->
|
|
<!-- <a :href=`/api/datacenter/graphic/export?code=对象ID${localStorage.getItem('RelationType')?relType=${localStorage.getItem('RelationType')} : null}${ localStorage.getItem('ZoneType') ? `&zoneType=${localStorage.getItem('ZoneType')}` : null}` >-->
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
class="mt-10"
|
|
class="mt-10"
|
|
>
|
|
>
|
|
- {{values.download}}
|
|
|
|
|
|
+ {{ values.download }}
|
|
</el-button>
|
|
</el-button>
|
|
</a>
|
|
</a>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -87,50 +87,50 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {mapGetters} from 'vuex'
|
|
|
|
- import storage from '@/framework/utils/storage'
|
|
|
|
-
|
|
|
|
- export default {
|
|
|
|
- name: "exportExcel",
|
|
|
|
- props: ['values','length'],
|
|
|
|
- data() {
|
|
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
|
+import storage from '@/framework/utils/storage'
|
|
|
|
+
|
|
|
|
+export default {
|
|
|
|
+ name: "exportExcel",
|
|
|
|
+ props: ['values', 'length'],
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ // relationCount:localStorage.getItem('count'),
|
|
|
|
+ dialogExport: false,
|
|
|
|
+ dialogProcess: false,
|
|
|
|
+ activities: [{
|
|
|
|
+ content: '数据文件处理中..',
|
|
|
|
+ size: 'large',
|
|
|
|
+ type: 'primary',
|
|
|
|
+ icon: 'el-icon-check',
|
|
|
|
+ color: '#0bbd87'
|
|
|
|
+ }, {
|
|
|
|
+ content: '数据处理成功',
|
|
|
|
+ color: '#0bbd87',
|
|
|
|
+ icon: 'el-icon-check',
|
|
|
|
+ size: 'large',
|
|
|
|
+ type: 'primary',
|
|
|
|
+ }],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters('layout', ['projectId']),
|
|
|
|
+ headers() {
|
|
return {
|
|
return {
|
|
- // relationCount:localStorage.getItem('count'),
|
|
|
|
- dialogExport: false,
|
|
|
|
- dialogProcess: false,
|
|
|
|
- activities: [{
|
|
|
|
- content: '数据文件处理中..',
|
|
|
|
- size: 'large',
|
|
|
|
- type: 'primary',
|
|
|
|
- icon: 'el-icon-check',
|
|
|
|
- color: '#0bbd87'
|
|
|
|
- }, {
|
|
|
|
- content: '数据处理成功',
|
|
|
|
- color: '#0bbd87',
|
|
|
|
- icon: 'el-icon-check',
|
|
|
|
- size: 'large',
|
|
|
|
- type: 'primary',
|
|
|
|
- }],
|
|
|
|
|
|
+ 'ProjectId': this.projectId,
|
|
|
|
+ 'Comming': 'adm',
|
|
|
|
+ 'Account': storage.get("user_name")
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- computed: {
|
|
|
|
- ...mapGetters('layout', ['projectId']),
|
|
|
|
- headers() {
|
|
|
|
- return {
|
|
|
|
- 'ProjectId': this.projectId,
|
|
|
|
- 'Comming': 'adm',
|
|
|
|
- 'Account': storage.get("user_name")
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- dataId() {
|
|
|
|
- return {
|
|
|
|
- relType: localStorage.getItem('RelationType') || '',
|
|
|
|
- zoneType: localStorage.getItem('ZoneType') || '',
|
|
|
|
- projectId: this.projectId
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ dataId() {
|
|
|
|
+ return {
|
|
|
|
+ relType: localStorage.getItem('RelationType') || '',
|
|
|
|
+ zoneType: localStorage.getItem('ZoneType') || '',
|
|
|
|
+ projectId: this.projectId
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
downloadProject(str) {
|
|
downloadProject(str) {
|
|
let relType = localStorage.getItem('RelationType') != '' ? `?relType=${localStorage.getItem('RelationType')}` : '';
|
|
let relType = localStorage.getItem('RelationType') != '' ? `?relType=${localStorage.getItem('RelationType')}` : '';
|
|
let zoneType = localStorage.getItem('ZoneType') != '' ? `&zoneType=${localStorage.getItem('ZoneType')}` : '';
|
|
let zoneType = localStorage.getItem('ZoneType') != '' ? `&zoneType=${localStorage.getItem('ZoneType')}` : '';
|