mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	Merge branch 'main' into gitee
This commit is contained in:
		
						commit
						cf1efcc9f5
					
				@ -1079,6 +1079,9 @@ export default defineFakeRoute([
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
      list = list.filter(item => item.username.includes(body?.username));
 | 
					      list = list.filter(item => item.username.includes(body?.username));
 | 
				
			||||||
 | 
					      list = list.filter(item =>
 | 
				
			||||||
 | 
					        String(item.status).includes(String(body?.status))
 | 
				
			||||||
 | 
					      );
 | 
				
			||||||
      return {
 | 
					      return {
 | 
				
			||||||
        success: true,
 | 
					        success: true,
 | 
				
			||||||
        data: {
 | 
					        data: {
 | 
				
			||||||
 | 
				
			|||||||
@ -96,15 +96,8 @@ html.dark {
 | 
				
			|||||||
    color: var(--el-color-primary);
 | 
					    color: var(--el-color-primary);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* element-plus */
 | 
					 | 
				
			||||||
  .el-table__cell {
 | 
					 | 
				
			||||||
    background: var(--el-bg-color);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  .el-card {
 | 
					  .el-card {
 | 
				
			||||||
    --el-card-bg-color: var(--el-bg-color);
 | 
					    --el-card-bg-color: var(--el-bg-color);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    // border: none !important;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .el-backtop {
 | 
					  .el-backtop {
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@ import { type Ref, reactive, ref, onMounted, toRaw } from "vue";
 | 
				
			|||||||
export function useRole(tableRef: Ref) {
 | 
					export function useRole(tableRef: Ref) {
 | 
				
			||||||
  const form = reactive({
 | 
					  const form = reactive({
 | 
				
			||||||
    username: "",
 | 
					    username: "",
 | 
				
			||||||
 | 
					    status: "",
 | 
				
			||||||
    loginTime: ""
 | 
					    loginTime: ""
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
  const dataList = ref([]);
 | 
					  const dataList = ref([]);
 | 
				
			||||||
 | 
				
			|||||||
@ -46,9 +46,20 @@ const {
 | 
				
			|||||||
          v-model="form.username"
 | 
					          v-model="form.username"
 | 
				
			||||||
          placeholder="请输入用户名"
 | 
					          placeholder="请输入用户名"
 | 
				
			||||||
          clearable
 | 
					          clearable
 | 
				
			||||||
          class="!w-[180px]"
 | 
					          class="!w-[150px]"
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
      </el-form-item>
 | 
					      </el-form-item>
 | 
				
			||||||
 | 
					      <el-form-item label="登录状态" prop="status">
 | 
				
			||||||
 | 
					        <el-select
 | 
				
			||||||
 | 
					          v-model="form.status"
 | 
				
			||||||
 | 
					          placeholder="请选择"
 | 
				
			||||||
 | 
					          clearable
 | 
				
			||||||
 | 
					          class="!w-[150px]"
 | 
				
			||||||
 | 
					        >
 | 
				
			||||||
 | 
					          <el-option label="成功" value="1" />
 | 
				
			||||||
 | 
					          <el-option label="失败" value="0" />
 | 
				
			||||||
 | 
					        </el-select>
 | 
				
			||||||
 | 
					      </el-form-item>
 | 
				
			||||||
      <el-form-item label="登录时间" prop="loginTime">
 | 
					      <el-form-item label="登录时间" prop="loginTime">
 | 
				
			||||||
        <el-date-picker
 | 
					        <el-date-picker
 | 
				
			||||||
          v-model="form.loginTime"
 | 
					          v-model="form.loginTime"
 | 
				
			||||||
 | 
				
			|||||||
@ -77,8 +77,8 @@ const {
 | 
				
			|||||||
          row-key="id"
 | 
					          row-key="id"
 | 
				
			||||||
          alignWhole="center"
 | 
					          alignWhole="center"
 | 
				
			||||||
          :header-cell-style="{
 | 
					          :header-cell-style="{
 | 
				
			||||||
            background: '#f5f7fa',
 | 
					            background: 'var(--el-fill-color-light)',
 | 
				
			||||||
            color: '#303133'
 | 
					            color: 'var(--el-text-color-primary)'
 | 
				
			||||||
          }"
 | 
					          }"
 | 
				
			||||||
          :data="
 | 
					          :data="
 | 
				
			||||||
            tableData.slice(
 | 
					            tableData.slice(
 | 
				
			||||||
 | 
				
			|||||||
@ -40,7 +40,7 @@ export function useColumns(selectRef: Ref) {
 | 
				
			|||||||
  function rowStyle({ row: { name } }) {
 | 
					  function rowStyle({ row: { name } }) {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      cursor: "pointer",
 | 
					      cursor: "pointer",
 | 
				
			||||||
      background: name === selectValue.value ? "#f5f7fa" : ""
 | 
					      background: name === selectValue.value ? "var(--el-fill-color-light)" : ""
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -28,8 +28,8 @@ const {
 | 
				
			|||||||
          row-key="id"
 | 
					          row-key="id"
 | 
				
			||||||
          alignWhole="center"
 | 
					          alignWhole="center"
 | 
				
			||||||
          :header-cell-style="{
 | 
					          :header-cell-style="{
 | 
				
			||||||
            background: '#f5f7fa',
 | 
					            background: 'var(--el-fill-color-light)',
 | 
				
			||||||
            color: '#303133'
 | 
					            color: 'var(--el-text-color-primary)'
 | 
				
			||||||
          }"
 | 
					          }"
 | 
				
			||||||
          :row-style="rowStyle"
 | 
					          :row-style="rowStyle"
 | 
				
			||||||
          :data="
 | 
					          :data="
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user