feige
2024-02-02 bd40473c9c634005bc7e62e7fc901bcd8b598fa0
ruoyi-ui/src/views/bignote/index.vue
@@ -51,7 +51,7 @@
      <el-form-item label="时间" prop="happenTime">
        <el-date-picker
          v-model="dateRange"
          style="width:  197px;
          style="width:  240px;
height: 30px;
background: #FFFFFF;
border-radius: 14px 14px 14px 14px;
@@ -124,7 +124,7 @@
          v-hasPermi="['family:note:export']"
        >导入模板下载</el-button>
      </el-col>
      <el-col :span="1.2">
      <el-col :span="1.5">
        <el-upload
          action=""
@@ -135,7 +135,7 @@
        >
          <el-button size="mini"   type="primary"
                     plain
                     icon="el-icon-plus" >导入</el-button>
                     icon="el-icon-top">导入</el-button>
        </el-upload>
      </el-col>
@@ -185,12 +185,14 @@
            ></div>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
      <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width">
        <template slot-scope="scope" v-if="scope.row.roleId !== 1">
          <el-button
          <div class="button-container">
            <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            :disabled="!scope.row.ownData"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['familymodel:bignote:list']"
          >修改</el-button>
@@ -198,6 +200,7 @@
            size="mini"
            type="text"
            icon="el-icon-delete"
            :disabled="!scope.row.ownData"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:role:remove']"
          >删除</el-button>
@@ -205,6 +208,7 @@
            <el-button size="mini" type="text" icon="el-icon-d-arrow-right"  @click="handleCheck(scope.row)">查看详情</el-button>
          </el-dropdown>
          </div>
        </template>
      </el-table-column>
    </el-table>
@@ -476,16 +480,21 @@
      console.log(this.queryParams)
      this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
      this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
      let _this = this
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      listFamilyevent(this.queryParams).then(response => {
          //  alert(123)
          //   console.log(response.data.data)
          // alert(response.data.data[1].url)
          this.familyList = response.data.data;
          if(response.msg=="您没加入到对应的家庭,请联系管理员")
          {
              _this.$modal.msgSuccess("您没加入到对应的家庭,请联系管理员");
              _this.loading = false;
          }else{
          _this.familyList = response.data.data;
          this.total = response.data.total;
          this.loading = false;
          _this.total = response.data.total;
          _this.loading = false;
          }
        }
      );
    },
@@ -722,7 +731,7 @@
  }
};
</script>
<style>
<style scoped="">
.el-table__row.statistics-warning-row {
  background: #E0EEFE;
@@ -731,4 +740,10 @@
  background: #FFEFF2;
}
.el-table__cell {
  font-size: 14px; /* 设置字体大小 */
}
.button-container {
  display: inline-flex; /* 设置按钮容器为行内元素 */
}
</style>