|
@@ -260,7 +260,7 @@ export default {
|
|
|
// delBtn: this.vaildData(this.permission.category_delete, false),
|
|
|
// editBtn: this.vaildData(this.permission.category_edit, false)
|
|
|
addBtn: true,
|
|
|
- viewBtn: true,
|
|
|
+ viewBtn: false,
|
|
|
delBtn: false,
|
|
|
editBtn: true,
|
|
|
};
|
|
@@ -376,12 +376,12 @@ export default {
|
|
|
*/
|
|
|
async beforeOpen(done, type) {
|
|
|
if (["edit", "view"].includes(type)) {
|
|
|
- try {
|
|
|
- const res = await getCategoryDetail(this.form.id);
|
|
|
- this.form = res.data.data;
|
|
|
- } catch (error) {
|
|
|
- console.error('获取分类详情失败:', error);
|
|
|
- }
|
|
|
+ // try {
|
|
|
+ // const res = await getCategoryDetail(this.form.id);
|
|
|
+ // this.form = res.data.data;
|
|
|
+ // } catch (error) {
|
|
|
+ // console.error('获取分类详情失败:', error);
|
|
|
+ // }
|
|
|
} else if (type === "add") {
|
|
|
// 新增时设置默认值
|
|
|
this.form = {
|