提交 b449410a 编写于 作者: tony001's avatar tony001

调整基础组件

上级 e61106f1
...@@ -20,13 +20,13 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator'; ...@@ -20,13 +20,13 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { Http } from '../../utils'; import { Http } from '../../utils';
@Component({}) @Component({})
export default class IBizGroupPicker extends Vue { export default class AppGroupPicker extends Vue {
/** /**
* 视图上下文参数 * 视图上下文参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
@Prop() viewdata: any; @Prop() viewdata: any;
...@@ -34,7 +34,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -34,7 +34,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数 * 视图参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
@Prop() viewparam: any; @Prop() viewparam: any;
...@@ -42,7 +42,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -42,7 +42,7 @@ export default class IBizGroupPicker extends Vue {
* 多选 * 多选
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected multiple: boolean = false; protected multiple: boolean = false;
...@@ -50,7 +50,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -50,7 +50,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树url * 加载树url
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeurl:any; protected treeurl:any;
...@@ -58,7 +58,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -58,7 +58,7 @@ export default class IBizGroupPicker extends Vue {
* 加载人员url * 加载人员url
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected url:any; protected url:any;
...@@ -66,7 +66,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -66,7 +66,7 @@ export default class IBizGroupPicker extends Vue {
* 树数据集 * 树数据集
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeItems: any[] = []; protected treeItems: any[] = [];
...@@ -74,7 +74,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -74,7 +74,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表数据集 * 分组表数据集
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected cardItems: any[] = []; protected cardItems: any[] = [];
...@@ -82,7 +82,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -82,7 +82,7 @@ export default class IBizGroupPicker extends Vue {
* 视图上下文参数对象 * 视图上下文参数对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected viewData: any; protected viewData: any;
...@@ -90,7 +90,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -90,7 +90,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数对象 * 视图参数对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected viewParam: any; protected viewParam: any;
...@@ -98,7 +98,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -98,7 +98,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中值 * 树选中值
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected treeSelectVal: string = ''; protected treeSelectVal: string = '';
...@@ -106,7 +106,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -106,7 +106,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中集合 * 分组表选中集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected cardSelctVal: any = []; protected cardSelctVal: any = [];
...@@ -114,7 +114,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -114,7 +114,7 @@ export default class IBizGroupPicker extends Vue {
* 数据选中集合 * 数据选中集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
protected selects: any[] = []; protected selects: any[] = [];
...@@ -122,7 +122,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -122,7 +122,7 @@ export default class IBizGroupPicker extends Vue {
* 是否显示树 * 是否显示树
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
get showTree() { get showTree() {
if(this.viewParam) { if(this.viewParam) {
...@@ -134,7 +134,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -134,7 +134,7 @@ export default class IBizGroupPicker extends Vue {
* 生命周期 * 生命周期
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public created() { public created() {
if(!this.viewdata || !this.viewparam) { if(!this.viewdata || !this.viewparam) {
...@@ -158,7 +158,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -158,7 +158,7 @@ export default class IBizGroupPicker extends Vue {
* 加载数据 * 加载数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public load() { public load() {
if(this.showTree) { if(this.showTree) {
...@@ -172,7 +172,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -172,7 +172,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树数据 * 加载树数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public loadTree() { public loadTree() {
let orgid = this.viewParam.filtervalue; let orgid = this.viewParam.filtervalue;
...@@ -191,7 +191,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -191,7 +191,7 @@ export default class IBizGroupPicker extends Vue {
* 加载分组表数据 * 加载分组表数据
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public loadGroupData(key: string) { public loadGroupData(key: string) {
let tempUrl = this.url.replace('${selected-orgid}',key); let tempUrl = this.url.replace('${selected-orgid}',key);
...@@ -209,7 +209,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -209,7 +209,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中 * 树选中
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public treeSelect(event: any) { public treeSelect(event: any) {
if(!event || JSON.parse(event).length == 0) { if(!event || JSON.parse(event).length == 0) {
...@@ -223,7 +223,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -223,7 +223,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中 * 分组表选中
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public groupSelect(event: any) { public groupSelect(event: any) {
if (!event || !event.select) { if (!event || !event.select) {
...@@ -255,7 +255,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -255,7 +255,7 @@ export default class IBizGroupPicker extends Vue {
* 确认 * 确认
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public onOK() { public onOK() {
this.$emit('close', this.selects); this.$emit('close', this.selects);
...@@ -265,7 +265,7 @@ export default class IBizGroupPicker extends Vue { ...@@ -265,7 +265,7 @@ export default class IBizGroupPicker extends Vue {
* 取消 * 取消
* *
* @type {*} * @type {*}
* @memberof IBizGroupPicker * @memberof AppGroupPicker
*/ */
public onCancel() { public onCancel() {
this.$emit('close'); this.$emit('close');
......
...@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator'; ...@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
@Component({}) @Component({})
export default class IBizGroupSelect extends Vue { export default class AppGroupSelect extends Vue {
/** /**
* 名称标识 * 名称标识
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() name!: string; @Prop() name!: string;
...@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue {
* 树加载地址 * 树加载地址
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() treeurl?:boolean; @Prop() treeurl?:boolean;
...@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue {
* 数据接口地址 * 数据接口地址
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() url!: string; @Prop() url!: string;
...@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue {
* 多选 * 多选
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop({default: false}) multiple?: boolean; @Prop({default: false}) multiple?: boolean;
...@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue {
* 数据对象 * 数据对象
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() data: any; @Prop() data: any;
...@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue {
* 过滤属性标识 * 过滤属性标识
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() filter?: string; @Prop() filter?: string;
...@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue {
* 是否启用 * 是否启用
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() disabled?: boolean; @Prop() disabled?: boolean;
...@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue {
* 值 * 值
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() value: any; @Prop() value: any;
...@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue {
* 上下文参数 * 上下文参数
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() context: any; @Prop() context: any;
...@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue {
* 关联属性 * 关联属性
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() valueitem: any; @Prop() valueitem: any;
...@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue {
* 填充属性 * 填充属性
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Prop() fillmap: any; @Prop() fillmap: any;
...@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue {
* 选中项集合 * 选中项集合
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
protected selects: any[] = []; protected selects: any[] = [];
...@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue {
* 值变化 * 值变化
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
@Watch('value') @Watch('value')
onValueChange(newVal: any) { onValueChange(newVal: any) {
...@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue {
* 单选时选中名称 * 单选时选中名称
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
get selectName() { get selectName() {
if(this.selects.length > 0) { if(this.selects.length > 0) {
...@@ -166,7 +166,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -166,7 +166,7 @@ export default class IBizGroupSelect extends Vue {
* 打开选择视图 * 打开选择视图
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public openView() { public openView() {
const view: any = { const view: any = {
...@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue {
* 选择视图关闭 * 选择视图关闭
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public openViewClose(result: any) { public openViewClose(result: any) {
this.selects = []; this.selects = [];
...@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue {
* 数据删除 * 数据删除
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public remove(item: any) { public remove(item: any) {
this.selects.splice(this.selects.indexOf(item), 1); this.selects.splice(this.selects.indexOf(item), 1);
...@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue { ...@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue {
* 设置值 * 设置值
* *
* @type {*} * @type {*}
* @memberof IBizGroupSelect * @memberof AppGroupSelect
*/ */
public setValue() { public setValue() {
let item: any = {}; let item: any = {};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册