|
@@ -48,7 +48,7 @@
|
|
|
<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="button-box">
|
|
|
- <p class="table-min-button" v-hasPermi="['laboratory:hardware5:edit']" @click="handleClick('',scope.row,'delete')">编辑</p>
|
|
|
+ <p class="table-min-button" v-hasPermi="['laboratory:hardware5:edit']" @click="handleClick('',scope.row,'edit')">编辑</p>
|
|
|
<p class="table-min-button" v-hasPermi="['laboratory:hardware5:remove']" @click="handleClick('',scope.row,'delete')">删除</p>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -213,6 +213,8 @@ export default {
|
|
|
let _this=this;
|
|
|
if(doType=='add'){//添加
|
|
|
_this.dialogVisible=true;
|
|
|
+ }else if(doType=='edit'){//编辑
|
|
|
+ _this.dialogVisible=true;
|
|
|
}else if(doType=='delete'){//删除
|
|
|
this.$confirm('是否确认删除当前数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|