|
@@ -422,20 +422,20 @@
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="80">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button
|
|
|
|
|
- v-no-more-click
|
|
|
|
|
- @click.native.prevent="
|
|
|
|
|
- deleteRow(scope.$index, AllUserTable)
|
|
|
|
|
- "
|
|
|
|
|
- type="text"
|
|
|
|
|
- size="small"
|
|
|
|
|
- >
|
|
|
|
|
- 移除
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+<!-- <el-table-column label="操作" width="80">-->
|
|
|
|
|
+<!-- <template slot-scope="scope">-->
|
|
|
|
|
+<!-- <el-button-->
|
|
|
|
|
+<!-- v-no-more-click-->
|
|
|
|
|
+<!-- @click.native.prevent="-->
|
|
|
|
|
+<!-- deleteRow(scope.$index, AllUserTable)-->
|
|
|
|
|
+<!-- "-->
|
|
|
|
|
+<!-- type="text"-->
|
|
|
|
|
+<!-- size="small"-->
|
|
|
|
|
+<!-- >-->
|
|
|
|
|
+<!-- 移除-->
|
|
|
|
|
+<!-- </el-button>-->
|
|
|
|
|
+<!-- </template>-->
|
|
|
|
|
+<!-- </el-table-column>-->
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -944,7 +944,7 @@ export default {
|
|
|
if (row.stepIndex == '3') {
|
|
if (row.stepIndex == '3') {
|
|
|
this.dialogForm.locker=''
|
|
this.dialogForm.locker=''
|
|
|
this.AllUserTable=[]
|
|
this.AllUserTable=[]
|
|
|
- this.newticketUserDTOList=[]
|
|
|
|
|
|
|
+ this.newticketUserDTOList=[]
|
|
|
this.open = true
|
|
this.open = true
|
|
|
|
|
|
|
|
const query = {
|
|
const query = {
|
|
@@ -1021,6 +1021,7 @@ export default {
|
|
|
console.log(val, '上锁人chage')
|
|
console.log(val, '上锁人chage')
|
|
|
if (val) {
|
|
if (val) {
|
|
|
// 操作选中角色发生变化
|
|
// 操作选中角色发生变化
|
|
|
|
|
+ this.newticketUserDTOList=[]
|
|
|
this.$set(this.dialogForm, this.dialogForm.locker, val)
|
|
this.$set(this.dialogForm, this.dialogForm.locker, val)
|
|
|
} else {
|
|
} else {
|
|
|
this.$set(this.dialogForm, this.dialogForm.locker, '')
|
|
this.$set(this.dialogForm, this.dialogForm.locker, '')
|
|
@@ -1051,6 +1052,12 @@ export default {
|
|
|
console.log(this.newticketUserDTOList, '清除后的用户');
|
|
console.log(this.newticketUserDTOList, '清除后的用户');
|
|
|
},
|
|
},
|
|
|
InSelectionChange(selection) {
|
|
InSelectionChange(selection) {
|
|
|
|
|
+ // 移除未选中的用户
|
|
|
|
|
+ this.AllUserTable = this.AllUserTable.filter((user) =>
|
|
|
|
|
+ selection.some((item) => item.userId === user.userId)
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ // 添加新的内部用户
|
|
|
selection.forEach((item) => {
|
|
selection.forEach((item) => {
|
|
|
if (!this.AllUserTable.some((user) => user.userId === item.userId)) {
|
|
if (!this.AllUserTable.some((user) => user.userId === item.userId)) {
|
|
|
this.AllUserTable.push({
|
|
this.AllUserTable.push({
|
|
@@ -1058,13 +1065,20 @@ export default {
|
|
|
userId: item.userId,
|
|
userId: item.userId,
|
|
|
userType: 0,
|
|
userType: 0,
|
|
|
userRole: 'jtcolocker'
|
|
userRole: 'jtcolocker'
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- console.log(this.AllUserTable, '内部人员')
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.AllUserTable, '内部人员');
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
OutSelectionChange(selection) {
|
|
OutSelectionChange(selection) {
|
|
|
|
|
+ // 移除未选中的用户
|
|
|
|
|
+ this.AllUserTable = this.AllUserTable.filter((user) =>
|
|
|
|
|
+ selection.some((item) => item.userId === user.userId)
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ // 添加新的外部用户
|
|
|
selection.forEach((item) => {
|
|
selection.forEach((item) => {
|
|
|
if (!this.AllUserTable.some((user) => user.userId === item.userId)) {
|
|
if (!this.AllUserTable.some((user) => user.userId === item.userId)) {
|
|
|
this.AllUserTable.push({
|
|
this.AllUserTable.push({
|
|
@@ -1072,10 +1086,11 @@ export default {
|
|
|
userId: item.userId,
|
|
userId: item.userId,
|
|
|
userType: 1,
|
|
userType: 1,
|
|
|
userRole: 'jtcolocker'
|
|
userRole: 'jtcolocker'
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- console.log(this.AllUserTable, '外部人员')
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.AllUserTable, '外部人员');
|
|
|
},
|
|
},
|
|
|
confirmAddUser() {
|
|
confirmAddUser() {
|
|
|
const data = {
|
|
const data = {
|