Commit 678b67b4 authored by dingyoujian's avatar dingyoujian

培训相关生成代码

parent 8f55b9c9
/* 查询培训人员及得分,设计书培训反馈功能,参与人员/考试成绩 */
import request from "common/src/utils/request";
/* 查询 */
export function doQuery(query) {
return request({
url: '/aqgl/pxgl/pxjh/query',
method: 'post',
data: query||{}
})
}
export function doQueryPxry(query) {
return request({
url: '/aqgl/pxgl/pxjh/queryPxry',
method: 'post',
data: query||{}
})
}
/* 查询培训内容及效果评估 */
export function doQueryPxjl(query) {
return request({
url: '/aqgl/pxgl/pxjh/queryPxjl',
method: 'post',
data: query||{}
})
}
/* 更新 */
export function doUpdatePxjl(query) {
return request({
url: '/aqgl/pxgl/pxjl/update',
method: 'post',
data: query||{}
})
}
export function doAddPxjl(query) {
return request({
url: '/aqgl/pxgl/pxjl/add',
method: 'post',
data: query||{}
})
}
export function doDeletePxjl(query) {
return request({
url: '/aqgl/pxgl/pxjl/delete',
method: 'post',
data: query||{}
})
}
import request from 'common/src/utils/request'
/* 查询 */
export function doQuery(query) {
return request({
url: '/aqgl/pxgl/pxjh/query',
method: 'post',
data: query||{}
})
}
/* 更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/pxgl/pxjh/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/pxgl/pxjh/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/pxgl/pxjh/delete',
method: 'post',
data: query||{}
})
}
......@@ -824,7 +824,7 @@ export const powerRoutes=[
component:'train/tsubject/index',
hidden:false,
meta:{
"title": "培训项目",
"title": "题库维护",
"icon": "",
"noCache": false,
"link": null,
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="公司编码" ref="gsid" prop="gsid">
<el-input :readonly="readonly" v-model="form.gsid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="培训项目" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="培训对象" ref="pxdx" prop="pxdx">
<el-input :readonly="readonly" v-model="form.pxdx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="培训人数" ref="pxrs" prop="pxrs">
<el-input :readonly="readonly" v-model="form.pxrs" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="培训类型" ref="type" prop="type">
<el-input :readonly="readonly" v-model="form.type" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="年度" ref="year" prop="year">
<el-input :readonly="readonly" v-model="form.year" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="月份" ref="month" prop="month">
<el-input :readonly="readonly" v-model="form.month" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="季度" ref="quarter" prop="quarter">
<el-input :readonly="readonly" v-model="form.quarter" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="培训目标" ref="pxmb" prop="pxmb">
<el-input :readonly="readonly" v-model="form.pxmb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="培训方式" ref="pxfs" prop="pxfs">
<el-input :readonly="readonly" v-model="form.pxfs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="授课人" ref="skrid" prop="skrid">
<el-input :readonly="readonly" v-model="form.skrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="课时" ref="pxsc" prop="pxsc">
<el-input :readonly="readonly" v-model="form.pxsc" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="主办单位" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqgl/pxglPxjhEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//公司编码
gsid:'',
//培训项目
name:'',
//培训对象
pxdx:'',
//培训人数
pxrs:'',
//培训类型
type:'',
//年度
year:'',
//月份
month:'',
//季度
quarter:'',
//培训目标
pxmb:'',
//培训方式
pxfs:'',
//授课人
skrid:'',
//课时
pxsc:'',
//主办单位
bmid:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//附件数
attachcount:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQueryPxjl,
doAddPxjl,
doUpdatePxjl,
doDeletePxjl
} from '@/api/train/planning.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/pxglPxjh',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/pxgl/pxjh',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "公司编码", prop: "gsid", fieldType: "ftString",width:192},
{label: "培训项目", prop: "name", fieldType: "ftString",width:300},
{label: "培训对象", prop: "pxdx", fieldType: "ftString",width:300},
{label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "培训类型", prop: "type", fieldType: "ftString",width:60},
{label: "年度", prop: "year", fieldType: "int"},
{label: "月份", prop: "month", fieldType: "int"},
{label: "季度", prop: "quarter", fieldType: "int"},
{label: "培训目标", prop: "pxmb", fieldType: "ftString",width:300},
{label: "培训方式", prop: "pxfs", fieldType: "ftString",width:60},
{label: "授课人", prop: "skrid", fieldType: "ftString",width:192},
{label: "课时", prop: "pxsc", fieldType: "float"},
{label: "主办单位", prop: "bmid", fieldType: "ftString",width:192},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "附件数", prop: "attachcount", fieldType: "int"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="培训日期" ref="pxrq" prop="pxrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.pxrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="培训反馈" ref="pxfk" prop="pxfk">
<el-input :readonly="readonly" v-model="form.pxfk" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="培训内容" ref="pxnr" prop="pxnr">
<el-input :readonly="readonly" v-model="form.pxnr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="公司编码" ref="gsid" prop="gsid">
<el-input :readonly="readonly" v-model="form.gsid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="部门编码" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="培训计划" ref="jhid" prop="jhid">
<el-input :readonly="readonly" v-model="form.jhid" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqglPxglPxjlEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//培训日期
pxrq:new Date().getTime(),
//培训反馈
pxfk:'',
//培训内容
pxnr:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//附件数
attachcount:'',
//公司编码
gsid:'',
//部门编码
bmid:'',
//培训计划
jhid:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/train/planning.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglPxglPxjl',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/pxgl/pxjl',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "培训日期", prop: "pxrq", fieldType: "ftDateTime"},
{label: "培训反馈", prop: "pxfk", fieldType: "ftString",width:300},
{label: "培训内容", prop: "pxnr", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "公司编码", prop: "gsid", fieldType: "ftString",width:192},
{label: "部门编码", prop: "bmid", fieldType: "ftString",width:192},
{label: "培训计划", prop: "jhid", fieldType: "ftString",width:192},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
......@@ -82,7 +82,7 @@
},
/* 组件名称*/
name: "aqgl/pxglPxstEdit",
name: "aqglPxglPxstEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
......@@ -97,7 +97,7 @@
form: {
//ID
id:'',
//试题类型
//试题类型
type:'',
//题库编码
mid:'',
......
......@@ -53,7 +53,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/pxglPxst',
name: 'aqglPxglPxst',
/* 初始额外赋值*/
async mounted() {
......
......@@ -66,7 +66,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/pxglPxst',
name: 'aqglPxglPxst',
/* 初始额外赋值*/
async mounted() {
......
......@@ -47,7 +47,7 @@ import {
}},
methods: {
drexcel(){
let that=this
let input = document.createElement('input');
input.type='file'
......@@ -81,7 +81,7 @@ import {
},
save(){
if(!this.xmid){
this.$warning('请选中一条培训项目')
this.$warning('请选中题库')
}else{
this.drexcel()
}
......
......@@ -124,7 +124,7 @@
},
{
prop: 'whr',
label: '培训项目',
label: '·培训项目',
width: '100'
},
{
......
......@@ -49,7 +49,7 @@
},
/* 组件名称*/
name: "aqgl/pxglPxxmEdit",
name: "aqglPxglPxxmEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
......
......@@ -53,7 +53,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/pxglPxxm',
name: 'aqglPxglPxxm',
/* 初始额外赋值*/
async mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment