|
@@ -1,11 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="btn-group" role="group">
|
|
<div class="btn-group" role="group">
|
|
|
<template
|
|
<template
|
|
|
- v-if="
|
|
|
|
|
- showTabDto != undefined &&
|
|
|
|
|
- showTabDto.tabGridView &&
|
|
|
|
|
- tabButtons != undefined
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ v-if="showTabDto != undefined && showTabDto.tabGridView && tabButtons != undefined"
|
|
|
>
|
|
>
|
|
|
<template v-for="item in tabButtons" :key="item.id">
|
|
<template v-for="item in tabButtons" :key="item.id">
|
|
|
<button
|
|
<button
|
|
@@ -25,50 +21,50 @@
|
|
|
</template>
|
|
</template>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <a-breadcrumb separator="|" style="color: #1890ff">
|
|
|
|
|
- <a-breadcrumb-item v-if="'EditForm' != viewType" @click="exportConfirm">
|
|
|
|
|
- <span class="glyphicon glyphicon-export" aria-hidden="true" />
|
|
|
|
|
- <span class="tab_button">{{ $t("lang.tabButton.export") }}</span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="mWindow && mWindow.dataTemplateIds != undefined"
|
|
|
|
|
- @click="importData"
|
|
|
|
|
- >
|
|
|
|
|
- <span class="glyphicon glyphicon-import" aria-hidden="true" />
|
|
|
|
|
- <span class="tab_button">
|
|
|
|
|
|
|
+ <button
|
|
|
|
|
+ type="button"
|
|
|
|
|
+ class="btn btn-default dropdown-toggle"
|
|
|
|
|
+ data-toggle="dropdown"
|
|
|
|
|
+ aria-haspopup="true"
|
|
|
|
|
+ aria-expanded="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t("lang.tabButton.other") }}
|
|
|
|
|
+ <span class="caret" />
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <ul class="dropdown-menu floatTop">
|
|
|
|
|
+ <li v-if="'EditForm' != viewType">
|
|
|
|
|
+ <a type="button" @click="exportConfirm">
|
|
|
|
|
+ <span class="glyphicon glyphicon-export" aria-hidden="true" />
|
|
|
|
|
+ {{ $t("lang.tabButton.export") }}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li v-if="mWindow && mWindow.dataTemplateIds != undefined">
|
|
|
|
|
+ <a type="button" @click="importData">
|
|
|
|
|
+ <span class="glyphicon glyphicon-export" aria-hidden="true" />
|
|
|
{{ $t("lang.tabButton.import") }}
|
|
{{ $t("lang.tabButton.import") }}
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="'Form' == viewType || 'Grid' == viewType"
|
|
|
|
|
- @click="notify"
|
|
|
|
|
- >
|
|
|
|
|
- <span class="fa fa-bell" aria-hidden="true" />
|
|
|
|
|
- <span class="tab_button">
|
|
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li v-if="'Form' == viewType || 'Grid' == viewType">
|
|
|
|
|
+ <a type="button" @click="notify">
|
|
|
|
|
+ <span class="fa fa-bell" aria-hidden="true" />
|
|
|
{{ $t("lang.tabButton.notice") }}
|
|
{{ $t("lang.tabButton.notice") }}
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="'EditForm' != viewType && isOpen"
|
|
|
|
|
- @click="documentOpen"
|
|
|
|
|
- >
|
|
|
|
|
- <span class="glyphicon glyphicon-folder-open" aria-hidden="true" />
|
|
|
|
|
- <span class="tab_button">
|
|
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li v-if="'EditForm' != viewType && isOpen">
|
|
|
|
|
+ <a type="button" @click="documentOpen">
|
|
|
|
|
+ <span class="glyphicon glyphicon-folder-open" aria-hidden="true" />
|
|
|
{{ $t("lang.tabButton.open") }}
|
|
{{ $t("lang.tabButton.open") }}
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="'EditForm' != viewType && isClose"
|
|
|
|
|
- @click="documentClose"
|
|
|
|
|
- >
|
|
|
|
|
- <span class="glyphicon glyphicon-folder-close" aria-hidden="true" />
|
|
|
|
|
- <span class="tab_button">
|
|
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li v-if="'EditForm' != viewType && isClose">
|
|
|
|
|
+ <a type="button" @click="documentClose">
|
|
|
|
|
+ <span class="glyphicon glyphicon-folder-close" aria-hidden="true" />
|
|
|
{{ $t("lang.tabButton.close") }}
|
|
{{ $t("lang.tabButton.close") }}
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
<template v-for="item in tabButtons" :key="item.id">
|
|
<template v-for="item in tabButtons" :key="item.id">
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
|
|
+ <li
|
|
|
v-if="
|
|
v-if="
|
|
|
showTabDto.tabGridView &&
|
|
showTabDto.tabGridView &&
|
|
|
item.subMenu == true &&
|
|
item.subMenu == true &&
|
|
@@ -77,13 +73,13 @@
|
|
|
(viewType == 'Form' && item.editMode != true)) &&
|
|
(viewType == 'Form' && item.editMode != true)) &&
|
|
|
item.invisible == false
|
|
item.invisible == false
|
|
|
"
|
|
"
|
|
|
- style="color: black"
|
|
|
|
|
- @click="execute(item)"
|
|
|
|
|
>
|
|
>
|
|
|
- {{ Language.getNameTrl($i18n.locale, item) }}
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
|
|
+ <a type="button" @click="execute(item)">{{
|
|
|
|
|
+ Language.getNameTrl($i18n.locale, item)
|
|
|
|
|
+ }}</a>
|
|
|
|
|
+ </li>
|
|
|
</template>
|
|
</template>
|
|
|
- </a-breadcrumb>
|
|
|
|
|
|
|
+ </ul>
|
|
|
|
|
|
|
|
<Modal v-model:show="modal" :full="true">
|
|
<Modal v-model:show="modal" :full="true">
|
|
|
<ProcessReportResultPreview
|
|
<ProcessReportResultPreview
|
|
@@ -101,11 +97,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</Modal>
|
|
</Modal>
|
|
|
|
|
|
|
|
- <Modal
|
|
|
|
|
- v-model:show="notificationModal"
|
|
|
|
|
- :show-canel-button="false"
|
|
|
|
|
- :show-ok-button="false"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <Modal v-model:show="notificationModal" :show-canel-button="false" :show-ok-button="false">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
{{ $t("lang.tabButton.sendNotice") }}
|
|
{{ $t("lang.tabButton.sendNotice") }}
|
|
|
</template>
|
|
</template>
|
|
@@ -114,11 +106,7 @@
|
|
|
<button type="button" class="btn btn-default" @click="sendNotification">
|
|
<button type="button" class="btn btn-default" @click="sendNotification">
|
|
|
{{ $t("lang.tabButton.send") }}
|
|
{{ $t("lang.tabButton.send") }}
|
|
|
</button>
|
|
</button>
|
|
|
- <button
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-default"
|
|
|
|
|
- @click="cancelNotification"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <button type="button" class="btn btn-default" @click="cancelNotification">
|
|
|
{{ $t("lang.tabButton.cancel") }}
|
|
{{ $t("lang.tabButton.cancel") }}
|
|
|
</button>
|
|
</button>
|
|
|
</template>
|
|
</template>
|
|
@@ -131,6 +119,8 @@
|
|
|
<script>
|
|
<script>
|
|
|
import Common from '../../common/Common.js';
|
|
import Common from '../../common/Common.js';
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
import DownloadService from '../../resource/file/DownloadService.js';
|
|
import DownloadService from '../../resource/file/DownloadService.js';
|
|
|
import CustomerWindowResource from '../../api/dic/CustomerWindowResource.js';
|
|
import CustomerWindowResource from '../../api/dic/CustomerWindowResource.js';
|
|
|
import HtmlWindowResource from '../../api/dic/HtmlWindowResource.js';
|
|
import HtmlWindowResource from '../../api/dic/HtmlWindowResource.js';
|
|
@@ -140,6 +130,7 @@ import Language from '../../common/Language.js';
|
|
|
import { Notify, Uuid } from 'pc-component-v3';
|
|
import { Notify, Uuid } from 'pc-component-v3';
|
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
|
|
+
|
|
|
import NotificationPanel from '../../customer/NotificationPanel.vue';
|
|
import NotificationPanel from '../../customer/NotificationPanel.vue';
|
|
|
import { IFrameUtil } from 'pc-component-v3';
|
|
import { IFrameUtil } from 'pc-component-v3';
|
|
|
|
|
|
|
@@ -148,68 +139,70 @@ export default {
|
|
|
NotificationPanel,
|
|
NotificationPanel,
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+
|
|
|
props: {
|
|
props: {
|
|
|
|
|
+
|
|
|
showTabDto: {
|
|
showTabDto: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
parentModelData: {
|
|
parentModelData: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
modelData: {
|
|
modelData: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
modelDatas: {
|
|
modelDatas: {
|
|
|
type: Array,
|
|
type: Array,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
uuid: {
|
|
uuid: {
|
|
|
type: String,
|
|
type: String,
|
|
|
- default: null,
|
|
|
|
|
|
|
+ default : null,
|
|
|
},
|
|
},
|
|
|
viewType: {
|
|
viewType: {
|
|
|
type: String,
|
|
type: String,
|
|
|
- default: null,
|
|
|
|
|
|
|
+ default : null,
|
|
|
},
|
|
},
|
|
|
type: {
|
|
type: {
|
|
|
type: String,
|
|
type: String,
|
|
|
- default: null,
|
|
|
|
|
|
|
+ default : null,
|
|
|
},
|
|
},
|
|
|
simpleFilterParams: {
|
|
simpleFilterParams: {
|
|
|
type: String,
|
|
type: String,
|
|
|
- default: null,
|
|
|
|
|
|
|
+ default : null,
|
|
|
},
|
|
},
|
|
|
complexFilterParams: {
|
|
complexFilterParams: {
|
|
|
type: Array,
|
|
type: Array,
|
|
|
- default: () => {
|
|
|
|
|
|
|
+ default:()=>{
|
|
|
return [];
|
|
return [];
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
mWindow: {
|
|
mWindow: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
tabButtons: {
|
|
tabButtons: {
|
|
|
type: Array,
|
|
type: Array,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
curdWindowFunctionAccess: {
|
|
curdWindowFunctionAccess: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
- default: function () {
|
|
|
|
|
|
|
+ default : function(){
|
|
|
return null;
|
|
return null;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -249,8 +242,7 @@ export default {
|
|
|
if (
|
|
if (
|
|
|
_self.parentModelData.data != undefined &&
|
|
_self.parentModelData.data != undefined &&
|
|
|
_self.parentModelData.data.documentStatus != undefined &&
|
|
_self.parentModelData.data.documentStatus != undefined &&
|
|
|
- _self.parentModelData.data.documentStatus.displayValue[0] ==
|
|
|
|
|
- 'APPROVED' &&
|
|
|
|
|
|
|
+ _self.parentModelData.data.documentStatus.displayValue[0] == 'APPROVED' &&
|
|
|
_self.parentModelData.data.closeDate != undefined
|
|
_self.parentModelData.data.closeDate != undefined
|
|
|
) {
|
|
) {
|
|
|
return true;
|
|
return true;
|
|
@@ -283,8 +275,7 @@ export default {
|
|
|
if (
|
|
if (
|
|
|
_self.parentModelData.data != undefined &&
|
|
_self.parentModelData.data != undefined &&
|
|
|
_self.parentModelData.data.documentStatus != undefined &&
|
|
_self.parentModelData.data.documentStatus != undefined &&
|
|
|
- _self.parentModelData.data.documentStatus.displayValue[0] ==
|
|
|
|
|
- 'APPROVED' &&
|
|
|
|
|
|
|
+ _self.parentModelData.data.documentStatus.displayValue[0] == 'APPROVED' &&
|
|
|
_self.parentModelData.data.closeDate != undefined
|
|
_self.parentModelData.data.closeDate != undefined
|
|
|
) {
|
|
) {
|
|
|
return true;
|
|
return true;
|
|
@@ -327,11 +318,7 @@ export default {
|
|
|
} else if (tabIndex == 1) {
|
|
} else if (tabIndex == 1) {
|
|
|
recordId = _self.parentModelData.id;
|
|
recordId = _self.parentModelData.id;
|
|
|
if (_self.modelDatas == undefined || _self.modelDatas.length == 0) {
|
|
if (_self.modelDatas == undefined || _self.modelDatas.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe1'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe1'), false);
|
|
|
return;
|
|
return;
|
|
|
} else {
|
|
} else {
|
|
|
_self.modelDatas.forEach(function (item) {
|
|
_self.modelDatas.forEach(function (item) {
|
|
@@ -340,11 +327,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (closeRecordIds.length == 0) {
|
|
if (closeRecordIds.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe2'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe2'), false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -393,11 +376,7 @@ export default {
|
|
|
} else if (tabIndex == 1) {
|
|
} else if (tabIndex == 1) {
|
|
|
recordId = _self.parentModelData.id;
|
|
recordId = _self.parentModelData.id;
|
|
|
if (_self.modelDatas == undefined || _self.modelDatas.length == 0) {
|
|
if (_self.modelDatas == undefined || _self.modelDatas.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe1'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe1'), false);
|
|
|
return;
|
|
return;
|
|
|
} else {
|
|
} else {
|
|
|
_self.modelDatas.forEach(function (item) {
|
|
_self.modelDatas.forEach(function (item) {
|
|
@@ -406,11 +385,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (openRecordIds.length == 0) {
|
|
if (openRecordIds.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe2'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe2'), false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -445,22 +420,13 @@ export default {
|
|
|
//跳转或执行流程
|
|
//跳转或执行流程
|
|
|
execute: function (tabButton) {
|
|
execute: function (tabButton) {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
- if (
|
|
|
|
|
- tabButton.customerWindowNo != undefined &&
|
|
|
|
|
- tabButton.customerWindowNo != ''
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if (tabButton.customerWindowNo != undefined && tabButton.customerWindowNo != '') {
|
|
|
CustomerWindowResource.uniqueByNo(tabButton.customerWindowNo).then(
|
|
CustomerWindowResource.uniqueByNo(tabButton.customerWindowNo).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
tabButton.customerWindowRouteUrl = successData.routeUrl;
|
|
tabButton.customerWindowRouteUrl = successData.routeUrl;
|
|
|
- if (tabButton.customerWindowNo == '20221101_151823') {
|
|
|
|
|
- localStorage.setItem(
|
|
|
|
|
- 'AssetInstance_ComplexFilterParams',
|
|
|
|
|
- JSON.stringify(_self.complexFilterParams),
|
|
|
|
|
- );
|
|
|
|
|
- localStorage.setItem(
|
|
|
|
|
- 'AssetInstance_SimpleFilterParams',
|
|
|
|
|
- _self.simpleFilterParams,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ if(tabButton.customerWindowNo == '20221101_151823'){
|
|
|
|
|
+ localStorage.setItem('AssetInstance_ComplexFilterParams',JSON.stringify(_self.complexFilterParams));
|
|
|
|
|
+ localStorage.setItem('AssetInstance_SimpleFilterParams', _self.simpleFilterParams);
|
|
|
}
|
|
}
|
|
|
//跳转到tabButton.routeUrl
|
|
//跳转到tabButton.routeUrl
|
|
|
if (this.viewType == 'Form' || this.viewType == 'EditForm') {
|
|
if (this.viewType == 'Form' || this.viewType == 'EditForm') {
|
|
@@ -479,10 +445,7 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
// 判断流程报表是否有参数
|
|
// 判断流程报表是否有参数
|
|
|
// 如果有参数则直接跳转到流程和报表的界面。
|
|
// 如果有参数则直接跳转到流程和报表的界面。
|
|
|
- if (
|
|
|
|
|
- tabButton.routerRedirect == undefined ||
|
|
|
|
|
- tabButton.routerRedirect == false
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if (tabButton.routerRedirect == undefined || tabButton.routerRedirect == false) {
|
|
|
this.executeProcess(tabButton);
|
|
this.executeProcess(tabButton);
|
|
|
} else {
|
|
} else {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -517,53 +480,27 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
if (recordIds != null && recordIds.length > 0) {
|
|
if (recordIds != null && recordIds.length > 0) {
|
|
|
- recordIds = recordIds.substring(
|
|
|
|
|
- 0,
|
|
|
|
|
- recordIds.length - 1,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ recordIds = recordIds.substring(0, recordIds.length - 1);
|
|
|
} else {
|
|
} else {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe3'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe3'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- htmlWindowUrl = htmlWindowUrl.replace(
|
|
|
|
|
- '{RecordIds}',
|
|
|
|
|
- recordIds,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ htmlWindowUrl = htmlWindowUrl.replace('{RecordIds}', recordIds);
|
|
|
} else {
|
|
} else {
|
|
|
var recordId = _self.modelData.id;
|
|
var recordId = _self.modelData.id;
|
|
|
- htmlWindowUrl = htmlWindowUrl.replace(
|
|
|
|
|
- '{RecordIds}',
|
|
|
|
|
- recordId,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ htmlWindowUrl = htmlWindowUrl.replace('{RecordIds}', recordId);
|
|
|
}
|
|
}
|
|
|
} else if (tempResult == '{Token}') {
|
|
} else if (tempResult == '{Token}') {
|
|
|
- htmlWindowUrl = htmlWindowUrl.replace(
|
|
|
|
|
- '{Token}',
|
|
|
|
|
- Common.getToken(),
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ htmlWindowUrl = htmlWindowUrl.replace('{Token}', Common.getToken());
|
|
|
} else {
|
|
} else {
|
|
|
if (_self.selectedModelDatas.length == 0) {
|
|
if (_self.selectedModelDatas.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe3'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe3'), true);
|
|
|
return;
|
|
return;
|
|
|
} else if (_self.selectedModelDatas.length > 1) {
|
|
} else if (_self.selectedModelDatas.length > 1) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe2'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe2'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- var tempResult1 = tempResult
|
|
|
|
|
- .replace('{', '')
|
|
|
|
|
- .replace('}', '');
|
|
|
|
|
|
|
+ var tempResult1 = tempResult.replace('{', '').replace('}', '');
|
|
|
htmlWindowUrl = htmlWindowUrl.replace(
|
|
htmlWindowUrl = htmlWindowUrl.replace(
|
|
|
tempResult,
|
|
tempResult,
|
|
|
_self.getFirstSelectModelDataFieldValue(tempResult1),
|
|
_self.getFirstSelectModelDataFieldValue(tempResult1),
|
|
@@ -602,10 +539,7 @@ export default {
|
|
|
*/
|
|
*/
|
|
|
exportConfirm: function () {
|
|
exportConfirm: function () {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
- if (
|
|
|
|
|
- _self.curdWindowFunctionAccess.canExport != null &&
|
|
|
|
|
- _self.curdWindowFunctionAccess.canExport === true
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if(_self.curdWindowFunctionAccess.canExport != null && _self.curdWindowFunctionAccess.canExport === true){
|
|
|
BootstrapDialog.show({
|
|
BootstrapDialog.show({
|
|
|
title: _self.$t('lang.TabButton.dataExport'), //title
|
|
title: _self.$t('lang.TabButton.dataExport'), //title
|
|
|
message: _self.$t('lang.TabButton.DataExport'),
|
|
message: _self.$t('lang.TabButton.DataExport'),
|
|
@@ -632,12 +566,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
});
|
|
});
|
|
|
- } else {
|
|
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.tabButton.describe4'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe5'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ }else{
|
|
|
|
|
+ Notify.error(_self.$t('lang.tabButton.describe4'), _self.$t('lang.tabButton.describe5'), false);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -688,10 +618,7 @@ export default {
|
|
|
importData: function () {
|
|
importData: function () {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
var uuid = _self.uuid;
|
|
var uuid = _self.uuid;
|
|
|
- if (
|
|
|
|
|
- _self.mWindow != undefined &&
|
|
|
|
|
- _self.mWindow.dataTemplateIds != undefined
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if (_self.mWindow != undefined && _self.mWindow.dataTemplateIds != undefined) {
|
|
|
var data = JSON.stringify(_self.mWindow.dataTemplateIds);
|
|
var data = JSON.stringify(_self.mWindow.dataTemplateIds);
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/desktop/data-import-panel',
|
|
path: '/desktop/data-import-panel',
|
|
@@ -729,27 +656,11 @@ export default {
|
|
|
console.log(modelData);
|
|
console.log(modelData);
|
|
|
localStorage.setItem(_self.uuid + '#GenerateDocumentTool', modelData);
|
|
localStorage.setItem(_self.uuid + '#GenerateDocumentTool', modelData);
|
|
|
|
|
|
|
|
- var iWidth = 1280; //弹出窗口的宽度;
|
|
|
|
|
|
|
+ var iWidth = 1280;//弹出窗口的宽度;
|
|
|
var iHeight = 720; //弹出窗口的高度;
|
|
var iHeight = 720; //弹出窗口的高度;
|
|
|
- var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
|
|
|
|
|
- var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
|
|
|
|
|
- window.open(
|
|
|
|
|
- frameUrl,
|
|
|
|
|
- '_blank',
|
|
|
|
|
- 'height=' +
|
|
|
|
|
- iHeight +
|
|
|
|
|
- ',innerHeight=' +
|
|
|
|
|
- iHeight +
|
|
|
|
|
- ',width=' +
|
|
|
|
|
- iWidth +
|
|
|
|
|
- ',innerWidth=' +
|
|
|
|
|
- iWidth +
|
|
|
|
|
- ',top=' +
|
|
|
|
|
- iTop +
|
|
|
|
|
- ',left=' +
|
|
|
|
|
- iLeft +
|
|
|
|
|
- ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no',
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ var iTop = (window.screen.availHeight-30-iHeight)/2;//获得窗口的垂直位置;
|
|
|
|
|
+ var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
|
|
|
|
|
+ window.open(frameUrl,'_blank','height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
|
|
|
// window.open(frameUrl);
|
|
// window.open(frameUrl);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -768,11 +679,7 @@ export default {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
//执行流程
|
|
//执行流程
|
|
|
if (_self.modelData.id == undefined) {
|
|
if (_self.modelData.id == undefined) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.tabButton.describe6'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe7'),
|
|
|
|
|
- false,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.tabButton.describe6'), _self.$t('lang.tabButton.describe7'), false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -781,7 +688,7 @@ export default {
|
|
|
processReportId: tabButton.processReportId,
|
|
processReportId: tabButton.processReportId,
|
|
|
modelData: _self.modelData,
|
|
modelData: _self.modelData,
|
|
|
};
|
|
};
|
|
|
- _self.loading = true;
|
|
|
|
|
|
|
+ _self.loading=true;
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: Common.getApiURL('ProcessReportResource/runProcess'),
|
|
url: Common.getApiURL('ProcessReportResource/runProcess'),
|
|
@@ -793,24 +700,21 @@ export default {
|
|
|
contentType: 'application/json',
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(processResultData),
|
|
data: JSON.stringify(processResultData),
|
|
|
success: function (successData) {
|
|
success: function (successData) {
|
|
|
- if (successData.errorCode == 0) {
|
|
|
|
|
|
|
+ if(successData.errorCode == 0) {
|
|
|
_self.modal = true;
|
|
_self.modal = true;
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
_self.processReportResult = successData.data;
|
|
_self.processReportResult = successData.data;
|
|
|
|
|
|
|
|
if (
|
|
if (
|
|
|
_self.processReportResult.reportResults != undefined &&
|
|
_self.processReportResult.reportResults != undefined &&
|
|
|
_self.processReportResult.reportResults.length > 0
|
|
_self.processReportResult.reportResults.length > 0
|
|
|
) {
|
|
) {
|
|
|
- _self.processReportResult.reportResults.forEach(function (
|
|
|
|
|
- item,
|
|
|
|
|
- index,
|
|
|
|
|
- ) {
|
|
|
|
|
- item.previewIndex = 1;
|
|
|
|
|
|
|
+ _self.processReportResult.reportResults.forEach(function (item, index) {
|
|
|
|
|
+ item.previewIndex=1;
|
|
|
if (index == 0) {
|
|
if (index == 0) {
|
|
|
- item.showPreview = true;
|
|
|
|
|
|
|
+ item.showPreview=true;
|
|
|
} else {
|
|
} else {
|
|
|
- item.showPreview = false;
|
|
|
|
|
|
|
+ item.showPreview=false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -818,7 +722,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
@@ -856,34 +760,28 @@ export default {
|
|
|
} else if (_self.modelData) {
|
|
} else if (_self.modelData) {
|
|
|
ids.push(_self.modelData.id);
|
|
ids.push(_self.modelData.id);
|
|
|
}
|
|
}
|
|
|
- _self.loading = true;
|
|
|
|
|
|
|
+ _self.loading=true;
|
|
|
|
|
|
|
|
- ProcessReportResource.runProcessByIds(
|
|
|
|
|
- tabButton.processReportNo,
|
|
|
|
|
- ids,
|
|
|
|
|
- ).then(
|
|
|
|
|
|
|
+ ProcessReportResource.runProcessByIds(tabButton.processReportNo, ids).then(
|
|
|
successData => {
|
|
successData => {
|
|
|
_self.modal = true;
|
|
_self.modal = true;
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
_self.processReportResult = successData;
|
|
_self.processReportResult = successData;
|
|
|
|
|
|
|
|
if (
|
|
if (
|
|
|
_self.processReportResult.reportResults != undefined &&
|
|
_self.processReportResult.reportResults != undefined &&
|
|
|
_self.processReportResult.reportResults.length > 0
|
|
_self.processReportResult.reportResults.length > 0
|
|
|
) {
|
|
) {
|
|
|
- _self.processReportResult.reportResults.forEach(function (
|
|
|
|
|
- item,
|
|
|
|
|
- index,
|
|
|
|
|
- ) {
|
|
|
|
|
- if (item.reportDefinitionType !== 'ExcelReport') {
|
|
|
|
|
- item.previewIndex = 1;
|
|
|
|
|
- } else {
|
|
|
|
|
- item.previewIndex = 2;
|
|
|
|
|
|
|
+ _self.processReportResult.reportResults.forEach(function (item, index) {
|
|
|
|
|
+ if(item.reportDefinitionType!=='ExcelReport'){
|
|
|
|
|
+ item.previewIndex=1;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ item.previewIndex=2;
|
|
|
}
|
|
}
|
|
|
if (index == 0) {
|
|
if (index == 0) {
|
|
|
- item.showPreview = true;
|
|
|
|
|
|
|
+ item.showPreview=true;
|
|
|
} else {
|
|
} else {
|
|
|
- item.showPreview = false;
|
|
|
|
|
|
|
+ item.showPreview=false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -891,7 +789,7 @@ export default {
|
|
|
_self.$emit('processExecuteFinish');
|
|
_self.$emit('processExecuteFinish');
|
|
|
},
|
|
},
|
|
|
errorData => {
|
|
errorData => {
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
Common.processException(errorData);
|
|
Common.processException(errorData);
|
|
|
},
|
|
},
|
|
|
);
|
|
);
|
|
@@ -920,35 +818,19 @@ export default {
|
|
|
recordIds.push(_self.$route.params.recordId);
|
|
recordIds.push(_self.$route.params.recordId);
|
|
|
}
|
|
}
|
|
|
if (recordIds.length == 0) {
|
|
if (recordIds.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe7'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe7'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (notification.userIds == null || notification.userIds.length == 0) {
|
|
if (notification.userIds == null || notification.userIds.length == 0) {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe8'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe8'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (notification.theme == null || notification.theme.trim() == '') {
|
|
if (notification.theme == null || notification.theme.trim() == '') {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe9'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe9'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (notification.content == null || notification.content.trim() == '') {
|
|
if (notification.content == null || notification.content.trim() == '') {
|
|
|
- Notify.error(
|
|
|
|
|
- _self.$t('lang.Notify.error'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe10'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.error(_self.$t('lang.Notify.error'), _self.$t('lang.tabButton.describe10'), true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
var windowNo = _self.$route.params.windowNo;
|
|
var windowNo = _self.$route.params.windowNo;
|
|
@@ -958,7 +840,7 @@ export default {
|
|
|
notification.recordIds = recordIds;
|
|
notification.recordIds = recordIds;
|
|
|
notification.className = _self.showTabDto.className;
|
|
notification.className = _self.showTabDto.className;
|
|
|
|
|
|
|
|
- _self.loading = true;
|
|
|
|
|
|
|
+ _self.loading=true;
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: Common.getApiURL('notificationResource/send'),
|
|
url: Common.getApiURL('notificationResource/send'),
|
|
|
type: 'post',
|
|
type: 'post',
|
|
@@ -968,16 +850,12 @@ export default {
|
|
|
contentType: 'application/json',
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(notification),
|
|
data: JSON.stringify(notification),
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
_self.notificationModal = false;
|
|
_self.notificationModal = false;
|
|
|
- Notify.success(
|
|
|
|
|
- _self.$t('lang.tabButton.describe11'),
|
|
|
|
|
- _self.$t('lang.tabButton.describe12'),
|
|
|
|
|
- true,
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ Notify.success(_self.$t('lang.tabButton.describe11'), _self.$t('lang.tabButton.describe12'), true);
|
|
|
},
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
- _self.loading = false;
|
|
|
|
|
|
|
+ _self.loading=false;
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
@@ -994,11 +872,4 @@ export default {
|
|
|
.floatTop {
|
|
.floatTop {
|
|
|
z-index: 1002;
|
|
z-index: 1002;
|
|
|
}
|
|
}
|
|
|
-:deep(.btn-group > .btn:first-child) {
|
|
|
|
|
- margin: -2px;
|
|
|
|
|
-}
|
|
|
|
|
-.tab_button {
|
|
|
|
|
- color: black;
|
|
|
|
|
- margin-left: 4px;
|
|
|
|
|
-}
|
|
|
|
|
</style>
|
|
</style>
|