屏蔽配置
This commit is contained in:
		@@ -2,19 +2,18 @@
 | 
				
			|||||||
  <div class="AddSet">
 | 
					  <div class="AddSet">
 | 
				
			||||||
    <div class="contents">
 | 
					    <div class="contents">
 | 
				
			||||||
      <u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
 | 
					      <u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
 | 
				
			||||||
        <u-form-item label="事项分组" prop="status" required :border-bottom="false" right-icon="arrow-right">
 | 
					        <u-form-item label="事项分组" prop="title" required :border-bottom="false" right-icon="arrow-right">
 | 
				
			||||||
          <u-input v-model="forms.status" placeholder="请选择事项分组" />
 | 
					          <u-input v-model="forms.title" placeholder="请输入事项分组" />
 | 
				
			||||||
        </u-form-item>
 | 
					 | 
				
			||||||
        <u-form-item label="类别" prop="status" required :border-bottom="false">
 | 
					 | 
				
			||||||
        </u-form-item>
 | 
					        </u-form-item>
 | 
				
			||||||
 | 
					        <u-form-item label="类别" prop="status" required :border-bottom="false"> </u-form-item>
 | 
				
			||||||
        <div class="remove-item">
 | 
					        <div class="remove-item">
 | 
				
			||||||
          <img src="./components/img/remove-icon.png" alt="">
 | 
					          <img src="./components/img/remove-icon.png" alt="" />
 | 
				
			||||||
          <div class="input">
 | 
					          <div class="input">
 | 
				
			||||||
            <u-input v-model="forms.status" placeholder="请输入" />
 | 
					            <u-input v-model="forms.status" placeholder="请输入" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div class="remove-item">
 | 
					        <div class="remove-item">
 | 
				
			||||||
          <img src="./components/img/add-icon.png" alt="">
 | 
					          <img src="./components/img/add-icon.png" alt="" />
 | 
				
			||||||
          <div class="input color-2270F1">添加分类</div>
 | 
					          <div class="input color-2270F1">添加分类</div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </u-form>
 | 
					      </u-form>
 | 
				
			||||||
@@ -23,7 +22,7 @@
 | 
				
			|||||||
    <!-- <div class="btn" @click="submit">保存</div> -->
 | 
					    <!-- <div class="btn" @click="submit">保存</div> -->
 | 
				
			||||||
    <div class="footer">
 | 
					    <div class="footer">
 | 
				
			||||||
      <div class="remove">删除</div>
 | 
					      <div class="remove">删除</div>
 | 
				
			||||||
      <div class="confirm">保存</div>
 | 
					      <div class="confirm" @click="submit">保存</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
