|
@@ -35,8 +35,9 @@
|
|
|
></i>
|
|
|
<i
|
|
|
v-if="
|
|
|
- !scope.row.children ||
|
|
|
- scope.row.children.length === 0
|
|
|
+ scope.row.parentId != '0' &&
|
|
|
+ (!scope.row.children ||
|
|
|
+ scope.row.children.length === 0)
|
|
|
"
|
|
|
@click="addScenario(scope.row)"
|
|
|
class="el-icon-document-add elIcon"
|
|
@@ -314,7 +315,7 @@ export default {
|
|
|
id: "1",
|
|
|
packageAndRules: "",
|
|
|
packageLevel: 1,
|
|
|
- parentId: "0",
|
|
|
+ parentId: "0", // 判断根路径的标识
|
|
|
remarks: "",
|
|
|
rootId: null,
|
|
|
ruleName: "",
|