mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-20 01:45:53 +08:00
管理端注释添加完成
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="layout">
|
||||
|
||||
<div class="row" v-if="client ==item.client" v-for="(item,index) in formValidate" :key="index">
|
||||
<div class="row" v-if="client == item.client" v-for="(item,index) in formValidate" :key="index">
|
||||
<div class="col">
|
||||
<Card :padding="0">
|
||||
<!-- app -->
|
||||
@@ -51,7 +51,6 @@
|
||||
<script>
|
||||
import { setSetting } from "@/api/index";
|
||||
import { handleSubmit } from "../setting/validate";
|
||||
import { getPaymentSupportForm } from "@/api/setting";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -76,7 +75,7 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存
|
||||
setupSetting() {
|
||||
this.$Spin.show();
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
this.$Spin.show();
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -51,7 +51,7 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 修改支付设置
|
||||
handleChangePayType(val) {
|
||||
this.$Modal.confirm({
|
||||
title: "修改支付设置",
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, { paymentSupportItems: this.formValidate }).then(
|
||||
(res) => {
|
||||
|
||||
@@ -57,7 +57,7 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -553,6 +553,7 @@
|
||||
this.initWeibo();
|
||||
this.initAlipay();
|
||||
},
|
||||
// 基础配置
|
||||
initBase() {
|
||||
this.loading = true;
|
||||
getParams('base').then(res => {
|
||||
@@ -564,6 +565,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 积分设置
|
||||
initPoint() {
|
||||
this.loading = true;
|
||||
getParams('point').then(res => {
|
||||
@@ -575,6 +577,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 订单设置
|
||||
initOrder() {
|
||||
this.loading = true;
|
||||
getParams('order').then(res => {
|
||||
@@ -586,6 +589,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 商品设置
|
||||
initGoods() {
|
||||
this.loading = true;
|
||||
getParams('goods').then(res => {
|
||||
@@ -597,6 +601,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
//
|
||||
initWeibo() {
|
||||
this.loading = true;
|
||||
getParams('weibo').then(res => {
|
||||
@@ -608,6 +613,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 微信设置
|
||||
initWechat() {
|
||||
this.loading = true;
|
||||
getParams('wechat').then(res => {
|
||||
@@ -630,6 +636,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 阿里配置
|
||||
initAlipay() {
|
||||
this.loading = true;
|
||||
getParams('alipay').then(res => {
|
||||
@@ -641,6 +648,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存基础配置
|
||||
saveBase() {
|
||||
this.$refs.baseForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -655,6 +663,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存积分配置
|
||||
savePoint() {
|
||||
this.$refs.pointForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -669,6 +678,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存订单配置
|
||||
saveOrder() {
|
||||
this.$refs.orderForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -683,6 +693,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存商品设置
|
||||
saveGoods() {
|
||||
this.$refs.goodsForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -697,6 +708,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存微信设置
|
||||
saveWechat() {
|
||||
this.$refs.wechatForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -711,6 +723,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存qq设置
|
||||
saveQQ() {
|
||||
this.$refs.qqForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -725,6 +738,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存微博设置
|
||||
saveWeibo() {
|
||||
this.$refs.wechatForm.validate(valid => {
|
||||
if (valid) {
|
||||
@@ -739,6 +753,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存支付宝设置
|
||||
saveAlipay() {
|
||||
this.$refs.alipayForm.validate(valid => {
|
||||
if (valid) {
|
||||
|
||||
@@ -79,7 +79,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
console.log(this.type);
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
@@ -95,12 +94,12 @@ export default {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
// 选择回显
|
||||
callbackSelected(val) {
|
||||
this.picModelFlag = false;
|
||||
this.formValidate[this.selected] = val.url;
|
||||
console.log(val);
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -110,8 +109,6 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
/**添加必填项 */
|
||||
init() {
|
||||
this.res = JSON.parse(this.res);
|
||||
|
||||
@@ -80,12 +80,6 @@ export default {
|
||||
ruleValidate: {} // 验证规则
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
res: {
|
||||
handler() {},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.init();
|
||||
},
|
||||
@@ -107,6 +101,7 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -28,23 +28,18 @@ export default {
|
||||
};
|
||||
},
|
||||
props: ["res",'type'],
|
||||
watch: {
|
||||
res: {
|
||||
handler() {},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
// 验证
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if( handleSubmit(that, name )){
|
||||
this.setupSetting()
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -56,8 +51,7 @@ export default {
|
||||
},
|
||||
// 实例化数据
|
||||
init() {
|
||||
this.res = JSON.parse(this.res);
|
||||
|
||||
this.res = JSON.parse(this.res);
|
||||
this.$set(this, "formValidate", { ...this.res });
|
||||
Object.keys(this.formValidate).forEach((item) => {
|
||||
this.ruleValidate[item] = [
|
||||
@@ -68,7 +62,6 @@ export default {
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -62,13 +62,14 @@ export default {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
// 保存
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if (handleSubmit(that, name)) {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -81,7 +82,7 @@ export default {
|
||||
// 实例化数据
|
||||
init() {
|
||||
this.res = JSON.parse(this.res);
|
||||
Object.keys(this.res).map((item) => {
|
||||
Object.keys(this.res).map((item) => {
|
||||
this.res[item] += "";
|
||||
});
|
||||
this.$set(this, "formValidate", { ...this.res });
|
||||
|
||||
@@ -44,13 +44,14 @@ export default {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
// 保存
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if( handleSubmit(that, name )){
|
||||
this.setupSetting()
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -71,13 +71,14 @@ export default {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
// 保存
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if (handleSubmit(that, name)) {
|
||||
this.setupSetting();
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -41,13 +41,14 @@ export default {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
// 保存
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if( handleSubmit(that, name )){
|
||||
this.setupSetting()
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -33,13 +33,14 @@ export default {
|
||||
},
|
||||
props: ["res", "type"],
|
||||
methods: {
|
||||
// 保存
|
||||
submit(name) {
|
||||
let that = this;
|
||||
if( handleSubmit(that, name )){
|
||||
this.setupSetting()
|
||||
}
|
||||
},
|
||||
|
||||
// 保存设置
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -88,13 +88,13 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.show = true;
|
||||
});
|
||||
// this.$router.go(0)
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.clickTab(this.selected);
|
||||
},
|
||||
methods: {
|
||||
// tab切换
|
||||
clickTab(name) {
|
||||
this.selected = name;
|
||||
this.getSettingData(name);
|
||||
|
||||
@@ -64,12 +64,11 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 初始化数据
|
||||
init() {
|
||||
settingInfo("SMS_SETTING")
|
||||
},
|
||||
setting() {
|
||||
this.modalVisible = true
|
||||
},
|
||||
// 保存设置
|
||||
saveSetting() {
|
||||
setSetting("SMS_SETTING", this.form).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -80,6 +79,7 @@
|
||||
this.modalVisible = false
|
||||
});
|
||||
},
|
||||
// 查看
|
||||
settingInfo(v) {
|
||||
alert()
|
||||
this.selected = v
|
||||
|
||||
Reference in New Issue
Block a user