feige
2024-02-20 a7d09900629902c8170f639f070fc6da8d168e0b
ruoyi-ui/src/views/contacts/index.vue
@@ -82,6 +82,7 @@
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['system:role:add']"
        >新增</el-button>
@@ -94,6 +95,7 @@
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:role:remove']"
        >删除</el-button>
      </el-col>
@@ -217,6 +219,7 @@
              size="mini"
              type="text"
              icon="el-icon-edit"
                     :disabled="!scope.row.ownData"
              @click="handleUpdate(scope.row)"
              v-hasPermi="['system:role:edit']"
            >
@@ -226,6 +229,7 @@
              size="mini"
              type="text"
              icon="el-icon-delete"
                     :disabled="!scope.row.ownData"
              @click="handleDelete(scope.row)"
              v-hasPermi="['system:role:remove']"
            ><span style="font-size: 14px;">删除</span></el-button>
@@ -416,7 +420,9 @@
      // 日期范围
      dateRange: [],
      // 数据范围选项
      fot:[".jpg",".jif"],
      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
      fileList:[
      ],
      fileListOther:[
@@ -570,15 +576,22 @@
    /** 查询通讯录列表 */
    getList() {
      this.loading = true;
      let _this = this
      // console.log(this.queryParams)
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      getContactList(this.queryParams).then(response => {
          //  alert(123)
          //   console.log(response.data)
          this.contactList = response.data.data;
         if(response.msg=="您没加入到对应的家庭,请联系管理员")
         {
             _this.$modal.msgSuccess("您没加入到对应的家庭,请联系管理员");
             _this.loading = false;
         }else{
          _this.contactList = response.data.data;
          this.total = response.data.total;
          this.loading = false;
          _this.total = response.data.total;
          _this.loading = false;
          }
        }
      );
    },