diff --git a/src/components/page/comArtHtmlEdit.vue b/src/components/page/comArtHtmlEdit.vue index 7246a5c..c796e10 100644 --- a/src/components/page/comArtHtmlEdit.vue +++ b/src/components/page/comArtHtmlEdit.vue @@ -11,17 +11,26 @@

{{detailTitle}}

-
-
-
-

+
+ Select None + Delete +
+
+
+ +
+
+
+
+

+
+

+ + {{item.note}} + +

+ {{item.getnum}}
-

- - {{item.note}} - -

- {{item.getnum}}
@@ -58,8 +67,14 @@
+
+
+
+ Select None + Delete +
@@ -250,6 +265,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module txtStyle: { text: '', }, + checkList:[], // 复选框 txtVisible: false, lineStyle: { titleTop: '', @@ -300,6 +316,34 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module VueUeditorWrap }, methods: { + // 清空多选 + clearSelect(){ + this.checkList = [] + }, + // 批量删除选中 + deleteSelect(){ + this.$confirm('Are you sure you want to delete these?', 'Tips', { + confirmButtonText: 'Sure', + cancelButtonText: 'Cancel', + type: 'warning' + }).then(() => { + this.$api + .post('api/Production/delWebMains', { + 'ids':this.checkList, + } ).then((res)=>{ + if (res.code == 0) { + this.checkList = [] + this.getDate() + }else{ + this.$message.error(res.msg); + } + }).catch(err => { + console.log(err); + }); + }).catch(() => { + + }); + }, // 添加空白行 addReturn(item, index){ this.$api @@ -479,7 +523,10 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module this.pictVisible = true } }, - + // 修改选中 + handleCheckedChange(val){ + console.log(val) + }, // 添加段落 MTxtAdtxt(val, num) { @@ -830,14 +877,15 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module position: relative; } - + .opBtn.top{margin-bottom: 15px;} + .opBtn.bottom{margin-top: 15px;} .type_MTxt>div { position: relative; padding: 8px 15px; min-height: 22px; border: 2px dashed #fff; border-radius: 5px; - color: #606266; + color: #606266; overflow: hidden; }