@@ -41,7 +40,7 @@ export default {
 | 
				
			|||||||
        fileIds: [],
 | 
					        fileIds: [],
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      flag: false,
 | 
					      flag: false,
 | 
				
			||||||
      show: false
 | 
					      show: false,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
@@ -50,8 +49,8 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      this.$refs.uForm.validate((valid) => {
 | 
					      this.$refs.uForm.validate((valid) => {
 | 
				
			||||||
        if (valid) {
 | 
					        if (valid) {
 | 
				
			||||||
          if (!this.forms.content) {
 | 
					          if (!this.forms.title) {
 | 
				
			||||||
            return this.$u.toast('请选择转交人')
 | 
					            return this.$u.toast('请输入事项分组')
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          const imgs = []
 | 
					          const imgs = []
 | 
				
			||||||
@@ -63,7 +62,7 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
          this.flag = true
 | 
					          this.flag = true
 | 
				
			||||||
          this.$http
 | 
					          this.$http
 | 
				
			||||||
            .post(`/app/appvisitvondolence/addOrUpdate`, {
 | 
					            .post(`/app/appclapeventgroup/addOrUpdate`, {
 | 
				
			||||||
              title: this.forms.title,
 | 
					              title: this.forms.title,
 | 
				
			||||||
              content: this.forms.content,
 | 
					              content: this.forms.content,
 | 
				
			||||||
              // images: JSON.stringify(imgs) || [],
 | 
					              // images: JSON.stringify(imgs) || [],
 | 
				
			||||||
@@ -89,7 +88,7 @@ export default {
 | 
				
			|||||||
    toSelectUser() {
 | 
					    toSelectUser() {
 | 
				
			||||||
      console.log(123)
 | 
					      console.log(123)
 | 
				
			||||||
      uni.navigateTo({ url: './SelectUser' })
 | 
					      uni.navigateTo({ url: './SelectUser' })
 | 
				
			||||||
    }
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
@@ -161,7 +160,7 @@ export default {
 | 
				
			|||||||
      line-height: 36px;
 | 
					      line-height: 36px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .color-2270F1 {
 | 
					    .color-2270F1 {
 | 
				
			||||||
      color: #2270F1;
 | 
					      color: #2270f1;
 | 
				
			||||||
      font-size: 30px;
 | 
					      font-size: 30px;
 | 
				
			||||||
      font-family: PingFangSC-Regular, PingFang SC;
 | 
					      font-family: PingFangSC-Regular, PingFang SC;
 | 
				
			||||||
      line-height: 42px;
 | 
					      line-height: 42px;
 | 
				
			||||||
@@ -208,7 +207,7 @@ export default {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    .confirm {
 | 
					    .confirm {
 | 
				
			||||||
      flex: 2;
 | 
					      flex: 2;
 | 
				
			||||||
      background: #3975C6;
 | 
					      background: #3975c6;
 | 
				
			||||||
      color: #fff;
 | 
					      color: #fff;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,9 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="AppHandSnapshot">
 | 
					  <div class="AppHandSnapshot">
 | 
				
			||||||
    <component
 | 
					    <component v-if="refresh" :is="component" @change="onChange" :params="params"> </component>
 | 
				
			||||||
      v-if="refresh"
 | 
					 | 
				
			||||||
      :is="component"
 | 
					 | 
				
			||||||
      @change="onChange"
 | 
					 | 
				
			||||||
      :params="params">
 | 
					 | 
				
			||||||
    </component>
 | 
					 | 
				
			||||||
    <div class="tabs" v-if="isTab">
 | 
					    <div class="tabs" v-if="isTab">
 | 
				
			||||||
      <div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
 | 
					      <div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
 | 
				
			||||||
        <img :src="tabIndex == index ? item.activeImg : item.img" alt="">
 | 
					        <img :src="tabIndex == index ? item.activeImg : item.img" alt="" />
 | 
				
			||||||
        <p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
 | 
					        <p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
@@ -26,38 +21,38 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      component: 'Set',
 | 
					      component: 'List',
 | 
				
			||||||
      params: {},
 | 
					      params: {},
 | 
				
			||||||
      refresh: true,
 | 
					      refresh: true,
 | 
				
			||||||
      tabIndex: 2,
 | 
					      tabIndex: 0,
 | 
				
			||||||
      tabs: [
 | 
					      tabs: [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          img: require('./components/img/handle-icon.png'),
 | 
					          img: require('./components/img/handle-icon.png'),
 | 
				
			||||||
          activeImg: require('./components/img/handle-icon-active.png'),
 | 
					          activeImg: require('./components/img/handle-icon-active.png'),
 | 
				
			||||||
          text: '办理',
 | 
					          text: '办理',
 | 
				
			||||||
          component: 'List'
 | 
					          component: 'List',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          img: require('./components/img/statistics-icon.png'),
 | 
					          img: require('./components/img/statistics-icon.png'),
 | 
				
			||||||
          activeImg: require('./components/img/statistics-icon-active.png'),
 | 
					          activeImg: require('./components/img/statistics-icon-active.png'),
 | 
				
			||||||
          text: '统计',
 | 
					          text: '统计',
 | 
				
			||||||
          component: 'Statistics'
 | 
					          component: 'Statistics',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        // {
 | 
				
			||||||
          img: require('./components/img/set-icon.png'),
 | 
					        //   img: require('./components/img/set-icon.png'),
 | 
				
			||||||
          activeImg: require('./components/img/set-icon-active.png'),
 | 
					        //   activeImg: require('./components/img/set-icon-active.png'),
 | 
				
			||||||
          text: '配置',
 | 
					        //   text: '配置',
 | 
				
			||||||
          component: 'Set'
 | 
					        //   component: 'Set'
 | 
				
			||||||
        }
 | 
					        // }
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      isTab: true
 | 
					      isTab: true,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  components: {
 | 
					  components: {
 | 
				
			||||||
    List,
 | 
					    List,
 | 
				
			||||||
    Statistics,
 | 
					    Statistics,
 | 
				
			||||||
    Set
 | 
					    Set,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
@@ -72,10 +67,10 @@ export default {
 | 
				
			|||||||
      this.$nextTick(() => {
 | 
					      this.$nextTick(() => {
 | 
				
			||||||
        this.refresh = true
 | 
					        this.refresh = true
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    }
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onShow() {
 | 
					  onShow() {
 | 
				
			||||||
    document.title = "随手拍"
 | 
					    document.title = '随手拍'
 | 
				
			||||||
    uni.$on('hideTab', () => {
 | 
					    uni.$on('hideTab', () => {
 | 
				
			||||||
      this.isTab = false
 | 
					      this.isTab = false
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
@@ -85,7 +80,7 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    uni.$emit('nextList')
 | 
					    uni.$emit('nextList')
 | 
				
			||||||
  }
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -96,7 +91,7 @@ export default {
 | 
				
			|||||||
.tabs {
 | 
					.tabs {
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
  height: 98px;
 | 
					  height: 98px;
 | 
				
			||||||
  background: #FFF;
 | 
					  background: #fff;
 | 
				
			||||||
  border-top: 1px solid #ddd;
 | 
					  border-top: 1px solid #ddd;
 | 
				
			||||||
  position: fixed;
 | 
					  position: fixed;
 | 
				
			||||||
  bottom: 0;
 | 
					  bottom: 0;
 | 
				
			||||||
@@ -114,11 +109,11 @@ export default {
 | 
				
			|||||||
      font-size: 22px;
 | 
					      font-size: 22px;
 | 
				
			||||||
      font-family: PingFangSC-Medium, PingFang SC;
 | 
					      font-family: PingFangSC-Medium, PingFang SC;
 | 
				
			||||||
      font-weight: 500;
 | 
					      font-weight: 500;
 | 
				
			||||||
      color: #C4CAD4;
 | 
					      color: #c4cad4;
 | 
				
			||||||
      line-height: 8px;
 | 
					      line-height: 8px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .color-3267F0 {
 | 
					    .color-3267F0 {
 | 
				
			||||||
      color: #3267F0;
 | 
					      color: #3267f0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user