Commit a2973da8 authored by 邓春圆's avatar 邓春圆

品牌列表添加修改时间,修改人,创建人

parent be9a993b
...@@ -65,7 +65,23 @@ ...@@ -65,7 +65,23 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> </el-table-column>
<el-table-column :label="$t('修改时间')" align="center" prop="createTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.updateTime) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('修改人')" align="center" prop="updater" width="180">
<template v-slot="{row}">
{{allSimplList.length && allSimplList.find(i => i.id == row.updater).nickname}}
</template>
</el-table-column>
<el-table-column :label="$t('创建人')" align="center" prop="creator" width="180">
<template v-slot="{row}">
{{allSimplList.length && allSimplList.find(i => i.id == row.creator).nickname}}
</template>
</el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleEmpower(scope.row)" v-show="scope.row.filing === '1'" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleEmpower(scope.row)" v-show="scope.row.filing === '1'"
v-hasPermi="['ecw:product-brank:update']">{{ $t('添加授权客户') }}</el-button> v-hasPermi="['ecw:product-brank:update']">{{ $t('添加授权客户') }}</el-button>
...@@ -143,6 +159,7 @@ import {getProductTypeList} from "@/api/ecw/productType" ...@@ -143,6 +159,7 @@ import {getProductTypeList} from "@/api/ecw/productType"
import {getProductList} from "@/api/ecw/product" import {getProductList} from "@/api/ecw/product"
import BrandForm from "@/views/ecw/productBrank/BrandForm" import BrandForm from "@/views/ecw/productBrank/BrandForm"
import Empower from "@/views/ecw/productBrank/Empower" import Empower from "@/views/ecw/productBrank/Empower"
import {listAllSimpl} from "@/api/system/user";
export default { export default {
name: "ProductBrank", name: "ProductBrank",
...@@ -194,7 +211,8 @@ export default { ...@@ -194,7 +211,8 @@ export default {
showEmpower: false, showEmpower: false,
empowerId: null, empowerId: null,
empowerTitle: '' empowerTitle: '',
allSimplList:[],
}; };
}, },
created() { created() {
...@@ -204,6 +222,9 @@ export default { ...@@ -204,6 +222,9 @@ export default {
}) })
getProductList().then(r => { getProductList().then(r => {
this.productList = r.data this.productList = r.data
});
listAllSimpl().then(r => {
this.allSimplList = r.data
}) })
}, },
methods: { methods: {
......
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