15179599649
2024-01-16 d4666564167976836fffe41a0f1f0a4ff3eaa68a
'提交内容'
3 files modified
37 ■■■■ changed files
src/views/Addmessage/index.vue 22 ●●●● patch | view | raw | blame | history
src/views/Appraising/index.vue 6 ●●●●● patch | view | raw | blame | history
src/views/examine/index.vue 9 ●●●● patch | view | raw | blame | history
src/views/Addmessage/index.vue
@@ -26,7 +26,8 @@
      <span>请勿涉及不文明及违规内容,违法必究!</span>
    </div>
    <div class="bottom">
      <van-button type="primary" @click="submit()">添加留言</van-button>
      <van-button type="primary" @click="submit(2)" v-show="!this.shownim">匿名添加</van-button>
      <van-button type="primary" @click="submit(1)">添加留言</van-button>
    </div>
  </div>
</template>
@@ -39,14 +40,17 @@
      messagecom: "",
      fileindex: null,
      FileList: [],
      submitlist: []
      submitlist: [],
      shownim: false
    };
  },
  mounted() {
    localStorage.setItem("Appraising", "message");
  },
  computed: {},
  created() {},
  created() {
    this.shownim = localStorage.getItem("tokensave") == "111";
  },
  methods: {
    // 上传图片后的操作
    afterread(event, indexto) {
@@ -77,7 +81,8 @@
      this.submitlist.splice(filelist.index, 1);
      this.FileList.splice(filelist.index, 1);
    },
    submit() {
    // 添加留言:1;匿名添加:2
    submit(index) {
      let toData = {
        userName: "匿名用户",
        content: this.messagecom,
@@ -91,6 +96,11 @@
      if (this.messagecom == "" && this.submitlist.length == 0) {
        this.$toast.fail("留言内容不能为空");
      } else {
        if (index == 2) {
          toData.userDept = "";
          toData.userPost = "";
          toData.userName = "匿名用户";
        }
        leaveWords(toData).then(res => {
          setTimeout(() => {
            this.$router.push("/");
@@ -138,8 +148,10 @@
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    .van-button {
      width: 90%;
      margin: 0px 10px;
      flex: 1;
      font-size: 18px;
      border-radius: 5px;
      background: linear-gradient(to right, #01bdfc, #017bfc);
src/views/Appraising/index.vue
@@ -1,6 +1,7 @@
<!--评优-->
<template>
  <div class="Appraising">
    <p class="title">“要公正 重考核”“求卓越 争第一”“ 铜为镜 正衣冠”</p>
    <div class="view" v-for="(item,index) in ViewData" :key="index">
      <p class="TaskNumber">
        <span>{{item.taskName}}</span>
@@ -112,6 +113,11 @@
</script>
          
<style scoped lang="scss">
.title {
  font-size: 12px;
  text-align: center;
  margin: 10px;
}
.Addmessage {
  position: absolute;
  right: 10px;
src/views/examine/index.vue
@@ -1,6 +1,7 @@
<!--考核-->
<template>
  <div class="box">
    <p class="title">“要公正 重考核”“求卓越 争第一”“ 铜为镜 正衣冠”</p>
    <div class="tabbarshow">
      <div>
        <p>
@@ -121,6 +122,12 @@
</script>
          
<style scoped lang="scss">
.title {
  font-size: 12px;
  text-align: center;
  height:30px;
  line-height: 30px;
}
.box {
  box-sizing: border-box;
  height: calc(100% - 10px);
@@ -159,7 +166,7 @@
.Checkandassess {
  overflow: auto;
  box-sizing: border-box;
  height: calc(100vh - 60px);
  height: calc(100vh - 90px);
  background: #f5f5f5;
  .view {
    width: 90%;