Commit 85e31652 authored by 华国豪's avatar 华国豪 🙄

'修改部分bug 行程特色删除不联动原因是页面跳转模式导致'

parent cb228898
......@@ -74,6 +74,7 @@ export default {
Year: '',
Month: 0,
Money: '',
sharelist: [],
},
data: [],
DataList: [],
......@@ -322,7 +323,7 @@ export default {
this.monthList.push({
id: i + 1,
name: arr[i],
value: '',
value: 0,
})
}
},mounted(){
......@@ -369,6 +370,16 @@ export default {
},
getData: function () {
this.loading = true;
this.monthList.forEach(x=>{
let obj = {
ID: 0,
Money: x.value,
Month: x.id,
Year: this.year
}
this.msg.sharelist.push(obj)
})
console.log(this.msg.sharelist)
this.msg.Year = parseInt(this.year)
this.apipost('financestatistics_post_GetEasyReportList', this.msg, res=>{
if (res.data.resultCode == 1) {
......@@ -378,6 +389,7 @@ export default {
});
this.DataList = data.list
this.loading = false
this.msg.sharelist = []
return
for (let i = 0; i<=18; i++) {
this.DataList.push({
......
......@@ -387,6 +387,9 @@
openState: 1
}
});
if(localStorage.openMode === "0") {
this.loadConfigInfo();
}
} else {
this.loadConfigInfo();
}
......
......@@ -578,6 +578,7 @@
res => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
console.log('tempData',tempData)
if (tempData.Feature != null) {
this.FeatureData.ID = tempData.Feature.ID;
this.FeatureData.ConfigId = tempData.Feature.ConfigId;
......
......@@ -26,16 +26,16 @@ export default {
},
methods: {
changeText: function () {
// let sel = window.getSelection()
// let offset = sel.anchorOffset
let sel = window.getSelection()
let offset = sel.anchorOffset
this.$emit("input", this.$el.innerText);
// setTimeout( () => {
// var range = sel.getRangeAt(0)
// var textNode = range.startContainer;
// range.setStart(textNode,offset)
// sel.removeAllRanges()
// sel.addRange(range)
// }, 0)
setTimeout( () => {
var range = sel.getRangeAt(0)
var textNode = range.startContainer;
range.setStart(textNode,offset)
sel.removeAllRanges()
sel.addRange(range)
}, 0)
}
}
};
......
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