| | |
| | | <!--事件处置弹窗页面--> |
| | | <template> |
| | | <el-dialog |
| | | :title="title" |
| | |
| | | title:"事件处置", |
| | | form: {}, |
| | | visible: false, |
| | | ids: null, |
| | | eventgm: null, |
| | | option: { |
| | | emptyBtn: false, |
| | | submitText: "保存", |
| | |
| | | label: "事件状态", |
| | | prop: "state", |
| | | type: "select", |
| | | disabled:true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=EVENT_STATE", |
| | | dataType: "number", |
| | | props: { |
| | |
| | | prop: "remark", |
| | | type: "textarea", |
| | | span: 24, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入备注", |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | init(ids) { |
| | | init(eventgm) { |
| | | this.visible = true |
| | | this.ids = ids |
| | | this.eventgm = eventgm |
| | | this.form.state = 10 |
| | | }, |
| | | // 表单提交 |
| | | submit(row,done) { |
| | | var that = this |
| | | row['id'] = that.ids |
| | | row['id'] = that.eventgm.id |
| | | update(row).then(() => { |
| | | this.$refs.form.resetFields() |
| | | this.$emit("refreshOnLoad") |