|
@@ -99,8 +99,7 @@
|
|
|
<el-dropdown-item v-if="versionField() != 'xiBeiNongLinDaXue'" style="height:36px;line-height:36px;width:90px;text-align: center" command="2">物联配置</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="versionField() != 'xiBeiNongLinDaXue'" style="height:36px;line-height:36px;width:90px;text-align: center" command="3" v-hasPermi="['laboratory:subjectmaterial:add']">准入配置</el-dropdown-item>
|
|
|
<el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="4" v-hasPermiAnd="['laboratory:subject:query','laboratory:subject:edit']">编辑</el-dropdown-item>
|
|
|
- <el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="5"
|
|
|
- v-hasPermi="['laboratory:subject:remove']">删除</el-dropdown-item>
|
|
|
+ <el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="5">删除</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<p class="table-button-null"></p>
|
|
@@ -1059,6 +1058,7 @@ export default {
|
|
|
break;
|
|
|
case "5":
|
|
|
console.log('删除');
|
|
|
+ this.delSubject(row);
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -1072,10 +1072,13 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- delSubject(row.id).then(response => {
|
|
|
- self.msgSuccess("操作成功");
|
|
|
- self.getList();
|
|
|
- });
|
|
|
+ for(let i=0;i<self.subjectList.length;i++){
|
|
|
+ if(self.subjectList[i].id == row.id){
|
|
|
+ self.subjectList.splice(i,1);
|
|
|
+ self.msgSuccess("操作成功");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
}).then(() => {
|
|
|
}).catch(() => {
|
|
|
});
|