Commit 9530f4a6 by 胡悦

Merge branch 'master' of 192.168.3.233:micro-customization-system/micro-trialrun

2 parents 69b89a9a 5e1d450c
...@@ -231,7 +231,8 @@ export default { ...@@ -231,7 +231,8 @@ export default {
this.$Common.exportExcel({ this.$Common.exportExcel({
url: `${store.state.baseURL}${SPECIALSHOP_API.EXPORT_TABLE}`, url: `${store.state.baseURL}${SPECIALSHOP_API.EXPORT_TABLE}`,
method: 'GET', method: 'GET',
data: this.searchForm data: this.searchForm,
fileName: '特约店列表.xlsx'
}) })
break break
case 'edit': case 'edit':
......
...@@ -47,9 +47,12 @@ ...@@ -47,9 +47,12 @@
slot="table-button" slot="table-button"
slot-scope="scope" slot-scope="scope"
> >
<!-- 未审核:展示通过和驳回
已审核:隐藏通过和驳回
isAdd为1时只展示原围栏,isAdd为2时展示原围栏和修改后围栏 -->
<template v-for="(j, idx) in testDriveTableParams.tableOption.btnList"> <template v-for="(j, idx) in testDriveTableParams.tableOption.btnList">
<!-- approvalStatus为1也就是未审核状态展示全部按钮 --> <!-- approvalStatus为1也就是未审核状态,且isAdd为2状态时,才展示全部按钮 -->
<template v-if="scope.scope.approvalStatus == 1 && j.remark !== 'viewOrigin'"> <template v-if="scope.scope.approvalStatus == 1 && scope.scope.isAdd == 2">
<el-button <el-button
:key="idx" :key="idx"
:type="j.type || 'text'" :type="j.type || 'text'"
...@@ -58,7 +61,9 @@ ...@@ -58,7 +61,9 @@
@click="btnClick(j.pType, scope.scope, j.remark)" @click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
<template v-if="(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2">
<!-- 未审核才展示通过和驳回 -->
<template v-if="(j.pType == 'pass' || j.pType == 'reject') && scope.scope.approvalStatus == 1">
<el-button <el-button
:key="idx" :key="idx"
:type="j.type || 'text'" :type="j.type || 'text'"
...@@ -67,8 +72,19 @@ ...@@ -67,8 +72,19 @@
@click="btnClick(j.pType, scope.scope, j.remark)" @click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<template v-if="(j.remark == 'viewUpdated') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1"> <!-- 审核未通过 isAdd 1: 只展示修改后的围栏 2: 展示查看原来和查看修改后原围栏 -->
<template v-if="j.remark == 'viewOrigin' && scope.scope.isAdd == 2">
<el-button
:key="idx"
:type="j.type || 'text'"
size="mini"
plain
@click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button>
</template>
<template v-if="j.remark == 'viewUpdated'">
<el-button <el-button
:key="idx" :key="idx"
:type="j.type || 'text'" :type="j.type || 'text'"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!