src/views/engineering/index.vue
@@ -140,12 +140,14 @@ size="mini" type="text" icon="el-icon-edit" v-if="!isProject(scope.row.id)" @click="handleUpdate(scope.row)" >修改</el-button> <el-button size="mini" type="text" icon="el-icon-delete" v-if="!isProject(scope.row.id)" @click="deleteById(scope.row)" >删除</el-button> </template> @@ -305,6 +307,10 @@ this.getDeptList(); }, methods: { isProject(id) { const numericPattern = /^\d+(\.\d+)?$/; return numericPattern.test(id) }, getProjectOwnerUnit(unitId) { console.log(unitId) // if (deptId) {