Commit 9e5d9004 authored by 沈翠玲's avatar 沈翠玲

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-pad into dev

parents 19c3091b f94ae814
...@@ -44,12 +44,12 @@ export default { ...@@ -44,12 +44,12 @@ export default {
tableSelectData: [], tableSelectData: [],
tableColumn: [ tableColumn: [
{ {
type: 'radio', type: 'selection',
width: 40 width: 40
}, },
{ {
name: 'userName', name: 'userName',
label: '号', label: '号',
width: 160 width: 160
}, },
{ {
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
}, },
toggleRowSelection(checked, arr) { toggleRowSelection(checked, arr) {
this.tableSelectData = arr; this.tableSelectData = arr;
} }
} }
}; };
......
...@@ -1759,9 +1759,22 @@ export default { ...@@ -1759,9 +1759,22 @@ export default {
// this.$u.toast('刀具校验通过!'); // this.$u.toast('刀具校验通过!');
}, },
userDetermine() { userDetermine() {
console.log(this.$refs.userPersonnelRef.tableSelectData, 'this.$refs.userPersonnelRef.tableSelectData'); let nick= '';
this.usePersonData.nickName = this.$refs.userPersonnelRef.tableSelectData[0].nickName; let user= '';
this.usePersonData.userName = this.$refs.userPersonnelRef.tableSelectData[0]?.userName; const tableSelectData = JSON.parse(JSON.stringify(this.$refs.userPersonnelRef.tableSelectData))
const a= tableSelectData.length - 1;
tableSelectData.forEach((item) =>{
if(item.nickName ===tableSelectData[a].nickName){
nick=nick+item.nickName;
user=user+item.userName;
}else{
nick=nick+item.nickName+",";
user=user+item.userName+",";
}
});
this.usePersonData.nickName = nick;
this.usePersonData.userName = user;
}, },
stopReasonSubmit() { stopReasonSubmit() {
this.tableSelectData.forEach((item) => { this.tableSelectData.forEach((item) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment