| | |
| | | <el-table-column prop="orderNum" label="排序" width="60"></el-table-column>
|
| | | <el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true"></el-table-column>
|
| | | <el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
|
| | | <el-table-column prop="status" label="状态" :formatter="statusFormat" width="80"></el-table-column>
|
| | | <el-table-column prop="status" label="状态" width="80">
|
| | | <template slot-scope="scope">
|
| | | <dict-tag :options="statusOptions" :value="scope.row.status"/>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column label="创建时间" align="center" prop="createTime">
|
| | | <template slot-scope="scope">
|
| | | <span>{{ parseTime(scope.row.createTime) }}</span>
|
| | |
| | | </el-table-column>
|
| | | <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" |
| | | <el-button size="mini"
|
| | | type="text"
|
| | | icon="el-icon-edit"
|
| | | @click="handleUpdate(scope.row)"
|
| | | v-hasPermi="['system:menu:edit']"
|
| | | >修改</el-button>
|
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-plus" |
| | | <el-button
|
| | | size="mini"
|
| | | type="text"
|
| | | icon="el-icon-plus"
|
| | | @click="handleAdd(scope.row)"
|
| | | v-hasPermi="['system:menu:add']"
|
| | | >新增</el-button>
|
| | |
| | | </el-table>
|
| | |
|
| | | <!-- 添加或修改菜单对话框 -->
|
| | | <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
| | | <el-dialog :title="title" :visible.sync="open" width="680px" append-to-body>
|
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
| | | <el-row>
|
| | | <el-col :span="24">
|
| | |
| | | this.menuOptions.push(menu);
|
| | | });
|
| | | },
|
| | | // 显示状态字典翻译
|
| | | visibleFormat(row, column) {
|
| | | if (row.menuType == "F") {
|
| | | return "";
|
| | | }
|
| | | return this.selectDictLabel(this.visibleOptions, row.visible);
|
| | | },
|
| | | // 菜单状态字典翻译
|
| | | statusFormat(row, column) {
|
| | | if (row.menuType == "F") {
|
| | | return "";
|
| | | }
|
| | | return this.selectDictLabel(this.statusOptions, row.status);
|
| | | },
|
| | | // 取消按钮
|
| | | cancel() {
|
| | | this.open = false;
|
| | |
| | | }
|
| | | }
|
| | | };
|
| | | </script> |
| | | </script>
|