Commit 7180ee9f by 无尘

fix: 修改自定义模板

parent b10d2954
...@@ -219,7 +219,6 @@ export default { ...@@ -219,7 +219,6 @@ export default {
that.isDragging = false; that.isDragging = false;
that.selectKey = ''; that.selectKey = '';
that.selectKey = evt.clone.dataset.name; that.selectKey = evt.clone.dataset.name;
console.log(evt.clone.dataset)
// 判断中间是否已经添加 // 判断中间是否已经添加
that.tempaletDataList.forEach(function(ele, index) { that.tempaletDataList.forEach(function(ele, index) {
if (ele.name == that.selectKey) { if (ele.name == that.selectKey) {
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
status: !!that.setData.status ? '1' : '0', status: !!that.setData.status ? '1' : '0',
time: that.setData.time time: that.setData.time
}; };
postRequest('/haoban-app-daily-web/daily/get-setting', para) postRequest('/haoban-app-daily-web/daily/create-setting', para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
...@@ -112,8 +112,8 @@ export default { ...@@ -112,8 +112,8 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.setData.status = !!resData.status ? true : false; that.setData.status = resData.result.status == 1 ? true : false;
that.setData.time = resData.time; that.setData.time = resData.result.time;
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -130,13 +130,14 @@ export default { ...@@ -130,13 +130,14 @@ export default {
brandId: function(newData, oldData) { brandId: function(newData, oldData) {
const that = this; const that = this;
that.activeBrand = newData; that.activeBrand = newData;
that.getData();
} }
}, },
mounted() { mounted() {
let that = this; let that = this;
document.documentElement.style.backgroundColor = '#f0f2f5'; document.documentElement.style.backgroundColor = '#f0f2f5';
that.$emit('showTab', '22'); that.$emit('showTab', '22');
that.getData(); // that.getData();
}, },
destroyed() { destroyed() {
document.documentElement.style.backgroundColor = '#fff'; document.documentElement.style.backgroundColor = '#fff';
......
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