提交 8df589b2 编写于 作者: laizhilong's avatar laizhilong

Merge remote-tracking branch 'origin/master'

...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"ibiz-gantt-elastic": "^1.0.17", "ibiz-gantt-elastic": "^1.0.17",
"ibiz-vue-lib": "^0.1.10", "ibiz-vue-lib": "^0.1.13",
"interactjs": "^1.9.4", "interactjs": "^1.9.4",
"moment": "^2.24.0", "moment": "^2.24.0",
"path-to-regexp": "^6.1.0", "path-to-regexp": "^6.1.0",
......
...@@ -73,7 +73,9 @@ import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue' ...@@ -73,7 +73,9 @@ import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue'
import Breadcrumb from './components/app-breadcrumb/app-breadcrumb.vue' import Breadcrumb from './components/app-breadcrumb/app-breadcrumb.vue'
import AppTransfer from './components/app-transfer/app-transfer.vue' import AppTransfer from './components/app-transfer/app-transfer.vue'
import ContextMenuDrag from './components/context-menu-drag/context-menu-drag.vue' import ContextMenuDrag from './components/context-menu-drag/context-menu-drag.vue'
import AppOrgSelect from './components/app-org-select/app-org-select.vue'
import AppDepartmentSelect from './components/app-department-select/app-department-select.vue'
import AppGroupSelect from './components/app-group-select/app-group-select.vue'
// 全局挂载UI实体服务注册中心 // 全局挂载UI实体服务注册中心
window['uiServiceRegister'] = uiServiceRegister; window['uiServiceRegister'] = uiServiceRegister;
// 全局挂载功能服务注册中心 // 全局挂载功能服务注册中心
...@@ -153,10 +155,10 @@ export const AppComponents = { ...@@ -153,10 +155,10 @@ export const AppComponents = {
v.component('context-menu',ContextMenu); v.component('context-menu',ContextMenu);
v.component('app-column-format',AppColumnFormat); v.component('app-column-format',AppColumnFormat);
v.component('app-quick-group',AppQuickGroup); v.component('app-quick-group',AppQuickGroup);
v.component('app-org-select',() => import('./components/app-org-select/app-org-select.vue')); v.component('app-org-select',AppOrgSelect);
v.component('app-department-select',() => import('./components/app-department-select/app-department-select.vue')); v.component('app-department-select',AppDepartmentSelect);
v.component('app-group-select',() => import('./components/app-group-select/app-group-select.vue')); v.component('app-group-select',AppGroupSelect);
v.component('app-group-picker',() => import('./components/app-group-picker/app-group-picker.vue')); v.component('app-group-picker',AppGroupPicker);
v.component('app-wf-approval',AppWFApproval); v.component('app-wf-approval',AppWFApproval);
v.component('app-breadcrumb',Breadcrumb); v.component('app-breadcrumb',Breadcrumb);
v.component('app-transfer',AppTransfer); v.component('app-transfer',AppTransfer);
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
<script lang="ts"> <script lang="ts">
import { Vue, Component, Watch, Prop, Model } from 'vue-property-decorator'; import { Vue, Component, Watch, Prop, Model } from 'vue-property-decorator';
import 'ibiz-vue-lib/lib/ibiz-vue-lib.css';
import {IBizSelectTree} from 'ibiz-vue-lib';
@Component({ @Component({
}) })
export default class AppDepartmentSelect extends Vue { export default class AppDepartmentSelect extends Vue {
......
...@@ -19,17 +19,14 @@ ...@@ -19,17 +19,14 @@
import { Component, Vue, Prop, Watch } from 'vue-property-decorator'; import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { Http } from '../../utils'; import { Http } from '../../utils';
import 'ibiz-vue-lib/lib/ibiz-vue-lib.css';
import {IBizSelectTree} from 'ibiz-vue-lib';
import {IBizGroupCard} from 'ibiz-vue-lib';
@Component({}) @Component({})
export default class IBizGroupPicker extends Vue { export default class AppGroupPicker extends Vue {
/** /**
* 视图上下文参数 * 视图上下文参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
@Prop() viewdata: any; @Prop() viewdata: any;
...@@ -37,7 +34,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -37,7 +34,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数 * 视图参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
@Prop() viewparam: any; @Prop() viewparam: any;
...@@ -45,7 +42,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -45,7 +42,7 @@ export default class IBizGroupPicker extends Vue {
* 多选 * 多选
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected multiple: boolean = false; protected multiple: boolean = false;
...@@ -53,7 +50,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -53,7 +50,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树url * 加载树url
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeurl:any; protected treeurl:any;
...@@ -61,7 +58,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -61,7 +58,7 @@ export default class IBizGroupPicker extends Vue {
* 加载人员url * 加载人员url
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected url:any; protected url:any;
...@@ -69,7 +66,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -69,7 +66,7 @@ export default class IBizGroupPicker extends Vue {
* 树数据集 * 树数据集
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeItems: any[] = []; protected treeItems: any[] = [];
...@@ -77,7 +74,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -77,7 +74,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表数据集 * 分组表数据集
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected cardItems: any[] = []; protected cardItems: any[] = [];
...@@ -85,7 +82,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -85,7 +82,7 @@ export default class IBizGroupPicker extends Vue {
* 视图上下文参数对象 * 视图上下文参数对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected viewData: any; protected viewData: any;
...@@ -93,7 +90,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -93,7 +90,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数对象 * 视图参数对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected viewParam: any; protected viewParam: any;
...@@ -101,7 +98,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -101,7 +98,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中值 * 树选中值
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeSelectVal: string = ''; protected treeSelectVal: string = '';
...@@ -109,7 +106,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -109,7 +106,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中集合 * 分组表选中集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected cardSelctVal: any = []; protected cardSelctVal: any = [];
...@@ -117,7 +114,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -117,7 +114,7 @@ export default class IBizGroupPicker extends Vue {
* 数据选中集合 * 数据选中集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected selects: any[] = []; protected selects: any[] = [];
...@@ -125,7 +122,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -125,7 +122,7 @@ export default class IBizGroupPicker extends Vue {
* 是否显示树 * 是否显示树
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
get showTree() { get showTree() {
if(this.viewParam) { if(this.viewParam) {
...@@ -137,7 +134,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -137,7 +134,7 @@ export default class IBizGroupPicker extends Vue {
* 生命周期 * 生命周期
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public created() { public created() {
if(!this.viewdata || !this.viewparam) { if(!this.viewdata || !this.viewparam) {
...@@ -161,7 +158,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -161,7 +158,7 @@ export default class IBizGroupPicker extends Vue {
* 加载数据 * 加载数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public load() { public load() {
if(this.showTree) { if(this.showTree) {
...@@ -175,7 +172,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -175,7 +172,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树数据 * 加载树数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public loadTree() { public loadTree() {
let orgid = this.viewParam.filtervalue; let orgid = this.viewParam.filtervalue;
...@@ -194,7 +191,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -194,7 +191,7 @@ export default class IBizGroupPicker extends Vue {
* 加载分组表数据 * 加载分组表数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public loadGroupData(key: string) { public loadGroupData(key: string) {
let tempUrl = this.url.replace('${selected-orgid}',key); let tempUrl = this.url.replace('${selected-orgid}',key);
...@@ -212,7 +209,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -212,7 +209,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中 * 树选中
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public treeSelect(event: any) { public treeSelect(event: any) {
if(!event || JSON.parse(event).length == 0) { if(!event || JSON.parse(event).length == 0) {
...@@ -226,7 +223,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -226,7 +223,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中 * 分组表选中
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public groupSelect(event: any) { public groupSelect(event: any) {
if (!event || !event.select) { if (!event || !event.select) {
...@@ -258,7 +255,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -258,7 +255,7 @@ export default class IBizGroupPicker extends Vue {
* 确认 * 确认
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public onOK() { public onOK() {
this.$emit('close', this.selects); this.$emit('close', this.selects);
...@@ -268,7 +265,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -268,7 +265,7 @@ export default class IBizGroupPicker extends Vue {
* 取消 * 取消
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public onCancel() { public onCancel() {
this.$emit('close'); this.$emit('close');
......
...@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator'; ...@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
@Component({}) @Component({})
export default class IBizGroupSelect extends Vue { export default class AppGroupSelect extends Vue {
/** /**
* 名称标识 * 名称标识
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() name!: string; @Prop() name!: string;
...@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue {
* 树加载地址 * 树加载地址
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() treeurl?:boolean; @Prop() treeurl?:boolean;
...@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue {
* 数据接口地址 * 数据接口地址
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() url!: string; @Prop() url!: string;
...@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue {
* 多选 * 多选
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop({default: false}) multiple?: boolean; @Prop({default: false}) multiple?: boolean;
...@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue {
* 数据对象 * 数据对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() data: any; @Prop() data: any;
...@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue {
* 过滤属性标识 * 过滤属性标识
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() filter?: string; @Prop() filter?: string;
...@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue {
* 是否启用 * 是否启用
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() disabled?: boolean; @Prop() disabled?: boolean;
...@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue {
* 值 * 值
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() value: any; @Prop() value: any;
...@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue {
* 上下文参数 * 上下文参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() context: any; @Prop() context: any;
...@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue {
* 关联属性 * 关联属性
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() valueitem: any; @Prop() valueitem: any;
...@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue {
* 填充属性 * 填充属性
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() fillmap: any; @Prop() fillmap: any;
...@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue {
* 选中项集合 * 选中项集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
protected selects: any[] = []; protected selects: any[] = [];
...@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue {
* 值变化 * 值变化
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Watch('value') @Watch('value')
onValueChange(newVal: any) { onValueChange(newVal: any) {
...@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue {
* 单选时选中名称 * 单选时选中名称
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
get selectName() { get selectName() {
if(this.selects.length > 0) { if(this.selects.length > 0) {
...@@ -166,11 +166,11 @@ export default class IBizGroupSelect extends Vue { ...@@ -166,11 +166,11 @@ export default class IBizGroupSelect extends Vue {
* 打开选择视图 * 打开选择视图
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public openView() { public openView() {
const view: any = { const view: any = {
viewname: 'ibiz-group-picker', viewname: 'app-group-picker',
title: '分组选择' title: '分组选择'
}; };
const context: any = JSON.parse(JSON.stringify(this.context)); const context: any = JSON.parse(JSON.stringify(this.context));
...@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue {
* 选择视图关闭 * 选择视图关闭
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public openViewClose(result: any) { public openViewClose(result: any) {
this.selects = []; this.selects = [];
...@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue {
* 数据删除 * 数据删除
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public remove(item: any) { public remove(item: any) {
this.selects.splice(this.selects.indexOf(item), 1); this.selects.splice(this.selects.indexOf(item), 1);
...@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue {
* 设置值 * 设置值
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public setValue() { public setValue() {
let item: any = {}; let item: any = {};
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
<script lang = 'ts'> <script lang = 'ts'>
import { Vue, Component, Prop, Watch } from "vue-property-decorator"; import { Vue, Component, Prop, Watch } from "vue-property-decorator";
import { Http } from '@/utils'; import { Http } from '@/utils';
import 'ibiz-vue-lib/lib/ibiz-vue-lib.css';
import {IBizSelectTree} from 'ibiz-vue-lib';
@Component({}) @Component({})
export default class AppOrgSelect extends Vue { export default class AppOrgSelect extends Vue {
......
...@@ -94,6 +94,10 @@ export default { ...@@ -94,6 +94,10 @@ export default {
caption: "新建行", caption: "新建行",
tip: "新建行", tip: "新建行",
}, },
deuiaction1: {
caption: "保存行",
tip: "保存行",
},
tbitem26: { tbitem26: {
caption: "-", caption: "-",
tip: "", tip: "",
......
...@@ -93,6 +93,10 @@ export default { ...@@ -93,6 +93,10 @@ export default {
caption: "新建行", caption: "新建行",
tip: "新建行", tip: "新建行",
}, },
deuiaction1: {
caption: "保存行",
tip: "保存行",
},
tbitem26: { tbitem26: {
caption: "-", caption: "-",
tip: "", tip: "",
......
...@@ -4,13 +4,14 @@ import VueRouter from 'vue-router'; ...@@ -4,13 +4,14 @@ import VueRouter from 'vue-router';
import App from '@/App.vue'; import App from '@/App.vue';
import ElementUi from 'element-ui'; import ElementUi from 'element-ui';
import ViewUI from 'view-design'; import ViewUI from 'view-design';
import ibizLab from 'ibiz-vue-lib';
import { Interceptors } from '@/utils'; import { Interceptors } from '@/utils';
import {Print} from '@/utils/print'; import {Print} from '@/utils/print';
import i18n from '@/locale' import i18n from '@/locale'
import 'element-ui/lib/theme-chalk/index.css'; import 'element-ui/lib/theme-chalk/index.css';
import 'view-design/dist/styles/iview.css'; import 'view-design/dist/styles/iview.css';
import 'ibiz-vue-lib/lib/ibiz-vue-lib.css';
import '@/styles/default.less'; import '@/styles/default.less';
// 模拟数据 // 模拟数据
...@@ -31,6 +32,7 @@ Vue.config.errorHandler = function (err: any, vm: any, info: any) { ...@@ -31,6 +32,7 @@ Vue.config.errorHandler = function (err: any, vm: any, info: any) {
} }
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(Print); Vue.use(Print);
Vue.use(ibizLab);
Vue.use(Vuex); Vue.use(Vuex);
Vue.use(VueRouter);; Vue.use(VueRouter);;
Vue.use(ElementUi, { Vue.use(ElementUi, {
......
...@@ -145,7 +145,7 @@ export default class SysAppEditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SysAppEditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SysAppEditViewBase * @memberof SysAppEditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -47,6 +47,13 @@ ...@@ -47,6 +47,13 @@
</i-button> </i-button>
<div slot='content'>{{$t('entities.sysapp.gridviewtoolbar_toolbar.tbitem25.tip')}}</div> <div slot='content'>{{$t('entities.sysapp.gridviewtoolbar_toolbar.tbitem25.tip')}}</div>
</tooltip> </tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.sysapp.gridviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.sysapp.gridviewtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<span class='seperator'>|</span> <tooltip :transfer="true" :max-width="600"> <span class='seperator'>|</span> <tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem8.visabled" :disabled="toolBarModels.tbitem8.disabled" class='' @click="toolbar_click({ tag: 'tbitem8' }, $event)"> <i-button v-show="toolBarModels.tbitem8.visabled" :disabled="toolBarModels.tbitem8.disabled" class='' @click="toolbar_click({ tag: 'tbitem8' }, $event)">
<i class='fa fa-remove'></i> <i class='fa fa-remove'></i>
...@@ -90,7 +97,7 @@ ...@@ -90,7 +97,7 @@
:context="context" :context="context"
:isSingleSelect="isSingleSelect" :isSingleSelect="isSingleSelect"
:showBusyIndicator="true" :showBusyIndicator="true"
:isOpenEdit="false" :isOpenEdit="true"
:gridRowActiveMode="gridRowActiveMode" :gridRowActiveMode="gridRowActiveMode"
@save="onSave" @save="onSave"
updateAction="Update" updateAction="Update"
...@@ -196,7 +203,7 @@ export default class SysAppGridViewBase extends Vue { ...@@ -196,7 +203,7 @@ export default class SysAppGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SysAppGridViewBase * @memberof SysAppGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -329,6 +336,8 @@ export default class SysAppGridViewBase extends Vue { ...@@ -329,6 +336,8 @@ export default class SysAppGridViewBase extends Vue {
tbitem25: { name: 'tbitem25', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'NewRow', target: '' } }, tbitem25: { name: 'tbitem25', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'NewRow', target: '' } },
deuiaction1: { name: 'deuiaction1', caption: '保存行', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveRow', target: '' } },
tbitem26: { name: 'tbitem26', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem26: { name: 'tbitem26', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } }, tbitem8: { name: 'tbitem8', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
...@@ -672,6 +681,9 @@ export default class SysAppGridViewBase extends Vue { ...@@ -672,6 +681,9 @@ export default class SysAppGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -952,6 +964,34 @@ export default class SysAppGridViewBase extends Vue { ...@@ -952,6 +964,34 @@ export default class SysAppGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysApp"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysApp");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysApp");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1300,6 +1340,26 @@ export default class SysAppGridViewBase extends Vue { ...@@ -1300,6 +1340,26 @@ export default class SysAppGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SysAppGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -141,7 +141,7 @@ export default class SysAuthLogGridViewBase extends Vue { ...@@ -141,7 +141,7 @@ export default class SysAuthLogGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SysAuthLogGridViewBase * @memberof SysAuthLogGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -145,7 +145,7 @@ export default class SYS_PERMISSIONEditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SYS_PERMISSIONEditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONEditViewBase * @memberof SYS_PERMISSIONEditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -156,7 +156,7 @@ export default class SYS_PERMISSIONEditView2Base extends Vue { ...@@ -156,7 +156,7 @@ export default class SYS_PERMISSIONEditView2Base extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONEditView2Base * @memberof SYS_PERMISSIONEditView2Base
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -182,7 +182,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue { ...@@ -182,7 +182,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONGridViewBase * @memberof SYS_PERMISSIONGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -653,6 +653,9 @@ export default class SYS_PERMISSIONGridViewBase extends Vue { ...@@ -653,6 +653,9 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -933,6 +936,34 @@ export default class SYS_PERMISSIONGridViewBase extends Vue { ...@@ -933,6 +936,34 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysPermission"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysPermission");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysPermission");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1255,6 +1286,26 @@ export default class SYS_PERMISSIONGridViewBase extends Vue { ...@@ -1255,6 +1286,26 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SYS_PERMISSIONGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -139,7 +139,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -139,7 +139,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONMPickupViewBase * @memberof SYS_PERMISSIONMPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -121,7 +121,7 @@ export default class SYS_PERMISSIONPickupGridViewBase extends Vue { ...@@ -121,7 +121,7 @@ export default class SYS_PERMISSIONPickupGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONPickupGridViewBase * @memberof SYS_PERMISSIONPickupGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -106,7 +106,7 @@ export default class SYS_PERMISSIONPickupViewBase extends Vue { ...@@ -106,7 +106,7 @@ export default class SYS_PERMISSIONPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONPickupViewBase * @memberof SYS_PERMISSIONPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -82,7 +82,7 @@ export default class SYS_PERMISSIONRedirectViewBase extends Vue { ...@@ -82,7 +82,7 @@ export default class SYS_PERMISSIONRedirectViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_PERMISSIONRedirectViewBase * @memberof SYS_PERMISSIONRedirectViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -179,7 +179,7 @@ export default class SysRolePermissionGridViewBase extends Vue { ...@@ -179,7 +179,7 @@ export default class SysRolePermissionGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SysRolePermissionGridViewBase * @memberof SysRolePermissionGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -650,6 +650,9 @@ export default class SysRolePermissionGridViewBase extends Vue { ...@@ -650,6 +650,9 @@ export default class SysRolePermissionGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -930,6 +933,34 @@ export default class SysRolePermissionGridViewBase extends Vue { ...@@ -930,6 +933,34 @@ export default class SysRolePermissionGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysRolePermission"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysRolePermission");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysRolePermission");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1280,6 +1311,26 @@ export default class SysRolePermissionGridViewBase extends Vue { ...@@ -1280,6 +1311,26 @@ export default class SysRolePermissionGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SysRolePermissionGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -88,7 +88,7 @@ export default class SYS_ROLE_PERMISSIONCustomViewBase extends Vue { ...@@ -88,7 +88,7 @@ export default class SYS_ROLE_PERMISSIONCustomViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONCustomViewBase * @memberof SYS_ROLE_PERMISSIONCustomViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -145,7 +145,7 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONEditViewBase * @memberof SYS_ROLE_PERMISSIONEditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -156,7 +156,7 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue { ...@@ -156,7 +156,7 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONEditView2Base * @memberof SYS_ROLE_PERMISSIONEditView2Base
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -139,7 +139,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue { ...@@ -139,7 +139,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONMPickupViewBase * @memberof SYS_ROLE_PERMISSIONMPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -121,7 +121,7 @@ export default class SYS_ROLE_PERMISSIONPickupGridViewBase extends Vue { ...@@ -121,7 +121,7 @@ export default class SYS_ROLE_PERMISSIONPickupGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONPickupGridViewBase * @memberof SYS_ROLE_PERMISSIONPickupGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -106,7 +106,7 @@ export default class SYS_ROLE_PERMISSIONPickupViewBase extends Vue { ...@@ -106,7 +106,7 @@ export default class SYS_ROLE_PERMISSIONPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONPickupViewBase * @memberof SYS_ROLE_PERMISSIONPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -82,7 +82,7 @@ export default class SYS_ROLE_PERMISSIONRedirectViewBase extends Vue { ...@@ -82,7 +82,7 @@ export default class SYS_ROLE_PERMISSIONRedirectViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLE_PERMISSIONRedirectViewBase * @memberof SYS_ROLE_PERMISSIONRedirectViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -145,7 +145,7 @@ export default class SYS_ROLEEditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SYS_ROLEEditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEEditViewBase * @memberof SYS_ROLEEditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -156,7 +156,7 @@ export default class SYS_ROLEEditView2Base extends Vue { ...@@ -156,7 +156,7 @@ export default class SYS_ROLEEditView2Base extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEEditView2Base * @memberof SYS_ROLEEditView2Base
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -182,7 +182,7 @@ export default class SYS_ROLEGridViewBase extends Vue { ...@@ -182,7 +182,7 @@ export default class SYS_ROLEGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEGridViewBase * @memberof SYS_ROLEGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -653,6 +653,9 @@ export default class SYS_ROLEGridViewBase extends Vue { ...@@ -653,6 +653,9 @@ export default class SYS_ROLEGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -933,6 +936,34 @@ export default class SYS_ROLEGridViewBase extends Vue { ...@@ -933,6 +936,34 @@ export default class SYS_ROLEGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysRole"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysRole");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysRole");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1255,6 +1286,26 @@ export default class SYS_ROLEGridViewBase extends Vue { ...@@ -1255,6 +1286,26 @@ export default class SYS_ROLEGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SYS_ROLEGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -139,7 +139,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -139,7 +139,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEMPickupViewBase * @memberof SYS_ROLEMPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -121,7 +121,7 @@ export default class SYS_ROLEPickupGridViewBase extends Vue { ...@@ -121,7 +121,7 @@ export default class SYS_ROLEPickupGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEPickupGridViewBase * @memberof SYS_ROLEPickupGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -106,7 +106,7 @@ export default class SYS_ROLEPickupViewBase extends Vue { ...@@ -106,7 +106,7 @@ export default class SYS_ROLEPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLEPickupViewBase * @memberof SYS_ROLEPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -82,7 +82,7 @@ export default class SYS_ROLERedirectViewBase extends Vue { ...@@ -82,7 +82,7 @@ export default class SYS_ROLERedirectViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_ROLERedirectViewBase * @memberof SYS_ROLERedirectViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -145,7 +145,7 @@ export default class SYS_USER_ROLEEditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SYS_USER_ROLEEditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEEditViewBase * @memberof SYS_USER_ROLEEditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -156,7 +156,7 @@ export default class SYS_USER_ROLEEditView2Base extends Vue { ...@@ -156,7 +156,7 @@ export default class SYS_USER_ROLEEditView2Base extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEEditView2Base * @memberof SYS_USER_ROLEEditView2Base
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -179,7 +179,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue { ...@@ -179,7 +179,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEGridViewBase * @memberof SYS_USER_ROLEGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -650,6 +650,9 @@ export default class SYS_USER_ROLEGridViewBase extends Vue { ...@@ -650,6 +650,9 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -930,6 +933,34 @@ export default class SYS_USER_ROLEGridViewBase extends Vue { ...@@ -930,6 +933,34 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysUserRole"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysUserRole");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysUserRole");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1280,6 +1311,26 @@ export default class SYS_USER_ROLEGridViewBase extends Vue { ...@@ -1280,6 +1311,26 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SYS_USER_ROLEGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -139,7 +139,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -139,7 +139,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEMPickupViewBase * @memberof SYS_USER_ROLEMPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -121,7 +121,7 @@ export default class SYS_USER_ROLEPickupGridViewBase extends Vue { ...@@ -121,7 +121,7 @@ export default class SYS_USER_ROLEPickupGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEPickupGridViewBase * @memberof SYS_USER_ROLEPickupGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -106,7 +106,7 @@ export default class SYS_USER_ROLEPickupViewBase extends Vue { ...@@ -106,7 +106,7 @@ export default class SYS_USER_ROLEPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLEPickupViewBase * @memberof SYS_USER_ROLEPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -82,7 +82,7 @@ export default class SYS_USER_ROLERedirectViewBase extends Vue { ...@@ -82,7 +82,7 @@ export default class SYS_USER_ROLERedirectViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USER_ROLERedirectViewBase * @memberof SYS_USER_ROLERedirectViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -145,7 +145,7 @@ export default class SYS_USEREditViewBase extends Vue { ...@@ -145,7 +145,7 @@ export default class SYS_USEREditViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USEREditViewBase * @memberof SYS_USEREditViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -156,7 +156,7 @@ export default class SYS_USEREditView2Base extends Vue { ...@@ -156,7 +156,7 @@ export default class SYS_USEREditView2Base extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USEREditView2Base * @memberof SYS_USEREditView2Base
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -182,7 +182,7 @@ export default class SYS_USERGridViewBase extends Vue { ...@@ -182,7 +182,7 @@ export default class SYS_USERGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USERGridViewBase * @memberof SYS_USERGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
...@@ -653,6 +653,9 @@ export default class SYS_USERGridViewBase extends Vue { ...@@ -653,6 +653,9 @@ export default class SYS_USERGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -933,6 +936,34 @@ export default class SYS_USERGridViewBase extends Vue { ...@@ -933,6 +936,34 @@ export default class SYS_USERGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysUser"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysUser");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysUser");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -1255,6 +1286,26 @@ export default class SYS_USERGridViewBase extends Vue { ...@@ -1255,6 +1286,26 @@ export default class SYS_USERGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SYS_USERGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -139,7 +139,7 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -139,7 +139,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USERMPickupViewBase * @memberof SYS_USERMPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -121,7 +121,7 @@ export default class SYS_USERPickupGridViewBase extends Vue { ...@@ -121,7 +121,7 @@ export default class SYS_USERPickupGridViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USERPickupGridViewBase * @memberof SYS_USERPickupGridViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -106,7 +106,7 @@ export default class SYS_USERPickupViewBase extends Vue { ...@@ -106,7 +106,7 @@ export default class SYS_USERPickupViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USERPickupViewBase * @memberof SYS_USERPickupViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -82,7 +82,7 @@ export default class SYS_USERRedirectViewBase extends Vue { ...@@ -82,7 +82,7 @@ export default class SYS_USERRedirectViewBase extends Vue {
* @type {string} * @type {string}
* @memberof SYS_USERRedirectViewBase * @memberof SYS_USERRedirectViewBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -211,7 +211,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -211,7 +211,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -149,7 +149,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -149,7 +149,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -205,7 +205,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -205,7 +205,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -244,7 +244,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -244,7 +244,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -218,7 +218,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -218,7 +218,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -187,7 +187,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -187,7 +187,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof MainBase * @memberof MainBase
*/ */
@Inject('navModel') @Inject({from:'navModel',default: 'tab'})
public navModel!:string; public navModel!:string;
/** /**
......
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 ibzuaa/ git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/ cd ibzuaa/
mvn clean package -Papi
cd ibzuaa-provider/ibzuaa-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-provider-api.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -22,9 +22,9 @@ import java.util.List; ...@@ -22,9 +22,9 @@ import java.util.List;
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
}) })
@ComponentScan(basePackages = {"cn.ibizlab"} @ComponentScan(basePackages = {"cn.ibizlab"}
// ,excludeFilters={ ,excludeFilters={
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="cn.ibizlab.xxx.rest.xxx"), @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="cn.ibizlab.api.rest.SysPSSystemResource"),
// } }
) )
@Import({ @Import({
org.springframework.cloud.openfeign.FeignClientsConfiguration.class org.springframework.cloud.openfeign.FeignClientsConfiguration.class
......
...@@ -115,6 +115,19 @@ public class SysAppService extends SysAppServiceImpl ...@@ -115,6 +115,19 @@ public class SysAppService extends SysAppServiceImpl
@CacheEvict( value="ibzuaa_switcher",key = "'id:'+#p0+'||'+#p1") @CacheEvict( value="ibzuaa_switcher",key = "'id:'+#p0+'||'+#p1")
public boolean saveAppSwitcher(String id,String userId,JSONObject config) public boolean saveAppSwitcher(String id,String userId,JSONObject config)
{ {
if(!config.containsKey("model"))
config.put("model", new JSONArray());
List<SysApp> list=new ArrayList<>();
JSONArray.parseArray(config.get("model").toString(),SysApp.class).forEach(sysApp -> {
sysApp.setAddr(null);
sysApp.setIcon(null);
sysApp.setFullname(null);
sysApp.setType(null);
sysApp.setGroup(null);
list.add(sysApp);
});
config.remove("model");
config.put("model",JSONArray.toJSON(list));
return ibzConfigService.saveConfig("AppSwitcher",id, userId,config); return ibzConfigService.saveConfig("AppSwitcher",id, userId,config);
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--输出实体[SYS_AUTHLOG]数据结构 --> <!--输出实体[SYS_AUTHLOG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_authlog-37-1"> <changeSet author="a_A_5d9d78509" id="tab-sys_authlog-38-1">
<createTable tableName="IBZAUTHLOG"> <createTable tableName="IBZAUTHLOG">
<column name="LOGID" remarks="" type="VARCHAR(100)"> <column name="LOGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_AUTHLOG_LOGID"/> <constraints primaryKey="true" primaryKeyName="PK_SYS_AUTHLOG_LOGID"/>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar
EXPOSE 8081 EXPOSE 40002
ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar
...@@ -3,9 +3,22 @@ services: ...@@ -3,9 +3,22 @@ services:
ibzuaa-provider-api: ibzuaa-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
ports: ports:
- "8081:8081" - "40002:40002"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=40002
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -20,9 +20,9 @@ import java.util.List; ...@@ -20,9 +20,9 @@ import java.util.List;
@Configuration @Configuration
@EnableTransactionManagement @EnableTransactionManagement
@ComponentScan(basePackages = {"cn.ibizlab"} @ComponentScan(basePackages = {"cn.ibizlab"}
// ,excludeFilters={ ,excludeFilters={
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="cn.ibizlab.api.rest.xxx"), @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="cn.ibizlab.api.rest.SysPSSystemResource"),
// } }
) )
@EnableMongoRepositories(basePackages = {"cn.ibizlab"}) @EnableMongoRepositories(basePackages = {"cn.ibizlab"})
@MapperScan("cn.ibizlab.*.mapper") @MapperScan("cn.ibizlab.*.mapper")
......
package cn.ibizlab.api.rest.extensions;
import cn.ibizlab.api.dto.SysPSSystemDTO;
import cn.ibizlab.api.rest.SysPSSystemResource;
import cn.ibizlab.core.uaa.domain.SysPSSystem;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class UserSysPSSystemResource extends SysPSSystemResource {
@Override
public ResponseEntity<Boolean> save(@RequestBody SysPSSystemDTO syspssystemdto) {
SysPSSystem system = syspssystemService.get(syspssystemdto.getPssystemid());
if( !StringUtils.isEmpty(system.getMd5check()) && system.getMd5check().equals(syspssystemdto.getMd5check())){
log.warn(String.format("[%s]系统资源没有变化,忽略本次同步请求:",syspssystemdto.getPssystemid()));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
else{
return super.save(syspssystemdto);
}
}
}
package cn.ibizlab.util.client; package cn.ibizlab.util.client;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.*;
@Component @Component
public class IBZWFFallback implements IBZWFFeignClient { public class IBZWFFallback implements IBZWFFeignClient {
...@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient { ...@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient {
public List<String> getbusinesskeysByUserId(String system, String userId, String entity, String processDefinitionKey, String taskDefinitionKey) { public List<String> getbusinesskeysByUserId(String system, String userId, String entity, String processDefinitionKey, String taskDefinitionKey) {
return null; return null;
} }
@Override
public Boolean deployBpmnFile(List<Map<String, Object>> bpmnfiles) {
return null;
}
} }
...@@ -2,7 +2,7 @@ package cn.ibizlab.util.client; ...@@ -2,7 +2,7 @@ package cn.ibizlab.util.client;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.*;
@FeignClient(value = "ibzwf-api",fallback = IBZWFFallback.class) @FeignClient(value = "ibzwf-api",fallback = IBZWFFallback.class)
public interface IBZWFFeignClient public interface IBZWFFeignClient
...@@ -15,4 +15,7 @@ public interface IBZWFFeignClient ...@@ -15,4 +15,7 @@ public interface IBZWFFeignClient
@RequestMapping(method = RequestMethod.POST, value = "/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks") @RequestMapping(method = RequestMethod.POST, value = "/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks")
List<String> getbusinesskeysByUserId(@PathVariable("system") String system,@PathVariable("userId") String userId, List<String> getbusinesskeysByUserId(@PathVariable("system") String system,@PathVariable("userId") String userId,
@PathVariable("entity") String entity,@PathVariable("processDefinitionKey") String processDefinitionKey,@PathVariable("taskDefinitionKey") String taskDefinitionKey); @PathVariable("entity") String entity,@PathVariable("processDefinitionKey") String processDefinitionKey,@PathVariable("taskDefinitionKey") String taskDefinitionKey);
@RequestMapping(method = RequestMethod.POST, value = "/deploybpmn")
Boolean deployBpmnFile(@RequestBody List<Map<String,Object>> bpmnfiles);
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册