mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
test: 💍 更新一些测试用例的快照(因为prettier规则似乎发生了变化导致格式化后的结果出了些许偏差)
This commit is contained in:
parent
84bdb3f6fb
commit
a86897cec0
@ -253,7 +253,6 @@ class Home$$Page extends Component {
|
|||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
throw new Error(response.message);
|
throw new Error(response.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
},
|
},
|
||||||
isInit: true,
|
isInit: true,
|
||||||
@ -280,7 +279,6 @@ class Home$$Page extends Component {
|
|||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
throw new Error(response.message);
|
throw new Error(response.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.result;
|
return response.data.result;
|
||||||
},
|
},
|
||||||
isInit: true,
|
isInit: true,
|
||||||
|
|||||||
@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
|
|||||||
if (!response.data.success) {
|
if (!response.data.success) {
|
||||||
throw new Error(response.data.message);
|
throw new Error(response.data.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.data;
|
return response.data.data;
|
||||||
},
|
},
|
||||||
isInit: function () {
|
isInit: function () {
|
||||||
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
|
|||||||
if (!response.data.success) {
|
if (!response.data.success) {
|
||||||
throw new Error(response.data.message);
|
throw new Error(response.data.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.data.result;
|
return response.data.data.result;
|
||||||
},
|
},
|
||||||
isInit: function () {
|
isInit: function () {
|
||||||
|
|||||||
@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
|
|||||||
if (!response.data.success) {
|
if (!response.data.success) {
|
||||||
throw new Error(response.data.message);
|
throw new Error(response.data.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.data;
|
return response.data.data;
|
||||||
},
|
},
|
||||||
isInit: function () {
|
isInit: function () {
|
||||||
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
|
|||||||
if (!response.data.success) {
|
if (!response.data.success) {
|
||||||
throw new Error(response.data.message);
|
throw new Error(response.data.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.data.data.result;
|
return response.data.data.result;
|
||||||
},
|
},
|
||||||
isInit: function () {
|
isInit: function () {
|
||||||
|
|||||||
@ -145,6 +145,7 @@ class Test$$Page extends React.Component {
|
|||||||
|
|
||||||
onOkModifyDialogThird() {
|
onOkModifyDialogThird() {
|
||||||
//第三步 修改 对话框 确定
|
//第三步 修改 对话框 确定
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
currentStep: 0,
|
currentStep: 0,
|
||||||
isModifyDialogVisible: false,
|
isModifyDialogVisible: false,
|
||||||
@ -153,6 +154,7 @@ class Test$$Page extends React.Component {
|
|||||||
|
|
||||||
onCancelModifyDialogThird() {
|
onCancelModifyDialogThird() {
|
||||||
//第三步 修改 对话框 取消
|
//第三步 修改 对话框 取消
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
isModifyDialogVisible: false,
|
isModifyDialogVisible: false,
|
||||||
});
|
});
|
||||||
@ -184,7 +186,10 @@ class Test$$Page extends React.Component {
|
|||||||
|
|
||||||
onValuesChange(_, values) {
|
onValuesChange(_, values) {
|
||||||
this.setState({
|
this.setState({
|
||||||
customerProjectInfo: { ...this.state.customerProjectInfo, ...values },
|
customerProjectInfo: {
|
||||||
|
...this.state.customerProjectInfo,
|
||||||
|
...values,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,6 @@ class Test$$Page extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.__jp__init();
|
this.__jp__init();
|
||||||
|
|
||||||
this.statusDesc = {
|
this.statusDesc = {
|
||||||
0: "失败",
|
0: "失败",
|
||||||
1: "成功",
|
1: "成功",
|
||||||
@ -157,7 +156,6 @@ class Test$$Page extends React.Component {
|
|||||||
if (!item) {
|
if (!item) {
|
||||||
return "暂无结果";
|
return "暂无结果";
|
||||||
}
|
}
|
||||||
|
|
||||||
const { channel, plat, version, status } = item;
|
const { channel, plat, version, status } = item;
|
||||||
return [channel, plat, version, status].join("-");
|
return [channel, plat, version, status].join("-");
|
||||||
}
|
}
|
||||||
@ -175,7 +173,8 @@ class Test$$Page extends React.Component {
|
|||||||
params: {
|
params: {
|
||||||
size: 5000,
|
size: 5000,
|
||||||
},
|
},
|
||||||
}); // if (this.state.init === false) {
|
});
|
||||||
|
// if (this.state.init === false) {
|
||||||
// this.setState({
|
// this.setState({
|
||||||
// init: true,
|
// init: true,
|
||||||
// });
|
// });
|
||||||
|
|||||||
@ -61,7 +61,6 @@ class Test$$Page extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.__jp__init();
|
this.__jp__init();
|
||||||
|
|
||||||
this.statusDesc = {
|
this.statusDesc = {
|
||||||
0: "失败",
|
0: "失败",
|
||||||
1: "成功",
|
1: "成功",
|
||||||
@ -196,12 +195,10 @@ class Test$$Page extends React.Component {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.$ds.resolve("PROJECTS");
|
this.$ds.resolve("PROJECTS");
|
||||||
|
|
||||||
if (this.userTimeout) {
|
if (this.userTimeout) {
|
||||||
clearTimeout(this.userTimeout);
|
clearTimeout(this.userTimeout);
|
||||||
this.userTimeout = null;
|
this.userTimeout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.projectTimeout) {
|
if (this.projectTimeout) {
|
||||||
clearTimeout(this.projectTimeout);
|
clearTimeout(this.projectTimeout);
|
||||||
this.projectTimeout = null;
|
this.projectTimeout = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user