BUG 29108
This commit is contained in:
@@ -141,45 +141,6 @@ export default {
|
||||
},
|
||||
unitId: "",
|
||||
total: 10,
|
||||
colConfigs: [
|
||||
{prop: "shopName", label: "店铺名称", align: "left"},
|
||||
{
|
||||
prop: "shopkeeper",
|
||||
label: "店主",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
prop: "phone",
|
||||
label: "联系电话",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
prop: "shopAddress",
|
||||
label: "店铺地址",
|
||||
align: "left",
|
||||
width: 280,
|
||||
},
|
||||
{
|
||||
prop: "names",
|
||||
label: "店铺操作员",
|
||||
align: "left",
|
||||
},
|
||||
{
|
||||
prop: "status",
|
||||
label: "状态",
|
||||
align: "center",
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
"span",
|
||||
{
|
||||
class: "status-" + params.row.status,
|
||||
},
|
||||
this.$dict.getLabel("assessmentStartStatus", params.row.status)
|
||||
);
|
||||
},
|
||||
},
|
||||
{slot: "options", label: "操作", align: "center"},
|
||||
],
|
||||
tableData: [],
|
||||
dialog: {
|
||||
title: "",
|
||||
@@ -224,6 +185,22 @@ export default {
|
||||
...mapState(["user"]),
|
||||
rootArea() {
|
||||
return this.user.info.areaId?.replace(/(\d{6}).+/, '$1' + Array(7).join("0"))
|
||||
},
|
||||
colConfigs(){
|
||||
return [
|
||||
{prop: "shopName", label: "店铺名称", align: "left"},
|
||||
{prop: "shopkeeper", label: "店主", align: "center"},
|
||||
{prop: "phone", label: "联系电话", align: "center"},
|
||||
{prop: "areaName", label: "所在地区"},
|
||||
{prop: "shopAddress", label: "店铺地址", align: "left", width: 280},
|
||||
{prop: "names", label: "店铺操作员", align: "left"},
|
||||
{
|
||||
label: "状态",
|
||||
align: "center",
|
||||
render: (h, params) => h("span", {class: "status-" + params.row.status,}, this.$dict.getLabel("assessmentStartStatus", params.row.status))
|
||||
},
|
||||
{slot: "options", label: "操作", align: "center"},
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user