优化系统设置中的警告
parent
4318e8d0da
commit
5c3501f08d
|
@ -87,7 +87,10 @@ import ossManage from "@/views/sys/oss-manage/ossManage";
|
||||||
export default {
|
export default {
|
||||||
title: "基础设置",
|
title: "基础设置",
|
||||||
props: {
|
props: {
|
||||||
res:Object,
|
res:{
|
||||||
|
type:null,
|
||||||
|
default:""
|
||||||
|
},
|
||||||
type:''
|
type:''
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
@ -108,7 +111,8 @@ export default {
|
||||||
staticPageWapAddress: "",
|
staticPageWapAddress: "",
|
||||||
},
|
},
|
||||||
selected: "", // 已选数据
|
selected: "", // 已选数据
|
||||||
ruleValidate: {} // 验证规则
|
ruleValidate: {}, // 验证规则
|
||||||
|
result:""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -146,10 +150,9 @@ export default {
|
||||||
},
|
},
|
||||||
/**添加必填项 */
|
/**添加必填项 */
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
|
this.$set(this, "formValidate", { ...this.result });
|
||||||
this.$set(this, "formValidate", { ...this.res });
|
Object.keys(this.result).forEach((item) => {
|
||||||
Object.keys(this.res).forEach((item) => {
|
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -85,6 +85,7 @@ export default {
|
||||||
showProgress: false,
|
showProgress: false,
|
||||||
intervalProgress: null,
|
intervalProgress: null,
|
||||||
ruleValidate: {}, // 验证规则
|
ruleValidate: {}, // 验证规则
|
||||||
|
result:""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -152,12 +153,12 @@ export default {
|
||||||
|
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
|
|
||||||
Object.keys(this.res).map((item) => {
|
Object.keys(this.result).map((item) => {
|
||||||
this.res[item] += "";
|
this.result[item] += "";
|
||||||
});
|
});
|
||||||
this.$set(this, "formValidate", { ...this.res });
|
this.$set(this, "formValidate", { ...this.result });
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,7 @@ export default {
|
||||||
formValidate: { // 表单数据
|
formValidate: { // 表单数据
|
||||||
httpUrl: ""
|
httpUrl: ""
|
||||||
},
|
},
|
||||||
|
result:"",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res", "type"],
|
props: ["res", "type"],
|
||||||
|
@ -49,9 +50,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
|
|
||||||
this.$set(this, "formValidate", {...this.res});
|
this.$set(this, "formValidate", {...this.result});
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,6 +52,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
ruleValidate: {}, // 验证规则
|
ruleValidate: {}, // 验证规则
|
||||||
|
result:"",
|
||||||
formValidate: { // 表单数据
|
formValidate: { // 表单数据
|
||||||
type: "",
|
type: "",
|
||||||
kdniaoEbusinessID: "",
|
kdniaoEbusinessID: "",
|
||||||
|
@ -85,8 +86,8 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
this.$set(this, "formValidate", { ...this.res });
|
this.$set(this, "formValidate", { ...this.result });
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,6 +56,7 @@ export default {
|
||||||
closeAfterSale: "",
|
closeAfterSale: "",
|
||||||
closeComplaint:""
|
closeComplaint:""
|
||||||
},
|
},
|
||||||
|
result:""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res", "type"],
|
props: ["res", "type"],
|
||||||
|
@ -82,11 +83,11 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
Object.keys(this.res).map((item) => {
|
Object.keys(this.result).map((item) => {
|
||||||
this.res[item] += "";
|
this.result[item] += "";
|
||||||
});
|
});
|
||||||
this.$set(this, "formValidate", { ...this.res });
|
this.$set(this, "formValidate", { ...this.result });
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,6 +114,7 @@ export default {
|
||||||
tencentCOSBucket: "",
|
tencentCOSBucket: "",
|
||||||
tencentCOSEndPoint: "",
|
tencentCOSEndPoint: "",
|
||||||
},
|
},
|
||||||
|
result:""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res", "type"],
|
props: ["res", "type"],
|
||||||
|
@ -140,9 +141,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
|
|
||||||
this.$set(this, "formValidate", {...this.res});
|
this.$set(this, "formValidate", {...this.result});
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,6 +74,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
ruleValidate: {}, // 验证规则
|
ruleValidate: {}, // 验证规则
|
||||||
formValidate: {}, // 表单数据
|
formValidate: {}, // 表单数据
|
||||||
|
result: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res", "type"],
|
props: ["res", "type"],
|
||||||
|
@ -115,15 +116,15 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
Object.keys(this.res).map((item) => {
|
Object.keys(this.result).map((item) => {
|
||||||
if (item == "pointSettingItems") {
|
if (item == "pointSettingItems") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.res[item] += "";
|
this.result[item] += "";
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$set(this, "formValidate", {...this.res});
|
this.$set(this, "formValidate", {...this.result});
|
||||||
|
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
|
|
|
@ -62,6 +62,7 @@ import {handleSubmit} from "./validate";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
result: "",
|
||||||
ruleValidate: {}, // 验证规则
|
ruleValidate: {}, // 验证规则
|
||||||
formValidate: { // 表单数据
|
formValidate: { // 表单数据
|
||||||
accessKeyId: "",
|
accessKeyId: "",
|
||||||
|
@ -103,9 +104,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
|
|
||||||
this.$set(this, "formValidate", {...this.res});
|
this.$set(this, "formValidate", {...this.result});
|
||||||
Object.keys(this.formValidate).forEach((item) => {
|
Object.keys(this.formValidate).forEach((item) => {
|
||||||
this.ruleValidate[item] = [
|
this.ruleValidate[item] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
|
|
||||||
<Form ref="formValidate" :label-width="150" label-position="right" :model="formValidate" :rules="ruleValidate">
|
<Form ref="formValidate" :label-width="150" label-position="right" :model="formValidate">
|
||||||
<FormItem label="提现审核是否开启">
|
<FormItem label="提现审核是否开启">
|
||||||
<i-switch v-model="formValidate.apply" style="margin-top:7px;"><span slot="open">开</span>
|
<i-switch v-model="formValidate.apply" style="margin-top:7px;"><span slot="open">开</span>
|
||||||
<span slot="close">关</span>
|
<span slot="close">关</span>
|
||||||
|
@ -35,6 +35,7 @@ import { handleSubmit } from "./validate";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
result:"",
|
||||||
formValidate: { // 表单数据
|
formValidate: { // 表单数据
|
||||||
apply: true,
|
apply: true,
|
||||||
minPrice: "",
|
minPrice: "",
|
||||||
|
@ -70,8 +71,8 @@ export default {
|
||||||
},
|
},
|
||||||
// 实例化数据
|
// 实例化数据
|
||||||
init() {
|
init() {
|
||||||
this.res = JSON.parse(this.res);
|
this.result = JSON.parse(this.res);
|
||||||
this.$set(this, "formValidate", { ...this.res });
|
this.$set(this, "formValidate", { ...this.result });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue