From cc53932df17cebac90fda2e8399a889c4870f09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Mon, 16 Sep 2024 10:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Brief.vue | 2 +- src/views/system/article/index.vue | 9 ++++++--- src/views/system/device/index.vue | 10 +++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/dashboard/Brief.vue b/src/views/dashboard/Brief.vue index 6bc1a28..462dc70 100644 --- a/src/views/dashboard/Brief.vue +++ b/src/views/dashboard/Brief.vue @@ -250,7 +250,7 @@ export default { .card-panel-description { font-weight: 700; width: fit-content; - min-width: 10em; + min-width: 8em; height: 88px; .card-panel-text { diff --git a/src/views/system/article/index.vue b/src/views/system/article/index.vue index 2d998fa..0bb054b 100644 --- a/src/views/system/article/index.vue +++ b/src/views/system/article/index.vue @@ -275,15 +275,18 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { - this.form.content = encodeURI(this.form.content); + let data = { + ...this.form, + content: encodeURI(this.form.content) + } if (this.form.articleId != null) { - updateArticle(this.form).then(response => { + updateArticle(data).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - addArticle(this.form).then(response => { + addArticle(data).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index aeaa725..fdd707a 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -286,7 +286,7 @@ <el-input v-model="form.fill" placeholder="请输入填充物" maxlength="200" show-word-limit/> </form-col> <form-col :span="span * 2" label="功能介绍" prop="funcInfo"> - <el-input v-model="form.funcInfo" type="textarea" placeholder="请输入功能介绍" maxlength="1000" show-word-limit/> + <editor v-model="form.funcInfo" :min-height="200"/> </form-col> <form-col :span="span * 2" label="备注" prop="remark"> <el-input v-model="form.remark" type="textarea" placeholder="请输入备注" maxlength="200" show-word-limit/> @@ -611,14 +611,18 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { + let data = { + ...this.form, + funcInfo: encodeURI(this.form.funcInfo) + } if (this.form.deviceId != null) { - updateDevice(this.form).then(response => { + updateDevice(data).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - addDevice(this.form).then(response => { + addDevice(data).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList();