This commit is contained in:
zhuoda 2020-04-20 17:08:42 +08:00
parent d53f271fc1
commit e486c1ff33
5 changed files with 26 additions and 22 deletions

View File

@ -25,32 +25,32 @@ gitee: [https://gitee.com/lab1024/smart-admin](https://gitee.com/lab1024/smart-
#### 演示图
<table>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/11.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/12.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/11.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/12.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/11.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/21.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/11.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/21.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/31.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/32.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/31.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/32.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/41.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/42.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/41.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/42.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/51.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/52.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/51.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/52.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/61.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/62.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/61.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/62.png"/></td>
</tr>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/71.png"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/cut/1.1.0/72.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/71.png"/></td>
<td><img src="http://img.zhuoluodada.cn/cut/1.1.0/72.png"/></td>
</tr>
</table>
@ -111,8 +111,8 @@ SmartAdmin微信群**加我微信拉你入群!**
<table>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/wechat/zhuoda-wechat.jpg"/></td>
<td><img src="http://q8expnedf.bkt.clouddn.com/qq/smart-admin-qq-group.png"/></td>
<td><img src="http://img.zhuoluodada.cn/wechat/zhuoda-wechat.jpg"/></td>
<td><img src="http://img.zhuoluodada.cn/qq/smart-admin-qq-group.png"/></td>
</tr>
</table>
@ -122,7 +122,7 @@ SmartAdmin微信群**加我微信拉你入群!**
>*佛祖保佑捐赠这些人写程序永无bug工资翻倍迎娶白富美走上人生巅峰*
<table>
<tr>
<td><img src="http://q8expnedf.bkt.clouddn.com/wechat/zhuoda-wechat-money-v1.jpg"/></td>
<td><img src="http://img.zhuoluodada.cn/wechat/zhuoda-wechat-money-v1.jpg"/></td>
</tr>
</table>

View File

@ -1,4 +1,4 @@
import { postAxios, getAxios } from '@/lib/http';
import { postAxios, getAxios, getDownloadAxios} from '@/lib/http';
import config from '@/config';
const baseUrl = config.baseUrl.apiUrl;
export const fileApi = {
@ -8,7 +8,7 @@ export const fileApi = {
},
// 系统文件下载通过接口
downLoadFile: id => {
return getAxios('/api/file/downLoad?id=' + id);
return getDownloadAxios('/api/file/downLoad?id=' + id);
},
// 文件上传
fileUpload: (type, data) => {

View File

@ -112,6 +112,10 @@ export const postFileUploadAxios = (url, data) => {
return axios.post(url, data, { headers: { 'Content-Type': 'multipart/form-data' } });
};
export const getDownloadAxios = (url) => {
return axios.get(url, { responseType: 'blob' });
};
export const postDownloadAxios = (url, data) => {
return axios.post(url, data, { responseType: 'blob' });
};

View File

@ -5,11 +5,11 @@
<Input
@on-change="filterEmployee"
placeholder="请输入员工名称"
style="max-width: 300px"
style="max-width: 300px;position:fixed;z-index:9999"
v-if="!isDepartment"
v-model="searchKeywords"
/>
<Tree :data="treeData"></Tree>
<Tree style="margin-top:40px" :data="treeData"></Tree>
</Col>
</Row>
</div>

View File

@ -86,7 +86,7 @@
style="overflow-y:scroll;height: 290px;text-align: center"
>
<Row :key="index" v-for="(item,index) in prepAddEmployees">
<Col span="24" style="font-size: 15px;text-align: center;">
<Col span="24" style="font-size: 15px;text-align: left;">
<icon type="ios-people"></icon>
{{item.manageName}}
<Button @click.native="deletePrepEmployee(index)" icon="md-close" type="text"></Button>