|
@@ -214,6 +214,7 @@ import CaseQualityBox from './components/CaseQualityBox2.vue';
|
|
import DeathText from './components/DeathText.vue';
|
|
import DeathText from './components/DeathText.vue';
|
|
import VueDragResize from 'vue-drag-resize';
|
|
import VueDragResize from 'vue-drag-resize';
|
|
import Axios from 'axios'
|
|
import Axios from 'axios'
|
|
|
|
+import { Loading } from 'element-ui';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -445,8 +446,17 @@ export default {
|
|
|
|
|
|
|
|
|
|
onControll() {
|
|
onControll() {
|
|
|
|
+ let loadingInstance = Loading.service({
|
|
|
|
+ lock: true,
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
+ text: '执行中,请稍后...'
|
|
|
|
+ });
|
|
this.$axios2.get(`/quality_handle?zyh=${this.valData}`).then(res => {
|
|
this.$axios2.get(`/quality_handle?zyh=${this.valData}`).then(res => {
|
|
- this.$message.success('执行中...');
|
|
|
|
|
|
+ // this.$message.success('执行中...');
|
|
|
|
+ this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
|
|
|
|
+ loadingInstance.close();
|
|
|
|
+ });
|
|
if (res.data === true) {
|
|
if (res.data === true) {
|
|
this.valData = this.storageGet('getData');
|
|
this.valData = this.storageGet('getData');
|
|
if (this.valData) {
|
|
if (this.valData) {
|