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

xignzi006 发布系统代码

上级 9764f0d3
......@@ -169,6 +169,16 @@
"viewtag": "29bfcd628ab25e297248ff0524d12908",
"memo": "系统自动添加"
},
"listleadeditview": {
"title": "营销列表-潜在客户编辑视图",
"caption": "营销列表-潜在客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Marketing",
"viewname": "ListLeadEditView",
"viewfilename": "list-lead-edit-view",
"viewtag": "29e6b575138e5652740ab94b21c40928",
"memo": "系统自动添加"
},
"leadeditview": {
"title": "lead编辑视图",
"caption": "潜在顾客",
......
......@@ -14,6 +14,10 @@ export default {
fullname: '姓名',
},
views: {
editview: {
caption: "营销列表-潜在客户",
title: '营销列表-潜在客户编辑视图',
},
gridview: {
caption: "营销列表-潜在客户",
title: '营销列表-潜在客户表格视图',
......
......@@ -13,6 +13,10 @@ export default {
fullname: '姓名',
},
views: {
editview: {
caption: '营销列表-潜在客户',
title: '营销列表-潜在客户编辑视图',
},
gridview: {
caption: '营销列表-潜在客户',
title: '营销列表-潜在客户表格视图',
......
......@@ -143,6 +143,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountPickupView",
"viewtag": "29bfcd628ab25e297248ff0524d12908"
},
"listleadeditview": {
"title": "营销列表-潜在客户编辑视图",
"caption": "营销列表-潜在客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Marketing",
"viewname": "ListLeadEditView",
"viewtag": "29e6b575138e5652740ab94b21c40928"
},
"leadeditview": {
"title": "lead编辑视图",
"caption": "潜在顾客",
......
<template>
<studio-embed-view viewName="contactinfo_abstract" viewTitle="联系人编辑视图" class='deeditview9 contact-info-abstract'>
<studio-view viewName="contactinfo_abstract" viewTitle="联系人编辑视图" class='deeditview contact-info-abstract'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<div class='toolbar-container'>
</div>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -22,7 +29,7 @@
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-embed-view>
</studio-view>
</template>
<script lang='tsx'>
......@@ -31,7 +38,7 @@ import { UIActionTool,Util } from '@/utils';
import { Subject } from 'rxjs';
import ContactService from '@/service/contact/contact-service';
import EditView9Engine from '@engine/view/edit-view9-engine';
import EditViewEngine from '@engine/view/edit-view-engine';
......@@ -100,7 +107,7 @@ export default class ContactInfo_AbstractBase extends Vue {
* @type {string}
* @memberof ContactInfo_AbstractBase
*/
public viewtag: string = '928f354b1e67a8b855b7f19f485299b0';
public viewtag: string = '3cf1d1097fdbdea6d7fb32cf7ff09d04';
/**
* 自定义视图导航上下文集合
......@@ -177,6 +184,7 @@ export default class ContactInfo_AbstractBase extends Vue {
* @memberof ContactInfo_AbstractBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
......@@ -204,6 +212,15 @@ export default class ContactInfo_AbstractBase extends Vue {
* @memberof ContactInfo_AbstractBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof ContactInfo_Abstract
*/
public toolBarModels: any = {
};
......@@ -214,7 +231,7 @@ export default class ContactInfo_AbstractBase extends Vue {
* @type {Engine}
* @memberof ContactInfo_AbstractBase
*/
public engine: EditView9Engine = new EditView9Engine();
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
......@@ -421,19 +438,7 @@ export default class ContactInfo_AbstractBase extends Vue {
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
if(this.panelState){
this.panelState.subscribe((res:any) =>{
if(Object.is(res.tag,'meditviewpanel')){
if(Object.is(res.action,'save')){
this.viewState.next({ tag:'form', action: 'save', data:res.data});
}
if(Object.is(res.action,'remove')){
this.viewState.next({ tag:'form', action: 'remove', data:res.data});
}
}
});
}
}
......@@ -517,15 +522,6 @@ export default class ContactInfo_AbstractBase extends Vue {
}
}
}
/**
* meditview9状态下发变量
*
* @memberof IBZSAM02MobEditView
*/
@Prop() public panelState ?:Subject<ViewState>;
}
......
......@@ -2,5 +2,7 @@
.contact-info-abstract {
--contact-info-abstract: 0;
}
// 视图样式
// this is less
// 避免空文件,后台不让空文件过
.campaign-list-edit-view {
--campaign-list-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CampaignListEditViewBase from './campaign-list-edit-view-base.vue';
import view_form from '@widgets/campaign-list/main-form/main-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 CampaignListEditView extends CampaignListEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.campaign-list-grid-view {
--campaign-list-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CampaignListGridViewBase from './campaign-list-grid-view-base.vue';
import view_grid from '@widgets/campaign-list/main-grid/main-grid.vue';
import view_searchform from '@widgets/campaign-list/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 CampaignListGridView extends CampaignListGridViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.ibiz-list-info {
--ibiz-list-info: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizListInfoBase from './ibiz-list-info-base.vue';
import view_tabexppanel from '@widgets/ibiz-list/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class IBizListInfo extends IBizListInfoBase {
}
</script>
\ No newline at end of file
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.ibiz-list-quick-create {
--ibiz-list-quick-create: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizListQuickCreateBase from './ibiz-list-quick-create-base.vue';
import view_form from '@widgets/ibiz-list/quick-create-form/quick-create-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 IBizListQuickCreate extends IBizListQuickCreateBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.ibiz-list-summary {
--ibiz-list-summary: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizListSummaryBase from './ibiz-list-summary-base.vue';
import view_dashboard from '@widgets/ibiz-list/summary-dashboard/summary-dashboard.vue';
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class IBizListSummary extends IBizListSummaryBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-account-edit-view {
--list-account-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListAccountEditViewBase from './list-account-edit-view-base.vue';
import view_form from '@widgets/list-account/main-form/main-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 ListAccountEditView extends ListAccountEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-account-grid-view {
--list-account-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListAccountGridViewBase from './list-account-grid-view-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 ListAccountGridView extends ListAccountGridViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-contact-edit-view {
--list-contact-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListContactEditViewBase from './list-contact-edit-view-base.vue';
import view_form from '@widgets/list-contact/main-form/main-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 ListContactEditView extends ListContactEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-contact-grid-view {
--list-contact-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListContactGridViewBase from './list-contact-grid-view-base.vue';
import view_grid from '@widgets/list-contact/main-grid/main-grid.vue';
import view_searchform from '@widgets/list-contact/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 ListContactGridView extends ListContactGridViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-lead-edit-view {
--list-lead-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListLeadEditViewBase from './list-lead-edit-view-base.vue';
import view_form from '@widgets/list-lead/main-form/main-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 ListLeadEditView extends ListLeadEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-lead-grid-view {
--list-lead-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListLeadGridViewBase from './list-lead-grid-view-base.vue';
import view_grid from '@widgets/list-lead/main-grid/main-grid.vue';
import view_searchform from '@widgets/list-lead/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 ListLeadGridView extends ListLeadGridViewBase {
}
</script>
\ No newline at end of file
......@@ -170,6 +170,15 @@ export const viewstate: any = {
'ef9fea872a6a21e7566033fafcc0ccb5',
],
},
{
viewtag: '29e6b575138e5652740ab94b21c40928',
viewmodule: 'Marketing',
viewname: 'ListLeadEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '2e17cb1d009dd49ac529319ac15319cd',
viewmodule: 'Sales',
......@@ -200,6 +209,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '3124753ba4abff3aaf49355a5197c4ab',
viewmodule: 'Marketing',
viewname: 'ListContactGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
],
},
{
viewtag: '3a665de6a3970b95fde436c0fea4b1df',
viewmodule: 'Service',
......@@ -210,6 +229,15 @@ export const viewstate: any = {
'06c6da1c8093784a9e76e1ccc52231b7',
],
},
{
viewtag: '3cf1d1097fdbdea6d7fb32cf7ff09d04',
viewmodule: 'Base',
viewname: 'ContactInfo_Abstract',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '3d538df4ca389d372347f7b53d67269f',
viewmodule: 'Base',
......@@ -265,6 +293,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '49dc1a714631338858cd0441f6c720ca',
viewmodule: 'Marketing',
viewname: 'ListAccountEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '51785f69973d8e6b0b1e002a03626fc7',
viewmodule: 'Marketing',
......@@ -355,6 +392,16 @@ export const viewstate: any = {
'7877d7e7e55fe21f48e8382e07579f33',
],
},
{
viewtag: '661e0045037121d27f78b71049dc0d8a',
viewmodule: 'Marketing',
viewname: 'CampaignListGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'9107350fc58a1dba2785d2f5da8afec8',
],
},
{
viewtag: '688201ee5642d41628dbf4deba002d17',
viewmodule: 'Base',
......@@ -440,6 +487,25 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '829c9b0c0bf0c3796537872b84f26935',
viewmodule: 'Marketing',
viewname: 'ListLeadGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'29e6b575138e5652740ab94b21c40928',
],
},
{
viewtag: '8332d2ba99d5a618d1ab69f45ce689f5',
viewmodule: 'Marketing',
viewname: 'IBizListQuickCreate',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '85781d107d628dfc6cdf9693797f073e',
viewmodule: 'Base',
......@@ -503,6 +569,15 @@ export const viewstate: any = {
'303fcfed216ca770612be2c0a97be789',
],
},
{
viewtag: '9107350fc58a1dba2785d2f5da8afec8',
viewmodule: 'Marketing',
viewname: 'CampaignListEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '916febbb65be1c54dd42ccb9914fe973',
viewmodule: 'Base',
......@@ -533,27 +608,37 @@ export const viewstate: any = {
],
},
{
viewtag: 'a50134133db91e46c8434ad0ebff22c7',
viewmodule: 'Base',
viewname: 'AppointmentEditView',
viewtag: 'a0baf844a4d48914ee2623448b1a73fb',
viewmodule: 'Marketing',
viewname: 'IBizListSummary',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'a5213905238dbc5d8e1a505029105cc9',
viewtag: 'a4919bb27b92cb14381930c8face40b0',
viewmodule: 'Marketing',
viewname: 'ListAccountGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'49dc1a714631338858cd0441f6c720ca',
],
},
{
viewtag: 'a50134133db91e46c8434ad0ebff22c7',
viewmodule: 'Base',
viewname: 'EmailEditView',
viewname: 'AppointmentEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'a62e766e54ec0b259071463523c98493',
viewmodule: 'Marketing',
viewname: 'IBizListEditView',
viewtag: 'a5213905238dbc5d8e1a505029105cc9',
viewmodule: 'Base',
viewname: 'EmailEditView',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -606,6 +691,20 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'b10964e86f6d70d588618c69fb4d6297',
viewmodule: 'Marketing',
viewname: 'IBizListInfo',
viewaction: '',
viewdatachange: false,
refviews: [
'661e0045037121d27f78b71049dc0d8a',
'a0baf844a4d48914ee2623448b1a73fb',
'829c9b0c0bf0c3796537872b84f26935',
'3124753ba4abff3aaf49355a5197c4ab',
'a4919bb27b92cb14381930c8face40b0',
],
},
{
viewtag: 'b38bc0256ecd5be1a58a3c2210a98d05',
viewmodule: 'Product',
......@@ -677,6 +776,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
viewmodule: 'Marketing',
viewname: 'ListContactEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'd1c35f3c52010e1428d7dc1a6bc82f63',
viewmodule: 'Sales',
......
......@@ -79,6 +79,7 @@ export default class ListLeadUIServiceBase extends UIService {
* @memberof ListLeadUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'listleads'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'listleads'});
}
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MainBase from './main-form-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MainBase from './main-grid-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册