Browse Source

Merge branch 'master' of http://120.26.64.82:10880/BFFE/dz2.1

zhaoke 1 year ago
parent
commit
561d5a9348
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/components/publicPageForm/index.vue

+ 7 - 1
src/components/publicPageForm/index.vue

@@ -4,6 +4,12 @@
       <el-row :gutter="20">
         <el-col v-for="(item, index) in formItemArr" :key=" index" :span="formType == 'horizontal' ? formSpan : 24" v-show="isShow(item.isdisplay)">
           <el-form-item :rules="fromDataReq(item)" :prop="item.pagecode" :label="item.pagename">
+            <span slot="label">
+              {{ item.pagename }}
+              <el-tooltip :content="item.pagedescribe" placement="top">
+                <i class="el-icon-question"></i>
+              </el-tooltip>
+            </span>
             <template v-if="fromDataType(item.datatype) == 'SELECT' || fromDataType(item.datatype) == 'SELECTS'">
               <el-select class="input-shadow" size="small" :multiple="fromDataType(item.datatype) == 'SELECTS'?true:false" filterable default-first-option style="width: 100%" v-model="tableForm[item.pagecode]" @change="changeSelect(item.pagecode, item)" placeholder="请选择" clearable @clear="tableForm[item.pagecode] = ''">
                 <el-option v-for="itemParams in tableOptions[item.pagecode]" :key="itemParams[item['dropdownlistid']]" :label="itemParams[item['dropdownlistlabel']]" :value="itemParams[item['dropdownlistid']]">
@@ -439,4 +445,4 @@ export default {
     }
   }
 }
-</script>
+</script>