|
@@ -119,6 +119,14 @@ export default {
|
|
|
this.setInputTable.splice(key, 1)
|
|
|
},
|
|
|
saveType () {//保存设置按钮
|
|
|
+ if(this.htmlData.tr == '' || this.htmlData.td == ''){
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请先选择元素"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.disabled = true
|
|
|
if (this.from.type) {
|
|
|
let ks = false
|
|
@@ -158,6 +166,10 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.disabled = false
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择文本格式"
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
async dictionary () {//获取文本类型接口
|
|
@@ -189,6 +201,8 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.htmlData.name = ''
|
|
|
this.from.type = ''
|
|
|
+ this.htmlData.tr = ''
|
|
|
+ this.htmlData.td = ''
|
|
|
this.setInputTable = []
|
|
|
localStorage.setItem('excelHtml', res.data)
|
|
|
this.$emit('cop')
|