CPQ 注意事項

2021-08-28 02:24:04 字數 2308 閱讀 8745

1.經常.id取不到值,最好要大寫i,如圖寫;

之前**如圖:

遇到乙個問題,在使用attribute往子component傳遞屬性的時候,子companies獲取不到:

父component::

all areas

all countries

--區域

國家專案銷售工程師-中方

專案銷售工程師-外籍

渠道銷售工程師-中方

渠道銷售工程師-外籍

國家代表

生效日期

截止日期

操作

父controller:

/**

* created by zhezhana on 9/25/2018.

*/(,,,

];var countries = [,,

,,];component.set("v.areas", areas);

component.set("v.countries", countries);

// console.log(areas);

var salesmessages = [,,

];// console.log(json.stringify(salesmessages));

component.set("v.salesmessages", salesmessages);

*/ var basesvc = component.find('baseservice');

/**get the action of apex controller**/

var salesbargainingrangedata = component.get("c.getsalesbargainingrangedatas");

/**set param**/

basesvc.invoke(salesbargainingrangedata).then(function (result) ).catch(function (error) );

},dosubmit: function (component, event, helper) ,

doadd: function (component, event, helper) ,

doexport: function (component, event, helper) ,

dosearch: function (component, event, helper) ,

handledeletesales : function (component, event, helper)

return prev;

}, );

component.set("v.salesmessages", salestemp);

console.log(salestemp);

console.log("salesid::" + messageid);

},handleeditsales : function (component, event, helper) ,

docancel : function(component, event, helper)

})

子component:

name::

子controller:

/**

* created by zhezhana on 9/25/2018.

*/(,

getsalesmessage: function (component, event, helper) ,

})

父的另乙個子component:

父的另乙個子的controller:

/**

* created by zhezhana on 9/25/2018.

*/();

deletesales.fire();

console.log("fire!!");

},doedit : function (component, event, helper) );

editevt.fire();}})

java DOM 注意事項

1.w3c把標籤內的文字部分也定義成乙個node 2.element物件代表的是xml文件中的標籤元素 繼承於node,亦是node的最主要的子物件 3.attr實際上是包含在element中的,它並不能被看作是element的子物件,因而在dom中attr並不是dom樹的一部分,所以node中的 ...

static注意事項

static關鍵字是c,c 中都存在的關鍵字,它主要有三種使用方式,其中前兩種只指在c語言中使用,第三種在c 中使用 c,c 中具體細微操作不盡相同,本文以c 為準 1 區域性靜態變數 2 外部靜態變數 函式 3 靜態資料成員 成員函式 下面就這三種使用方式及注意事項分別說明 一 區域性靜態變數 在...

CSS注意事項

一 寬度 高度 對齊方式請別忘記他們 只要你時刻記得 div css 不變形的秘密你已經掌握了 90 也有對齊方式哦!一定要掌握當 對齊方式不同是 布局出現的問題!左右左 能不變形嗎?預設 是要換行的哦 div css的 居中對齊 是有條件的哦 所有當同級元素的對齊方式都為居中對齊的時候可以採用居中...