|
@@ -106,7 +106,7 @@
|
|
|
<div class="el_table_inner_left">
|
|
|
<p
|
|
|
class="class-a"
|
|
|
- :class="{ 'class-b': scope.row.propertyParentId != 0 }"
|
|
|
+ :class="{ 'class-b': scope.row.propertyParentId != '0' }"
|
|
|
>
|
|
|
{{ scope.row.propertyName }}
|
|
|
</p>
|
|
@@ -454,7 +454,7 @@ export default {
|
|
|
disable: false
|
|
|
};
|
|
|
//判断父节点
|
|
|
- if (property.parentId == 0) {
|
|
|
+ if (property.parentId == "0") {
|
|
|
//判断父节点下面有没有 子节点
|
|
|
for (let propertySon of this.properties) {
|
|
|
//如果有子节点,就不能输入
|
|
@@ -552,7 +552,7 @@ export default {
|
|
|
parseInt(row.noPublicMedium) +
|
|
|
parseInt(row.noPublicDifficulty);
|
|
|
//父节点总和计算
|
|
|
- if (row.propertyParentId != 0) {
|
|
|
+ if (row.propertyParentId != "0") {
|
|
|
var publicSimple = 0;
|
|
|
var publicMedium = 0;
|
|
|
var publicDifficulty = 0;
|
|
@@ -658,7 +658,7 @@ export default {
|
|
|
//计算总数
|
|
|
for (let coursePropertyNumber of _this.coursePropertyNumberDtos) {
|
|
|
//父节点相加即可
|
|
|
- if (coursePropertyNumber.propertyParentId === 0) {
|
|
|
+ if (coursePropertyNumber.propertyParentId == "0") {
|
|
|
number = parseInt(coursePropertyNumber.number) + number;
|
|
|
}
|
|
|
}
|
|
@@ -775,7 +775,7 @@ export default {
|
|
|
} else {
|
|
|
this.question.difficulty = "难";
|
|
|
}
|
|
|
- if (row.propertyParentId != 0) {
|
|
|
+ if (row.propertyParentId != "0") {
|
|
|
this.question.firstPropertyId = row.propertyParentId;
|
|
|
this.question.secondPropertyId = row.propertyId;
|
|
|
} else {
|