diff --git a/src/api/system/user.js b/src/api/system/user.js index c7b67a2..5cd50b2 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import { parseStrEmpty } from "@/utils/xinelu"; +import { parseStrEmpty } from "@/utils/xinyilu"; // 查询用户列表 export function listUser(query) { diff --git a/src/assets/images/profile.jpg b/src/assets/images/profile.jpg index b3a940b..f8d8525 100644 Binary files a/src/assets/images/profile.jpg and b/src/assets/images/profile.jpg differ diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 6bb5a18..616fa47 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -9,10 +9,10 @@ :show-file-list="false" :headers="headers" style="display: none" + :data="filetype" ref="upload" v-if="this.type == 'url'" - > - + >
@@ -56,13 +56,21 @@ export default { type: { type: String, default: "url", - } + }, + url: { + type: String, + default: "/common/richTextPictureUrl", + }, + // filetypes: { + // type: String, + // default: "", + // }, }, data() { return { - uploadUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址 + uploadUrl: process.env.VUE_APP_BASE_API, // 上传的图片服务器地址 headers: { - Authorization: "Bearer " + getToken() + Authorization: "Bearer " + getToken(), }, Quill: null, currentValue: "", @@ -73,23 +81,31 @@ export default { modules: { // 工具栏配置 toolbar: [ - ["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线 - ["blockquote", "code-block"], // 引用 代码块 - [{ list: "ordered" }, { list: "bullet" }], // 有序、无序列表 - [{ indent: "-1" }, { indent: "+1" }], // 缩进 - [{ size: ["small", false, "large", "huge"] }], // 字体大小 - [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题 - [{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色 - [{ align: [] }], // 对齐方式 - ["clean"], // 清除文本格式 - ["link", "image", "video"] // 链接、图片、视频 + ["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线 + ["blockquote", "code-block"], // 引用 代码块 + [{ list: "ordered" }, { list: "bullet" }], // 有序、无序列表 + [{ indent: "-1" }, { indent: "+1" }], // 缩进 + [{ size: ["small", false, "large", "huge"] }], // 字体大小 + [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题 + [{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色 + [{ align: [] }], // 对齐方式 + ["clean"], // 清除文本格式 + ["link", "image"], // 链接、图片、视频 ], }, placeholder: "请输入内容", readOnly: this.readOnly, }, + filetype: { + type: "", + }, }; }, + created() { + this.uploadUrl = process.env.VUE_APP_BASE_API + this.url; + // console.log(this.url) + // this.filetype.type = this.filetypes; + }, computed: { styles() { let style = {}; @@ -126,7 +142,7 @@ export default { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); // 如果设置了上传地址则自定义图片上传事件 - if (this.type == 'url') { + if (this.type == "url") { let toolbar = this.Quill.getModule("toolbar"); toolbar.addHandler("image", (value) => { this.uploadType = "image"; @@ -176,7 +192,13 @@ export default { // 获取光标所在位置 let length = quill.getSelection().index; // 插入图片 res.url为服务器返回的图片地址 - quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName); + quill.insertEmbed( + length, + "image", + process.env.VUE_APP_BASE_API + res.fileName + ); + console.log(res); + this.$emit("imgs", res.fileName); // 调整光标到最后 quill.setSelection(length + 1); } else { @@ -191,7 +213,8 @@ export default { diff --git a/src/views/login.vue b/src/views/login.vue index a5521a1..22a42e6 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,15 +1,25 @@ @@ -64,7 +103,7 @@ - diff --git a/src/views/register.vue b/src/views/register.vue index cdc690b..216c179 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -1,7 +1,7 @@ @@ -151,7 +151,7 @@ export default { justify-content: center; align-items: center; height: 100%; - background-image: url("../assets/images/login-background.jpg"); + background-image: url("../assets/images/bg.png"); background-size: cover; } .title { diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index f580b98..d8291a3 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -302,15 +302,19 @@ export default { if (valid) { if (this.form.configId != undefined) { updateConfig(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + } }); } else { addConfig(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + } }); } } diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 5b898a2..4be35d9 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -308,15 +308,19 @@ export default { if (valid) { if (this.form.deptId != undefined) { updateDept(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + } }); } else { addDept(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + } }); } } diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index c30be85..a3c866a 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -425,15 +425,19 @@ export default { if (valid) { if (this.form.menuId != undefined) { updateMenu(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + } }); } else { addMenu(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + } }); } } diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 7982b54..46dbd66 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -283,15 +283,19 @@ export default { if (valid) { if (this.form.noticeId != undefined) { updateNotice(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + } }); } else { addNotice(this.form).then(response => { + if (response.code == 200) { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + } }); } } diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index a9ed055..875ce9f 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -2,7 +2,7 @@
- + - - + + 删除 - + - - - - - + + + + + - + @@ -178,15 +218,25 @@ @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']" >删除 - + 更多 - 重置密码 - 分配角色 + 重置密码 + 分配角色 @@ -194,7 +244,7 @@ - @@ -213,10 +262,22 @@ + + + + + + + @@ -238,19 +299,25 @@ - + - - + + @@ -262,13 +329,13 @@ v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.value" - >{{dict.label}} + >{{ dict.label }} - + @@ -308,7 +375,6 @@ 取 消
- -
将文件拖到此处,或点击上传
+
+ 将文件拖到此处,或 + 点击上传 +
- 是否更新已经存在的用户数据 + 是否更新已经存在的用户数据
仅允许导入xls、xlsx格式文件。 - 下载模板 + 下载模板
- \ No newline at end of file + diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue index 5c2f7f3..128784a 100644 --- a/src/views/tool/gen/genInfoForm.vue +++ b/src/views/tool/gen/genInfoForm.vue @@ -15,7 +15,7 @@ 生成包路径 - + diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue index c197b2b..bcc52da 100644 --- a/src/views/tool/gen/index.vue +++ b/src/views/tool/gen/index.vue @@ -267,7 +267,7 @@ export default { this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath); }); } else { - this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "xinelu"); + this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "xinyilu"); } }, /** 同步数据库操作 */