Browse Source

经协商,手动删除掉数据字典中不存在的字段,等待后台同步删除

shaun-sheep 4 years ago
parent
commit
4515182030

+ 4 - 3
src/components/ready/buildfloor/formItems.vue

@@ -79,7 +79,7 @@
             <template slot="append" v-if="item.Unit">{{item.Unit}}</template>
           </el-input>
           <el-input v-model="form[item.Path]" v-else disabled title="暂不支持"></el-input>
-          <!--          <div>{{item.InfoPointCode}}</div>-->
+<!--                    <div>{{item.InfoPointCode}}</div>-->
         </el-form-item>
       </div>
     </el-form>
@@ -142,7 +142,7 @@
         getDataDictionary(params, res => {
           let arr = res.Content.map(item => {
             if (item.InputMode === 'D1') {
-              item.options = JSON.parse(item.DataSource)
+              item.options = item.DataSource && JSON.parse(item.DataSource)
             }
             switch (item.InfoPointCode) { //过滤掉待删除的
               case 'FloorIdentity':
@@ -155,7 +155,8 @@
                 return item
             }
           })
-          this.InforsList = arr.filter(t => t)
+          //手动删除掉数据字典中不存在的字段,等待后台同步
+          this.InforsList = arr.filter(t => t && t.InfoPointCode != 'FloorQRCode')
         })
       },
       submitForm(call) {

+ 1 - 0
src/views/ready/buildfloor/addFloor/index.vue

@@ -44,6 +44,7 @@
           this.floorData = tools.desFormatData(this.floorData)
           //===测试代码===
           // this.floorData.DefaultQRCode = 'Eq1101080004a93a45ce15e948dda155e9683803cf46QR'
+          // this.floorData.QRCodePic = 'Eq1101080004a93a45ce15e948dda155e9683803cf46QR'
           //=====
           this.timeoutSetVal()
           this.dialogVisible = true;