From 198296713bef76df25f7add0eed5df15a66a8b67 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Wed, 17 Aug 2022 13:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BA=9F=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/userRelation/cell/index.json | 9 - app/components/userRelation/cell/index.less | 52 ------ app/components/userRelation/cell/index.ts | 58 ------ app/components/userRelation/cell/index.tsx | 11 -- app/components/userRelation/cell/index.wxml | 21 --- app/components/userSearch/index.ts | 188 -------------------- 6 files changed, 339 deletions(-) delete mode 100644 app/components/userRelation/cell/index.json delete mode 100644 app/components/userRelation/cell/index.less delete mode 100644 app/components/userRelation/cell/index.ts delete mode 100644 app/components/userRelation/cell/index.tsx delete mode 100644 app/components/userRelation/cell/index.wxml delete mode 100644 app/components/userSearch/index.ts diff --git a/app/components/userRelation/cell/index.json b/app/components/userRelation/cell/index.json deleted file mode 100644 index 4d463e7fc..000000000 --- a/app/components/userRelation/cell/index.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "navigationBarTitleText": "修改权限", - "usingComponents": { - "t-checkbox": "../../../miniprogram_npm/tdesign/checkbox/checkbox", - "t-icon": "../../../miniprogram_npm/tdesign/icon/icon", - "t-tag": "../../../miniprogram_npm/tdesign/tag/tag", - "t-button": "../../../miniprogram_npm/tdesign/button/button" - } -} \ No newline at end of file diff --git a/app/components/userRelation/cell/index.less b/app/components/userRelation/cell/index.less deleted file mode 100644 index 4585e6fdb..000000000 --- a/app/components/userRelation/cell/index.less +++ /dev/null @@ -1,52 +0,0 @@ -/** index.wxss **/ -@import "../../../config/styles/_base.less"; -@import "../../../config/styles/_mixins.less"; - -.card-view { - margin: @spacer; - margin-bottom: 0rpx; - padding: @spacer; - border-radius: 4rpx; - display: flex; - align-items: center; - box-shadow: 0 4rpx 20rpx 0 rgba(212, 217, 223, 0.5); - background-color: #fff; -} -.row { - margin-left: @spacer; - display: flex; - flex: 1; - align-items: center; -} - -.col { - display: flex; - flex: 1; - flex-direction: column; -} - -.nickname { - margin-bottom: 8rpx; - font-size: @font-size-base; -} -.mobile { - font-size: @font-size-base; - color: @text-level-3-color; -} -.avatar { - height: 140rpx; - width: 140rpx; - border-radius: 50%; -} -.img-view { - display: flex; - align-items: center; - justify-content: center; - height: 140rpx; - width: 140rpx; - border-radius: 50%; - background-color: @bg-color-fade; -} -.t-class { - padding: 0rpx; -} \ No newline at end of file diff --git a/app/components/userRelation/cell/index.ts b/app/components/userRelation/cell/index.ts deleted file mode 100644 index 7185d8995..000000000 --- a/app/components/userRelation/cell/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { firstLetterUpperCase } from "oak-domain/lib/utils/string"; -import { composeFileUrl } from "../../../../src/utils/extraFile"; - -export default OakComponent( - { - path: 'user:relation', - entity: 'user', - isList: true, - formData: async ({ data: user }) => { - const { - id, - nickname, - userState, - name, - mobile$user, - extraFile$entity, - } = user || {}; - const mobile = mobile$user && mobile$user[0]?.mobile; - const avatar = - extraFile$entity && - extraFile$entity[0] && - composeFileUrl(extraFile$entity[0]); - return { - id, - nickname, - name, - mobile, - avatar, - userState, - }; - }, - properties: { - oakFullpath: String, - oakParent: String, - oakPath: String, - oakId: String, - }, - data: { - checked: false, - }, - methods: { - onClick(e: any) { - const { checked } = this.data; - const { id } = e.currentTarget.dataset; - this.setState({ - checked: !checked, - }) - this.triggerEvent('myClick', e, { id }); - }, - handleChange() { - const { checked } = this.data; - this.setState({ - checked: !checked, - }) - } - }, - } -); diff --git a/app/components/userRelation/cell/index.tsx b/app/components/userRelation/cell/index.tsx deleted file mode 100644 index d0976bdc0..000000000 --- a/app/components/userRelation/cell/index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React, { Component } from 'react'; - -export default function render() { - const { rows } = this.state; - - return ( -