Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
sgaqgl-vue
Commits
0571460d
Commit
0571460d
authored
Dec 18, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
培训计划,培训评估部分
parent
678b67b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
455 additions
and
457 deletions
+455
-457
edit.vue
src/views/train/assessment/edit.vue
+156
-74
index.vue
src/views/train/assessment/index.vue
+140
-175
participants.vue
src/views/train/assessment/participants.vue
+22
-40
edit.vue
src/views/train/planning/edit.vue
+108
-92
index.vue
src/views/train/planning/index.vue
+29
-76
No files found.
src/views/train/assessment/edit.vue
View file @
0571460d
<
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=
"24"
>
<el-form-item
label=
"标题"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"有效期至"
>
<el-date-picker
style=
"width: 100%;"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"编制单位"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
<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=
"gsid"
prop=
"gsid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<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=
"12"
>
<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=
"12"
>
<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=
"12"
>
<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=
"12"
>
<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=
"12"
>
<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=
"12"
>
<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=
"24"
>
<el-form-item
label=
"培训目标"
ref=
"pxmb"
prop=
"pxmb"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.pxmb"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<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=
"12"
>
<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=
"12"
>
<el-form-item
label=
"课时"
ref=
"pxsc"
prop=
"pxsc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pxsc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"主办单位"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
linkage
:linkParams=
"
{pid:form.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.bz"
></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
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqgl/pxglPxjhEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
/* 当前表单初始值,默认由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
:
{
}
}
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
methods
:
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/train/assessment/index.vue
View file @
0571460d
<
template
>
<div
class=
"min_full"
style=
"height: 140vh;"
>
<div
class=
"min_full"
style=
"height: 40%;"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
计划年份:
</span>
<el-input
style=
"width:60% ;"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
计划月份:
</span>
<el-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
授课人:
</span>
<el-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
培训方式:
</span>
<el-select></el-select>
</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>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"参与人员"
name=
"first"
>
<Participants
/>
</el-tab-pane>
<el-tab-pane
label=
"考试程序"
name=
"second"
>
<Cycle
/>
</el-tab-pane>
<el-tab-pane
label=
"培训小结"
name=
"third"
>
<Content
/>
</el-tab-pane>
<el-tab-pane
label=
"培训内容及效果评估"
name=
"fourth"
>
<PersonLiable
/>
</el-tab-pane>
</el-tabs>
<
template
>
<div
class=
"min_full"
style=
'flex-direction: row;border: 0px;overflow: auto;'
>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;height:140vh"
>
<TreeBase
:app=
'app'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"height: 140vh;width: calc(100% - 200px);border: 0px;"
>
<div
class=
"min_full"
style=
"height: 40%;"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
计划年份:
</span>
<el-input
style=
"width:60% ;"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
计划月份:
</span>
<el-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
授课人:
</span>
<el-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
培训方式:
</span>
<el-select></el-select>
</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>
<AttachFileShow
:app=
'app'
></AttachFileShow>
<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>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<el-tabs
v-model=
"activeName"
v-show=
"tabData.length>0&&rowItem"
>
<el-tab-pane
label=
"参与人员"
name=
"first"
>
<Participants
ref=
'participants'
/>
</el-tab-pane>
<el-tab-pane
label=
"考试程序"
name=
"second"
>
<Cycle
/>
</el-tab-pane>
<el-tab-pane
label=
"培训小结"
name=
"third"
>
<Content
/>
</el-tab-pane>
<el-tab-pane
label=
"培训内容及效果评估"
name=
"fourth"
>
<PersonLiable
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
import
{
doQueryPxjl
,
doAddPxjl
,
doUpdatePxjl
,
doDeletePxjl
}
from
'@/api/train/assessment.js'
;
import
{
QueryBm
,
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
Participants
from
'./participants.vue'
...
...
@@ -101,7 +108,7 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
...
...
@@ -112,112 +119,70 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
/aqgl/pxgl/pxjh
'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
bmid
:
''
},
/* 树的标题 */
treeTitle
:
'部门列表'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'bmmc'
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'计划年份'
,
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
prop
:
'whsj'
,
label
:
'计划月份'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'培训项目'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训人数'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训目标'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训方式'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训时间'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训课时'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'授课人'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'培训单位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'备注'
,
width
:
'100'
},
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"培训项目"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"培训对象"
,
prop
:
"pxdx"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"培训人数"
,
prop
:
"pxrs"
,
fieldType
:
"int"
,
width
:
100
},
{
label
:
"培训类型"
,
prop
:
"type"
,
fieldType
:
"ftString"
,
width
:
160
},
{
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
:
160
},
{
label
:
"授课人"
,
prop
:
"skrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"课时"
,
prop
:
"pxsc"
,
fieldType
:
"float"
},
{
label
:
"主办单位"
,
prop
:
"bmName"
,
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
:
{
handleClick
(
val
){
},
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
selectedTree
(
e
){
this
.
queryParams
.
bmid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
this
.
$nextTick
(()
=>
{
this
.
$refs
.
participants
.
queryParams
.
id
=
e
.
id
this
.
$refs
.
participants
.
$refs
[
'TablePager'
].
pageQuery
()
})
},
query
:
doQueryPxjl
,
/* 基础增*/
apiAdd
:
doAddPxjl
,
/* 基础更新*/
apiUpdate
:
doUpdatePxjl
,
/* 删除操作*/
apiDelete
:
doDeletePxjl
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
...
...
src/views/train/assessment/participants.vue
View file @
0571460d
...
...
@@ -2,13 +2,10 @@
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<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>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<AddButton
ref=
"add"
:app=
'this'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'this'
></EditButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
...
...
@@ -23,51 +20,36 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
doQueryPxry
}
from
'@/api/train/assessment.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
import
{
tableMixin
_noapp
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
mixins
:
[
tableMixin_noapp
],
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'
kzzx/appversion
'
,
baseUrl
:
'
aqgl/pxgl/pxjh/queryPxry
'
,
/* 查询参数*/
queryParams
:
{},
queryParams
:
{
},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'
app
id'
,
prop
:
'
user
id'
,
label
:
'人员编号'
,
width
:
'120'
},
{
prop
:
'name'
,
prop
:
'
user
name'
,
label
:
'人员姓名'
,
width
:
'120'
}
...
...
@@ -76,13 +58,13 @@
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
query
:
doQueryPxry
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
//
apiAdd: AddAppversion,
/
/ /
* 基础更新*/
//
apiUpdate: UpdateAppversion,
/
/ /
* 删除操作*/
//
apiDelete: DelAppversion,
/* 初始化赋值操作*/
},
/* 注册组件*/
...
...
src/views/train/planning/edit.vue
View file @
0571460d
<
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=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户名称"
ref=
"username"
prop=
"username"
>
<el-input
:readonly=
"readonly"
v-model=
"form.username"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
:span=
"24"
label=
"部门"
>
<el-select
style=
"width: 100%;"
v-model=
"form.bmid"
placeholder=
""
>
<el-option
v-for=
"(item,index) in bmList"
:key=
"item.id"
:label=
"item.bmmc"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电话"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"邮箱"
>
<el-input
:readonly=
"readonly"
v-model=
"form.email"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
<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=
"24"
>
<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=
"24"
>
<el-form-item
label=
"培训反馈"
ref=
"pxfk"
prop=
"pxfk"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.pxfk"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"培训内容"
ref=
"pxnr"
prop=
"pxnr"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.pxnr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<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=
"gsid"
prop=
"gsid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
linkage
:linkParams=
"
{pid:form.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"培训计划"
ref=
"jhid"
prop=
"jhid"
>
<el-input
type=
'textarea'
: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
()
{
this
.
form
.
bmid
=
this
.
app
.
queryParams
.
bmid
if
(
this
.
form
.
bmid
==
'root'
){
this
.
form
.
bmid
=
''
}
this
.
app
.
apiTreeQuery
({}).
then
(
res
=>
{
this
.
bmList
=
res
.
data
.
records
/* 默认选中 */
})
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
data
()
{
return
{
},
/* 组件名称*/
name
:
"aqglPxglPxjlEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 额外初始化,根据需求*/
bmList
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
bmid
:
''
,
userid
:
''
,
username
:
''
,
phone
:
''
,
email
:
''
,
bz
:
""
,
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//培训日期
pxrq
:
new
Date
().
getTime
(),
//培训反馈
pxfk
:
''
,
//培训内容
pxnr
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
''
,
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
''
,
//系统版本
sysversion
:
''
,
//附件数
attachcount
:
''
,
//公司编码
gsid
:
''
,
//部门编码
bmid
:
''
,
//培训计划
jhid
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
}
}
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
userid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
username
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
methods
:
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/train/planning/index.vue
View file @
0571460d
...
...
@@ -38,6 +38,7 @@
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileShow
:app=
'app'
></AttachFileShow>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
...
...
@@ -56,13 +57,16 @@
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/train/planning.js'
;
import
{
QueryUser
,
AddUser
,
DeleteUser
,
UpdateUser
,
QueryBm
,
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -83,7 +87,7 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/user
'
,
baseUrl
:
'
/aqgl/pxgl/pxjl
'
,
/* 查询参数*/
queryParams
:
{
...
...
@@ -95,70 +99,19 @@
label
:
'bmmc'
},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'userid'
,
label
:
'用户编码'
,
width
:
'120'
},
{
prop
:
'username'
,
label
:
'姓名'
,
width
:
'160'
},
{
prop
:
'bmmc'
,
label
:
'所属部门'
,
width
:
'160'
},
{
prop
:
'phone'
,
label
:
'电话'
,
width
:
'160'
},
{
prop
:
'email'
,
label
:
'邮箱'
,
width
:
'160'
},
{
prop
:
'zt'
,
label
:
'状态'
,
width
:
'160'
},
{
prop
:
'login'
,
label
:
'登录用户'
,
width
:
'160'
,
formatter
(
row
,
column
,
cellValue
,
index
)
{
let
value
=
''
if
(
cellValue
==
'Y'
){
value
=
'登录用户'
}
else
{
value
=
'非登录用户'
}
return
value
},
},
{
prop
:
'tyrq'
,
label
:
'停用日期'
,
width
:
'120'
,
...
this
.
$common
(
'ftDate'
)
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'bz'
,
label
:
'备注'
,
},
tableTitle
:
[
{
label
:
"培训日期"
,
prop
:
"pxrq"
,
fieldType
:
"ftDateTime"
,
width
:
200
},
{
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
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"部门编码"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"培训计划"
,
prop
:
"jhid"
,
fieldType
:
"ftString"
,
width
:
192
},
]
}
},
...
...
@@ -170,13 +123,13 @@
/* 基础查询*/
query
:
QueryUser
,
/* 基础增*/
apiAdd
:
AddUser
,
/* 基础更新*/
apiUpdate
:
UpdateUser
,
/* 删除操作*/
apiDelete
:
DeleteUser
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
/* 初始化赋值操作*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment