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

tony001 发布系统代码 [后台服务,演示应用]

上级 33d787ff
......@@ -423,6 +423,8 @@ export default {
},
nodata:"",
uiactions: {
edit: "Edit",
remove: "Remove",
},
},
main6_grid: {
......
......@@ -422,6 +422,8 @@ export default {
},
nodata:"",
uiactions: {
edit: "编辑",
remove: "删除",
},
},
main6_grid: {
......
......@@ -81,14 +81,27 @@
</template>
</el-table-column>
</template>
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if item.getPSDEUIActionGroup().getPS... [in template "TEMPLCODE_en_US" at line 156, column 3]
----
<template v-if="getColumnState('uagridcolumn1')">
<el-table-column :column-key="'uagridcolumn1'" :label="$t('entities.ibizbook.internalfunc_grid.columns.uagridcolumn1')" :width="200" :align="'center'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.internalfunc_grid.columns.uagridcolumn1')}}
</span>
</template>
<template slot-scope="scope">
<div style="text-align: center;">
<a v-show="scope.row.Edit.visabled" :class="{'grid-first-uiaction':scope.row.Edit.visabled && scope.row.Edit.visabled}" :style="{'pointer-events':scope.row.Edit.disabled?'none':'auto','color':scope.row.Edit.disabled?'#7b7979':'#2d8cf0'}" @click="uiAction(scope.row, 'Edit', $event)">
<i class='fa fa-edit'></i>
{{$t('entities.ibizbook.internalfunc_grid.uiactions.edit')}}
</a>
<a v-show="scope.row.Remove.visabled" :class="{'grid-uiaction-divider':scope.row.Edit.visabled && scope.row.Remove.visabled}" :style="{'pointer-events':scope.row.Remove.disabled?'none':'auto','color':scope.row.Remove.disabled?'#7b7979':'#2d8cf0'}" @click="uiAction(scope.row, 'Remove', $event)">
<i class='fa fa-remove'></i>
{{$t('entities.ibizbook.internalfunc_grid.uiactions.remove')}}
</a>
</div>
</template>
</el-table-column>
</template>
<template v-if="adaptiveState">
<el-table-column></el-table-column>
</template>
......@@ -231,6 +244,105 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.$store });
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_uagridcolumn1_u9fcc083_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.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public grid_uagridcolumn1_uf6b7b38_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,"IBIZBOOK");
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKInternalFuncGridViewBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { ibizbook: args[0].ibizbook })
}
_this.opendata([{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKInternalFuncGridViewBase
*/
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);
}
/**
* 转化数据
......@@ -304,6 +416,8 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
* @memberof InternalFuncBase
*/
public ActionModel:any ={
Edit: { name: 'Edit',disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: '', actiontarget: 'SINGLEKEY'},
Remove: { name: 'Remove',disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: '', actiontarget: 'MULTIKEY'}
};
/**
......@@ -1487,6 +1601,12 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
type:'',
press:'',
price:'',
Edit:{
visabled: false
},
Remove:{
visabled: false
},
children: children
}
groupTree.push(tree);
......@@ -1519,6 +1639,12 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
type:'',
press:'',
price:'',
Edit:{
visabled: false
},
Remove:{
visabled: false
},
children: child
}
if(child && child.length > 0){
......@@ -1584,6 +1710,12 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
type:'',
press:'',
price:'',
Edit:{
visabled: false
},
Remove:{
visabled: false
},
children: children,
}
groupTree.push(tree);
......@@ -1862,6 +1994,12 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
$event.stopPropagation();
if(Object.is('Edit', tag)) {
this.grid_uagridcolumn1_u9fcc083_click(row, tag, $event);
}
if(Object.is('Remove', tag)) {
this.grid_uagridcolumn1_uf6b7b38_click(row, tag, $event);
}
}
/**
......
......@@ -505,8 +505,19 @@ tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewpa
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizsample0001.main3_2_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-upload :multiple="true" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='formitem' :value="data.formitem" :disabled="detailsModel.formitem.disabled" :uploadparams='{}' :exportparams='{}' style="overflow: auto;"></app-image-upload>
<disk-image-upload
:data="data"
formItemName="formitem"
:value="data.formitem"
:formState="formState"
folder="ibizsample0001"
ownertype="formitem"
:ownerid="data.srfkey"
:show-ocrview="false"
:show-preview="false"
:persistence="false"
@formitemvaluechange="onFormItemValueChange">
</disk-image-upload>
</app-form-item>
</i-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册