|
|
@@ -48,7 +48,7 @@
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
<el-button type="primary" size="mini" @click="deleteEntity(scope.row)">删除</el-button>
|
|
|
</div>
|
|
|
- <el-button slot="reference" v-if="scope.row.Status=='0' || scope.row.Status=='' || scope.row.Status=='-1' || scope.row.Status=='-2' || scope.row.Status=='-4'" type="text" title="删除" style="margin-left:10px" size="mini" icon="el-icon-delete">删除</el-button>
|
|
|
+ <el-button slot="reference" :disabled="checkStatus(scope.row.Status)" type="text" title="删除" style="margin-left:10px" size="mini" icon="el-icon-delete">删除</el-button>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -925,6 +925,13 @@
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ checkStatus(val){
|
|
|
+ if (val=='0' || val=='' || val=='-1' || val=='-2' || val=='-4'){
|
|
|
+ return false
|
|
|
+ }else{
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
initDatas() {
|
|
|
//分页及列表条件
|
|
|
let params = {
|