Commit 330f3791 by 无尘

fix: 修改下发设置

parent a18e00b0
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-09 10:05:27
* @LastEditors: 无尘
* @LastEditTime: 2020-11-17 15:53:51
* @LastEditTime: 2020-11-17 16:11:21
-->
<!-- -->
<template>
......@@ -38,6 +38,8 @@ export default {
},
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
userInfo: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')) : { staffId: '', staffName: '' },
ruleForm: {
overDayJudge: ''
},
......@@ -67,8 +69,11 @@ export default {
postSave() {
const that = this;
const para = {
overDayJudge: that.ruleForm.overDayJudge,
wxEnterpriseId: that.wxEnterpriseId
days: that.ruleForm.days,
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
submitStaffId: that.userInfo.staffId,
submitStaffName: that.userInfo.staffName
};
saveTargetSet(para)
.then(res => {
......@@ -86,10 +91,11 @@ export default {
const that = this;
const para = {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
getTargetSet(para)
.then(res => {
that.ruleForm.overDayJudge = res.result.overDayJudge || '';
that.ruleForm.days = res.result.days || '';
})
.catch(function(error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment