|
|
@@ -64,8 +64,8 @@
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['app:role:edit']">修改</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['app:role:edit']">查看</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['app:role:remove']">删除</el-button>
|
|
|
</template>
|
|
|
@@ -287,7 +287,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button v-if="isSubmit" type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -304,6 +304,9 @@ export default {
|
|
|
name: "Role",
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
+ isSubmit:false,
|
|
|
+
|
|
|
packagePrizeOptions: [],
|
|
|
packageOptions: [],
|
|
|
productOptions: [],
|
|
|
@@ -606,6 +609,7 @@ export default {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "添加APP角色";
|
|
|
+ this.isSubmit = true;
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
@@ -620,6 +624,7 @@ export default {
|
|
|
};
|
|
|
this.open = true;
|
|
|
this.title = "查看APP角色";
|
|
|
+ this.isSubmit = false;
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|