提交 c865bc2b 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 a9032111
......@@ -562,15 +562,6 @@ export default {
uagridcolumn1: "主联系人",
},
uiactions: {
new: "New",
edit: "Edit",
copy: "Copy",
togglerowedit: "行编辑",
newrow: "新建行",
remove: "Remove",
exportexcel: "Export",
print: "Print",
togglefilter: "Filter",
setprimary: "设置为主要联系人",
},
},
......@@ -594,66 +585,6 @@ export default {
uiactions: {
},
},
byaccountgrid_quicktoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
},
byaccountgrid_batchtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
......
......@@ -561,15 +561,6 @@ export default {
uagridcolumn1: '主联系人',
},
uiactions: {
new: '新建',
edit: '编辑',
copy: '拷贝',
togglerowedit: '行编辑',
newrow: '新建行',
remove: '删除',
exportexcel: '导出',
print: '打印',
togglefilter: '过滤',
setprimary: '设置为主要联系人',
},
},
......@@ -593,66 +584,6 @@ export default {
uiactions: {
},
},
byaccountgrid_quicktoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
},
byaccountgrid_batchtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: '新建',
......
<template>
<studio-view-style2 viewName="accountgridview" viewTitle="客户表格视图" class='degridview account-grid-view'>
<template slot='title'>
<span class='caption-image'><img src=' '/></span>
<span class='caption-image'><i class=' fa fa-users '></i></span>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
......
<template>
<div class='tabviewpanel'>
<tabs :value="activiedTabViewPanel" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tabs :value="activiedTabViewPanel" :animated="false" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tab-pane :index="0" name='tabviewpanel' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
......
<template>
<div class='tabviewpanel'>
<tabs :value="activiedTabViewPanel" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tabs :value="activiedTabViewPanel" :animated="false" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tab-pane :index="0" name='tabviewpanel' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
......
......@@ -18,7 +18,7 @@
<template slot="empty">
无数据
<span class="quick-toolbar">
<view-toolbar mode="STYLE2" :model="byaccountgrid_quicktoolbarModels" @item-click="toolbar_click"/> </span>
</span>
</template>
<template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
......@@ -142,636 +142,58 @@ export default class ByAccountBase extends Vue implements ControlInterface {
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof ByAccount
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof ByAccount
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof ByAccount
*/
public getControlType(): string {
return 'GRID'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof ByAccount
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {ByAccountService}
* @memberof ByAccount
*/
public service: ByAccountService = new ByAccountService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof ByAccount
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* grid_batchtoolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ByAccount
*/
public grid_batchtoolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.grid_batchtoolbar_tbitem3_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.grid_batchtoolbar_tbitem4_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.grid_batchtoolbar_tbitem6_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.grid_batchtoolbar_tbitem24_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.grid_batchtoolbar_tbitem25_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.grid_batchtoolbar_tbitem8_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem13')) {
this.grid_batchtoolbar_tbitem13_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem11')) {
this.grid_batchtoolbar_tbitem11_click(null, 'grid_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem19')) {
this.grid_batchtoolbar_tbitem19_click(null, 'grid_batchtoolbar', $event2);
}
}
/**
* grid_quicktoolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ByAccount
*/
public grid_quicktoolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.grid_quicktoolbar_tbitem3_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.grid_quicktoolbar_tbitem4_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.grid_quicktoolbar_tbitem6_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.grid_quicktoolbar_tbitem24_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.grid_quicktoolbar_tbitem25_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.grid_quicktoolbar_tbitem8_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem13')) {
this.grid_quicktoolbar_tbitem13_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem11')) {
this.grid_quicktoolbar_tbitem11_click(null, 'grid_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem19')) {
this.grid_quicktoolbar_tbitem19_click(null, 'grid_quicktoolbar', $event2);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem3_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem4_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem6_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem24_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem25_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem8_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem13_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem11_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_quicktoolbar_tbitem19_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_batchtoolbar_tbitem3_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_batchtoolbar_tbitem4_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_batchtoolbar_tbitem6_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
* 视图参数
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @type {*}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem24_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
@Prop() public viewparams: any;
/**
* 逻辑事件
* 视图状态事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @public
* @type {(Subscription | undefined)}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem25_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
public viewStateEvent: Subscription | undefined;
/**
* 逻辑事件
* 获取部件类型
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @returns {string}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem8_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"Contact");
public getControlType(): string {
return 'GRID'
}
/**
* 逻辑事件
* 计数器服务对象集合
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @type {Array<*>}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem13_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
public counterServiceArray:Array<any> = [];
/**
* 逻辑事件
* 建构部件服务对象
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @type {ByAccountService}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem11_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
public service: ByAccountService = new ByAccountService({ $store: this.$store });
/**
* 逻辑事件
* 实体服务对象
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
* @type {ContactService}
* @memberof ByAccount
*/
public grid_batchtoolbar_tbitem19_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 逻辑事件
......@@ -801,192 +223,6 @@ export default class ByAccountBase extends Vue implements ControlInterface {
curUIService.Contact_SetPrimary(datas,contextJO, paramJO, $event, xData,this,"Contact");
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { contact: args[0].contact })
}
_this.opendata([{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
if (args.length > 0) {
Object.assign(data, { srfsourcekey: args[0].srfkey })
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
_this.newdata([{ ...data }],[{ ...data }],params, $event, xData);
} else if (xData && xData.copy instanceof Function) {
if (args.length > 0) {
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
xData.copy(args[0].srfkey);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.remove instanceof Function)) {
return ;
}
xData.remove(args);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public ExportExcel(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.exportExcel instanceof Function) || !$event) {
return ;
}
xData.exportExcel($event.exportparms);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 过滤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactByAccountBase
*/
public ToggleFilter(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.hasOwnProperty('isExpandSearchForm')) {
_this.isExpandSearchForm = !_this.isExpandSearchForm;
}
}
/**
* 关闭视图
......@@ -1281,48 +517,6 @@ export default class ByAccountBase extends Vue implements ControlInterface {
public stopRowClick: boolean = false;
/**
* 工具栏模型
*
* @type {*}
* @memberof ContactByAccount
*/
public byaccountgrid_quicktoolbarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除','isShowCaption':true,'isShowIcon':true, tooltip: '删除', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' }, class: '' },
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem13: { name: 'tbitem13', caption: '导出','isShowCaption':true,'isShowIcon':true, tooltip: '导出', iconcls: 'fa fa-file-excel-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000, class: '' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof ContactByAccount
*/
public byaccountgrid_batchtoolbarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除','isShowCaption':true,'isShowIcon':true, tooltip: '删除', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' }, class: '' },
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem13: { name: 'tbitem13', caption: '导出','isShowCaption':true,'isShowIcon':true, tooltip: '导出', iconcls: 'fa fa-file-excel-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000, class: '' },
};
/**
......@@ -2135,60 +1329,6 @@ export default class ByAccountBase extends Vue implements ControlInterface {
*/
public uiAction(row: any, tag: any, $event: any) {
$event.stopPropagation();
if(Object.is('New', tag)) {
this.grid_quicktoolbar_tbitem3_click(row, tag, $event);
}
if(Object.is('Edit', tag)) {
this.grid_quicktoolbar_tbitem4_click(row, tag, $event);
}
if(Object.is('Copy', tag)) {
this.grid_quicktoolbar_tbitem6_click(row, tag, $event);
}
if(Object.is('ToggleRowEdit', tag)) {
this.grid_quicktoolbar_tbitem24_click(row, tag, $event);
}
if(Object.is('NewRow', tag)) {
this.grid_quicktoolbar_tbitem25_click(row, tag, $event);
}
if(Object.is('Remove', tag)) {
this.grid_quicktoolbar_tbitem8_click(row, tag, $event);
}
if(Object.is('ExportExcel', tag)) {
this.grid_quicktoolbar_tbitem13_click(row, tag, $event);
}
if(Object.is('Print', tag)) {
this.grid_quicktoolbar_tbitem11_click(row, tag, $event);
}
if(Object.is('ToggleFilter', tag)) {
this.grid_quicktoolbar_tbitem19_click(row, tag, $event);
}
if(Object.is('New', tag)) {
this.grid_batchtoolbar_tbitem3_click(row, tag, $event);
}
if(Object.is('Edit', tag)) {
this.grid_batchtoolbar_tbitem4_click(row, tag, $event);
}
if(Object.is('Copy', tag)) {
this.grid_batchtoolbar_tbitem6_click(row, tag, $event);
}
if(Object.is('ToggleRowEdit', tag)) {
this.grid_batchtoolbar_tbitem24_click(row, tag, $event);
}
if(Object.is('NewRow', tag)) {
this.grid_batchtoolbar_tbitem25_click(row, tag, $event);
}
if(Object.is('Remove', tag)) {
this.grid_batchtoolbar_tbitem8_click(row, tag, $event);
}
if(Object.is('ExportExcel', tag)) {
this.grid_batchtoolbar_tbitem13_click(row, tag, $event);
}
if(Object.is('Print', tag)) {
this.grid_batchtoolbar_tbitem11_click(row, tag, $event);
}
if(Object.is('ToggleFilter', tag)) {
this.grid_batchtoolbar_tbitem19_click(row, tag, $event);
}
if(Object.is('SetPrimary', tag)) {
this.grid_uagridcolumn1_u0a2fe00_click(row, tag, $event);
}
......
<template>
<div class='tabviewpanel'>
<tabs :value="activiedTabViewPanel" class='tabexppanel' name='tabexpviewtabexppanel' @on-click="tabPanelClick">
<tabs :value="activiedTabViewPanel" :animated="false" class='tabexppanel' name='tabexpviewtabexppanel' @on-click="tabPanelClick">
<tab-pane :index="0" name='tabviewpanel' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
......
<template>
<div class='tabviewpanel'>
<tabs :value="activiedTabViewPanel" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tabs :value="activiedTabViewPanel" :animated="false" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tab-pane :index="0" name='tabviewpanel' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册