|
|
|
@ -37,14 +37,14 @@
|
|
|
|
|
margin-bottom: 8px;"
|
|
|
|
|
v-if="type != 2"
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" size="mini" icon="search" @click="selectDrugLevel"
|
|
|
|
|
style="text-align:right"
|
|
|
|
|
>选入药品层级
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" size="mini" icon="search" @click="addDrugLevel"
|
|
|
|
|
style="text-align:right"
|
|
|
|
|
>新增药品层级
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button type="primary" size="mini" icon="search" @click="selectDrugLevel"-->
|
|
|
|
|
<!-- style="text-align:right"-->
|
|
|
|
|
<!-- >选入药品层级-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button type="primary" size="mini" icon="search" @click="addDrugLevel"-->
|
|
|
|
|
<!-- style="text-align:right"-->
|
|
|
|
|
<!-- >新增药品层级-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
</div>
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
@ -123,32 +123,32 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="180px" fixed="right" v-if="type != 2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" v-if="scope.$index == selectedIndex " @click.stop="true"
|
|
|
|
|
@click.native="levelSave(scope.row)"
|
|
|
|
|
>保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
v-if="scope.$index != selectedIndex "
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
@click.native="rowChange(scope.$index,scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<!--:disabled=" scope.row.id != null"-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.stop="true"
|
|
|
|
|
@click.native="deleteLevel(scope.$index, scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="操作" width="180px" fixed="right" v-if="type != 2">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-button type="text" size="small" v-if="scope.$index == selectedIndex " @click.stop="true"-->
|
|
|
|
|
<!-- @click.native="levelSave(scope.row)"-->
|
|
|
|
|
<!-- >保存-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- v-if="scope.$index != selectedIndex "-->
|
|
|
|
|
<!-- @click.stop="true"-->
|
|
|
|
|
<!-- @click.native="rowChange(scope.$index,scope.row)"-->
|
|
|
|
|
<!-- >编辑-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
|
|
|
|
|
<!-- <!–:disabled=" scope.row.id != null"–>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.stop="true"-->
|
|
|
|
|
<!-- @click.native="deleteLevel(scope.$index, scope.row)"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|