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

xignzi006 发布系统代码

上级 0bbf0531
// 避免空文件,后台不让空文件过
.list-account-by-list {
--list-account-by-list: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListAccountByListBase from './list-account-by-list-base.vue';
import view_grid from '@widgets/list-account/main-grid/main-grid.vue';
import view_searchform from '@widgets/list-account/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ListAccountByList extends ListAccountByListBase {
}
</script>
\ No newline at end of file
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.list-account-quick-create-by-list {
--list-account-quick-create-by-list: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListAccountQuickCreateByListBase from './list-account-quick-create-by-list-base.vue';
import view_form from '@widgets/list-account/quick-create-by-list-form/quick-create-by-list-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ListAccountQuickCreateByList extends ListAccountQuickCreateByListBase {
}
</script>
\ No newline at end of file
...@@ -2382,6 +2382,47 @@ const router = new Router({ ...@@ -2382,6 +2382,47 @@ const router = new Router({
}, },
component: () => import('@pages/sales/lead-quick-create/lead-quick-create.vue'), component: () => import('@pages/sales/lead-quick-create/lead-quick-create.vue'),
}, },
{
path: '/ibizlists/:ibizlist?/listaccounts/:listaccount?/bylist/:bylist?',
meta: {
caption: 'entities.listaccount.views.bylist.title',
info:'',
parameters: [
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'bylist', parameterName: 'bylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-by-list/list-account-by-list.vue'),
},
{
path: '/accounts/:account?/listaccounts/:listaccount?/bylist/:bylist?',
meta: {
caption: 'entities.listaccount.views.bylist.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'bylist', parameterName: 'bylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-by-list/list-account-by-list.vue'),
},
{
path: '/listaccounts/:listaccount?/bylist/:bylist?',
meta: {
caption: 'entities.listaccount.views.bylist.title',
info:'',
parameters: [
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'bylist', parameterName: 'bylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-by-list/list-account-by-list.vue'),
},
{ {
path: '/campaigns/:campaign?/summary_head/:summary_head?', path: '/campaigns/:campaign?/summary_head/:summary_head?',
meta: { meta: {
...@@ -2967,6 +3008,47 @@ const router = new Router({ ...@@ -2967,6 +3008,47 @@ const router = new Router({
}, },
component: () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'), component: () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'),
}, },
{
path: '/ibizlists/:ibizlist?/listaccounts/:listaccount?/quickcreatebylist/:quickcreatebylist?',
meta: {
caption: 'entities.listaccount.views.quickcreatebylist.title',
info:'',
parameters: [
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'quickcreatebylist', parameterName: 'quickcreatebylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'),
},
{
path: '/accounts/:account?/listaccounts/:listaccount?/quickcreatebylist/:quickcreatebylist?',
meta: {
caption: 'entities.listaccount.views.quickcreatebylist.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'quickcreatebylist', parameterName: 'quickcreatebylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'),
},
{
path: '/listaccounts/:listaccount?/quickcreatebylist/:quickcreatebylist?',
meta: {
caption: 'entities.listaccount.views.quickcreatebylist.title',
info:'',
parameters: [
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'quickcreatebylist', parameterName: 'quickcreatebylist' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'),
},
{ {
path: '/appointments/:appointment?/editview/:editview?', path: '/appointments/:appointment?/editview/:editview?',
meta: { meta: {
......
...@@ -321,6 +321,16 @@ export const viewstate: any = { ...@@ -321,6 +321,16 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '4799b0e7139b537ebe9313a004daa0ac',
viewmodule: 'Marketing',
viewname: 'ListAccountByList',
viewaction: '',
viewdatachange: false,
refviews: [
'a1b44c891ef0bbc073c82693d8489de6',
],
},
{ {
viewtag: '51785f69973d8e6b0b1e002a03626fc7', viewtag: '51785f69973d8e6b0b1e002a03626fc7',
viewmodule: 'Marketing', viewmodule: 'Marketing',
...@@ -659,6 +669,15 @@ export const viewstate: any = { ...@@ -659,6 +669,15 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: 'a1b44c891ef0bbc073c82693d8489de6',
viewmodule: 'Marketing',
viewname: 'ListAccountQuickCreateByList',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'a50134133db91e46c8434ad0ebff22c7', viewtag: 'a50134133db91e46c8434ad0ebff22c7',
viewmodule: 'Base', viewmodule: 'Base',
......
...@@ -561,7 +561,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -561,7 +561,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图搜索表单loadAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图搜索表单loadAction参数未配置' });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图搜索表单loaddraftAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图搜索表单loaddraftAction参数未配置' });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -665,7 +665,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -665,7 +665,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图表格fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图表格fetchAction参数未配置' });
return; return;
} }
if(pageReset){ if(pageReset){
...@@ -742,7 +742,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -742,7 +742,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图表格removeAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图表格removeAction参数未配置' });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -848,7 +848,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -848,7 +848,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图表格fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图表格fetchAction参数未配置' });
return; return;
} }
if(!arg){ if(!arg){
...@@ -1394,7 +1394,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1394,7 +1394,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图表格createAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图表格createAction参数未配置' });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -1402,7 +1402,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1402,7 +1402,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: '错误', desc: 'ListAccountGridView视图表格updateAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'ListAccountByList视图表格updateAction参数未配置' });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.listaccount){ if(item.listaccount){
......
/**
* QuickCreateByList 部件模型
*
* @export
* @class QuickCreateByListModel
*/
export default class QuickCreateByListModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof QuickCreateByListModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'relationshipsid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'relationshipsname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'entity2name',
prop: 'entity2name',
dataType: 'PICKUPTEXT',
},
{
name: 'relationshipsid',
prop: 'relationshipsid',
dataType: 'GUID',
},
{
name: 'listaccount',
prop: 'relationshipsid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import QuickCreateByListBase from './quick-create-by-list-form-base.vue';
@Component({
components: {
}
})
export default class QuickCreateByList extends QuickCreateByListBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册