Sfoglia il codice sorgente

特征拆分界面修改特征输入框为可粘贴图片的输入框

zhuliu 1 anno fa
parent
commit
4e29c2c965

+ 2 - 0
src/utils/model/RichText/index.vue

@@ -427,6 +427,8 @@ async urlToBase64(imageUrl) {
 .edit-box{
   overflow-x: hidden;
     text-overflow: ellipsis;
+    text-wrap: wrap;
+    text-align: left;
     padding: 10px 15px;
     // min-height:27px;
     line-height: 1.5;

+ 5 - 5
src/views/report/components/splitPage/splitPage.vue

@@ -57,14 +57,14 @@
 
           <el-table-column prop="content" label="特征" min-width="300" align="center">
             <template slot-scope="scope">
-              <div v-if="isEdit">
+              <div v-if="isEdit"  style="display: flex;align-items: center;width:100%">
                 <el-checkbox-group v-model="checkList">
                   <el-checkbox :label="scope.row.featureId" @change="getRow(scope)"
-                    style="display: flex;align-items: center;width:100%">
-                    <el-input type="textarea" autosize v-model="scope.row.content">
-                      {{ scope.row.content }}</el-input>
+                   >
+                    {{  }}
                   </el-checkbox>
                 </el-checkbox-group>
+                <myRichText type="textarea" style="width:calc(100% - 10px);" autosize v-model="scope.row.content"></myRichText>
               </div>
               <div v-else-if="isResult == 9">
                 <el-checkbox-group v-model="checkList">
@@ -519,7 +519,7 @@ export default {
         for (var i = 0; i < this.scopeRow.length; i++){
           for (var j = 0; j < this.columnList.length; j++){
             var str = this.getColumnData(this.scopeRow[i], this.columnList[j])
-            if (str != 0 && !str) {
+            if ((str !== 0 || str!='0')  && !str) {
               
             } else {
               throw Error();