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

xignzi006 发布系统代码

上级 91a54ee8
......@@ -189,42 +189,4 @@ export default {
tip: "Remove {0}",
},
},
gridviewtoolbar_toolbar: {
items1: {
caption: "新建",
tip: "新建",
},
deuiaction2: {
caption: "任务",
tip: "任务",
},
deuiaction3: {
caption: "电子邮件",
tip: "电子邮件",
},
deuiaction4: {
caption: "约会",
tip: "约会",
},
deuiaction5: {
caption: "电话联络",
tip: "电话联络",
},
deuiaction1: {
caption: "Filter",
tip: "Filter",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
},
};
\ No newline at end of file
......@@ -188,42 +188,4 @@ export default {
tip: '删除',
},
},
gridviewtoolbar_toolbar: {
items1: {
caption: '新建',
tip: '新建',
},
deuiaction2: {
caption: '任务',
tip: '任务',
},
deuiaction3: {
caption: '电子邮件',
tip: '电子邮件',
},
deuiaction4: {
caption: '约会',
tip: '约会',
},
deuiaction5: {
caption: '电话联络',
tip: '电话联络',
},
deuiaction1: {
caption: '过滤',
tip: '过滤',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem26: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
},
};
\ No newline at end of file
......@@ -4,67 +4,6 @@
<template slot="quickGroupSearch">
<app-quick-group :items="quickGroupModel" @valuechange="qucikGroupValueChange"></app-quick-group>
</template>
<template slot="toolbar">
<div class='toolbar-container'>
<dropdown v-show="toolBarModels.items1.visabled" :transfer="true" trigger='hover'>
<i-button class='' title="$t('entities.activitypointer.gridviewtoolbar_toolbar.items1.tip')">
<i class=''></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.items1.caption')}}</span>
<icon type="ios-arrow-down"></icon>
</i-button>
<dropdown-menu slot='list'>
<dropdown-item>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction2.tip')" v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class=''></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
</dropdown-item>
<dropdown-item>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction3.tip')" v-show="toolBarModels.deuiaction3.visabled" :disabled="toolBarModels.deuiaction3.disabled" class='' @click="toolbar_click({ tag: 'deuiaction3' }, $event)">
<i class=''></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction3.caption')}}</span>
</i-button>
</dropdown-item>
<dropdown-item>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction4.tip')" v-show="toolBarModels.deuiaction4.visabled" :disabled="toolBarModels.deuiaction4.disabled" class='' @click="toolbar_click({ tag: 'deuiaction4' }, $event)">
<i class=''></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction4.caption')}}</span>
</i-button>
</dropdown-item>
<dropdown-item>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction5.tip')" v-show="toolBarModels.deuiaction5.visabled" :disabled="toolBarModels.deuiaction5.disabled" class='' @click="toolbar_click({ tag: 'deuiaction5' }, $event)">
<i class=''></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction5.caption')}}</span>
</i-button>
</dropdown-item>
<dropdown-item>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction1.tip')" v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-filter'></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
</dropdown-item>
</dropdown-menu>
</dropdown>
<i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.tbitem4.tip')" v-show="toolBarModels.tbitem4.visabled" :disabled="toolBarModels.tbitem4.disabled" class='' @click="toolbar_click({ tag: 'tbitem4' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.activitypointer.gridviewtoolbar_toolbar.tbitem8.tip')" v-show="toolBarModels.tbitem8.visabled" :disabled="toolBarModels.tbitem8.disabled" class='' @click="toolbar_click({ tag: 'tbitem8' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.activitypointer.gridviewtoolbar_toolbar.tbitem8.caption')}}</span>
</i-button>
</div>
</template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......@@ -122,10 +61,6 @@ import ActivityPointerService from '@/service/activity-pointer/activity-pointer-
import GridViewEngine from '@engine/view/grid-view-engine';
import TaskUIService from '@/uiservice/task/task-ui-service';
import EmailUIService from '@/uiservice/email/email-ui-service';
import AppointmentUIService from '@/uiservice/appointment/appointment-ui-service';
import PhoneCallUIService from '@/uiservice/phone-call/phone-call-ui-service';
import CodeListService from "@service/app/codelist-service";
......@@ -271,7 +206,6 @@ export default class ActivityPointerGridViewBase extends Vue {
* @memberof ActivityPointerGridViewBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
......@@ -300,32 +234,6 @@ export default class ActivityPointerGridViewBase extends Vue {
* @memberof ActivityPointerGridViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof ActivityPointerGridView
*/
public toolBarModels: any = {
items1: { name: 'items1', caption: '新建', disabled: false, type: 'ITEMS', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '任务', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Create', target: 'NONE' } },
deuiaction3: { name: 'deuiaction3', caption: '电子邮件', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Create', target: 'NONE' } },
deuiaction4: { name: 'deuiaction4', caption: '约会', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Create', target: 'NONE' } },
deuiaction5: { name: 'deuiaction5', caption: '电话联络', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Create', target: 'NONE' } },
deuiaction1: { name: 'deuiaction1', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
tbitem4: { name: 'tbitem4', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
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' } },
};
......@@ -566,38 +474,6 @@ export default class ActivityPointerGridViewBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ActivityPointerGridViewBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_deuiaction2_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) {
this.toolbar_deuiaction3_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction5')) {
this.toolbar_deuiaction5_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
}
/**
* grid 部件 selectionchange 事件
*
......@@ -695,206 +571,6 @@ export default class ActivityPointerGridViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction2_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];
}
// 界面行为
const curUIService:TaskUIService = new TaskUIService();
curUIService.Task_Create(datas,contextJO, paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction3_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];
}
// 界面行为
const curUIService:EmailUIService = new EmailUIService();
curUIService.Email_Create(datas,contextJO, paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction4_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];
}
// 界面行为
const curUIService:AppointmentUIService = new AppointmentUIService();
curUIService.Appointment_Create(datas,contextJO, paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction5_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];
}
// 界面行为
const curUIService:PhoneCallUIService = new PhoneCallUIService();
curUIService.PhoneCall_Create(datas,contextJO, paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @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.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_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.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_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.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"ActivityPointer");
}
/**
* 打开新建数据视图
*
......@@ -944,68 +620,6 @@ export default class ActivityPointerGridViewBase extends Vue {
}
/**
* 过滤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ActivityPointerGridViewBase
*/
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;
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ActivityPointerGridViewBase
*/
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, { activitypointer: args[0].activitypointer })
}
_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 ActivityPointerGridViewBase
*/
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);
}
/**
* 关闭视图
......
......@@ -2,7 +2,5 @@
.activity-pointer-grid-view {
--activity-pointer-grid-view: 0;
}
// 视图样式
// this is less
......@@ -14,8 +14,8 @@ export const PageComponents = {
Vue.component('competitor-edit-view', () => import('@pages/sales/competitor-edit-view/competitor-edit-view.vue'));
Vue.component('centeral-portal', () => import('@pages/ungroup/centeral-portal/centeral-portal.vue'));
Vue.component('product-edit-view', () => import('@pages/product/product-edit-view/product-edit-view.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('task-quick-create', () => import('@pages/base/task-quick-create/task-quick-create.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('account-account-info', () => import('@pages/base/account-account-info/account-account-info.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('account-summary', () => import('@pages/base/account-summary/account-summary.vue'));
......
......@@ -259,32 +259,32 @@ const router = new Router({
component: () => import('@pages/product/product-edit-view/product-edit-view.vue'),
},
{
path: 'quotes/:quote?/gridview/:gridview?',
path: 'tasks/:task?/quickcreate/:quickcreate?',
meta: {
caption: 'entities.quote.views.gridview.title',
caption: 'entities.task.views.quickcreate.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'quotes', parameterName: 'quote' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'tasks', parameterName: 'task' },
{ pathName: 'quickcreate', parameterName: 'quickcreate' },
],
requireAuth: true,
},
component: () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'),
component: () => import('@pages/base/task-quick-create/task-quick-create.vue'),
},
{
path: 'tasks/:task?/quickcreate/:quickcreate?',
path: 'quotes/:quote?/gridview/:gridview?',
meta: {
caption: 'entities.task.views.quickcreate.title',
caption: 'entities.quote.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'tasks', parameterName: 'task' },
{ pathName: 'quickcreate', parameterName: 'quickcreate' },
{ pathName: 'quotes', parameterName: 'quote' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/task-quick-create/task-quick-create.vue'),
component: () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'),
},
{
path: 'accounts/:account?/accountinfo/:accountinfo?',
......@@ -413,32 +413,32 @@ const router = new Router({
component: () => import('@pages/base/account-address/account-address.vue'),
},
{
path: 'contacts/:contact?/detailinfoeditview9/:detailinfoeditview9?',
path: 'appointments/:appointment?/editview/:editview?',
meta: {
caption: 'entities.contact.views.detailinfoeditview9.title',
caption: 'entities.appointment.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'detailinfoeditview9', parameterName: 'detailinfoeditview9' },
{ pathName: 'appointments', parameterName: 'appointment' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'),
component: () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'),
},
{
path: 'appointments/:appointment?/editview/:editview?',
path: 'contacts/:contact?/detailinfoeditview9/:detailinfoeditview9?',
meta: {
caption: 'entities.appointment.views.editview.title',
caption: 'entities.contact.views.detailinfoeditview9.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'appointments', parameterName: 'appointment' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'detailinfoeditview9', parameterName: 'detailinfoeditview9' },
],
requireAuth: true,
},
component: () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'),
component: () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'),
},
{
path: 'contacts/:contact?/tabexpview/:tabexpview?',
......
......@@ -185,12 +185,10 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'aa79d35850f36fbc1a5085353ecd5af5',
'24e222a530526aab94ed4ed22cfedf9a',
'99d4a530c13b03a98cd143f341394354',
'b3cfac5362b3bfb70d1471932f120fa5',
'3d538df4ca389d372347f7b53d67269f',
'893e62d6fbdc4580de7e3e802aec9108',
'a50134133db91e46c8434ad0ebff22c7',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'3f78dcc732a7a8ba6d959dcf6007b225',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册