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

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

上级 26b1d98a
......@@ -1070,6 +1070,18 @@ export default {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
......
......@@ -1069,6 +1069,18 @@ export default {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
......
......@@ -48,6 +48,21 @@
<div slot='content'>{{$t('entities.ibizbook.usr7gridviewtoolbar_toolbar.deuiaction3.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem24.visabled" :disabled="toolBarModels.tbitem24.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem24' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr7gridviewtoolbar_toolbar.tbitem24.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr7gridviewtoolbar_toolbar.tbitem24.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem25.visabled" :disabled="toolBarModels.tbitem25.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem25' }, $event)">
<i class='fa fa-plus'></i>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr7gridviewtoolbar_toolbar.tbitem25.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem8.visabled" :disabled="toolBarModels.tbitem8.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem8' }, $event)">
......@@ -129,15 +144,15 @@
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:isOpenEdit="true"
:gridRowActiveMode="gridRowActiveMode"
:isformDruipart="isformDruipart"
@save="onSave"
updateAction=""
updateAction="Update"
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
......@@ -386,6 +401,11 @@ export default class IBIZBOOKUsr7GridViewBase extends Vue {
deuiaction3: { name: 'deuiaction3', actiontarget: 'NONE', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem24: { name: 'tbitem24', actiontarget: 'NONE', caption: '行编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ToggleRowEdit', target: '' } },
tbitem25: { name: 'tbitem25', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'NewRow', target: '' } },
tbitem26: { name: 'tbitem26', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......
......@@ -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,27 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<dropdown-list
v-model="row[column.property]"
:disabled="getColumnDisabled(row,column.property)"
:data="row"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
tag='BookType'
codelistType='STATIC'
placeholder='请选择...'
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</dropdown-list>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<codelist :value="row.type" tag='BookType' codelistType='STATIC' ></codelist>
</template>
</template>
......@@ -71,7 +119,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 +147,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="2"
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="FLOAT" precision="2" ></app-span>
</template>
</template>
......@@ -99,7 +174,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='booknumber' editorType="NUMBER" :value="row.booknumber" dataType="INT" precision="0" ></app-span>
</template>
</template>
......@@ -113,7 +201,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" :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='lendouttime' editorType="DATEPICKER" :value="row.lendouttime" dataType="DATE" precision="0" ></app-span>
</template>
</template>
......@@ -127,7 +221,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" :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='returntime' editorType="DATEPICKER" :value="row.returntime" dataType="DATE" precision="0" ></app-span>
</template>
</template>
......@@ -696,7 +796,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.ibizbookname',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -705,7 +805,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.author',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -714,7 +814,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.type',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -723,7 +823,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.press',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -732,7 +832,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.price',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -741,7 +841,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.booknumber',
show: true,
unit: 'STAR',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -750,7 +850,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.lendouttime',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
{
......@@ -759,7 +859,7 @@ export default class Main6Base extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.main6_grid.columns.returntime',
show: true,
unit: 'PX',
isEnableRowEdit: false,
isEnableRowEdit: true,
enableCond: 3 ,
},
]
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册