保存进度!
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-04 11:05:44
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-18 17:40:55
 | 
			
		||||
 * @LastEditTime: 2023-01-18 23:05:42
 | 
			
		||||
 * @FilePath: \admin_system\src\layout\Index.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -66,9 +66,10 @@ export default {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#layout-main {
 | 
			
		||||
    background-color: #eee;
 | 
			
		||||
    background-color: #ecf2f9;
 | 
			
		||||
    /* height: 0; */
 | 
			
		||||
    /* flex-grow: 1; */
 | 
			
		||||
    overflow: overlay;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#layout-container-down {
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-22 09:10:20
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-12 17:47:36
 | 
			
		||||
 * @LastEditTime: 2023-01-18 21:45:12
 | 
			
		||||
 * @FilePath: \admin_system\src\utils\api\info\account.js
 | 
			
		||||
 * @Description:
 | 
			
		||||
 *
 | 
			
		||||
@@ -29,18 +29,11 @@ export function Login(userInfo)
 | 
			
		||||
    );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 退出登录
 | 
			
		||||
 */
 | 
			
		||||
export function Logout()
 | 
			
		||||
{
 | 
			
		||||
    // if (this.$store && this.$store.state.app)
 | 
			
		||||
    // {
 | 
			
		||||
    //     //this.$store.commit();
 | 
			
		||||
    // }
 | 
			
		||||
 | 
			
		||||
    //const store = useStore();
 | 
			
		||||
 | 
			
		||||
    //console.log(store);
 | 
			
		||||
 | 
			
		||||
    console.log(store);
 | 
			
		||||
 | 
			
		||||
    window.localStorage.removeItem("token");
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:23:54
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-13 09:35:07
 | 
			
		||||
 * @LastEditTime: 2023-01-18 22:24:21
 | 
			
		||||
 * @FilePath: \admin_system\src\views\account\Login.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -29,7 +29,7 @@
 | 
			
		||||
        </el-form-item>
 | 
			
		||||
        <el-form-item v-show="current_menu === tab_menu[1].type">
 | 
			
		||||
          <label class="form-label">确认密码</label>
 | 
			
		||||
          <el-input type="password" v-model.lazy.trim="loginForm.confirm_password"></el-input>
 | 
			
		||||
          <el-input type="password" disabled v-model.lazy.trim="loginForm.confirm_password"></el-input>
 | 
			
		||||
        </el-form-item>
 | 
			
		||||
        <el-form-item>
 | 
			
		||||
          <label class="form-label">验证码</label>
 | 
			
		||||
@@ -93,6 +93,9 @@ export default {
 | 
			
		||||
        type: "error",
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
    /**
 | 
			
		||||
     * 登录
 | 
			
		||||
     */
 | 
			
		||||
    login()
 | 
			
		||||
    {
 | 
			
		||||
      if (this.loginForm.username.length === 0 || this.loginForm.password === 0)
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-12 14:43:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-18 17:38:03
 | 
			
		||||
 * @LastEditTime: 2023-01-18 23:24:41
 | 
			
		||||
 * @FilePath: \admin_system\src\views\info\StaffInfo.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="query_box">
 | 
			
		||||
        <el-form inline="true" width="600px">
 | 
			
		||||
        <el-form inline width="600px">
 | 
			
		||||
            <el-row :gutter="10" class="el-row">
 | 
			
		||||
                <el-col :span="8">
 | 
			
		||||
                    <el-input v-model="query_param.staff_code" placeholder="请输入P09工号或P13账号"></el-input>
 | 
			
		||||
@@ -22,15 +22,21 @@
 | 
			
		||||
                <el-col :span="12"></el-col>
 | 
			
		||||
            </el-row>
 | 
			
		||||
        </el-form>
 | 
			
		||||
        <el-table ref="table" :data="table_data" border width="100%" :stripe="true">
 | 
			
		||||
        <el-table ref="table" :data="table_data" border width="100%" stripe>
 | 
			
		||||
            <el-table-column type="selection" min-width="30" align="center"></el-table-column>
 | 
			
		||||
            <el-table-column prop="staff_name" min-width="200" label="员工名称" align="center"></el-table-column>
 | 
			
		||||
            <el-table-column prop="staff_code" min-width="100" label="工号" align="center"></el-table-column>
 | 
			
		||||
            <el-table-column prop="p13uid" min-width="200" label="P13账号" align="center"></el-table-column>
 | 
			
		||||
            <el-table-column label="操作" min-width="200" align="center">
 | 
			
		||||
                <template #default="scope">
 | 
			
		||||
                    <el-button type="warning" size="mini" @click="onTableEdit(scope.row)">编辑</el-button>
 | 
			
		||||
                    <el-button type="danger" size="mini">删除</el-button>
 | 
			
		||||
            <el-table-column min-width="200" label="员工名称" align="left" fixed="left">
 | 
			
		||||
                <template #default="rowdata">
 | 
			
		||||
                    <span @click="onShowStaffInfo(rowdata.row)" style="cursor:pointer;display:block;height:100%;">{{
 | 
			
		||||
                        rowdata.row.staff_name
 | 
			
		||||
                    }}</span>
 | 
			
		||||
                </template>
 | 
			
		||||
            </el-table-column>
 | 
			
		||||
            <el-table-column prop="staff_code" min-width="100" label="工号" align="left"></el-table-column>
 | 
			
		||||
            <el-table-column prop="p13uid" min-width="200" label="P13账号" align="left"></el-table-column>
 | 
			
		||||
            <el-table-column label="操作" min-width="200" align="center" fixed="right">
 | 
			
		||||
                <template #default>
 | 
			
		||||
                    <el-button type="warning">编辑</el-button>
 | 
			
		||||
                    <el-button type="danger">删除</el-button>
 | 
			
		||||
                </template>
 | 
			
		||||
            </el-table-column>
 | 
			
		||||
        </el-table>
 | 
			
		||||
@@ -75,6 +81,10 @@ export default {
 | 
			
		||||
                return 'warning-row';
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        onShowStaffInfo(staff)
 | 
			
		||||
        {
 | 
			
		||||
            console.log("点击名称", staff);
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
@@ -120,4 +130,8 @@ export default {
 | 
			
		||||
.info_box:hover {
 | 
			
		||||
    box-shadow: 0px 0px 3px 3px #cccccc;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
div.cell {
 | 
			
		||||
    height: 100%;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user