wyq 4 years ago
parent
commit
ed3ef495c3

+ 1 - 1
src/components/knowledgeExtra/AddNewRuleTable.vue

@@ -165,7 +165,7 @@
         <template slot-scope="scope">
           <el-form-item
             :prop="`klRuleByIdSub[${scope.$index}].subMsg`"
-            :rules="showMsg?rules.subMsg:showMsg2?[]:rules.subMsgs"
+            :rules="showMsg?rules.subMsg:showMsg2?rules.subMsgs:[]"
             :class="scope.row.subMsg?'form-texarea':''"
             class="texarea-form"
           >

+ 2 - 2
src/components/knowledgeExtra/RuleManager.vue

@@ -82,7 +82,7 @@
             <span>{{scope.row.parStatus === 0?'禁用':'启用'}}</span>
           </template>
         </el-table-column>
-        <el-table-column prop="modifierName" label="操作人">
+        <!-- <el-table-column prop="modifierName" label="操作人">
           <template slot-scope="scope">
             <el-tooltip
               v-if="scope.row.modifierName&&scope.row.modifierName.length>8"
@@ -97,7 +97,7 @@
               v-if="scope.row.modifierName&&scope.row.modifierName.length<9"
             >{{scope.row.modifierName}}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column prop="gmtModified" label="操作时间" width="180"></el-table-column>
         <el-table-column label="操作" width="180" fixed="right">
           <template slot-scope="scope">

+ 1 - 1
src/components/knowledgeExtra/rules.js

@@ -44,7 +44,7 @@ export const tableRules = {
   subMsgs: [
     {
       validator: (rule, value, callback) => {
-        if (value.length > 100) {
+        if (value && value.length > 100) {
           callback(new Error("附加信息不能超过100字"));
         } else {
           callback();