Commit df2859e4 by liangjianmin

解决bug

parent e86e3037
Showing with 6 additions and 5 deletions
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
</ul> </ul>
<div class="data-box th-all"> <div class="data-box th-all">
<!--匹配库存--> <!--匹配库存-->
<template v-if="active==0"> <template v-if="active==0" >
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed label="操作" width="108" align="center"> <el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="dcg" :class="{'disabled':scope.row.disabled}" <span class="dcg" :class="{'disabled':scope.row.disabled}"
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
</template> </template>
<!--历史报价--> <!--历史报价-->
<template v-else> <template v-else>
<el-table :data="historyList" border style="width: 100%"> <el-table :key="1" :data="historyList" border style="width: 100%">
<el-table-column fixed label="操作" width="108" align="center"> <el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span class="dcg disabled" @click="handle(scope.$index, scope.row)">确认</span> --> <!-- <span class="dcg disabled" @click="handle(scope.$index, scope.row)">确认</span> -->
...@@ -172,12 +172,12 @@ ...@@ -172,12 +172,12 @@
</el-table-column> </el-table-column>
<el-table-column fixed prop="goods_name" label="报价型号" width="200"></el-table-column> <el-table-column fixed prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column fixed prop="brand_name" label="报价品牌" width="200"></el-table-column> <el-table-column fixed prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" width="100"> <el-table-column fixed prop="status" label="状态" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">比价中</span> <span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span> <span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span> <span v-else-if="scope.row.status==3">已确认</span>
<span class="f-green" v-else-if="scope.row.status==4">已成单</span> <span v-else-if="scope.row.status==4" class="f-green" >已成单</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span> <span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span> <span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span> <span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
...@@ -541,6 +541,7 @@ ...@@ -541,6 +541,7 @@
this.active = index; this.active = index;
console.log(this.active) console.log(this.active)
this.page = 1; this.page = 1;
this.$forceUpdate();
if (index == 1) { if (index == 1) {
this.getHistory(); this.getHistory();
......
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 sign in to comment