| | |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitAttribute">确定</el-button> |
| | | <el-button @click="cancelSubmit">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | watch:{ |
| | | formData: { |
| | | handler(newval, oldval) { |
| | | console.log(newval) |
| | | // console.log(newval) |
| | | if (newval && newval.type === 'edit') { |
| | | if (this.formData.dataFlowType == 'accept') { |
| | | this.pushTypeList = [ |
| | |
| | | }) |
| | | const apiCall = that.formData.type == 'edit' ? edit : add; |
| | | const Message = that.formData.type == 'edit' ? "修改成功" : "保存成功"; |
| | | console.log( that.formData) |
| | | // console.log( that.formData) |
| | | apiCall(that.formData).then(res => { |
| | | that.$message.success(Message); |
| | | that.showSubmitDialog = false; |