This commit is contained in:
lixin
2018-11-27 15:47:20 +08:00
22 changed files with 279 additions and 168 deletions

View File

@@ -167,6 +167,7 @@ export default {
// 4) 回调函数,必须
Vue.prototype.addTable = function(requestData, param, form, callback) {
if (type(callback) === 'function' && type(requestData) === 'function' && type(form) === 'string') {
console.log(this.$refs[form])
this.$refs[form].validate((valid) => {
if (valid) {
requestData(...param).then(response => {