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

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

上级 c7c9e3ba
......@@ -39,6 +39,14 @@
"viewname": "IBIZSample0001SF5EditView",
"viewtag": "09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview": {
"title": "图书状态向导视图",
"caption": "图书",
"viewtype": "DEWIZARDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKStateWizardView",
"viewtag": "0b8c0a8b7a5b8b73595b23fc502652fc"
},
"ibizsample0001sf4editview": {
"title": "默认数据类型",
"caption": "默认数据类型",
......
......@@ -221,6 +221,7 @@ export default {
menuitem42: "雷达图",
menuitem17: "向导",
menuitem134: "向导视图",
menuitem135: "状态向导",
menuitem18: "界面行为",
menuitem65: "前端界面行为",
menuitem66: "后台界面行为",
......
......@@ -221,6 +221,7 @@ export default {
menuitem42: "雷达图",
menuitem17: "向导",
menuitem134: "向导视图",
menuitem135: "状态向导",
menuitem18: "界面行为",
menuitem65: "前端界面行为",
menuitem66: "后台界面行为",
......
......@@ -20,6 +20,10 @@ export default {
borrowstatus: "图书借阅状态",
},
views: {
statewizardview: {
caption: "图书",
title: "图书状态向导视图",
},
editview3: {
caption: "图书",
title: "图书编辑视图",
......@@ -181,12 +185,10 @@ export default {
title: "新建默认值",
},
},
main_form: {
guideviewform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -195,32 +197,20 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
interfuncform_form: {
guideborrowform_form: {
details: {
group1: "编辑表单内置功能",
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -230,25 +220,12 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
guideviewform_form: {
guidereturnform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -260,20 +237,18 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
returntime: "归还日期",
},
uiactions: {
},
},
guideborrowform_form: {
main_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -283,15 +258,31 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
guidereturnform_form: {
interfuncform_form: {
details: {
group1: "图书基本信息",
group1: "编辑表单内置功能",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -301,7 +292,20 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
......
......@@ -19,6 +19,10 @@ export default {
borrowstatus: "图书借阅状态",
},
views: {
statewizardview: {
caption: "图书",
title: "图书状态向导视图",
},
editview3: {
caption: "图书",
title: "图书编辑视图",
......@@ -180,12 +184,10 @@ export default {
title: "新建默认值",
},
},
main_form: {
guideviewform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -194,32 +196,20 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
interfuncform_form: {
guideborrowform_form: {
details: {
group1: "编辑表单内置功能",
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -229,25 +219,12 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
guideviewform_form: {
guidereturnform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -259,20 +236,18 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
returntime: "归还日期",
},
uiactions: {
},
},
guideborrowform_form: {
main_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -282,15 +257,31 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
guidereturnform_form: {
interfuncform_form: {
details: {
group1: "图书基本信息",
group1: "编辑表单内置功能",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -300,7 +291,20 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookid: "图书标识",
ibizbookname: "图书名称",
author: "图书作者",
press: "图书出版社",
price: "图书价格",
type: "图书类型",
booknumber: "图书数量",
icon: "图标",
lendouttime: "借出日期",
returntime: "归还日期",
subtext: "图书描述",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
......
......@@ -1065,6 +1065,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc49',
resourcetag: '',
},
{
id: 'B3F9066E-1177-4613-9D0B-5AF3EDCC850C',
name: 'menuitem135',
text: '状态向导',
type: 'MENUITEM',
counterid: '',
tooltip: '状态向导',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc51',
resourcetag: '',
},
],
},
......
......@@ -47,6 +47,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0001SF5EditView",
"viewtag": "09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview": {
"title": "图书状态向导视图",
"caption": "图书",
"viewtype": "DEWIZARDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKStateWizardView",
"viewtag": "0b8c0a8b7a5b8b73595b23fc502652fc"
},
"ibizsample0001sf4editview": {
"title": "默认数据类型",
"caption": "默认数据类型",
......
.ibizbookstate-wizard-view{
position: relative;
}
.ibizbookstate-wizard-view{
> .view-card > .ivu-card-body > .content-container > .app-wizard {
overflow: auto;
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKStateWizardViewBase from './ibizbookstate-wizard-view-base.vue';
import view_wizardpanel from '@widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel.vue';
@Component({
components: {
view_wizardpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKStateWizardView extends IBIZBOOKStateWizardViewBase {
}
</script>
\ No newline at end of file
......@@ -39,6 +39,7 @@ export const PageComponents = {
Vue.component('ibizsample0003-pickup-view', () => import('@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'));
Vue.component('ibizsample0001-usr2-edit-view', () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'));
Vue.component('ibizhardware-sgrid-view', () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'));
Vue.component('ibizbookstate-wizard-view', () => import('@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'));
Vue.component('ibizsample0017-form-pickup-data-view', () => import('@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue'));
Vue.component('ibizorder-sf5-grid-view', () => import('@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue'));
Vue.component('ibizbookmedit-view9', () => import('@pages/sample/ibizbookmedit-view9/ibizbookmedit-view9.vue'));
......
......@@ -656,6 +656,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/statewizardview/:statewizardview?',
meta: {
caption: 'entities.ibizbook.views.statewizardview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'statewizardview', parameterName: 'statewizardview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'),
},
{
path: 'ibizsample0017s/:ibizsample0017?/formpickupdataview/:formpickupdataview?',
meta: {
......@@ -2422,6 +2436,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/statewizardview/:statewizardview?',
meta: {
caption: 'entities.ibizbook.views.statewizardview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'statewizardview', parameterName: 'statewizardview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?',
meta: {
......
......@@ -47,6 +47,15 @@ export const viewstate: any = {
'ba34a828f898eefac5a98e7b25d9aef4',
],
},
{
viewtag: '0b8c0a8b7a5b8b73595b23fc502652fc',
viewmodule: 'Sample',
viewname: 'IBIZBOOKStateWizardView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '0c1093afa96df2832f707495afec541e',
viewmodule: 'Sample',
......@@ -239,6 +248,7 @@ export const viewstate: any = {
'3bbf72a3e5b59fed0dee362a9b1384a8',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'f73da4cb47a88d3fe5b92716e0137741',
'0b8c0a8b7a5b8b73595b23fc502652fc',
'59500fe075fdae44c35c88b95e64d9c8',
'b7c0a73eb248d41eb750bbf095fa5505',
'd99f9680b535dcf3ad0d0f853a8b89d9',
......
......@@ -96,6 +96,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
* @memberof IBIZBOOKUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'statewizardview',srfappde:'ibizbooks',component:'ibizbookstate-wizard-view'});
this.allViewMap.set(':',{viewname:'editview3',srfappde:'ibizbooks',component:'ibizbookedit-view3'});
this.allViewMap.set(':',{viewname:'autogrouplistview',srfappde:'ibizbooks',component:'ibizbookauto-group-list-view'});
this.allViewMap.set(':',{viewname:'ruleseditview',srfappde:'ibizbooks',component:'ibizbookrules-edit-view'});
......
......@@ -1127,6 +1127,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc49',
resourcetag: '',
authtag:'Web-MainMenu-menuitem134',
},
{
id: 'B3F9066E-1177-4613-9D0B-5AF3EDCC850C',
name: 'menuitem135',
text: '状态向导',
type: 'MENUITEM',
counterid: '',
tooltip: '状态向导',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc51',
resourcetag: '',
authtag:'Web-MainMenu-menuitem135',
},
],
},
......
......@@ -188,42 +188,26 @@
</el-table-column>
</template>
<template v-if="getColumnState('lendouttime')">
<el-table-column show-overflow-tooltip :prop="'lendouttime'" :label="$t('entities.ibizbook.rowedit_grid.columns.lendouttime')" :width="150" :align="'left'" :sortable="'custom'">
<el-table-column show-overflow-tooltip :prop="'lendouttime'" :label="$t('entities.ibizbook.rowedit_grid.columns.lendouttime')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.rowedit_grid.columns.lendouttime')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<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>
<app-format-data format="YYYY-MM-DD" :data="row.lendouttime"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('returntime')">
<el-table-column show-overflow-tooltip :prop="'returntime'" :label="$t('entities.ibizbook.rowedit_grid.columns.returntime')" :width="150" :align="'left'" :sortable="'custom'">
<el-table-column show-overflow-tooltip :prop="'returntime'" :label="$t('entities.ibizbook.rowedit_grid.columns.returntime')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.rowedit_grid.columns.returntime')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<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>
<app-format-data format="YYYY-MM-DD" :data="row.returntime"></app-format-data>
</template>
</el-table-column>
</template>
......@@ -706,7 +690,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
*
* @memberof RowEditBase
*/
public defaultUpdateItems:Array<any> =[,,,,,,,,];
public defaultUpdateItems:Array<any> =[,,,,,,];
/**
* 选中行数据
......@@ -844,7 +828,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.rowedit_grid.columns.lendouttime',
show: true,
unit: 'PX',
isEnableRowEdit: true,
isEnableRowEdit: false,
enableCond: 3 ,
},
{
......@@ -853,7 +837,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
langtag: 'entities.ibizbook.rowedit_grid.columns.returntime',
show: true,
unit: 'PX',
isEnableRowEdit: true,
isEnableRowEdit: false,
enableCond: 3 ,
},
]
......@@ -942,13 +926,11 @@ export default class RowEditBase extends Vue implements ControlInterface {
*/
public getGridRowModel(){
return {
lendouttime: new FormItemModel(),
author: new FormItemModel(),
press: new FormItemModel(),
ibizbookname: new FormItemModel(),
price: new FormItemModel(),
booknumber: new FormItemModel(),
returntime: new FormItemModel(),
type: new FormItemModel(),
srfkey: new FormItemModel(),
}
......@@ -970,10 +952,6 @@ export default class RowEditBase extends Vue implements ControlInterface {
* @memberof RowEditBase
*/
public rules: any = {
lendouttime: [
{ required: true, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '借出日期 值不能为空', trigger: 'change' },
{ required: true, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '借出日期 值不能为空', trigger: 'blur' },
],
author: [
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书作者 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书作者 值不能为空', trigger: 'blur' },
......@@ -994,10 +972,6 @@ export default class RowEditBase extends Vue implements ControlInterface {
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书数量 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书数量 值不能为空', trigger: 'blur' },
],
returntime: [
{ required: true, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '归还日期 值不能为空', trigger: 'change' },
{ required: true, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '归还日期 值不能为空', trigger: 'blur' },
],
type: [
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书类型 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书类型 值不能为空', trigger: 'blur' },
......
......@@ -30,7 +30,6 @@ export default class RowEditModel {
name: 'lendouttime',
prop: 'lendouttime',
dataType: 'DATE',
isEditable:true
},
{
name: 'author',
......@@ -71,7 +70,6 @@ export default class RowEditModel {
name: 'returntime',
prop: 'returntime',
dataType: 'DATE',
isEditable:true
},
{
name: 'type',
......
/**
* StateGuide 部件模型
*
* @export
* @class StateGuideModel
*/
export default class StateGuideModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof StateGuideModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
prop: 'createman',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name: 'createdate',
prop: 'createdate',
},
{
name: 'updateman',
prop: 'updateman',
},
{
name: 'updatedate',
prop: 'updatedate',
},
{
name: 'author',
prop: 'author',
},
{
name: 'price',
prop: 'price',
},
{
name: 'press',
prop: 'press',
},
{
name: 'type',
prop: 'type',
},
{
name: 'booknumber',
prop: 'booknumber',
},
{
name: 'subtext',
prop: 'subtext',
},
{
name: 'lendouttime',
prop: 'lendouttime',
},
{
name: 'returntime',
prop: 'returntime',
},
{
name: 'icon',
prop: 'icon',
},
{
name: 'sailstate',
prop: 'sailstate',
},
{
name: 'borrowstatus',
prop: 'borrowstatus',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import StateGuideModel from './state-guide-wizardpanel-model';
/**
* StateGuide 部件服务对象
*
* @export
* @class StateGuideService
*/
export default class StateGuideService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof StateGuideService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof StateGuideService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of StateGuideService.
*
* @param {*} [opts={}]
* @memberof StateGuideService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new StateGuideModel();
}
/**
* 初始化向导
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateGuideService
*/
@Errorlog
public init(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 向导结束
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateGuideService
*/
@Errorlog
public finish(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
// 忽略版本检查
Object.assign(Data,{ignoreversioncheck:1});
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Update(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
.app-wizard {
background: #fff;
height: 100%;
.wizard-steps{
padding: 10px 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
.el-step__head.is-process{
border-color: #7e8187;
color: #7e8187;
}
.el-step__title.is-process{
color: #7e8187;
}
.el-step__head.is-success{
border-color: #1890ff;
color: #1890ff;
}
.el-step__title.is-success{
color: #1890ff;
}
}
.app-wizard-content{
height: 100%;
overflow-y: auto;
}
.app-wizard-footer {
padding: 10px;
text-align: right;
.ivu-btn {
margin: 0 5px;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import StateGuideBase from './state-guide-wizardpanel-base.vue';
import view_wizardpanel_form_ThirdForm from '@widgets/ibizbook/guide-return-form-form/guide-return-form-form.vue';
import view_wizardpanel_form_FirstForm from '@widgets/ibizbook/guide-view-form-form/guide-view-form-form.vue';
import view_wizardpanel_form_SecondForm from '@widgets/ibizbook/guide-borrow-form-form/guide-borrow-form-form.vue';
@Component({
components: {
view_wizardpanel_form_ThirdForm,
view_wizardpanel_form_FirstForm,
view_wizardpanel_form_SecondForm,
}
})
export default class StateGuide extends StateGuideBase {
}
</script>
\ No newline at end of file
......@@ -139,8 +139,7 @@ dataType="HTMLTEXT" :precision="0"
<row>
<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.main5_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="150" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rich-text-editor :formState="formState" :value="data.formitem" @change="(val) =>{this.data.formitem =val}" :disabled="detailsModel.formitem.disabled" :data="JSON.stringify(this.data)" name="formitem" :uploadparams='{}' :exportparams='{}' style=""></app-rich-text-editor>
<span v-html="data.formitem"></span>
</app-form-item>
</i-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册