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

xignzi006 发布系统代码

上级 1c081bf8
......@@ -710,6 +710,8 @@ export default {
root: '全部客户',
},
uiactions: {
openmaineditview: "编辑",
remove: "Remove",
},
},
};
\ No newline at end of file
......@@ -709,6 +709,8 @@ export default {
root: '全部客户',
},
uiactions: {
openmaineditview: '编辑',
remove: '删除',
},
},
};
\ No newline at end of file
......@@ -17,8 +17,8 @@ export const PageComponents = {
Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('letter-edit-view', () => import('@pages/base/letter-edit-view/letter-edit-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('transaction-currency-pickup-view', () => import('@pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue'));
Vue.component('opportunity-product-edit-view', () => import('@pages/sales/opportunity-product-edit-view/opportunity-product-edit-view.vue'));
Vue.component('email-edit-view', () => import('@pages/base/email-edit-view/email-edit-view.vue'));
......
......@@ -535,32 +535,32 @@ const router = new Router({
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: 'goals/:goal?/editview/:editview?',
path: 'letters/:letter?/editview/:editview?',
meta: {
caption: 'entities.goal.views.editview.title',
caption: 'entities.letter.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'letters', parameterName: 'letter' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'),
component: () => import('@pages/base/letter-edit-view/letter-edit-view.vue'),
},
{
path: 'letters/:letter?/editview/:editview?',
path: 'goals/:goal?/editview/:editview?',
meta: {
caption: 'entities.letter.views.editview.title',
caption: 'entities.goal.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'letters', parameterName: 'letter' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/letter-edit-view/letter-edit-view.vue'),
component: () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'),
},
{
path: 'transactioncurrencies/:transactioncurrency?/pickupview/:pickupview?',
......
......@@ -614,6 +614,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'5c7e90ccfaeb49b5bd84ae6c17b479e3',
'6e18ac74e5685439110f9b4e534ee005',
],
},
{
......
......@@ -56,6 +56,7 @@ import { UIActionTool,Util } from '@/utils';
import AccountService from '@/service/account/account-service';
import AccountService from './account-treeview-service';
import AccountUIService from '@/uiservice/account/account-ui-service';
@Component({
......@@ -142,6 +143,171 @@ export default class AccountBase extends Vue implements ControlInterface {
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* childaccount_cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Account
*/
public childaccount_cm_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.childaccount_cm_deuiaction1_click(null, 'childaccount_cm', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.childaccount_cm_deuiaction2_click(null, 'childaccount_cm', $event2);
}
}
/**
* rootaccount_cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Account
*/
public rootaccount_cm_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.rootaccount_cm_deuiaction1_click(null, 'rootaccount_cm', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.rootaccount_cm_deuiaction2_click(null, 'rootaccount_cm', $event2);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public rootaccount_cm_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:AccountUIService = new AccountUIService();
curUIService.Account_OpenMainEditView(datas,contextJO, paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public rootaccount_cm_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public childaccount_cm_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:AccountUIService = new AccountUIService();
curUIService.Account_OpenMainEditView(datas,contextJO, paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public childaccount_cm_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountGradationBase
*/
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);
}
/**
......@@ -712,10 +878,64 @@ export default class AccountBase extends Vue implements ControlInterface {
const data: any = JSON.parse(JSON.stringify(node.data));
this.currentselectedNode = { ...data };
const tags: string[] = data.id.split(';');
if (tags[0] === "ChildAccount") {
content = this.renderContextMenuChildaccount();
}
if (tags[0] === "RootAccount") {
content = this.renderContextMenuRootaccount();
}
}
return content;
}
/**
* 绘制ChildAccount类型右键菜单
*
* @param {*} node
* @returns
* @memberof Account
*/
public renderContextMenuChildaccount() {
return (
<dropdown class="tree-right-menu" trigger="custom" visible={true} on-on-click={($event: any) => this.childaccount_cm_click({tag: $event})}>
<dropdown-menu slot="list">
<dropdown-item name="deuiaction1">
<i class='fa fa-edit'></i>
编辑
</dropdown-item>
<dropdown-item name="deuiaction2">
<i class='fa fa-remove'></i>
删除
</dropdown-item>
</dropdown-menu>
</dropdown>
);
}
/**
* 绘制RootAccount类型右键菜单
*
* @param {*} node
* @returns
* @memberof Account
*/
public renderContextMenuRootaccount() {
return (
<dropdown class="tree-right-menu" trigger="custom" visible={true} on-on-click={($event: any) => this.rootaccount_cm_click({tag: $event})}>
<dropdown-menu slot="list">
<dropdown-item name="deuiaction1">
<i class='fa fa-edit'></i>
编辑
</dropdown-item>
<dropdown-item name="deuiaction2">
<i class='fa fa-remove'></i>
删除
</dropdown-item>
</dropdown-menu>
</dropdown>
);
}
/**
* 设置选中高亮
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册