优化cdn动态加载管理端,修复砍价金额bug,删除部分不规范代码

This commit is contained in:
lemon橪
2021-09-01 10:11:12 +08:00
parent 84cfb26512
commit 71e4c49c3e
59 changed files with 1181 additions and 1527 deletions

View File

@@ -103,6 +103,7 @@ export default {
},
data() {
return {
submitLoading:false,
loading: false, // 加载状态
expandLevel: 1, // 展开的层级
modalType: 0, // 添加或编辑标识

View File

@@ -63,7 +63,7 @@
<editor openXss v-model="form.content"></editor>
</FormItem>
<FormItem label="是否展示" prop="openStatus">
<i-switch size="large" v-model="form.openStatus" :true-value="open" :false-value="close">
<i-switch size="large" v-model="form.openStatus" >
<span slot="open">展示</span>
<span slot="close">隐藏</span>
</i-switch>
@@ -169,7 +169,7 @@ export default {
{
props: {
size: "small",
type: this.selectedIndex == params.index ? "primary" : "",
type: this.selectedIndex == params.index ? "primary" : "default",
},
style: {
marginRight: "5px",

View File

@@ -19,18 +19,13 @@
</div>
</Card>
<Modal
:title="modalTitle"
v-model="modalVisible"
:mask-closable="false"
:width="500"
>
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable="false" :width="500">
<Form ref="form" :model="form" :label-width="100" >
<FormItem label="热词" prop="name">
<Input v-model="form.keywords" clearable style="width: 100%"/>
<Input v-model="form.keywords" clearable style="width: 100%" />
</FormItem>
<FormItem label="分数" prop="name">
<Input v-model="form.point" clearable style="width: 100%"/>
<Input v-model="form.point" clearable style="width: 100%" />
</FormItem>
</Form>
<div slot="footer">
@@ -42,18 +37,17 @@
</template>
<script>
import {
getHotWords,
setHotWords
} from "@/api/index";
import { getHotWords, setHotWords } from "@/api/index";
export default {
name: "hotWords",
components: {},
data() {
return {
submitLoading:false,
modalTitle: "",
loading: true, // 表单加载状态
modalVisible: false,//弹出框
modalVisible: false, //弹出框
form: {
keywords: "",
point: 0,
@@ -97,7 +91,7 @@ export default {
if (words) {
this.form.keywords = words;
} else {
this.form.keywords = '';
this.form.keywords = "";
}
this.form.point = 1;
this.$refs.form.resetFields();