|
|
|
|
@ -128,8 +128,18 @@
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:instrument:remove']"
|
|
|
|
|
v-if="scope.row.status == 0"
|
|
|
|
|
>隐藏
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:instrument:remove']"
|
|
|
|
|
v-if="scope.row.status == 1"
|
|
|
|
|
>解除隐藏
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -772,7 +782,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
const ids = row.id;
|
|
|
|
|
this.$modal.confirm('是否确认隐藏仪器列编号为"' + ids + '"的数据项?').then(function () {
|
|
|
|
|
return delInstrument(ids);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|