Commit be67a6bd by xiaohai

导入导出

parent c8a09399
......@@ -63,7 +63,7 @@
<el-upload
class="upload-demo"
ref="uploadEdit"
action="http://www.gicdev.com/haoban-manage-web/emp/upload"
:action="url"
:on-preview="handlePreview"
:on-remove="handleRemove"
:on-change="getChange"
......@@ -91,16 +91,19 @@ export default {
uploadExcelComponent
},
data() {
var local = window.location.origin;
if (local.indexOf('localhost')!= -1) {
local = 'http://www.gicdev.com';
}
return {
type: "note",
fileList: []
type: "import",
fileList: [],
url: local + "/haoban-manage-web/emp/upload"
};
},
methods: {
resetList(val) {
this.fileList = [];
this.$refs.upload.clearFiles();
this.$refs.uploadEdit.clearFiles();
},
getErrorNote() {
let ths = this;
......
......@@ -213,7 +213,8 @@
pageSize: 100
}
};
postRequest("/haoban-manage-web/shared-contact/find-shared-member", params)
params = JSON.stringify(params);
postJsonRequest("/haoban-manage-web/shared-contact/find-shared-member", params)
.then(res => {
console.log(res, "menmers");
let list = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment