兰宝车间质量管理系统-前端
疯狂的狮子Li
2025-01-20 bbe94610a28e72414df1fb2b36a6d11385873e54
src/views/system/user/authRole.vue
@@ -39,7 +39,7 @@
          <el-table-column label="权限字符" align="center" prop="roleKey" />
          <el-table-column label="创建时间" align="center" prop="createTime" width="180">
            <template #default="scope">
              <span>{{ parseTime(scope.row.createTime) }}</span>
              <span>{{ proxy.parseTime(scope.row.createTime) }}</span>
            </template>
          </el-table-column>
        </el-table>
@@ -59,7 +59,7 @@
import { getAuthRole, updateAuthRole } from '@/api/system/user';
import { UserForm } from '@/api/system/user/types';
import { RouteLocationNormalized } from 'vue-router';
import { parseTime } from "@/utils/ruoyi";
import { parseTime } from '@/utils/ruoyi';
const route = useRoute();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -80,8 +80,8 @@
/** 单击选中行数据 */
const clickRow = (row: RoleVO) => {
  // ele的方法有问题,selected应该为可选参数
  tableRef.value?.toggleRowSelection(row, false);
  row.flag = !row.flag;
  tableRef.value?.toggleRowSelection(row, row.flag);
};
/** 多选框选中数据 */
const handleSelectionChange = (selection: RoleVO[]) => {