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

xignzi006 发布系统代码

上级 58e0bd4c
......@@ -308,7 +308,7 @@ export default {
uiactions: {
},
},
address_form: {
addressinfo_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
......@@ -353,7 +353,7 @@ export default {
uiactions: {
},
},
market_form: {
marketinfo_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
......
......@@ -307,7 +307,7 @@ export default {
uiactions: {
},
},
address_form: {
addressinfo_form: {
details: {
group1: '联系人基本信息',
formpage1: '基本信息',
......@@ -352,7 +352,7 @@ export default {
uiactions: {
},
},
market_form: {
marketinfo_form: {
details: {
group1: '联系人基本信息',
formpage1: '基本信息',
......
......@@ -89,6 +89,7 @@ export default {
cost: "成本",
owneridyominame: "负责人",
description: "说明",
transactioncurrencyid: "货币",
listid: "列表",
},
uiactions: {
......
......@@ -88,6 +88,7 @@ export default {
cost: '成本',
owneridyominame: '负责人',
description: '说明',
transactioncurrencyid: '货币',
listid: '列表',
},
uiactions: {
......
......@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator';
import ContactInfo_AddressBase from './contact-info-address-base.vue';
import view_form from '@widgets/contact/address-form/address-form.vue';
import view_form from '@widgets/contact/address-info-form/address-info-form.vue';
@Component({
components: {
view_form,
......
......@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator';
import ContactInfo_MarketBase from './contact-info-market-base.vue';
import view_form from '@widgets/contact/market-form/market-form.vue';
import view_form from '@widgets/contact/market-info-form/market-info-form.vue';
@Component({
components: {
view_form,
......
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.ibiz-list-option-view {
--ibiz-list-option-view: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizListOptionViewBase from './ibiz-list-option-view-base.vue';
import view_form from '@widgets/ibiz-list/abstract-edit-form/abstract-edit-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 IBizListOptionView extends IBizListOptionViewBase {
}
</script>
\ No newline at end of file
......@@ -61,6 +61,7 @@ export const PageComponents = {
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'));
Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'));
Vue.component('ibiz-list-option-view', () => import('@pages/marketing/ibiz-list-option-view/ibiz-list-option-view.vue'));
Vue.component('product-edit-quick-create', () => import('@pages/product/product-edit-quick-create/product-edit-quick-create.vue'));
Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'));
Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue'));
......
......@@ -1171,6 +1171,20 @@ const router = new Router({
},
component: () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'),
},
{
path: 'ibizlists/:ibizlist?/optionview/:optionview?',
meta: {
caption: 'entities.ibizlist.views.optionview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'optionview', parameterName: 'optionview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/ibiz-list-option-view/ibiz-list-option-view.vue'),
},
{
path: 'products/:product?/edit_quickcreate/:edit_quickcreate?',
meta: {
......@@ -1888,6 +1902,19 @@ const router = new Router({
},
component: () => import('@pages/service/incident-edit-view/incident-edit-view.vue'),
},
{
path: '/ibizlists/:ibizlist?/optionview/:optionview?',
meta: {
caption: 'entities.ibizlist.views.optionview.title',
info:'',
parameters: [
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'optionview', parameterName: 'optionview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/ibiz-list-option-view/ibiz-list-option-view.vue'),
},
{
path: '/campaigns/:campaign?/info_head/:info_head?',
meta: {
......
......@@ -62,6 +62,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '0707e5c30c6ebfff55c733f4185d212e',
viewmodule: 'Marketing',
viewname: 'IBizListOptionView',
viewaction: '',
viewdatachange: false,
refviews: [
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{
viewtag: '072d39d4184205e68a5c66fabe32b55e',
viewmodule: 'Marketing',
......@@ -700,6 +710,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'aa79d35850f36fbc1a5085353ecd5af5',
'0707e5c30c6ebfff55c733f4185d212e',
'2eba43abd437c023437f1f2effb1fccb',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
......
......@@ -96,6 +96,54 @@ export default class IBizListUIServiceBase extends UIService {
public initDeMainStateMap(){
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBizList_Edit_Abstract(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { ibizlist: '%ibizlist%' });
Object.assign(params, { listid: '%ibizlist%' });
Object.assign(params, { listname: '%listname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
}
/**
* 获取指定数据的重定向页面
......
......@@ -51,6 +51,41 @@
<el-table-column></el-table-column>
</template>
</el-table>
<row class='grid-pagination' v-show="items.length > 0">
<page class='pull-right' @on-change="pageOnChange($event)"
@on-page-size-change="onPageSizeChange($event)"
:transfer="true" :total="totalrow"
show-sizer :current="curPage" :page-size="limit"
:page-size-opts="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]" show-elevator show-total>
<span>
<span class="page-column">
<poptip transfer placement="top-start">
<i-button icon="md-menu">{{$t('app.gridpage.choicecolumns')}}</i-button>
<div slot="content">
<template v-for="col in allColumns">
<div :key="col.name"><el-checkbox v-model="col.show" @change="onColChange()">{{$t(col.langtag)}}</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span v-if="selections.length > 0" class="batch-toolbar">
</span>
<span class="page-button"><i-button icon="md-refresh" :title="$t('app.gridpage.refresh')" @click="pageRefresh()"></i-button></span>&nbsp;
<span>
{{$t('app.gridpage.show')}}&nbsp;
<span>
<template v-if="items.length === 1">
1
</template>
<template v-else>
<span>{{(curPage - 1) * limit + 1}}&nbsp;-&nbsp;{{totalrow > curPage * limit ? curPage * limit : totalrow}}</span>
</template>
</span>&nbsp;
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}&nbsp;{{totalrow}}&nbsp;{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
</template>
......@@ -288,7 +323,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean}
* @memberof InnerPickip
*/
public isEnablePagingBar: boolean = false;
public isEnablePagingBar: boolean = true;
/**
* 是否禁用排序
......@@ -320,7 +355,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {number}
* @memberof InnerPickip
*/
public limit: number = 60;
public limit: number = 20;
/**
* 是否显示标题
......@@ -328,7 +363,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean}
* @memberof InnerPickip
*/
public isHideHeader: boolean = true;
public isHideHeader: boolean = false;
/**
* 是否默认选中第一条数据
......
/**
* AddressInfo 部件模型
*
* @export
* @class AddressInfoModel
*/
export default class AddressInfoModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AddressInfoModel
*/
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: 'contactid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'fullname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'address1_country',
prop: 'address1_country',
dataType: 'TEXT',
},
{
name: 'address1_stateorprovince',
prop: 'address1_stateorprovince',
dataType: 'TEXT',
},
{
name: 'address1_city',
prop: 'address1_city',
dataType: 'TEXT',
},
{
name: 'address1_line1',
prop: 'address1_line1',
dataType: 'TEXT',
},
{
name: 'address1_postalcode',
prop: 'address1_postalcode',
dataType: 'TEXT',
},
{
name: 'contactid',
prop: 'contactid',
dataType: 'GUID',
},
{
name: 'contact',
prop: 'contactid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AddressInfoBase from './address-info-form-base.vue';
@Component({
components: {
}
})
export default class AddressInfo extends AddressInfoBase {
}
</script>
\ No newline at end of file
/**
* MarketInfo 部件模型
*
* @export
* @class MarketInfoModel
*/
export default class MarketInfoModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MarketInfoModel
*/
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: 'contactid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'fullname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'originatingleadname',
prop: 'originatingleadname',
dataType: 'PICKUPTEXT',
},
{
name: 'lastusedincampaign',
prop: 'lastusedincampaign',
dataType: 'DATETIME',
},
{
name: 'donotsendmm',
prop: 'donotsendmm',
dataType: 'YESNO',
},
{
name: 'shippingmethodcode',
prop: 'shippingmethodcode',
dataType: 'SSCODELIST',
},
{
name: 'contactid',
prop: 'contactid',
dataType: 'GUID',
},
{
name: 'contact',
prop: 'contactid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MarketInfoBase from './market-info-form-base.vue';
@Component({
components: {
}
})
export default class MarketInfo extends MarketInfoBase {
}
</script>
\ No newline at end of file
/**
* AbstractEdit 部件模型
*
* @export
* @class AbstractEditModel
*/
export default class AbstractEditModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AbstractEditModel
*/
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: 'listid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'listname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'listname',
prop: 'listname',
dataType: 'TEXT',
},
{
name: 'type',
prop: 'type',
dataType: 'YESNO',
},
{
name: 'purpose',
prop: 'purpose',
dataType: 'TEXT',
},
{
name: 'membertype',
prop: 'membertype',
dataType: 'INT',
},
{
name: 'source',
prop: 'source',
dataType: 'TEXT',
},
{
name: 'transactioncurrencyname',
prop: 'transactioncurrencyname',
dataType: 'PICKUPTEXT',
},
{
name: 'cost',
prop: 'cost',
dataType: 'BIGDECIMAL',
},
{
name: 'owneridyominame',
prop: 'owneridyominame',
dataType: 'TEXT',
},
{
name: 'description',
prop: 'description',
dataType: 'TEXT',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
dataType: 'PICKUP',
},
{
name: 'listid',
prop: 'listid',
dataType: 'GUID',
},
{
name: 'ibizlist',
prop: 'listid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AbstractEditBase from './abstract-edit-form-base.vue';
@Component({
components: {
}
})
export default class AbstractEdit extends AbstractEditBase {
}
</script>
\ No newline at end of file
......@@ -5,6 +5,12 @@
摘要信息
</span>
<span class="portlet-action">
<a @click="uiAction('u07129a4', $event)">
<span>编辑</span>
</a>
</span>
</p>
<div class="portlet-with-title">
<ibiz-list-info-abstract :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></ibiz-list-info-abstract>
......@@ -20,6 +26,7 @@ import { UIActionTool,Util } from '@/utils';
import IBizListService from '@/service/ibiz-list/ibiz-list-service';
import View_ListAbsService from './view-list-abs-portlet-service';
import IBizListUIService from '@/uiservice/ibiz-list/ibiz-list-ui-service';
import { Environment } from '@/environments/environment';
......@@ -108,6 +115,34 @@ export default class IBizListView_ListAbsBase extends Vue implements ControlInte
public appEntityService: IBizListService = new IBizListService({ $store: this.$store });
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet1_u07129a4_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:IBizListUIService = new IBizListUIService();
curUIService.IBizList_Edit_Abstract(datas,contextJO, paramJO, $event, xData,this,"IBizList");
}
/**
* 关闭视图
......@@ -231,6 +266,16 @@ export default class IBizListView_ListAbsBase extends Vue implements ControlInte
}
}
/**
* 执行界面行为
*
* @memberof View_ListAbsBase
*/
public uiAction(tag:string,event:any){
if(Object.is(tag,'u07129a4')){
this.dashboard_sysportlet1_u07129a4_click(null,tag,event);
}
}
}
</script>
......
......@@ -9,25 +9,25 @@
<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="TOP">
<app-picker
:formState="formState"
<app-picker-select-view
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.entity2name.disabled"
name='entity2name'
:disabled="detailsModel.entity2name.disabled"
name='entity2name'
deMajorField='accountname'
deKeyField='account'
:service="service"
:acParams="{ serviceName: 'AccountService', interfaceName: 'FetchDefault'}"
valueitem='entity2id'
:value="data.entity2name"
editortype="dropdown"
style=""
:value="data.entity2name"
:pickupView="{ viewname: 'account-inner-pickup-view', title: $t('entities.account.views.innerpickupview.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'innerpickupview', parameterName: 'innerpickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-picker-select-view>
</app-form-item>
</i-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册