更新
This commit is contained in:
parent
7c70024fa0
commit
cc53932df1
|
@ -250,7 +250,7 @@ export default {
|
||||||
.card-panel-description {
|
.card-panel-description {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
min-width: 10em;
|
min-width: 8em;
|
||||||
height: 88px;
|
height: 88px;
|
||||||
|
|
||||||
.card-panel-text {
|
.card-panel-text {
|
||||||
|
|
|
@ -275,15 +275,18 @@ export default {
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.content = encodeURI(this.form.content);
|
let data = {
|
||||||
|
...this.form,
|
||||||
|
content: encodeURI(this.form.content)
|
||||||
|
}
|
||||||
if (this.form.articleId != null) {
|
if (this.form.articleId != null) {
|
||||||
updateArticle(this.form).then(response => {
|
updateArticle(data).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addArticle(this.form).then(response => {
|
addArticle(data).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
|
@ -286,7 +286,7 @@
|
||||||
<el-input v-model="form.fill" placeholder="请输入填充物" maxlength="200" show-word-limit/>
|
<el-input v-model="form.fill" placeholder="请输入填充物" maxlength="200" show-word-limit/>
|
||||||
</form-col>
|
</form-col>
|
||||||
<form-col :span="span * 2" label="功能介绍" prop="funcInfo">
|
<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>
|
||||||
<form-col :span="span * 2" label="备注" prop="remark">
|
<form-col :span="span * 2" label="备注" prop="remark">
|
||||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" maxlength="200" show-word-limit/>
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" maxlength="200" show-word-limit/>
|
||||||
|
@ -611,14 +611,18 @@ export default {
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
let data = {
|
||||||
|
...this.form,
|
||||||
|
funcInfo: encodeURI(this.form.funcInfo)
|
||||||
|
}
|
||||||
if (this.form.deviceId != null) {
|
if (this.form.deviceId != null) {
|
||||||
updateDevice(this.form).then(response => {
|
updateDevice(data).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addDevice(this.form).then(response => {
|
addDevice(data).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user