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

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

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