|
|
@@ -50,7 +50,7 @@
|
|
|
@select-changed="queryInfoWindowData"
|
|
|
/>
|
|
|
</div>
|
|
|
- <Loading ref="loading" />
|
|
|
+ <Loading v-if="loading" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -84,6 +84,7 @@ export default {
|
|
|
infoGridFields: [], // 表格字段
|
|
|
infoWindowData: [],
|
|
|
tabIndex: 1,
|
|
|
+ loading: false,
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -108,7 +109,7 @@ export default {
|
|
|
if (_self.infoWindowNo === undefined || _self.infoWindowNo === null || _self.infoWindowNo === '') {
|
|
|
return;
|
|
|
}
|
|
|
- _self.$refs.loading.show();
|
|
|
+ _self.loading=true;
|
|
|
$.ajax({
|
|
|
url: Common.getApiURL('InfoWindowResource/uniqueByNo'),
|
|
|
type: 'GET',
|
|
|
@@ -118,7 +119,7 @@ export default {
|
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
|
success: function (data) {
|
|
|
- _self.$refs.loading.show();
|
|
|
+ _self.loading=true;
|
|
|
_self.infoWindowDto = data;
|
|
|
_self.$emit('showTitle', data.name);
|
|
|
_self.$nextTick(function () {
|
|
|
@@ -126,7 +127,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
- _self.$refs.loading.show();
|
|
|
+ _self.loading=true;
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
},
|
|
|
});
|
|
|
@@ -207,7 +208,7 @@ export default {
|
|
|
|
|
|
var infoQueryParam = this.$refs.docGeneratorGrid.getQueryParam();
|
|
|
infoQueryParam.condition = _self.$refs.queryCondition.getQueryCondition();
|
|
|
- _self.$refs.loading.show();
|
|
|
+ _self.loading=true;
|
|
|
$.ajax({
|
|
|
url: Common.getApiURL('InfoWindowResource/queryInfoWindowDataSimple'),
|
|
|
type: 'post',
|
|
|
@@ -218,7 +219,7 @@ export default {
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(infoQueryParam),
|
|
|
success: function (data) {
|
|
|
- _self.$refs.loading.hide();
|
|
|
+ _self.loading=false;
|
|
|
console.log(data);
|
|
|
if (data != undefined && data.range != undefined) {
|
|
|
_self.infoWindowData = data.dataList;
|
|
|
@@ -226,7 +227,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
- _self.$refs.loading.hide();
|
|
|
+ _self.loading=false;
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
},
|
|
|
});
|
|
|
@@ -242,7 +243,7 @@ export default {
|
|
|
var infoQueryParam = this.$refs.docGeneratorGrid.getQueryParam();
|
|
|
infoQueryParam.infoFilterFieldValues = _self.$refs.queryCondition.getQueryCondition();
|
|
|
|
|
|
- _self.$refs.loading.show();
|
|
|
+ _self.loading=true;
|
|
|
$.ajax({
|
|
|
url: Common.getApiURL('InfoWindowResource/queryInfoWindowDataComplex'),
|
|
|
type: 'post',
|
|
|
@@ -253,7 +254,7 @@ export default {
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(infoQueryParam),
|
|
|
success: function (data) {
|
|
|
- _self.$refs.loading.hide();
|
|
|
+ _self.loading=false;
|
|
|
console.log(data);
|
|
|
if (data != undefined && data.range != undefined) {
|
|
|
_self.infoWindowData = data.dataList;
|
|
|
@@ -261,7 +262,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
- _self.$refs.loading.hide();
|
|
|
+ _self.loading=false;
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
},
|
|
|
});
|