NEZ-1708 fix:Chart templates点击删除图表模板按钮后弹窗后点击取消浏览器报错,再次点击删除按钮失效
This commit is contained in:
@@ -424,6 +424,8 @@ export default {
|
|||||||
this.$store.dispatch('clearPanel')
|
this.$store.dispatch('clearPanel')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.$store.dispatch('clearPanel')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addGroupItem (groupId) {
|
addGroupItem (groupId) {
|
||||||
|
|||||||
@@ -66,9 +66,9 @@
|
|||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<guide :show-dialog="showGuide" @dialogClosed="dialogClosed" @close="showGuide = false"></guide>
|
<guide :show-dialog="showGuide" @dialogClosed="dialogClosed" @close="showGuide = false"></guide>
|
||||||
<span v-for="item in fontData" :key="item">
|
<!-- <span v-for="item in fontData" :key="item">-->
|
||||||
<span class="temp-dom" :class="`temp-dom--${fontSzie}`" v-for="fontSzie in [12,13,14,15]" :key="fontSzie">{{item}}</span>
|
<!-- <span class="temp-dom" :class="`temp-dom--${fontSzie}`" v-for="fontSzie in [12,13,14,15]" :key="fontSzie">{{item}}</span>-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
showGuide: false,
|
showGuide: false,
|
||||||
fontData: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ' ', '@', '$', '-']
|
// fontData: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ' ', '@', '$', '-']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -201,12 +201,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
for (let i = 65; i < 91; i++) {
|
// for (let i = 65; i < 91; i++) {
|
||||||
this.fontData.push(String.fromCharCode(i))
|
// this.fontData.push(String.fromCharCode(i))
|
||||||
}
|
// }
|
||||||
for (let i = 97; i < 123; i++) {
|
// for (let i = 97; i < 123; i++) {
|
||||||
this.fontData.push(String.fromCharCode(i))
|
// this.fontData.push(String.fromCharCode(i))
|
||||||
}
|
// }
|
||||||
this.$i18n.locale = this.language
|
this.$i18n.locale = this.language
|
||||||
if (localStorage.getItem('nz-token')) {
|
if (localStorage.getItem('nz-token')) {
|
||||||
this.initEvent()
|
this.initEvent()
|
||||||
|
|||||||
@@ -343,8 +343,11 @@ export default {
|
|||||||
this.getTableData(true)
|
this.getTableData(true)
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(response.msg)
|
this.$message.error(response.msg)
|
||||||
|
this.$store.dispatch('clearPanel')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.$store.dispatch('clearPanel')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
edit (u) {
|
edit (u) {
|
||||||
|
|||||||
Reference in New Issue
Block a user