交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致
@@ -567,18 +567,20 @@ export default {
});
},
getSubjectData(subjectId, index) { // 获取题目信息
- this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => {
- if (res.status === 200) {
- let item = {
- ...this.tableData[index],
- ...res.subject,
- lcItems: res.items
- };
- this.$set(this.tableData, index, item);
- }
- }).catch(err => {
- // console.log(err);
- });
+ if(subjectId){
+ this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => {
+ if (res.status === 200) {
+ let item = {
+ ...this.tableData[index],
+ ...res.subject,
+ lcItems: res.items
+ };
+ this.$set(this.tableData, index, item);
+ }
+ }).catch(err => {
+ // console.log(err);
+ });
+ }
},
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选