Merge remote-tracking branch 'origin/fix/master' into feature/1.8.0-uniapp
# Conflicts: # yudao-ui-admin/src/components/ImageUpload/index.vuepull/2/head
commit
f7958dcf40
|
@ -390,7 +390,7 @@ export default {
|
||||||
this.exportLoading = true;
|
this.exportLoading = true;
|
||||||
return export${simpleClassName}Excel(params);
|
return export${simpleClassName}Excel(params);
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.$download.excel(response, '${table.classComment}.xls');
|
this.$download.excel(response, "${table.classComment}.xls");
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getToken } from "@/utils/auth";
|
import {getToken} from "@/utils/auth";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -95,9 +95,9 @@ export default {
|
||||||
if (typeof item === "string") {
|
if (typeof item === "string") {
|
||||||
// 不带有 http 的路径, 才拼接 baseUrl.
|
// 不带有 http 的路径, 才拼接 baseUrl.
|
||||||
if (item.indexOf("http") === -1) {
|
if (item.indexOf("http") === -1) {
|
||||||
item = { name: this.baseUrl + item, url: this.baseUrl + item };
|
item = {name: this.baseUrl + item, url: this.baseUrl + item};
|
||||||
} else {
|
} else {
|
||||||
item = { name: item, url: item };
|
item = {name: item, url: item};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
|
@ -128,7 +128,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 上传成功回调
|
// 上传成功回调
|
||||||
handleUploadSuccess(res) {
|
handleUploadSuccess(res) {
|
||||||
this.uploadList.push({ name: res.data.fileName, url: res.data.fileUrl });
|
this.uploadList.push({name: res.data.fileName, url: res.data.fileUrl});
|
||||||
if (this.uploadList.length === this.number) {
|
if (this.uploadList.length === this.number) {
|
||||||
this.fileList = this.fileList.concat(this.uploadList);
|
this.fileList = this.fileList.concat(this.uploadList);
|
||||||
this.uploadList = [];
|
this.uploadList = [];
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<doc-alert title="接口文档" url="https://doc.iocoder.cn/api-doc/" />
|
||||||
<i-frame :src="url" />
|
<i-frame :src="url" />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import iFrame from "@/components/iFrame/index";
|
import iFrame from "@/components/iFrame/index";
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<doc-alert title="功能权限" url="https://doc.iocoder.cn/resource-permission" />
|
<doc-alert title="功能权限" url="https://doc.iocoder.cn/resource-permission" />
|
||||||
|
<doc-alert title="菜单路由" url="https://doc.iocoder.cn/vue2/route/" />
|
||||||
|
<!-- 搜索工作栏 -->
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
||||||
<el-form-item label="菜单名称" prop="name">
|
<el-form-item label="菜单名称" prop="name">
|
||||||
<el-input v-model="queryParams.name" placeholder="请输入菜单名称" clearable @keyup.enter.native="handleQuery"/>
|
<el-input v-model="queryParams.name" placeholder="请输入菜单名称" clearable @keyup.enter.native="handleQuery"/>
|
||||||
|
@ -187,6 +189,7 @@ import IconSelect from "@/components/IconSelect";
|
||||||
|
|
||||||
import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants'
|
import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants'
|
||||||
import { getDictDatas, DICT_TYPE } from '@/utils/dict'
|
import { getDictDatas, DICT_TYPE } from '@/utils/dict'
|
||||||
|
import {isExternal} from "@/utils/validate";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Menu",
|
name: "Menu",
|
||||||
|
@ -344,7 +347,7 @@ export default {
|
||||||
|| this.form.type === SystemMenuTypeEnum.MENU) {
|
|| this.form.type === SystemMenuTypeEnum.MENU) {
|
||||||
// 如果是外链,则不进行校验
|
// 如果是外链,则不进行校验
|
||||||
const path = this.form.path
|
const path = this.form.path
|
||||||
if (path.indexOf('http://') === -1 || path.indexOf('https://') === -1) {
|
if (!isExternal(path)) {
|
||||||
// 父权限为根节点,path 必须以 / 开头
|
// 父权限为根节点,path 必须以 / 开头
|
||||||
if (this.form.parentId === 0 && path.charAt(0) !== '/') {
|
if (this.form.parentId === 0 && path.charAt(0) !== '/') {
|
||||||
this.$modal.msgSuccess('前端必须以 / 开头')
|
this.$modal.msgSuccess('前端必须以 / 开头')
|
||||||
|
|
Loading…
Reference in New Issue