Commit 7cd544a2 authored by dcy's avatar dcy

操作人回显

parent 545c4421
......@@ -57,7 +57,11 @@
<dict-tag :value="scope.row.orderBackVO.status" :type="DICT_TYPE.ORDER_STATUS" ></dict-tag>
</template>
</el-table-column>
<el-table-column label="操作人"></el-table-column>
<el-table-column label="操作人" prop="creator">
<template v-slot="{row}">
{{userList.find( i => row.creator == i.id).nickname}}
</template>
</el-table-column>
<el-table-column label="操作时间">
<template v-slot="{row}">
{{parseTime(row.createTime)}}
......@@ -85,6 +89,7 @@ import {
} from "@/api/ecw/associatedOrder";
import {getDictDatas,DICT_TYPE} from '@/utils/dict'
import Template from "@/views/cms/template";
import {listSimpleUsers} from "@/api/system/user";
export default {
name: "associatedOrder",
props:{
......@@ -114,7 +119,8 @@ export default {
list:[],
DICT_TYPE,
getDictDatas,
multipleSelection:[]
multipleSelection:[],
userList:[]
}
},
created() {
......@@ -125,13 +131,13 @@ export default {
this.orderDetails = r.data;
}
})
listSimpleUsers().then(r => this.userList = r.data)
},
methods:{
getList(){
guanlianList(this.params).then(r => {
if(r.code === 0){
this.list = r.data
console.log( this.list[0])
}
})
},
......
......@@ -57,7 +57,11 @@
<dict-tag :value="scope.row.orderBackVO.status" :type="DICT_TYPE.ORDER_STATUS" ></dict-tag>
</template>
</el-table-column>
<el-table-column label="操作人"></el-table-column>
<el-table-column label="操作人">
<template v-slot="{row}">
{{userList.find( i => row.creator == i.id).nickname}}
</template>
</el-table-column>
<el-table-column label="操作时间" prop="createTime">
<template v-slot="{row}">{{
parseTime(row.orderBackVO.createTime)
......@@ -85,6 +89,7 @@ import {
} from "@/api/ecw/mutexOrder";
import {getDictDatas,DICT_TYPE} from '@/utils/dict'
import Template from "@/views/cms/template";
import {listSimpleUsers} from "@/api/system/user";
export default {
name: "mutexOrder",
props:{
......@@ -104,7 +109,8 @@ export default {
list:[],
DICT_TYPE,
getDictDatas,
multipleSelection:[]
multipleSelection:[],
userList:[]
}
},
created() {
......@@ -115,6 +121,7 @@ export default {
this.orderDetails = r.data;
}
})
listSimpleUsers().then(r => this.userList = r.data)
},
methods:{
getList(){
......
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