diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 8aa4a6c..32c29b4 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -11,8 +11,7 @@ style="display: none" ref="upload" v-if="this.type == 'url'" - > - + >
@@ -30,32 +29,32 @@ export default { /* 编辑器的内容 */ value: { type: String, - default: "", + default: "" }, /* 高度 */ height: { type: Number, - default: null, + default: null }, /* 最小高度 */ minHeight: { type: Number, - default: null, + default: null }, /* 只读 */ readOnly: { type: Boolean, - default: false, + default: false }, // 上传文件大小限制(MB) fileSize: { type: Number, - default: 5, + default: 5 }, /* 类型(base64格式、url格式) */ type: { type: String, - default: "url", + default: "url" } }, data() { @@ -73,21 +72,21 @@ 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"] // 链接、图片、视频 - ], + ["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, - }, + readOnly: this.readOnly + } }; }, computed: { @@ -100,7 +99,7 @@ export default { style.height = `${this.height}px`; } return style; - }, + } }, watch: { value: { @@ -112,8 +111,8 @@ export default { } } }, - immediate: true, - }, + immediate: true + } }, mounted() { this.init(); @@ -126,9 +125,9 @@ 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) => { + toolbar.addHandler("image", value => { this.uploadType = "image"; if (value) { this.$refs.upload.$children[0].$refs.input.click(); @@ -176,10 +175,12 @@ 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 + ); this.$emit("imgs", res.fileName); - // 调整光标到最后 quill.setSelection(length + 1); } else { @@ -188,13 +189,14 @@ export default { }, handleUploadError() { this.$message.error("图片插入失败"); - }, - }, + } + } }; \ No newline at end of file diff --git a/src/views/system/order/indexjs.js b/src/views/system/order/indexjs.js index 0fed66e..5fa3172 100644 --- a/src/views/system/order/indexjs.js +++ b/src/views/system/order/indexjs.js @@ -223,8 +223,7 @@ export default { appointmentOrderDetails(id).then((res) => { res.data.forEach((e) => { if (e.serviceDate) { - e.time = - e.serviceDate + "-" + e.serviceStartTime + "-" + e.serviceEndTime; + e.time = e.serviceDate + "-" + e.serviceStartTime; } }); this.query = res.data[0]; @@ -415,4 +414,4 @@ export default { ); }, }, -}; +}; \ No newline at end of file diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 0c14a69..f39198e 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -674,6 +674,7 @@ export default { }, //选中护理项目 choicenurseItem(e) { + console.log(e) this.nurseitemid = e.id; if (this.homenumber) { this.queryParams.nurseItemName = e.nurseItemName; @@ -704,6 +705,8 @@ export default { }, //所属护理站页面 ParamsStation(item) { + this.queryParams.nurseItemName=""; + this.form.nurseItemName="请选择所属护理项目"; this.info(); this.nurseStationshow = true; this.homenumber = item; @@ -715,6 +718,7 @@ export default { }, //所属护理项目页面 ParamsStationxm(item) { + console.log(item) if (this.nurseItemquery.nurseStationId) { this.nurseItemlistInfo(); this.homenumber = item; @@ -803,6 +807,7 @@ export default { this.open = false; }); } + this.nurseItemquery.nurseStationId = null; this.imgs = { pictureUrlList: [] }; this.open = false; @@ -910,7 +915,7 @@ export default { } }); }, - /** 删除按钮操作 */ + /** 删除按钮操作 */ handleDelete(row) { var ids = row.id || this.ids; var nurseStationIds = row.nurseStationId || this.nurseStationIds; diff --git a/src/views/system/settings/index.vue b/src/views/system/settings/index.vue index f3e9973..3958d11 100644 --- a/src/views/system/settings/index.vue +++ b/src/views/system/settings/index.vue @@ -437,7 +437,7 @@ export default { settingsName: [ { required: true, - message: "请输入系统设置名称", + message: "请输入规则名称", trigger: "blur", }, ], @@ -451,7 +451,7 @@ export default { settingsType: [ { required: true, - message: "请选择系统设置类型", + message: "请选择规则类型", trigger: "blur", }, ], @@ -487,14 +487,7 @@ export default { }, }; }, - // computed: { - // label() { - // let label = "积分数量"; - // if (this.form.settingsType == "INVITE_FRIENDS") label = "邀请好友次数"; - // if (this.form.settingsType == "SIGN_IN_RULE") label = "赠送积分数量"; - // return label; - // }, - // }, + created() { this.getList(); @@ -594,6 +587,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { + console.log(row) const ids = row.id || this.ids; const settingsNames=row.settingsName||this.settingsNames this.$modal diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue index 0b6d6e1..09a9d38 100644 --- a/src/views/system/stationAvatar/index.vue +++ b/src/views/system/stationAvatar/index.vue @@ -80,6 +80,7 @@
+