diff --git a/src/components/page/ReferenceEditor.vue b/src/components/page/ReferenceEditor.vue index 505aa44..233ad51 100644 --- a/src/components/page/ReferenceEditor.vue +++ b/src/components/page/ReferenceEditor.vue @@ -98,8 +98,9 @@
Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".
@@ -324,7 +337,8 @@ export default { ], }, addLoading:false, - editboxVisible:false, + editboxVisible:false, + multipleSelection:[] // 多选 } }, @@ -414,6 +428,56 @@ export default { this.showB_step = e } + }, + RefenceSelectionChange(val){ + // console.log(val,666666) + this.multipleSelection = val + // console.log(this.multipleSelection,'this.multipleSelection') + }, + // 取消选择 + toggleSelection(){ + this.multipleSelection = [] + this.$refs.multipleTable.clearSelection(); + }, + // 选中所有 + selectAllRef(){ + this.$refs.multipleTable.toggleAllSelection() + }, + // 删除部分引用 + deleteSomeRefs(){ + var ids = [] + ids = this.multipleSelection.map(item=>{ + return item.p_refer_id + }) + this.$confirm('Are you sure you want to remove the selected references?', 'Tips', { + confirmButtonText: 'Sure', + cancelButtonText: 'Cancel', + type: 'warning' + }).then(() => { + const loading = this.$loading({ + lock: true, + text: 'please wait', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + this.$api + .post('api/Preaccept/delRefers', { + 'ids': ids + }) + .then(res => { + loading.close(); + if (res.code == 0) { + console.log(res) + this.changeRefer() + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + loading.close(); + console.log(err); + }); + }).catch(() => {}); }, // 清空引用数据 clearRefences(){ @@ -920,6 +984,7 @@ export default { /* 编辑器高度 */ /* /deep/ #edui1_iframeholder{ height: 260px;} */ +.wordDia{max-height: 800px; overflow-y:scroll ;} .logtips{margin-bottom: 15px; color: #666;} /* .itemIndex{position: relative;} */ .itemChanged{position: absolute; display: inline-block; background: #006699; color: #fff; padding: 7px; border-radius: 0 0 7px 7px; left: 0; top: 0;} @@ -1505,4 +1570,7 @@ export default { margin: 0 auto; font-size: 13px; } + .refTable th{background: red !important; color: #666;} + .topBtnBox.btns{margin-bottom: 20px;} + .bottomBtnBox.btns{margin-top: 20px;} \ No newline at end of file