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

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

上级 59d0d481
...@@ -145,6 +145,7 @@ import AppEYUpload from './components/app-ey-upload/app-ey-upload.vue'; ...@@ -145,6 +145,7 @@ import AppEYUpload from './components/app-ey-upload/app-ey-upload.vue';
import AppEYMPicker from './components/app-ey-mpicker/app-ey-mpicker.vue'; import AppEYMPicker from './components/app-ey-mpicker/app-ey-mpicker.vue';
import ExtendActionTimeline from './components/extend-action-timeline/extend-action-timeline.vue'; import ExtendActionTimeline from './components/extend-action-timeline/extend-action-timeline.vue';
import AppAddressCascader from './components/app-address-cascader/app-address-cascader.vue'; import AppAddressCascader from './components/app-address-cascader/app-address-cascader.vue';
import AppDateRange from './components/app-date-range/app-date-range.vue';
// 布局组件 // 布局组件
import AppIndexViewLayoutLeft from './layout/index-view-layout-left/index-view-layout-left.vue'; import AppIndexViewLayoutLeft from './layout/index-view-layout-left/index-view-layout-left.vue';
import AppIndexViewLayoutTop from './layout/index-view-layout-top/index-view-layout-top.vue'; import AppIndexViewLayoutTop from './layout/index-view-layout-top/index-view-layout-top.vue';
...@@ -322,5 +323,6 @@ export const AppComponents = { ...@@ -322,5 +323,6 @@ export const AppComponents = {
v.component('app-mpickup-view-layout',AppMPickUpViewLayout); v.component('app-mpickup-view-layout',AppMPickUpViewLayout);
v.component('app-pickup-grid-view-layout',AppPickUpGridViewLayout); v.component('app-pickup-grid-view-layout',AppPickUpGridViewLayout);
v.component('app-address-cascader',AppAddressCascader); v.component('app-address-cascader',AppAddressCascader);
v.component('app-date-range',AppDateRange);
}, },
}; };
\ No newline at end of file
<template>
<date-picker></date-picker>
</template>
<script lang="ts">
import { Vue, Component, Prop, Watch } from 'vue-property-decorator';
@Component({})
export default class AppDateRange Vue {
/**
* 当前值
*
* @type {*}
* @memberof AppSpan
*/
@Prop() public value?: any;
/**
* 数据类型
*
* @type {string}
* @memberof AppSpan
*/
@Prop({default: 'datetime'}) public type?: 'datetime' | 'date';
/**
* 是否禁用
*
* @type {string}
* @memberof AppSpan
*/
@Prop({default: false}) public disabled?: boolean;
/**
* 日期值格式化
*
* @type {string}
* @memberof AppSpan
*/
@Prop() public valueFormat?: string;
/**
* 传入表单数据
*
* @type {*}
* @memberof AppSpan
*/
@Prop() public data?: any;
/**
* 监控表单属性 data 值
*
* @memberof AppSpan
*/
@Watch('data')
onDataChange(newVal: any, oldVal: any) {
if(newVal !== oldVal){
console.log(newVal);
}
}
}
</script>
<style lang='less'>
@import './app-date-range.less';
</style>
\ No newline at end of file
...@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) { if (!this.fetchAction) {
this.$Notice.error({ this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string, title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) { if (!this.removeAction) {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if (Object.is(item.rowDataState, 'create')) { if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) { if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if (Object.is(item.rowDataState, 'update')){ }else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) { if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -314,7 +314,15 @@ dataType="LONGTEXT" unitName="" :precision="0" ...@@ -314,7 +314,15 @@ dataType="LONGTEXT" unitName="" :precision="0"
</i-col> </i-col>
<i-col v-show="detailsModel.formitem10.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.formitem10.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem10' :itemRules="this.rules().formitem10" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem10')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem10.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='formitem10' :itemRules="this.rules().formitem10" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem10')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem10.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" :value="data.formitem10" :disabled="detailsModel.formitem10.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { data.formitem10 = val1 }"></date-picker> <app-date-range
:value="data.formitem10"
:disabled="detailsModel.formitem10.disabled"
style="min-width: 150px;
startField="starttime""
endField="endtime""
@on-change="(name, val) => { this.data[name] = val }">
</app-date-range>
</app-form-item> </app-form-item>
......
...@@ -1333,21 +1333,17 @@ ...@@ -1333,21 +1333,17 @@
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
"enableCond" : 3, "enableCond" : 3,
"ignoreInput" : 0, "ignoreInput" : 0,
"itemWidth" : 290.0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem10", "mOSFilePath" : "psdeformdetail_formitems/formitem10",
"name" : "formitem10", "name" : "formitem10",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSEditor" : { "getPSEditor" : {
"dateTimeFormat" : "YYYY-MM-DD HH:mm:ss",
"editorParams" : { "editorParams" : {
"TIMEFMT" : "YYYY-MM-DD HH:mm:ss",
"endField" : "endtime", "endField" : "endtime",
"startField" : "starttime" "startField" : "starttime"
}, },
"editorType" : "DATEPICKER", "editorType" : "DATERANGE",
"editorWidth" : 160.0,
"name" : "formitem10" "name" : "formitem10"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
......
...@@ -1462,21 +1462,17 @@ ...@@ -1462,21 +1462,17 @@
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
"enableCond" : 3, "enableCond" : 3,
"ignoreInput" : 0, "ignoreInput" : 0,
"itemWidth" : 290.0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem10", "mOSFilePath" : "psdeformdetail_formitems/formitem10",
"name" : "formitem10", "name" : "formitem10",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSEditor" : { "getPSEditor" : {
"dateTimeFormat" : "YYYY-MM-DD HH:mm:ss",
"editorParams" : { "editorParams" : {
"TIMEFMT" : "YYYY-MM-DD HH:mm:ss",
"endField" : "endtime", "endField" : "endtime",
"startField" : "starttime" "startField" : "starttime"
}, },
"editorType" : "DATEPICKER", "editorType" : "DATERANGE",
"editorWidth" : 160.0,
"name" : "formitem10" "name" : "formitem10"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
......
{
"getAllPSLanguageItems" : [ {
"content" : "R7-Vue-Demo",
"lanResTag" : "PAGE.INDEX"
} ],
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPLANS/ZH_CN.json",
"language" : "ZH_CN",
"name" : "中文简体"
}
\ No newline at end of file
...@@ -5464,6 +5464,11 @@ ...@@ -5464,6 +5464,11 @@
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc75" "rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc75"
} ], } ],
"getAllPSAppLans" : [ { "getAllPSAppLans" : [ {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPLANS/ZH_CN.json",
"name" : "中文简体",
"language" : "ZH_CN"
}, {
"modelref" : true, "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPLANS/EN.json", "path" : "PSSYSAPPS/Web/PSAPPLANS/EN.json",
"name" : "英文", "name" : "英文",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册