Explorar o código

修改下拉框默认输入框隐藏

ZYZ hai 1 ano
pai
achega
e698015e6d

+ 1 - 4
zkqy-ui/src/views/asEditor/components/rightslider/investigatestyle/index.vue

@@ -187,10 +187,7 @@
           @input="item.value1 = item.value.split('#')"
           placeholder="多项之间用‘#’逗号隔开"
           v-if="
-            item.type !== 0 &&
-            showButtons === false &&
-            showStaticInput === false &&
-            showDynamicInput === false
+            item.type !== 0 && item.optionType === '' 
           "
         ></el-input>
       </el-form-item>

+ 7 - 1
zkqy-ui/src/views/asEditor/layout/home/index.vue

@@ -240,7 +240,12 @@ export default {
   },
   methods: {
     formatIndexType(row) {
-      return row.isIndex ? '首页' : '非首页';
+      console.log(row.isIndex);
+      if(row.isIndex == 'true'){
+        return "首页";
+      } else {
+        return "非首页";
+      }
     },
     // 是否为首页
     isPageHome(row) {
@@ -249,6 +254,7 @@ export default {
         this.isIndex = true;
         this.$modal.msgSuccess("已设置为首页");
         this.resetForm("form");
+        this.handleQuery();
       });
     },