处理clearable不起作用的冲突,删除我测试部分,保留曹鑫宇程序
This commit is contained in:
@@ -79,9 +79,6 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
if (this[carrier].length !== 0) {
|
||||
this[carrier] = response.data[0][select[0]]
|
||||
}
|
||||
})
|
||||
} else {
|
||||
requestData(param).then(response => { // 这个方法没什么难度,不注释了
|
||||
@@ -139,7 +136,7 @@ export default {
|
||||
// 3)接受值,数组,一般是['table','total','loading']顺序不能变
|
||||
Vue.prototype.getTable = function(requestData, param, e) {
|
||||
requestData(...param).then(response => {
|
||||
const data = response.data.rows ? response.data.rows : response.data
|
||||
const data = response.data.rows
|
||||
this[e[0]] = []
|
||||
this[e[1]] = 0
|
||||
if (data && data.length > 0) {
|
||||
@@ -159,9 +156,7 @@ export default {
|
||||
// console.log('暂无数据')
|
||||
}
|
||||
}).then(() => {
|
||||
if (this[e[2]]) {
|
||||
this[e[2]] = false
|
||||
}
|
||||
this[e[2]] = false
|
||||
})
|
||||
}
|
||||
// 添加表格数据
|
||||
|
||||
Reference in New Issue
Block a user