|
@@ -56,11 +56,11 @@
|
|
|
<span v-else>已启用</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="160" sortable>
|
|
|
+ <el-table-column label="操作" align="center" width="160">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="small" type="primary" @click="openEnable(scope.$index)" :disabled="scope.row.isUse == 1">启用</el-button>
|
|
|
- <el-button size="small" @click="showEdit(scope.$index, scope.row, scope.row.isUse == 1)">修改</el-button>
|
|
|
- <!-- <el-button type="danger" size="small">删除</el-button> -->
|
|
|
+ <el-button size="small" v-if="scope.row.modelNo != null" type="primary" @click="openEnable(scope.$index)">启用</el-button>
|
|
|
+ <!-- :disabled="scope.row.isUse == 1" -->
|
|
|
+ <el-button size="small" :style="scope.row.modelNo!=null?'':'float:right;margin-right:6px'" @click="showEdit(scope.$index, scope.row, scope.row.isUse == 1)">修改</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|