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

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

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