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

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

上级 899b0e1b
.app-login-button { .app-login-button {
height: 40px;
width: 175px;
.ivu-btn { .ivu-btn {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -16,6 +16,15 @@ import { Vue, Component, Prop } from "vue-property-decorator"; ...@@ -16,6 +16,15 @@ import { Vue, Component, Prop } from "vue-property-decorator";
@Component({}) @Component({})
export default class AppLoginButton extends Vue { export default class AppLoginButton extends Vue {
/**
* 名称
*
* @type {PanelButtonModel}
* @memberof AppLoginButton
*/
@Prop() public name!: string;
/** /**
* 模型 * 模型
* *
...@@ -71,7 +80,7 @@ export default class AppLoginButton extends Vue { ...@@ -71,7 +80,7 @@ export default class AppLoginButton extends Vue {
this.register(); this.register();
break; break;
default: default:
this.$emit("itemClick", this.model.predefinedType); this.$emit("itemClick", this.name);
} }
} }
......
.app-org-picker { .app-login-org {
height: 40px;
width: 100%; width: 100%;
.ivu-dropdown { .ivu-select {
height: 100%;
width: 100%; width: 100%;
} }
.app-org-picker__empty { .ivu-select-selection {
height: 100%;
width: 100%; width: 100%;
font-size: 16px; display: flex;
text-align: center; align-items: center;
color: #dbdbdb;
padding: 5px 0;
} }
} }
\ No newline at end of file
<template> <template>
<div class="app-org-picker"> <div :class="[model.sysCss, 'app-login-org']" :style="containerStyle">
<dropdown @on-click="orgSelect" @on-visible-change="visibleChange"> <Select v-model="curKey">
<Input :value="getSelectedOrgName" placeholder="请选择部门" readonly :icon="iconClass" /> <Option v-for="(item, index) in items" :value="item.value" :key="item.value">{{ item.label }}</Option>
<dropdown-menu slot="list"> </Select>
<dropdown-item
:class="{ 'is-active': Object.is(item.srforgsectorid, getSelectedOrgName) }"
:name="item.srforgsectorid"
v-for="(item, index) in selectedOrgArray"
:key="index"
>
{{ item.srforgsectorname }}
</dropdown-item>
<div class="app-org-picker__empty" v-show="!selectedOrgArray.length">暂无数据</div>
</dropdown-menu>
</dropdown>
</div> </div>
</template> </template>
<script lang='ts'> <script lang='ts'>
import { Vue, Component, Inject, Prop } from 'vue-property-decorator'; import { PanelFieldModel } from '@/model/panel-detail';
import { Vue, Component, Prop } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppAuthOrgPicker extends Vue { export default class AppLoginOrg extends Vue {
/** /**
* 输入值 * 名称
* *
* @type {*} * @type {*}
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/
@Prop() public value!: string;
/**
* 默认数据来源模式
*
* @type {string}
* @memberof AppAuthOrgPicker
*
*/ */
public selectMode: 'REMOTE' | 'LOCAL' = 'LOCAL'; @Prop() public name!: string;
/** /**
* 选中组织部门id * 输入值
* *
* @type {string} * @type {*}
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
public selectedOrgId: string = ''; @Prop() public value!: string;
/** /**
* 图标名称 * 模型
* *
* @type {boolean} * @type {*}
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
public iconClass: string = 'ios-arrow-down'; @Prop() public model!: PanelFieldModel;
/** /**
* 选中组织部门名称 * 当前值
* *
* @type {string} * @type {string}
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
get getSelectedOrgName() { get curKey() {
if (this.value) { if (this.value) {
const selectedValue = this.selectedOrgArray.find((item: any) => { return this.value;
return item.srforgsectorid == this.value; } else {
}); return '';
if (selectedValue) {
return selectedValue.srforgsectorname;
}
} }
} }
set curKey(value: string) {
this.$emit('valueChange', { name: this.name, value: value });
}
/** /**
* 组织部门名称数组 * 组织部门名称数组
* *
* @type {Array<any>} * @type {Array<any>}
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
public selectedOrgArray: Array<any> = []; public items: Array<any> = [];
/** /**
* 组件初始化数据,vue生命周期 * 容器样式
* *
* @memberof AppAuthOrgPicker * @type {any}
* @memberof AppLoginInput
*/ */
public created() { public containerStyle: any = null;
this.getOrgData();
}
/** /**
* 选择组织部门回调 * 组件初始化数据,vue生命周期
* *
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
public orgSelect(data: string) { public created() {
if (Object.is(data, this.selectedOrgId)) { this.getOrgData();
return; if (this.model) {
this.containerStyle = this.model.getElementStyle();
} }
let item: any = this.selectedOrgArray.find((_item: any) => Object.is(_item.srforgsectorid, data));
this.$emit('valueChange', { value: item.srforgsectorid });
}
/**
* 下拉框打开或收起回调
*
* @memberof AppAuthOrgPicker
*/
visibleChange(data: boolean) {
this.iconClass = data ? 'ios-arrow-up' : 'ios-arrow-down';
} }
/** /**
* 获取数据 * 获取数据
* *
* @memberof AppAuthOrgPicker * @memberof AppLoginOrg
*/ */
public async getOrgData() { public async getOrgData() {
// todo // todo
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<app-index-user-info name="auth_userinfo1" :layoutModelDetails="layoutModelDetails"></app-index-user-info> <app-index-user-info name="auth_userinfo1" :layoutModelDetails="layoutModelDetails"></app-index-user-info>
</template> </template>
<template #auth_logout1> <template #auth_logout1>
<app-login-button class="app-logout-button" :model="layoutModelDetails.auth_logout1" @itemClick="handleButtonClick" /> <app-login-button class="app-logout-button" name="auth_logout1" :model="layoutModelDetails.auth_logout1" @itemClick="handleButtonClick" />
</template> </template>
</app-simpleflex-container> </app-simpleflex-container>
</template> </template>
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
<app-login-input class="app-login-password" name="auth_password" :model="layoutModelDetails.auth_password" :value="layoutData.auth_password" defaultIcon="ios-key" @valueChange="handleValueChange" /> <app-login-input class="app-login-password" name="auth_password" :model="layoutModelDetails.auth_password" :value="layoutData.auth_password" defaultIcon="ios-key" @valueChange="handleValueChange" />
</template> </template>
<template #auth_orgpick> <template #auth_orgpick>
<app-login-org /> <app-login-org name="auth_orgpick" :model="layoutModelDetails.auth_orgpick" :value="layoutData.auth_orgpick" @valueChange="handleValueChange" />
</template> </template>
<template #auth_loginbutton1> <template #auth_loginbutton1>
<app-login-button class="app-login-button" :model="layoutModelDetails.auth_loginbutton1" defaultStyle='primary' @itemClick="handleButtonClick" /> <app-login-button class="app-login-button" name="auth_loginbutton1" :model="layoutModelDetails.auth_loginbutton1" defaultStyle='primary' @itemClick="handleButtonClick" />
</template> </template>
<template #auth_registbutton1> <template #auth_registbutton1>
<app-preset-button <app-preset-button
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
</app-preset-button> </app-preset-button>
</template> </template>
<template #auth_resetinput1> <template #auth_resetinput1>
<app-login-button class="app-reset-button" :model="layoutModelDetails.auth_resetinput1" defaultStyle='success' @itemClick="handleButtonClick" /> <app-login-button class="app-reset-button" name="auth_resetinput1" :model="layoutModelDetails.auth_resetinput1" defaultStyle='success' @itemClick="handleButtonClick" />
</template> </template>
<template #auth_logout1> <template #auth_logout1>
<app-login-button class="app-logout-button" :model="layoutModelDetails.auth_logout1" @itemClick="handleButtonClick" /> <app-login-button class="app-logout-button" name="auth_logout1" :model="layoutModelDetails.auth_logout1" @itemClick="handleButtonClick" />
</template> </template>
<template #auth_captcha1> <template #auth_captcha1>
<app-login-captcha /> <app-login-captcha />
......
...@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -10,7 +10,7 @@ export default class Usr2Model { ...@@ -10,7 +10,7 @@ export default class Usr2Model {
* 获取数据项集合 * 获取数据项集合
* *
* @returns {any[]} * @returns {any[]}
* @memberof Usr2Dataviewexpbar_dataviewMode * @memberof Usr2DataViewMode
*/ */
public getDataItems(): any[] { public getDataItems(): any[] {
return [ return [
...@@ -39,6 +39,17 @@ export default class Usr2Model { ...@@ -39,6 +39,17 @@ export default class Usr2Model {
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -1545,7 +1545,7 @@ export default class SFormBase extends Vue implements ControlInterface { ...@@ -1545,7 +1545,7 @@ export default class SFormBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1580,7 +1580,7 @@ export default class SFormBase extends Vue implements ControlInterface { ...@@ -1580,7 +1580,7 @@ export default class SFormBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1642,7 +1642,7 @@ export default class SFormBase extends Vue implements ControlInterface { ...@@ -1642,7 +1642,7 @@ export default class SFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1750,7 +1750,7 @@ export default class SFormBase extends Vue implements ControlInterface { ...@@ -1750,7 +1750,7 @@ export default class SFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1827,7 +1827,7 @@ export default class SFormBase extends Vue implements ControlInterface { ...@@ -1827,7 +1827,7 @@ export default class SFormBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册