feat: 门店详情
This commit is contained in:
@@ -37,14 +37,14 @@
|
|||||||
class="mt-16"
|
class="mt-16"
|
||||||
:tableData="tableData1"
|
:tableData="tableData1"
|
||||||
:is-show-pagination="false"
|
:is-show-pagination="false"
|
||||||
:col-configs="colConfigs1">
|
:col-configs="colConfigs">
|
||||||
</ai-table>
|
</ai-table>
|
||||||
<label class="aibar-left">2、负面清单</label>
|
<label class="aibar-left">2、负面清单</label>
|
||||||
<ai-table
|
<ai-table
|
||||||
class="mt-16"
|
class="mt-16"
|
||||||
:tableData="tableData2"
|
:tableData="tableData2"
|
||||||
:is-show-pagination="false"
|
:is-show-pagination="false"
|
||||||
:col-configs="colConfigs2">
|
:col-configs="colConfigs">
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
</template>
|
</template>
|
||||||
@@ -65,37 +65,44 @@ export default {
|
|||||||
fileList: []
|
fileList: []
|
||||||
},
|
},
|
||||||
tableData1: [],
|
tableData1: [],
|
||||||
colConfigs1:[
|
colConfigs: [
|
||||||
{ prop: 'integralUserName', label: '清单类型', align: 'center' },
|
{prop: 'listType', label: '清单类型', align: 'center'},
|
||||||
{ prop: 'areaName', label: '状态', align: 'center' },
|
{
|
||||||
{ prop: 'girdName', label: '分数', align: 'center' },
|
prop: 'status', label: '状态', align: 'center', render: (h, {row}) => {
|
||||||
|
if (row.status === '1') {
|
||||||
|
return h('i', {
|
||||||
|
class: "el-icon-circle-check",
|
||||||
|
style: 'font-size:18px'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{prop: 'score', label: '分数', align: 'center'},
|
||||||
],
|
],
|
||||||
tableData2: [],
|
tableData2: [],
|
||||||
colConfigs2:[
|
|
||||||
{ prop: 'integralUserName', label: '清单类型', align: 'center' },
|
|
||||||
{ prop: 'areaName', label: '状态', align: 'center' },
|
|
||||||
{ prop: 'girdName', label: '分数', align: 'center' },
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('evaluatorType').then(() => {
|
this.$dict.load('evaluatorType').then(() => {
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.getScoredetail()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async getScoredetail(){
|
async getList() {
|
||||||
try {
|
try {
|
||||||
const {code,data} = await this.instance.post('/app/appscoredetails/queryDetailById',null,{
|
const {code, data: {records}} = await this.instance.post('/app/appscoredetails/list', null, {
|
||||||
params: {
|
params: {
|
||||||
id:this.params.shopId
|
shopId: this.params.shopId,
|
||||||
|
pages: 1000
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(code===0){
|
if (code === 0 && records) {
|
||||||
|
this.tableData1 = records?.filter(item => item.type === '1')
|
||||||
|
this.tableData2 = records?.filter(item => item.type === '0')
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user