Browse Source

fix: 列转码

ldong 10 months ago
parent
commit
6bb5d62604

+ 4 - 0
src/views/datasheet_manage/components/MixedTable.vue

@@ -429,6 +429,10 @@ export default {
     if(this.$route.path === '/addMixedSheet' && !this.$route.query.id) this.initData();
   },
   methods: {
+    //获取字母对应下标
+    getColumnHeaderIndex(code){
+       return code.charCodeAt() - 65;
+    },
     getCellIndices(table, startRow, endRow, startCol, endCol) {
       const indices = [];
       for (let i = startRow; i <= endRow; i++) {

+ 1 - 2
src/views/datasheet_manage/components/conditionDia.vue

@@ -1,5 +1,5 @@
 <template>
-  <div v-dialogDrag v-if="isOpenDialog">
+  <div  v-dialogDrag v-if="isOpenDialog">
     <div class="condition-dialog el-dialog">
       <div class="header el-dialog__header">
         <span>{{
@@ -278,7 +278,6 @@ export default {
     },
     handleClickOutside(event) {
       let _this = this;
-      console.log(_this);
       // 检查点击是否发生在el-input外
       if (
         this.$refs[_this.momentRef] &&