|
|
@@ -144,33 +144,37 @@ export default defineComponent({
|
|
|
beforeSend: function (request) {
|
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (response) {
|
|
|
_self.loading = false;
|
|
|
- console.log(data);
|
|
|
- _self.infoWindowDto = data;
|
|
|
+
|
|
|
+ if(response.errorCode == 0){
|
|
|
+ _self.infoWindowDto = response.data;
|
|
|
|
|
|
- // 计算显示的部件
|
|
|
- if (_self.infoWindowDto.componentName != undefined && _self.infoWindowDto.componentName != '') {
|
|
|
- _self.componentName = _self.infoWindowDto.componentName;
|
|
|
- _self.dynamicInit();
|
|
|
- } else if (_self.infoWindowDto.infoWindowType == undefined || _self.infoWindowDto.infoWindowType == 'TableGrid'
|
|
|
- || _self.infoWindowDto.infoWindowType == 'NONE') {
|
|
|
- _self.componentName = 'QueryPage';
|
|
|
- }
|
|
|
+ // 计算显示的部件
|
|
|
+ if (_self.infoWindowDto.componentName != undefined && _self.infoWindowDto.componentName != '') {
|
|
|
+ _self.componentName = _self.infoWindowDto.componentName;
|
|
|
+ _self.dynamicInit();
|
|
|
+ } else if (_self.infoWindowDto.infoWindowType == undefined || _self.infoWindowDto.infoWindowType == 'TableGrid'
|
|
|
+ || _self.infoWindowDto.infoWindowType == 'NONE') {
|
|
|
+ _self.componentName = 'QueryPage';
|
|
|
+ }
|
|
|
|
|
|
- if(_self.componentName === 'QueryPage' || _self.componentName === 'ClientOrganization'){
|
|
|
- _self.componentLoadedCount ++;
|
|
|
- }
|
|
|
+ if(_self.componentName === 'QueryPage' || _self.componentName === 'ClientOrganization'){
|
|
|
+ _self.componentLoadedCount ++;
|
|
|
+ }
|
|
|
|
|
|
- _self.$nextTick(function () {
|
|
|
- if (_self.infoWindowDto.componentName == undefined || _self.infoWindowDto.componentName == '') {
|
|
|
- if (_self.infoWindowDto.infoWindowType == undefined || _self.infoWindowDto.infoWindowType == 'TableGrid' || _self.infoWindowDto.infoWindowType == 'NONE') {
|
|
|
- _self.$refs.infoComponent.initWidget(data);
|
|
|
- } else {
|
|
|
- _self.$refs.infoComponent.initWidget(data);
|
|
|
+ _self.$nextTick(function () {
|
|
|
+ if (_self.infoWindowDto.componentName == undefined || _self.infoWindowDto.componentName == '') {
|
|
|
+ if (_self.infoWindowDto.infoWindowType == undefined || _self.infoWindowDto.infoWindowType == 'TableGrid' || _self.infoWindowDto.infoWindowType == 'NONE') {
|
|
|
+ _self.$refs.infoComponent.initWidget(data);
|
|
|
+ } else {
|
|
|
+ _self.$refs.infoComponent.initWidget(data);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ Notify.error('查询窗口定义错误', response.errorMessage, false);
|
|
|
+ }
|
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
_self.loading = false;
|