品规管理列表和删除接口联调

merge-requests/1/head
张鑫 5 years ago
parent 0aea6f7bcd
commit 6bd2e4c84c

@ -101,6 +101,10 @@ export default {
name: 'plc未连接列表', name: 'plc未连接列表',
method: 'GET' method: 'GET'
}, },
categoryList: {
url: '/category/page',
name: '分类列表',
method: 'POST'
},
} }

@ -67,10 +67,6 @@ const columns = [
title: '品类', title: '品类',
dataIndex: 'name', dataIndex: 'name',
}, },
{
title: '子类',
dataIndex: 'child',
},
{ {
title: '修改时间', title: '修改时间',
dataIndex: 'updateTime', dataIndex: 'updateTime',
@ -116,12 +112,12 @@ export default {
methods: { methods: {
handleChange(data) { handleChange(data) {
console.log(data) console.log(data)
// if (data.file.status == "done") { // if (data.file.status == "done") { //
// this.$message.success(data.file.response.message) this.$message.success(data.file.response.message)
// this.handleGetCameraIoList(); this.handleGetCameraIoList();
// } else if(data.file.status == 'error'){ // } else if (data.file.status == 'error') { //
// this.$message.error(data.file.response.message) this.$message.error(data.file.response.message)
// } }
}, },
handleGetCameraIoList(pagination) { handleGetCameraIoList(pagination) {
console.log(pagination) console.log(pagination)
@ -134,22 +130,22 @@ export default {
this.request(); this.request();
}, },
request(){ request(){
// this.$api.httpApi.getCameraIoList({ this.$api.httpApi.categoryList({
// data: { data: {
// page:this.pageNum, pageNum: this.pageNum,
// size:this.pageSize, pageSize: this.pageSize,
// } }
// }).then(res => { }).then(res => {
// const pagination = { ...this.pagination }; const pagination = {...this.pagination};
// pagination.total = res.data.total; pagination.total = res.data.total;
// this.data = res.data.list; this.data = res.data.list;
// this.pagination = pagination; this.pagination = pagination;
// res.data.list.forEach((value,index) => { res.data.list.forEach((value, index) => {
// value.pageNumber = this.pagination.current value.pageNumber = this.pagination.current
// }); });
// }).catch(err => { }).catch(err => {
//
// }); });
}, },
showModel(type,data){ showModel(type,data){
this.visible = true this.visible = true
@ -166,18 +162,18 @@ export default {
this.modelData=data this.modelData=data
}, },
delDosage(data){ delDosage(data){
// console.log(data.id) console.log(data.id)
// var id=data.id var id = data.id
// this.$axios.delete('/camera/config/'+id, { this.$axios.delete('/category/' + id, {
// data: {} data: {}
// }).then(res => { }).then(res => {
// if(res.code==200){ if (res.code == 200) {
// this.$message.success('IO'); this.$message.success('删除分类成功');
// this.handleGetCameraIoList() this.handleGetCameraIoList()
// } }
// }).catch(err => { }).catch(err => {
//
// }) })
}, },
}, },
components:{ components:{

Loading…
Cancel
Save