选入药品逻辑优化

dev_招标
qiuyt 3 months ago
parent 10ad06b7e1
commit a3d31f995b

@ -40,10 +40,10 @@
style="text-align:right" style="text-align:right"
>选入药品层级 >选入药品层级
</el-button> </el-button>
<el-button type="primary" size="mini" icon="search" @click="addDrugLevel" <!-- <el-button type="primary" size="mini" icon="search" @click="addDrugLevel"-->
style="text-align:right" <!-- style="text-align:right"-->
>新增药品层级 <!-- >新增药品层级-->
</el-button> <!-- </el-button>-->
</div> </div>
<el-table <el-table
v-loading="loading" v-loading="loading"

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

Loading…
Cancel
Save