隐藏仪器

master
382696293@qq.com 2 years ago
parent 83b3448e36
commit dfc896f341

@ -234,7 +234,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteWxInstrumentByIds" parameterType="String"> <delete id="deleteWxInstrumentByIds" parameterType="String">
delete from wx_instrument where id in UPDATE wx_instrument SET status = 1 where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

@ -116,7 +116,7 @@ public class WxInstrumentController extends BaseController {
} }
/** /**
* *
*/ */
@RequiresPermissions("system:instrument:remove") @RequiresPermissions("system:instrument:remove")
@Log(title = "仪器列", businessType = BusinessType.DELETE) @Log(title = "仪器列", businessType = BusinessType.DELETE)

@ -773,11 +773,11 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除仪器列编号为"' + ids + '"的数据项?').then(function () { this.$modal.confirm('是否确认隐藏仪器列编号为"' + ids + '"的数据项?').then(function () {
return delInstrument(ids); return delInstrument(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("隐藏成功");
}).catch(() => { }).catch(() => {
}); });
}, },

Loading…
Cancel
Save