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

xignzi006 发布系统代码

上级 fda5856e
......@@ -113,44 +113,6 @@ export default {
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
byparentkeytoolbar_toolbar: {
items1: {
caption: "新建",
......@@ -189,4 +151,42 @@ export default {
tip: "Remove {0}",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
};
\ No newline at end of file
......@@ -112,44 +112,6 @@ export default {
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
byparentkeytoolbar_toolbar: {
items1: {
caption: '新建',
......@@ -188,4 +150,42 @@ export default {
tip: '删除',
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
};
\ No newline at end of file
......@@ -100,10 +100,12 @@ export default {
title: 'campaignresponse编辑视图',
},
},
quickcreate_form: {
main_form: {
details: {
group1: "campaignresponse基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动响应",
......@@ -113,18 +115,19 @@ export default {
srfdeid: "",
srfsourcekey: "",
subject: "主题",
regardingobjectid: "关于",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
activityid: "市场活动响应",
},
uiactions: {
},
},
main_form: {
quickcreate_form: {
details: {
group1: "campaignresponse基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动响应",
......@@ -134,10 +137,7 @@ export default {
srfdeid: "",
srfsourcekey: "",
subject: "主题",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
regardingobjectid: "关于",
activityid: "市场活动响应",
},
uiactions: {
......@@ -159,44 +159,6 @@ export default {
uiactions: {
},
},
byparentkeytoolbar_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",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
......@@ -235,4 +197,42 @@ export default {
tip: "Copy {0}",
},
},
byparentkeytoolbar_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",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
......@@ -99,10 +99,12 @@ export default {
title: 'campaignresponse编辑视图',
},
},
quickcreate_form: {
main_form: {
details: {
group1: 'campaignresponse基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '市场活动响应',
......@@ -112,18 +114,19 @@ export default {
srfdeid: '',
srfsourcekey: '',
subject: '主题',
regardingobjectid: '关于',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
activityid: '市场活动响应',
},
uiactions: {
},
},
main_form: {
quickcreate_form: {
details: {
group1: 'campaignresponse基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '市场活动响应',
......@@ -133,10 +136,7 @@ export default {
srfdeid: '',
srfsourcekey: '',
subject: '主题',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
regardingobjectid: '关于',
activityid: '市场活动响应',
},
uiactions: {
......@@ -158,44 +158,6 @@ export default {
uiactions: {
},
},
byparentkeytoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
......@@ -234,4 +196,42 @@ export default {
tip: '拷贝',
},
},
byparentkeytoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
},
};
\ No newline at end of file
......@@ -40,7 +40,6 @@ export default {
srfdeid: "",
srfsourcekey: "",
entity2name: "客户",
entity2id: "客户",
relationshipsid: "关系标识",
},
uiactions: {
......
......@@ -39,7 +39,6 @@ export default {
srfdeid: '',
srfsourcekey: '',
entity2name: '客户',
entity2id: '客户',
relationshipsid: '关系标识',
},
uiactions: {
......
......@@ -676,7 +676,6 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'29bfcd628ab25e297248ff0524d12908',
],
},
{
......@@ -987,6 +986,7 @@ export const viewstate: any = {
refviews: [
'15d12c1173fcb6e742b6a6d92cbc53ed',
'5f8f689d5dccc3db6d2b74a24a8b24ef',
'bae77557d2f7a7852b634dc5d5a93435',
'6168a7e787ead13b1e0f9a55007bc68c',
],
},
......
......@@ -30,7 +30,30 @@
@closeview="closeView($event)">
</view_tabviewpanel>
</tab-pane>
<tab-pane :index="1" name='tabviewpanel2' tab='tabexpviewtabexppanel' class=''
<tab-pane :index="1" name='tabviewpanel4' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('span', '活动'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel4
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel4"
name="tabviewpanel4"
ref='tabviewpanel4'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel4>
</tab-pane>
<tab-pane :index="2" name='tabviewpanel2' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
......@@ -59,7 +82,7 @@
@closeview="closeView($event)">
</view_tabviewpanel2>
</tab-pane>
<tab-pane :index="2" name='tabviewpanel3' tab='tabexpviewtabexppanel' class=''
<tab-pane :index="3" name='tabviewpanel3' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('span', '商机'),
......@@ -217,6 +240,7 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt
*/
public isInit: any = {
tabviewpanel: true ,
tabviewpanel4: false ,
tabviewpanel2: false ,
tabviewpanel3: false ,
}
......
......@@ -2,6 +2,7 @@
import { Component } from 'vue-property-decorator';
import TabExpViewtabexppanelBase from './tab-exp-viewtabexppanel-tabexppanel-base.vue';
import view_tabviewpanel from '@widgets/contact/tab-exp-viewtabviewpanel-tabviewpanel/tab-exp-viewtabviewpanel-tabviewpanel.vue';
import view_tabviewpanel4 from '@widgets/contact/tab-exp-viewtabviewpanel4-tabviewpanel/tab-exp-viewtabviewpanel4-tabviewpanel.vue';
import view_tabviewpanel2 from '@widgets/contact/tab-exp-viewtabviewpanel2-tabviewpanel/tab-exp-viewtabviewpanel2-tabviewpanel.vue';
import view_tabviewpanel3 from '@widgets/contact/tab-exp-viewtabviewpanel3-tabviewpanel/tab-exp-viewtabviewpanel3-tabviewpanel.vue';
......@@ -9,6 +10,7 @@ import view_tabviewpanel3 from '@widgets/contact/tab-exp-viewtabviewpanel3-tabvi
@Component({
components: {
view_tabviewpanel,
view_tabviewpanel4,
view_tabviewpanel2,
view_tabviewpanel3,
......
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<activity-pointer-by-parent-key
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</activity-pointer-by-parent-key>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import TabExpViewtabviewpanel4Service from './tab-exp-viewtabviewpanel4-tabviewpanel-service';
@Component({
components: {
}
})
export default class TabExpViewtabviewpanel4Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof TabExpViewtabviewpanel4
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof TabExpViewtabviewpanel4
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof TabExpViewtabviewpanel4
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof TabExpViewtabviewpanel4
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof TabExpViewtabviewpanel4
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof TabExpViewtabviewpanel4
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {TabExpViewtabviewpanel4Service}
* @memberof TabExpViewtabviewpanel4
*/
public service: TabExpViewtabviewpanel4Service = new TabExpViewtabviewpanel4Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof TabExpViewtabviewpanel4
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof TabExpViewtabviewpanel4
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof TabExpViewtabviewpanel4
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof TabExpViewtabviewpanel4
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof TabExpViewtabviewpanel4
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof TabExpViewtabviewpanel4
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof TabExpViewtabviewpanel4
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof TabExpViewtabviewpanel4
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof TabExpViewtabviewpanel4
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof TabExpViewtabviewpanel4
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof TabExpViewtabviewpanel4
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof TabExpViewtabviewpanel4
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata =JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* 视图数据变化
*
* @memberof TabExpViewtabviewpanel4
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof TabExpViewtabviewpanel4
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof TabExpViewtabviewpanel4
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './tab-exp-viewtabviewpanel4-tabviewpanel.less';
</style>
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* TabExpViewtabviewpanel4 部件服务对象
*
* @export
* @class TabExpViewtabviewpanel4Service
*/
export default class TabExpViewtabviewpanel4Service extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import TabExpViewtabviewpanel4Base from './tab-exp-viewtabviewpanel4-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class TabExpViewtabviewpanel4 extends TabExpViewtabviewpanel4Base {
}
</script>
\ No newline at end of file
......@@ -9,24 +9,6 @@
<i-col v-show="detailsModel.entity2name.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='entity2name' :itemRules="this.rules.entity2name" class='' :caption="$t('entities.listaccount.quickcreatebylist_form.details.entity2name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entity2name.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker-select-view
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.entity2name.disabled"
name='entity2name'
deMajorField='accountname'
deKeyField='account'
:service="service"
valueitem='entity2id'
:value="data.entity2name"
:pickupView="{ viewname: 'account-pickup-view', title: $t('entities.account.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker-select-view>
</app-form-item>
......@@ -343,7 +325,6 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfdeid: null,
srfsourcekey: null,
entity2name: null,
entity2id: null,
relationshipsid: null,
listaccount:null,
};
......@@ -441,12 +422,6 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
entity2id: [
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
relationshipsid: [
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'blur' },
......@@ -483,8 +458,6 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity2name: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity2id: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
relationshipsid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationshipsid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
......@@ -598,18 +571,6 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
this.formDataChange({ name: 'entity2name', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 entity2id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreateByList
*/
@Watch('data.entity2id')
onEntity2idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'entity2id', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 relationshipsid 值
*
......@@ -670,7 +631,6 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
}
/**
......
......@@ -60,11 +60,6 @@ export default class QuickCreateByListModel {
prop: 'entity2name',
dataType: 'PICKUPTEXT',
},
{
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{
name: 'relationshipsid',
prop: 'relationshipsid',
......
......@@ -2,7 +2,6 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import ListAccountService from '@/service/list-account/list-account-service';
import QuickCreateByListModel from './quick-create-by-list-form-model';
import AccountService from '@/service/account/account-service';
/**
......@@ -42,14 +41,6 @@ export default class QuickCreateByListService extends ControlService {
this.model = new QuickCreateByListModel();
}
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof QuickCreateByListService
*/
public accountService: AccountService = new AccountService();
/**
* 处理数据
*
......@@ -89,9 +80,6 @@ export default class QuickCreateByListService extends ControlService {
*/
@Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
if (Object.is(serviceName, 'AccountService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.accountService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'accountid', 'account');
}
return Promise.reject([])
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册