This commit is contained in:
parent
c5456955c9
commit
99e44cd7e7
|
|
@ -43,7 +43,7 @@ const service = axios.create({
|
|||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
// 超时
|
||||
timeout: 10000,
|
||||
timeout: 30000,
|
||||
})
|
||||
|
||||
// request 拦截器
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ import {
|
|||
getAllProjectListAPI,
|
||||
} from '@/api/basic-manage/project-manage/all-project'
|
||||
export default {
|
||||
name: 'AllProject',
|
||||
name: 'All-project',
|
||||
dicts: ['voltage_level', 'project_type', 'project_status'],
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ import {
|
|||
} from '@/api/basic-manage/project-manage/dept-project'
|
||||
import { getSubCompanySelectListCommonFun } from '@/utils/getCommonData'
|
||||
export default {
|
||||
name: 'DeptProject',
|
||||
name: 'Dept-project',
|
||||
dicts: ['project_type', 'project_status'], // 字典类型
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ import {
|
|||
getLotProjectSelectListCommonFun,
|
||||
} from '@/utils/getCommonData'
|
||||
export default {
|
||||
name: 'LotProject',
|
||||
name: 'Lot-project',
|
||||
dicts: ['project_type', 'project_status'],
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ import {
|
|||
getSubBaseInfoListAPI,
|
||||
} from '@/api/basic-manage/sub-manage/sub-base-info'
|
||||
export default {
|
||||
name: 'SubBaseInfo',
|
||||
name: 'Sub-base-info',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ import {
|
|||
} from '@/api/basic-manage/sub-manage/sub-entry-and-exit'
|
||||
import { getLotProjectSelectListCommonFun } from '@/utils/getCommonData'
|
||||
export default {
|
||||
name: 'SubEntryAndExit',
|
||||
name: 'Sub-entry-and-exit',
|
||||
components: {
|
||||
ExitForm,
|
||||
EntryForm,
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ import {
|
|||
getTeamBaseInfoListAPI,
|
||||
} from '@/api/basic-manage/team-manage/team-base-info'
|
||||
export default {
|
||||
name: 'TeamBaseInfo',
|
||||
name: 'Team-base-info',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ import { formLabel, columnsList, dialogConfig } from './config'
|
|||
import { getTeamEntryListAPI } from '@/api/basic-manage/team-manage/team-entry-and-exit'
|
||||
|
||||
export default {
|
||||
name: 'TeamEntryAndExit',
|
||||
name: 'Team-entry-and-exit',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ import { formLabel, columnsList, dialogConfig } from './config'
|
|||
import { getAttendanceCountListAPI } from '@/api/construction-person/attendance-manage/attendance-count'
|
||||
|
||||
export default {
|
||||
name: 'AttendanceCount',
|
||||
name: 'Attendance-count',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ import {
|
|||
getAttendanceMachineListAPI,
|
||||
} from '@/api/construction-person/attendance-manage/attendance-machine'
|
||||
export default {
|
||||
name: 'SubBaseInfo',
|
||||
name: 'Attendance-machine',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ import {
|
|||
import { getLotProjectSelectListCommonFun } from '@/utils/getCommonData'
|
||||
import debounce from 'lodash/debounce'
|
||||
export default {
|
||||
name: 'CardReplacementApply',
|
||||
name: 'Card-replacement-apply',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ import {
|
|||
import { getLotProjectSelectListCommonFun } from '@/utils/getCommonData'
|
||||
|
||||
export default {
|
||||
name: 'CardReplacementAudit',
|
||||
name: 'Card-replacement-audit',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ import { formLabel, columnsList, dialogConfig } from './config'
|
|||
import { getCardReplacementCountListAPI } from '@/api/construction-person/attendance-manage/card-replacement-count'
|
||||
import { getLotProjectSelectListCommonFun } from '@/utils/getCommonData'
|
||||
export default {
|
||||
name: 'CardReplacementCount',
|
||||
name: 'Card-replacement-count',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ import {
|
|||
|
||||
import debounce from 'lodash/debounce'
|
||||
export default {
|
||||
name: 'PersonEntry',
|
||||
name: 'Person-entry',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ import {
|
|||
batchExitPersonAPI,
|
||||
} from '@/api/construction-person/entry-and-exit-manage/person-exit'
|
||||
export default {
|
||||
name: 'PersonExit',
|
||||
name: 'Person-exit',
|
||||
dicts: ['project_type'],
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ import {
|
|||
|
||||
import debounce from 'lodash/debounce'
|
||||
export default {
|
||||
name: 'ContractWitness',
|
||||
name: 'Contract-witness',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ import {
|
|||
} from '@/api/construction-person/red-green-light-mange/dishonesty-person'
|
||||
|
||||
export default {
|
||||
name: 'DishonestyPerson',
|
||||
name: 'Dishonesty-person',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ import DialogModel from '@/components/DialogModel'
|
|||
import ProjectList from './project-list.vue'
|
||||
import { getRedAndGreenCountListAPI } from '@/api/construction-person/red-green-light-mange/red-and-green-count'
|
||||
export default {
|
||||
name: 'RedAndGreenCount',
|
||||
name: 'Red-and-green-count',
|
||||
components: {
|
||||
DialogModel,
|
||||
ProjectList,
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ import {
|
|||
} from '@/api/construction-person/red-green-light-mange/wage-card-witness'
|
||||
import debounce from 'lodash/debounce'
|
||||
export default {
|
||||
name: 'WageCardWitness',
|
||||
name: 'Wage-card-witness',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import TableModel from '@/components/TableModel'
|
|||
import { formLabel, columnsList } from './config'
|
||||
import { getPersonCountListAPI } from '@/api/synthesize-query/person-count'
|
||||
export default {
|
||||
name: 'PersonCount',
|
||||
name: 'Person-count',
|
||||
components: {
|
||||
TableModel,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ import TableModel from '@/components/TableModel'
|
|||
import { formLabel, columnsList } from './config'
|
||||
import { getProjectCountListAPI } from '@/api/synthesize-query/project-count'
|
||||
export default {
|
||||
name: 'ProjectCount',
|
||||
name: 'Project-count',
|
||||
components: {
|
||||
TableModel,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import TableModel from '@/components/TableModel'
|
|||
import { formLabel, columnsList } from './config'
|
||||
import { getSubCountListAPI } from '@/api/synthesize-query/sub-count'
|
||||
export default {
|
||||
name: 'SubCount',
|
||||
name: 'Sub-count',
|
||||
components: {
|
||||
TableModel,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ import TableModel from '@/components/TableModel'
|
|||
import { formLabel, columnsList } from './config'
|
||||
import { getThreeAndOneListAPI } from '@/api/synthesize-query/three-and-one'
|
||||
export default {
|
||||
name: 'ThreeAndOne',
|
||||
name: 'Three-and-one',
|
||||
dicts: ['project_status'],
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
import DataFilter from './components/dataFilter.vue'
|
||||
import WageDetails from './components/wage-details.vue'
|
||||
export default {
|
||||
name: 'WageCount',
|
||||
name: 'Wage-count',
|
||||
components: {
|
||||
DataFilter,
|
||||
WageDetails,
|
||||
|
|
|
|||
|
|
@ -1,96 +1,234 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||
label-width="68px">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="登录账号" prop="userName">
|
||||
<el-input v-model="queryParams.userName" placeholder="请输入登录账号" clearable />
|
||||
<el-input
|
||||
v-model="queryParams.userName"
|
||||
placeholder="请输入登录账号"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="nickName">
|
||||
<el-input v-model="queryParams.nickName" placeholder="请输入姓名" clearable />
|
||||
<el-input
|
||||
v-model="queryParams.nickName"
|
||||
placeholder="请输入姓名"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="权限范围" prop="permissionRange">
|
||||
<el-input v-model="queryParams.permissionRange" placeholder="请输入权限范围" clearable />
|
||||
<el-input
|
||||
v-model="queryParams.permissionRange"
|
||||
placeholder="请输入权限范围"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="角色" prop="roleId">
|
||||
<el-select v-model="queryParams.roleId" clearable placeholder="请选择角色">
|
||||
<el-option v-for="item in roleArr" :key="item.value" :label="item.name" :value="item.value">
|
||||
<el-select
|
||||
v-model="queryParams.roleId"
|
||||
clearable
|
||||
placeholder="请选择角色"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in roleArr"
|
||||
:key="item.value"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="角色级别" prop="permissionType">
|
||||
<el-select clearable v-model="queryParams.permissionType" placeholder="请选择角色级别">
|
||||
<el-option v-for="item in dict.type.role_level" :key="item.value" :label="item.label"
|
||||
:value="item.value"></el-option>
|
||||
<el-select
|
||||
clearable
|
||||
v-model="queryParams.permissionType"
|
||||
placeholder="请选择角色级别"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.type.role_level"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select clearable v-model="queryParams.status" placeholder="请选择状态">
|
||||
<el-option v-for="item in dict.type.sys_normal_disable" :key="item.value" :label="item.label"
|
||||
:value="item.value"></el-option>
|
||||
<el-select
|
||||
clearable
|
||||
v-model="queryParams.status"
|
||||
placeholder="请选择状态"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.type.sys_normal_disable"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
<el-button size="mini" plain type="success" icon="el-icon-download" @click="handleExport"
|
||||
v-hasPermi="['system:user:export']">导出</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['system:user:add']">新增</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
plain
|
||||
type="success"
|
||||
icon="el-icon-download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:user:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:user:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="userList">
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
width="80"
|
||||
type="index"
|
||||
>
|
||||
<template scope="scope">
|
||||
<span>{{ (queryParams.pageNum - 1) * 10 + scope.$index + 1 }}</span>
|
||||
<span>{{
|
||||
(queryParams.pageNum - 1) * 10 + scope.$index + 1
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="登录账号" align="center" prop="userName">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ hidePhone(scope.row.userName,scope.row) }}</span>
|
||||
<span>{{ hidePhone(scope.row.userName, scope.row) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="姓名" align="center" prop="nickName" />
|
||||
<el-table-column label="角色" align="center" prop="roleName" />
|
||||
<el-table-column label="角色级别" align="center" prop="roleLevel" />
|
||||
<el-table-column label="权限范围" align="center" prop="permissionRange" />
|
||||
<el-table-column prop="status" align="center" label="状态" min-width="60">
|
||||
<el-table-column
|
||||
label="权限范围"
|
||||
align="center"
|
||||
prop="permissionRange"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
align="center"
|
||||
label="状态"
|
||||
min-width="60"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status" />
|
||||
<dict-tag
|
||||
:options="dict.type.sys_normal_disable"
|
||||
:value="scope.row.status"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="更新时间" align="center" prop="updateTime" width="180"></el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column
|
||||
label="更新时间"
|
||||
align="center"
|
||||
prop="updateTime"
|
||||
width="180"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-key" @click="handleResetPwd(scope.row)"
|
||||
v-hasPermi="['system:user:resetPwd']">重置密码</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:user:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:user:remove']">删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-key"
|
||||
@click="handleResetPwd(scope.row)"
|
||||
v-hasPermi="['system:user:resetPwd']"
|
||||
>重置密码</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:user:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:user:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<!-- 新增/编辑 -->
|
||||
<UserForm v-if="isflag" :isAdd="isAdd" :rowData="row" @handleQuery="handleQuery" :title="title"
|
||||
@closeDialog="closeDialog" @showColose="showColose" :dataForm="row" :disabled="loading" :width="600" />
|
||||
<UserForm
|
||||
v-if="isflag"
|
||||
:isAdd="isAdd"
|
||||
:rowData="row"
|
||||
@handleQuery="handleQuery"
|
||||
:title="title"
|
||||
@closeDialog="closeDialog"
|
||||
@showColose="showColose"
|
||||
:dataForm="row"
|
||||
:disabled="loading"
|
||||
:width="600"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listUser, getRoleList,delUser,confirmPassword,resetUserPwd } from "@/api/system/user";
|
||||
import { validateNewPassword} from '@/utils/validate'
|
||||
import UserForm from "./prop/userForm.vue";
|
||||
import {
|
||||
listUser,
|
||||
getRoleList,
|
||||
delUser,
|
||||
confirmPassword,
|
||||
resetUserPwd,
|
||||
} from '@/api/system/user'
|
||||
import { validateNewPassword } from '@/utils/validate'
|
||||
import UserForm from './prop/userForm.vue'
|
||||
export default {
|
||||
name: "User",
|
||||
name: 'User',
|
||||
dicts: ['role_level', 'sys_normal_disable'],
|
||||
components: {
|
||||
UserForm
|
||||
UserForm,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -105,7 +243,7 @@ export default {
|
|||
userList: [],
|
||||
roleArr: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
|
|
@ -123,74 +261,81 @@ export default {
|
|||
form: {},
|
||||
isflag: false,
|
||||
row: {},
|
||||
isAdd: ''
|
||||
};
|
||||
isAdd: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.initRoles();
|
||||
this.getList();
|
||||
this.initRoles()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/* 手机号码脱敏 */
|
||||
hidePhone(phone,row) {
|
||||
hidePhone(phone, row) {
|
||||
if (!phone) return ''
|
||||
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
|
||||
},
|
||||
// 加载角色数据
|
||||
async initRoles() {
|
||||
await getRoleList({}).then(res => {
|
||||
const list = res.data;
|
||||
this.roleArr = list;
|
||||
}).catch(error => {
|
||||
})
|
||||
await getRoleList({})
|
||||
.then((res) => {
|
||||
const list = res.data
|
||||
this.roleArr = list
|
||||
})
|
||||
.catch((error) => {})
|
||||
},
|
||||
/** 用户列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listUser(this.queryParams).then(response => {
|
||||
this.userList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = true
|
||||
listUser(this.queryParams).then((response) => {
|
||||
this.userList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
closeDialog() {
|
||||
this.isflag = false;
|
||||
this.isflag = false
|
||||
},
|
||||
showColose() {
|
||||
this.isflag = false;
|
||||
this.isflag = false
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.title = "新增";
|
||||
this.isAdd = 'add';
|
||||
this.isflag = true;
|
||||
this.title = '新增'
|
||||
this.isAdd = 'add'
|
||||
this.isflag = true
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.title = "修改";
|
||||
this.isAdd = 'edit';
|
||||
this.row = row;
|
||||
this.isflag = true;
|
||||
this.title = '修改'
|
||||
this.isAdd = 'edit'
|
||||
this.row = row
|
||||
this.isflag = true
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const userIds = row.userId ? [row.userId] : [];
|
||||
this.$modal.confirm('是否确认删除登录账号为"' + row.userName + '"的数据项?').then(function () {
|
||||
return delUser(userIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
const userIds = row.userId ? [row.userId] : []
|
||||
this.$modal
|
||||
.confirm(
|
||||
'是否确认删除登录账号为"' + row.userName + '"的数据项?',
|
||||
)
|
||||
.then(function () {
|
||||
return delUser(userIds)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
confirmResetPwd(row) {
|
||||
this.$prompt('请输入密码,鉴别用户', '提示', {
|
||||
|
|
@ -212,7 +357,7 @@ export default {
|
|||
},
|
||||
})
|
||||
.then(({ value }) => {
|
||||
confirmPassword(value,row.userId).then((response) => {
|
||||
confirmPassword(value, row.userId).then((response) => {
|
||||
this.$modal.msgSuccess('验证成功')
|
||||
this.handleResetPwd(row)
|
||||
})
|
||||
|
|
@ -257,6 +402,6 @@ export default {
|
|||
`user_${new Date().getTime()}.xlsx`,
|
||||
)
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue