diff --git a/src/views/earlyManager/index.vue b/src/views/earlyManager/index.vue index 5d2e8c9..230810f 100644 --- a/src/views/earlyManager/index.vue +++ b/src/views/earlyManager/index.vue @@ -23,11 +23,11 @@
- 查询 + 查询 重置
- + @@ -39,17 +39,18 @@ - + @@ -83,7 +84,10 @@ export default { save: false, permission: false }, - apiObj: this.$API.orders.order.list, + list:{ + apiObj: {}, + column:[] + }, selection: [], params: { keyword: null @@ -121,8 +125,8 @@ export default { }, //删除 async table_del(row){ - var reqData = {id: row.id} - var res = await this.$API.demo.post.post(reqData); + const reqData = {id: row.id}; + const res = await this.$API.demo.post.post(reqData); if(res.code == 200){ this.$refs.table.refresh() this.$message.success("删除成功") @@ -130,7 +134,7 @@ export default { }, //批量删除 async batch_del(){ - this.$confirm(`确定删除选中的 ${this.selection.length} 项吗?如果删除项中含有子集将会被一并删除`, '提示', { + this.$confirm(`确定删除选中的 ${this.selection.length} 项吗?`, '提示', { type: 'warning' }).then(() => { const loading = this.$loading(); @@ -156,25 +160,10 @@ export default { }, 500) }, //搜索 - upsearch(){ + upSearch(){ }, - //根据ID获取树结构 - filterTree(id){ - var target = null; - function filter(tree){ - tree.forEach(item => { - if(item.id == id){ - target = item - } - if(item.children){ - filter(item.children) - } - }) - } - filter(this.$refs.table.tableData) - return target - }, + //本地更新数据 handleSaveSuccess(data, mode){ if(mode=='add'){ diff --git a/src/views/setting/log/index.vue b/src/views/setting/log/index.vue index 5863c8e..d40ff7f 100644 --- a/src/views/setting/log/index.vue +++ b/src/views/setting/log/index.vue @@ -1,25 +1,35 @@