mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
修改
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<el-table ref="multipleTable" :data="tableDataShow" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"> </el-table-column>
|
||||
<el-table-column label="姓名" prop="name" align="center" ></el-table-column>
|
||||
<el-table-column label="姓名" prop="realName" align="center" ></el-table-column>
|
||||
<el-table-column prop="userNo" label="工号" align="center"></el-table-column>
|
||||
<el-table-column prop="departName" label="部门" align="center"></el-table-column>
|
||||
<!-- <el-table-column prop="position" label="岗位" align="center"></el-table-column> -->
|
||||
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
<el-table ref="userTable" :data="userData" v-loading="userDataLoading" tooltip-effect="dark" @selection-change="userSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"></el-table-column>
|
||||
<el-table-column label="姓名" prop="name" align="center"></el-table-column>
|
||||
<el-table-column label="姓名" prop="realName" align="center"></el-table-column>
|
||||
<el-table-column prop="userNo" label="工号" align="center"></el-table-column>
|
||||
<el-table-column prop="departName" label="部门" align="center"></el-table-column>
|
||||
<!-- <el-table-column prop="duty" label="岗位" align="center"></el-table-column> -->
|
||||
@@ -334,7 +334,7 @@
|
||||
let userItem = {}
|
||||
userItem.aid = this.userSelection[i].id;
|
||||
userItem.id = this.userSelection[i].id;
|
||||
userItem.name = this.userSelection[i].name;
|
||||
userItem.realName = this.userSelection[i].realName;
|
||||
userItem.userNo = this.userSelection[i].userNo;
|
||||
userItem.departId = this.userSelection[i].departId;
|
||||
userItem.departName = this.userSelection[i].departName;
|
||||
@@ -369,8 +369,8 @@
|
||||
const array = [];
|
||||
for (let i = 0; i < tableDataTemp.length; i += 1) {
|
||||
let match = false;
|
||||
if(tableDataTemp[i]['name'] || tableDataTemp[i]['userNo']){
|
||||
match |= (tableDataTemp[i]['name'].includes(searchValue) || tableDataTemp[i]['userNo'].includes(searchValue));
|
||||
if(tableDataTemp[i]['realName'] || tableDataTemp[i]['userNo']){
|
||||
match |= (tableDataTemp[i]['realName'].includes(searchValue) || tableDataTemp[i]['userNo'].includes(searchValue));
|
||||
}
|
||||
if ( match ) {
|
||||
array.push({
|
||||
@@ -450,7 +450,6 @@
|
||||
this.$refs['upload'].clearFiles();//清除文件
|
||||
this.$refs['upload'].handleStart(files[0]);//选择文件后的赋值方法
|
||||
},
|
||||
// 上传
|
||||
submitUpload(){
|
||||
this.$refs.upload.submit();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user