@@ -30,7 +30,7 @@
export default {
name: "index",
props:{
- size:{ type: String, default: "small" },
+ size:{type: String, default: "small" },
show:{type:Boolean, default: false},
type:{type: String, default: ""}
},
@@ -65,7 +65,8 @@ export default {
if(res.data.type == 8){
this.list[2] = item;
}
- this.$emit('updateShow',item);
+ this.$emit('updateShow', item);
+
if(res.data.status==1){
this.down(res.data);
}
diff --git a/src/components/scImport/index.vue b/src/components/scImport/index.vue
new file mode 100644
index 0000000..d055896
--- /dev/null
+++ b/src/components/scImport/index.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+ 请将Excel拖到此处
+ ,或点击上传 Excel
+
+
+
+ 如果数据导入中途业务出错,请不要刷新页面,修改后继续点击导入
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确定导入
+
+
+
+
+
+
+
diff --git a/src/scui.js b/src/scui.js
index 8fad5f2..0f98cff 100644
--- a/src/scui.js
+++ b/src/scui.js
@@ -27,6 +27,7 @@ import scInput from "./components/scInput";
import scVgInput from "./components/scInput/inputVague";
import scSearch from "./components/scSearch";
import scExport from "./components/scExport";
+import scImport from "./components/scImport";
import scStatusIndicator from './components/scMini/scStatusIndicator'
import scTrend from './components/scMini/scTrend'
@@ -80,6 +81,7 @@ export default {
app.component('scVgInput', scVgInput);
app.component('scSearch', scSearch);
app.component('scExport', scExport);
+ app.component('scImport', scImport);
//注册全局指令
app.directive('auth', auth)
diff --git a/src/utils/request.js b/src/utils/request.js
index 5e9bc9a..b361d81 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -249,8 +249,8 @@ const http = {
*/
jsonp: function (url, name = 'jsonp') {
return new Promise((resolve) => {
- var script = document.createElement('script')
- var _id = `jsonp${Math.ceil(Math.random() * 1000000)}`
+ const script = document.createElement('script');
+ const _id = `jsonp${Math.ceil(Math.random() * 1000000)}`;
script.id = _id
script.type = 'text/javascript'
script.src = url
diff --git a/src/views/setting/company/index.vue b/src/views/setting/company/index.vue
index 1b7c4bb..5a64353 100644
--- a/src/views/setting/company/index.vue
+++ b/src/views/setting/company/index.vue
@@ -51,21 +51,20 @@
-
+
+ 下载导入模版
+