屏蔽配置
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) || [],
 | 
				
			||||||
@@ -88,8 +87,8 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    toSelectUser() {
 | 
					    toSelectUser() {
 | 
				
			||||||
      console.log(123)
 | 
					      console.log(123)
 | 
				
			||||||
      uni.navigateTo({url: './SelectUser'})
 | 
					      uni.navigateTo({ url: './SelectUser' })
 | 
				
			||||||
    }
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
@@ -144,24 +143,24 @@ export default {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  .remove-item{
 | 
					  .remove-item {
 | 
				
			||||||
    padding: 42px 0 42px 32px;
 | 
					    padding: 42px 0 42px 32px;
 | 
				
			||||||
    box-sizing: border-box;
 | 
					    box-sizing: border-box;
 | 
				
			||||||
    background-color: #fff;
 | 
					    background-color: #fff;
 | 
				
			||||||
    img{
 | 
					    img {
 | 
				
			||||||
      width: 36px;
 | 
					      width: 36px;
 | 
				
			||||||
      height: 36px;
 | 
					      height: 36px;
 | 
				
			||||||
      margin-right: 12px;
 | 
					      margin-right: 12px;
 | 
				
			||||||
      vertical-align: middle;
 | 
					      vertical-align: middle;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .input{
 | 
					    .input {
 | 
				
			||||||
      display: inline-block;
 | 
					      display: inline-block;
 | 
				
			||||||
      width: calc(100% - 48px);
 | 
					      width: calc(100% - 48px);
 | 
				
			||||||
      height: 36px;
 | 
					      height: 36px;
 | 
				
			||||||
      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;
 | 
				
			||||||
@@ -181,7 +180,7 @@ export default {
 | 
				
			|||||||
    color: #ffffff;
 | 
					    color: #ffffff;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .footer{
 | 
					  .footer {
 | 
				
			||||||
    position: fixed;
 | 
					    position: fixed;
 | 
				
			||||||
    bottom: 0;
 | 
					    bottom: 0;
 | 
				
			||||||
    width: 100%;
 | 
					    width: 100%;
 | 
				
			||||||
@@ -190,7 +189,7 @@ export default {
 | 
				
			|||||||
    padding: 32px;
 | 
					    padding: 32px;
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    justify-content: space-between;
 | 
					    justify-content: space-between;
 | 
				
			||||||
    div{
 | 
					    div {
 | 
				
			||||||
      height: 92px;
 | 
					      height: 92px;
 | 
				
			||||||
      line-height: 92px;
 | 
					      line-height: 92px;
 | 
				
			||||||
      box-sizing: border-box;
 | 
					      box-sizing: border-box;
 | 
				
			||||||
@@ -200,15 +199,15 @@ export default {
 | 
				
			|||||||
      font-family: PingFangSC-Medium, PingFang SC;
 | 
					      font-family: PingFangSC-Medium, PingFang SC;
 | 
				
			||||||
      font-weight: 500;
 | 
					      font-weight: 500;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .remove{
 | 
					    .remove {
 | 
				
			||||||
      flex: 1;
 | 
					      flex: 1;
 | 
				
			||||||
      border: 1px solid #f46;
 | 
					      border: 1px solid #f46;
 | 
				
			||||||
      color: #f46;
 | 
					      color: #f46;
 | 
				
			||||||
      margin-right: 32px;
 | 
					      margin-right: 32px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .confirm{
 | 
					    .confirm {
 | 
				
			||||||
      flex: 2;
 | 
					      flex: 2;
 | 
				
			||||||
      background: #3975C6;
 | 
					      background: #3975c6;
 | 
				
			||||||
      color: #fff;
 | 
					      color: #fff;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,10 @@
 | 
				
			|||||||
<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>
 | 
				
			||||||
  </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,40 +80,40 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    uni.$emit('nextList')
 | 
					    uni.$emit('nextList')
 | 
				
			||||||
  }
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss" scoped>
 | 
					<style lang="scss" scoped>
 | 
				
			||||||
.AppHandSnapshot{
 | 
					.AppHandSnapshot {
 | 
				
			||||||
  height: 100%;
 | 
					  height: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.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;
 | 
				
			||||||
  left: 0;
 | 
					  left: 0;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  .item{
 | 
					  .item {
 | 
				
			||||||
    flex: 1;
 | 
					    flex: 1;
 | 
				
			||||||
    text-align: center;
 | 
					    text-align: center;
 | 
				
			||||||
    img{
 | 
					    img {
 | 
				
			||||||
      width: 56px;
 | 
					      width: 56px;
 | 
				
			||||||
      height: 56px;
 | 
					      height: 56px;
 | 
				
			||||||
      margin-top: 8px;
 | 
					      margin-top: 8px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    p{
 | 
					    p {
 | 
				
			||||||
      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