Compare commits
1 Commits
master
...
ui_2024_3_
Author | SHA1 | Date |
---|---|---|
|
766faf222d |
|
@ -77,7 +77,7 @@
|
||||||
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
||||||
row-key="deptId"
|
row-key="deptId"
|
||||||
>
|
>
|
||||||
<el-table-column label="部门名称" prop="deptName" width="260"></el-table-column>
|
<el-table-column label="企业/部门名称" prop="deptName" width="260"></el-table-column>
|
||||||
<el-table-column label="企业标识" prop="companySign" width="200"></el-table-column>
|
<el-table-column label="企业标识" prop="companySign" width="200"></el-table-column>
|
||||||
<el-table-column label="状态" prop="status" width="100">
|
<el-table-column label="状态" prop="status" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
>新增
|
>新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.parentId != 0"
|
v-show="scope.row.parentId !== 0"
|
||||||
v-hasPermi="['system:dept:remove']"
|
v-hasPermi="['system:dept:remove']"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -116,10 +116,29 @@
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 删除入驻企业-->
|
||||||
|
<el-button
|
||||||
|
v-show="scope.row.parentId === 0 && scope.row.companySign !== 'ZL'"
|
||||||
|
v-hasPermi="['system:dept:remove']"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
>删除
|
||||||
|
</el-button>
|
||||||
|
<!-- <el-button-->
|
||||||
|
<!-- v-show="scope.row.parentId != 0"-->
|
||||||
|
<!-- v-hasPermi="['system:dept:remove']"-->
|
||||||
|
<!-- icon="el-icon-delete"-->
|
||||||
|
<!-- size="mini"-->
|
||||||
|
<!-- type="text"-->
|
||||||
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
|
<!-- >删除-->
|
||||||
|
<!-- </el-button>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<!-- {{deptList}}-->
|
||||||
|
|
||||||
<!-- 企业入驻对话框 -->
|
<!-- 企业入驻对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="openCompany" append-to-body width="600px">
|
<el-dialog :title="title" :visible.sync="openCompany" append-to-body width="600px">
|
||||||
|
@ -309,7 +328,8 @@ export default {
|
||||||
trigger: "blur"
|
trigger: "blur"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
myCompanySign: "ZL"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -436,7 +456,11 @@ export default {
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
// isZLParent(data) {
|
||||||
|
// console.dir("删除的结果" + data + (data.companySign !== this.myCompanySign))
|
||||||
|
// return data.parentId !== 0 || data.companySign === this.companySign
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue