Commit be67a6bd by xiaohai

导入导出

parent c8a09399
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<el-upload <el-upload
class="upload-demo" class="upload-demo"
ref="uploadEdit" ref="uploadEdit"
action="http://www.gicdev.com/haoban-manage-web/emp/upload" :action="url"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:on-change="getChange" :on-change="getChange"
...@@ -91,16 +91,19 @@ export default { ...@@ -91,16 +91,19 @@ export default {
uploadExcelComponent uploadExcelComponent
}, },
data() { data() {
var local = window.location.origin;
if (local.indexOf('localhost')!= -1) {
local = 'http://www.gicdev.com';
}
return { return {
type: "note", type: "import",
fileList: [] fileList: [],
url: local + "/haoban-manage-web/emp/upload"
}; };
}, },
methods: { methods: {
resetList(val) { resetList(val) {
this.fileList = []; this.fileList = [];
this.$refs.upload.clearFiles();
this.$refs.uploadEdit.clearFiles();
}, },
getErrorNote() { getErrorNote() {
let ths = this; let ths = this;
......
...@@ -213,7 +213,8 @@ ...@@ -213,7 +213,8 @@
pageSize: 100 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 => { .then(res => {
console.log(res, "menmers"); console.log(res, "menmers");
let list = []; 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