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

jackwang 部署微服务应用

上级 7dbfc3a5
......@@ -130,6 +130,14 @@ export default class AppSpan extends Vue {
*/
@Prop() public editorType?: string;
/**
* 单位
*
* @type {*}
* @memberof AppSpan
*/
@Prop() public unitName?: any;
/**
* vue 生命周期
*
......@@ -171,6 +179,14 @@ export default class AppSpan extends Vue {
} else if (Object.is(this.editorType, 'PICTURE') || Object.is(this.editorType, 'PICTURE_ONE') || Object.is(this.editorType, 'FILEUPLOADER')) {
return <app-upload-file-info value={this.value} name={this.name} />;
}
if(this.unitName != null && !Object.is(this.unitName, '')) {
let _text: any = this.text.toString();
if(_text.indexOf(this.unitName) == -1) {
return <span class="app-span">{this.text}&nbsp;{this.unitName}</span>;
}
}
return <span class="app-span">{this.text}</span>;
}
......
......@@ -264,7 +264,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cog',
iconcls: 'fa fa-delicious',
icon: '',
textcls: '',
appfunctag: '_6',
......
......@@ -291,7 +291,7 @@ export default class PIMModel {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cog',
iconcls: 'fa fa-delicious',
icon: '',
textcls: '',
appfunctag: '_6',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册