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

chitanda 发布系统代码

上级 be40cf38
......@@ -487,31 +487,4 @@ export class AccountInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof AccountInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.accountname) {
Object.assign(this.model, { dataInfo: data.accountname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class AccountStatusTabViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof AccountStatusTabViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.accountname) {
Object.assign(this.model, { dataInfo: data.accountname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -468,31 +468,4 @@ export class ContactInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof ContactInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.fullname) {
Object.assign(this.model, { dataInfo: data.fullname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class ContactTabExpViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof ContactTabExpViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.fullname) {
Object.assign(this.model, { dataInfo: data.fullname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class KnowledgeArticleInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof KnowledgeArticleInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.title) {
Object.assign(this.model, { dataInfo: data.title });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -468,31 +468,4 @@ export class InvoiceInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof InvoiceInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.invoicename) {
Object.assign(this.model, { dataInfo: data.invoicename });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -365,31 +365,4 @@ export class CampaignInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof CampaignInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.campaignname) {
Object.assign(this.model, { dataInfo: data.campaignname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class IBizListInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof IBizListInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.listname) {
Object.assign(this.model, { dataInfo: data.listname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -365,31 +365,4 @@ export class ProductInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof ProductInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.productname) {
Object.assign(this.model, { dataInfo: data.productname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -365,31 +365,4 @@ export class CompetitorInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof CompetitorInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.competitorname) {
Object.assign(this.model, { dataInfo: data.competitorname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class GoalInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof GoalInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.title) {
Object.assign(this.model, { dataInfo: data.title });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -502,31 +502,4 @@ export class LeadInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof LeadInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.fullname) {
Object.assign(this.model, { dataInfo: data.fullname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class LeadStatusTabViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof LeadStatusTabViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.fullname) {
Object.assign(this.model, { dataInfo: data.fullname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -502,31 +502,4 @@ export class OpportunityInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof OpportunityInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.opportunityname) {
Object.assign(this.model, { dataInfo: data.opportunityname });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -468,31 +468,4 @@ export class QuoteInfoBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof QuoteInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.quotename) {
Object.assign(this.model, { dataInfo: data.quotename });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -365,31 +365,4 @@ export class SalesLiteratureInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof SalesLiteratureInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.salesliteraturename) {
Object.assign(this.model, { dataInfo: data.salesliteraturename });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -468,31 +468,4 @@ export class SalesOrderInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof SalesOrderInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.salesordername) {
Object.assign(this.model, { dataInfo: data.salesordername });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
......@@ -117,31 +117,4 @@ export class IncidentInfoViewBase extends TabExpViewBase {
}
/**
* 加载模型
*
* @protected
* @memberof IncidentInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context[this.appDeName]){
this.appEntityService.getDataInfo(this.context),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data } = response;
if (data.title) {
Object.assign(this.model, { dataInfo: data.title });
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
this.$appService.navHistory.setCaption({ tag: this.viewtag, info: this.model.dataInfo });
}
})
}
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册