驾校二维码

caozong
zcx 1 year ago
parent 0a771cfa54
commit 6b22078098
  1. 6
      src/api/sch/school.js
  2. 10
      src/views/sch/school/index.vue

@ -39,5 +39,11 @@ export default {
url: `/sch/school/${id}`,
method: 'delete'
});
},
createCode(id){
return request({
url: `/sch/school/create/${id}`,
method: 'post'
});
}
};

@ -22,6 +22,11 @@
<el-table-column label="负责人" prop="leader" />
<el-table-column label="联系方式" prop="phone" />
<el-table-column label="备注" prop="remark" />
<el-table-column label="小程序二维码" prop="" >
<template slot-scope="scope">
<el-button v-hasPermi="['sch:school:create']" type="text" icon="el-icon-edit" @click="handleCreate(scope.row)">生成</el-button>
</template>
</el-table-column>
<el-table-column label="创建时间" width="160">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
@ -101,6 +106,11 @@ export default {
this.$refs.dialogForm.init(item);
});
},
handleCreate(item){
schoolApi.createCode(item.schoolId).then(resp => {
console.log(resp)
})
},
//
handleDelete(item) {
this.$modal

Loading…
Cancel
Save