|
@@ -45,7 +45,7 @@ public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
|
|
|
|
public void Set()
|
|
public void Set()
|
|
{
|
|
{
|
|
- this.GetService<IInspectionService>().Set(mItemID, mNormal, mOutliers, mInspectionId);
|
|
|
|
|
|
+ this.GetService<IInspectionService>().Set(mItemID, mNormal, mOutliers, mInspectionId, new string[3] { "1", "2", "3" });
|
|
}
|
|
}
|
|
|
|
|
|
public void InitData(int ItemID, int InspectionId, InspectionStep InspectionStep = null)
|
|
public void InitData(int ItemID, int InspectionId, InspectionStep InspectionStep = null)
|
|
@@ -69,16 +69,16 @@ public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
private float mErrorBtn_go_offset = 319;
|
|
private float mErrorBtn_go_offset = 319;
|
|
public void SetlabelBtnCount(string[] labelList)
|
|
public void SetlabelBtnCount(string[] labelList)
|
|
{
|
|
{
|
|
- foreach(string label in labelList)
|
|
|
|
|
|
+ foreach (string label in labelList)
|
|
{
|
|
{
|
|
- GameObject go = Instantiate(mErrorBtn_go,mErrorBtn_go.transform.parent);
|
|
|
|
|
|
+ GameObject go = Instantiate(mErrorBtn_go, mErrorBtn_go.transform.parent);
|
|
go.GetComponentInChildren<TMP_Text>().text = label;
|
|
go.GetComponentInChildren<TMP_Text>().text = label;
|
|
go.name = label;
|
|
go.name = label;
|
|
Vector3 v3 = mErrorBtn_go.transform.localPosition;
|
|
Vector3 v3 = mErrorBtn_go.transform.localPosition;
|
|
v3.x += mErrorBtn_go_offset;
|
|
v3.x += mErrorBtn_go_offset;
|
|
go.transform.localPosition = v3;
|
|
go.transform.localPosition = v3;
|
|
go.SetActive(true);
|
|
go.SetActive(true);
|
|
- go.GetComponent<Button>().onClick.AddListener(()=>
|
|
|
|
|
|
+ go.GetComponent<Button>().onClick.AddListener(() =>
|
|
{
|
|
{
|
|
LabelText_Input.text += go.name;
|
|
LabelText_Input.text += go.name;
|
|
mOutliers = LabelText_Input.text;
|
|
mOutliers = LabelText_Input.text;
|