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

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

上级 72fb0b77
......@@ -250,6 +250,66 @@ export default {
},
},
updatedefaultgridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -249,6 +249,66 @@ export default {
},
},
updatedefaultgridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "批量删除",
tip: "批量删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -16,4 +16,5 @@
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZBOOKUpdateDefaultGridViewBase from './ibizbookupdate-default-grid-view-base.vue';
import view_grid from '@widgets/ibizbook/update-default-grid/update-default-grid.vue';
import view_searchform from '@widgets/ibizbook/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
......@@ -2164,7 +2164,7 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
row['author'] = this.context['srfusername'];
}
if (row.hasOwnProperty('press')) {
row['press'] = this.context['IBIZBOOKNAME'];
row['press'] = this.computeDefaultValueWithParam("CREATE","IBIZBOOKNAME",row);
}
if (row.hasOwnProperty('ibizbookname')) {
row['ibizbookname'] = '新建默认值:图书';
......
......@@ -29,7 +29,21 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='ibizbookname' editorType="TEXTBOX" :value="row.ibizbookname" dataType="TEXT" precision="0" ></app-span>
</template>
</template>
......@@ -43,7 +57,21 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='author' editorType="TEXTBOX" :value="row.author" dataType="TEXT" precision="0" ></app-span>
</template>
</template>
......@@ -57,7 +85,21 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='type' editorType="TEXTBOX" :value="row.type" dataType="TEXT" precision="0" ></app-span>
</template>
</template>
......@@ -71,7 +113,21 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='press' editorType="TEXTBOX" :value="row.press" dataType="TEXT" precision="0" ></app-span>
</template>
</template>
......@@ -85,7 +141,20 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
type="number"
:precision="0"
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='price' editorType="NUMBER" :value="row.price" dataType="CURRENCY" precision="0" ></app-span>
</template>
</template>
......@@ -99,7 +168,13 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :disabled="getColumnDisabled(row,column.property)" :value="row[column.property]" style="" @on-change="(val1, val2) => { row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}"></date-picker>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='updatedate' editorType="DATEPICKER" :value="row.updatedate" dataType="DATETIME" precision="0" ></app-span>
</template>
</template>
......@@ -584,7 +659,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
*
* @memberof UpdateDefaultBase
*/
public defaultUpdateItems:Array<any> =[,,'ibizbookname','price',,'type',];
public defaultUpdateItems:Array<any> =[,'press','ibizbookname','price',,'type',];
/**
* 选中行数据
......@@ -668,7 +743,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.ibizbookname',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -677,7 +752,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.author',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -686,7 +761,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.type',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -695,7 +770,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.press',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -704,7 +779,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.price',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -713,7 +788,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.updatedefault_grid.columns.updatedate',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
]
......@@ -2096,6 +2171,9 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
if (row.hasOwnProperty('author') && !row.author && row.hasUpdated) {
row['author'] = this.context['srfusername'];
}
if (row.hasOwnProperty('press') && !row.press && row.hasUpdated) {
row['press'] = this.computeDefaultValueWithParam("UPDATE","IBIZBOOKNAME",row);
}
if (row.hasOwnProperty('ibizbookname') && !row.ibizbookname && row.hasUpdated) {
row['ibizbookname'] = '更新默认值:图书';
}
......
......@@ -87,7 +87,6 @@ export default class UpdateDefaultModel {
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name:'size',
prop:'size',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册