vue配合django实现导出excel功能

前端代码// 导出excel analysisExportExcel() { this.exportExcelLoading = true; designOpera({ opera_type: "analysis_export_excel", wjId: this.wjId }).then(data => { this.doDownload(data.b64data, data.filename); this.exportExcelLoading = fa...

Python,Vue 2020-06-24 PM 969℃ 0条

table中的td里面的div设置height100%无效的问题

必须给表格 <table>或行 <tr>或单元格 <td>定义高度用作参照系。如果高度小于右边单元格内容的高度则自动扩展。参考:http://bbs.suda123.com/archiver/webbiancheng/thread-116622-1.html

bug记录,CSS 2020-06-17 AM 823℃ 0条

vue用递归嵌套表格实现复杂报表

有时候需要实现一些复杂的报表,用合并单元格的方式实现比较复杂,可以使用嵌套表格的方式实现。效果代码<template> <div class="comp-dfs-table"> <table cellspacing="0" cellpadding="0"> <tr v-for="i in row" :key="'position' + i"> <td v-for="j in column...

Vue,CSS 2020-06-15 AM 893℃ 0条

问卷喵问卷调查系统部署教程

项目简介问卷喵是使用vue和django开发的问卷调查网站。Github项目地址:https://github.com/shanghaobo/wjcat-release示例环境服务器:ubuntu16.01.4Python:3.5Django:2.0uwsgi:2.0.17.1nginx:1.10.3部署教程部署架构采用uwsgi+nginx,部署步骤如下:安装uwsgisudo apt-get install python-dev #不安装这个,下面的安装可能会失败 sudo pip install uwsgi安装nginxsudo apt-get install nginx上传项目将...

Python,Linux,部署 2020-06-09 PM 1007℃ 0条

vue子组件给父组件传参,父组件添加自定义参数问题

很多时候用$emit携带参数传出事件,并且又需要在父组件中使用自定义参数时,这时我们就无法接受到子组件传出的参数了。找到了两种方法可以同时添加自定义参数的方法。单个参数// 子组件 this.$emit('test',this.param) // 父组件 @test='test($event,userDefined)'多个参数// 子组件 this.$emit('test',this.param1,this.param2, this.param3) // 父组件 arguments 是以数组的形式传入 @test='test(arguments,userDefined)'参考:https...

Vue 2020-06-03 PM 1079℃ 1条

Vue笔记

Vue自定义配置项config.jsexport default{ a:1, b:2 }component.vue<template> <div> {{config.a}} {{config.b}} </div> </template> <script> import config from 'config.js' </script>Vue判断变量是否存在if(typeof a!="undefined"){ console.log(&qu...

Vue 2020-06-03 PM 870℃ 0条

Vue根据组件名动态加载组件

Vue根据组件名动态加载组件Demo<component :is="comp"></component>data() { return { comp: () => import("./Test.vue") }; }封装的槽组件<template> <div> <component :is="comp" :data="data" @change="change"></compo...

Vue 2020-06-03 AM 784℃ 0条

CSS笔记

CSS禁止选中 -moz-user-select:none; /*火狐*/ -webkit-user-select:none; /*webkit浏览器*/ -ms-user-select:none; /*IE10*/ -khtml-user-select:none; /*早期浏览器*/ user-select:none;

CSS 2020-05-29 PM 813℃ 0条