|
@@ -10,7 +10,6 @@
|
|
|
size="small"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
<el-form-item>
|
|
|
<p class="inquire-button-one" @click="handleQuery">查询</p>
|
|
|
<p class="reset-button-one" @click="resetQuery">重置</p>
|
|
@@ -20,9 +19,9 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table v-loading="loading" border :data="dataList" >
|
|
|
- <el-table-column label="姓名" align="left" prop="userName"/>
|
|
|
- <el-table-column label="工号" align="left" prop="userNumber"/>
|
|
|
- <el-table-column label="联系方式" align="left" prop="userTelephone"/>
|
|
|
+ <el-table-column label="姓名" align="left" prop="nickName"/>
|
|
|
+ <el-table-column label="工号" align="left" prop="userName"/>
|
|
|
+ <el-table-column label="联系方式" align="left" prop="phonenumber"/>
|
|
|
<el-table-column label="部门" align="left" prop="deptName"/>
|
|
|
<el-table-column label="操作" align="center" width="160">
|
|
|
<template slot-scope="scope">
|
|
@@ -80,7 +79,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { selectUser } from '@/api/trainingCourse/index'
|
|
|
+ import { selectUser,pdaUserList,pdaUser,pdaUserDel } from '@/api/trainingCourse/index'
|
|
|
export default {
|
|
|
name: 'handheldEquipmentUsers',
|
|
|
data(){
|
|
@@ -103,7 +102,9 @@
|
|
|
},
|
|
|
userOption:[],
|
|
|
rules:{
|
|
|
-
|
|
|
+ userIds: [
|
|
|
+ { required: true, message: "请选择用户", trigger: "change" },
|
|
|
+ ],
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -111,7 +112,7 @@
|
|
|
|
|
|
},
|
|
|
mounted(){
|
|
|
-
|
|
|
+ this.getList();
|
|
|
},
|
|
|
methods:{
|
|
|
//获取人员列表
|
|
@@ -135,7 +136,15 @@
|
|
|
},
|
|
|
//弹窗提交
|
|
|
dialogSubmitButton(){
|
|
|
- this.$set(this,'dialogType',false);
|
|
|
+ this.$refs["addForm"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ pdaUser(this.addForm).then(response => {
|
|
|
+ this.msgSuccess(response.msg);
|
|
|
+ this.$set(this,'dialogType',false);
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//查询
|
|
|
handleQuery(){
|
|
@@ -153,11 +162,11 @@
|
|
|
},
|
|
|
//数据列表
|
|
|
getList(){
|
|
|
- // this.loading = true;
|
|
|
- // selectUser({userType:11,nickName:query}).then(response => {
|
|
|
- // this.$set(this,'userOption',response.data)
|
|
|
- // this.loading = false;
|
|
|
- // });
|
|
|
+ this.loading = true;
|
|
|
+ pdaUserList(this.queryParams).then(response => {
|
|
|
+ this.$set(this,'dataList',response.rows)
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
//移除
|
|
|
delButton(item){
|
|
@@ -167,7 +176,10 @@
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- // self.whitelistDel(item);
|
|
|
+ pdaUserDel(item.id).then(response => {
|
|
|
+ self.msgSuccess(response.msg);
|
|
|
+ self.getList();
|
|
|
+ });
|
|
|
}).then(() => {}).catch(() => {});
|
|
|
},
|
|
|
},
|