|
@@ -26,7 +26,7 @@
|
|
<el-button v-if="checkBtnRole('add')" size="mini" type="primary" @click="addOrEdit('add')"
|
|
<el-button v-if="checkBtnRole('add')" size="mini" type="primary" @click="addOrEdit('add')"
|
|
>新增账号</el-button
|
|
>新增账号</el-button
|
|
>
|
|
>
|
|
- <el-button style="margin-left: 20px" type="primary" size="mini" @click="handleExportListGongCheng"
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="handleExport"
|
|
>导出数据</el-button
|
|
>导出数据</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -190,6 +190,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { downloadFiles } from '@/utils/util'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
import { getDealerListV2 } from '@/api/basic_data/dealer'
|
|
import { getDealerListV2 } from '@/api/basic_data/dealer'
|
|
import {
|
|
import {
|
|
@@ -203,8 +204,7 @@ import {
|
|
editSubAccount,
|
|
editSubAccount,
|
|
editEngineeringUser,
|
|
editEngineeringUser,
|
|
getDetailGongCheng,
|
|
getDetailGongCheng,
|
|
- delUserGongCheng,
|
|
|
|
- exportListGongCheng
|
|
|
|
|
|
+ delUserGongCheng
|
|
} from '@/api/setting'
|
|
} from '@/api/setting'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -289,18 +289,17 @@ export default {
|
|
this.subCustomerList = res.data.records
|
|
this.subCustomerList = res.data.records
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleExportListGongCheng() {
|
|
|
|
- exportListGongCheng({}, `${this.$route.meta.title}`)
|
|
|
|
- .then(res => {
|
|
|
|
- console.log('chengg')
|
|
|
|
- this.$message({
|
|
|
|
- message: '下载成功',
|
|
|
|
- type: 'success'
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(err => {
|
|
|
|
- this.$message.error('下载失败')
|
|
|
|
- })
|
|
|
|
|
|
+ // 导出
|
|
|
|
+ handleExport() {
|
|
|
|
+
|
|
|
|
+ let screenData = {
|
|
|
|
+ pageNum: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ parentId: this.parentId,
|
|
|
|
+ userName: this.screenForm.userName,
|
|
|
|
+ isMaster: false
|
|
|
|
+ }
|
|
|
|
+ downloadFiles('/admin/user/listGongCheng/export', screenData)
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
this.listLoading = true
|
|
this.listLoading = true
|