|
|
@@ -158,6 +158,7 @@
|
|
|
:tipText="tipModalText"
|
|
|
@close_tip_modal="closeTipModal"
|
|
|
/>
|
|
|
+ <Loading v-if="uploading"></Loading>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -167,6 +168,7 @@ import Count from "../../components/Count";
|
|
|
import Tablepage from "../../components/TablePage";
|
|
|
import TipModal from "../../components/TipModal";
|
|
|
import Datepicker from 'vuejs-datepicker';
|
|
|
+import Loading from "./components/UploadLoading"
|
|
|
import {zh} from 'vuejs-datepicker/dist/locale'
|
|
|
export default {
|
|
|
props: {
|
|
|
@@ -180,7 +182,8 @@ export default {
|
|
|
Count,
|
|
|
Tablepage,
|
|
|
TipModal,
|
|
|
- Datepicker
|
|
|
+ Datepicker,
|
|
|
+ Loading
|
|
|
},
|
|
|
watch: {},
|
|
|
data() {
|
|
|
@@ -215,6 +218,7 @@ export default {
|
|
|
tipModalFlag: false,
|
|
|
tipModalText: "",
|
|
|
isFeedBack: "0",
|
|
|
+ uploading: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -442,9 +446,11 @@ export default {
|
|
|
if (this.scope === "0") {
|
|
|
paramData.append("dealerList", this.idList);
|
|
|
}
|
|
|
+ this.uploading = true;
|
|
|
this.$http
|
|
|
.uploadFile("/firmsUpload", paramData)
|
|
|
.then((res) => {
|
|
|
+ this.uploading = false;
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
this.tipModalFlag = true;
|
|
|
this.tipModalText = "上传成功!";
|