| | |
| | | // 多选框选中数据
|
| | | handleSelectionChange(selection) {
|
| | | this.ids = selection.map(item => item.noticeId)
|
| | | this.single = selection.length!=1
|
| | | this.single = selection.length != 1
|
| | | this.multiple = !selection.length
|
| | | },
|
| | | /** 新增按钮操作 */
|
| | |
| | | })
|
| | | },
|
| | | /** 提交按钮 */
|
| | | submitForm: function() {
|
| | | submitForm() {
|
| | | this.$refs["form"].validate(valid => {
|
| | | if (valid) {
|
| | | if (this.form.noticeId != undefined) {
|
| | | updateNotice(this.form).then(response => {
|
| | | updateNotice(this.form).then(() => {
|
| | | this.$modal.msgSuccess("修改成功")
|
| | | this.open = false
|
| | | this.getList()
|
| | | })
|
| | | } else {
|
| | | addNotice(this.form).then(response => {
|
| | | addNotice(this.form).then(() => {
|
| | | this.$modal.msgSuccess("新增成功")
|
| | | this.open = false
|
| | | this.getList()
|