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
d83f64da
Commit
d83f64da
authored
Nov 29, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事件库更新
parent
90d29caa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
46 deletions
+59
-46
edit.vue
src/views/riskPrecontrol/maintenanceRisk/edit.vue
+8
-8
index.vue
src/views/riskPrecontrol/maintenanceRisk/index.vue
+11
-4
edit.vue
src/views/riskPrecontrol/queryRisk/edit.vue
+16
-16
index.vue
src/views/riskPrecontrol/queryRisk/index.vue
+23
-17
contentEdit.vue
src/views/riskPrecontrol/screeningCriteria/contentEdit.vue
+1
-1
No files found.
src/views/riskPrecontrol/maintenanceRisk/edit.vue
View file @
d83f64da
...
...
@@ -46,15 +46,14 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"true"
src=
'/kzzx/bm/query'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
-->
<el-form-item
label=
"公司"
ref=
"gsid"
prop=
"gsid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
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=
"8"
>
<el-form-item
label=
"
车间"
ref=
"cjid"
prop=
"cj
id"
>
<
CjSelect
:readonly=
"readonly"
:dyApp=
'this'
v-model=
'form.cjid'
style=
"width: 100%;"
></Cj
Select>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.cjid"
></el-input>
-->
<el-form-item
label=
"
班组"
ref=
"bmid"
prop=
"bm
id"
>
<
RelSelect
linkage
:linkParams=
"
{pid:form.gsid}" src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" >
</Rel
Select>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -65,8 +64,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"事故
日期
"
ref=
"sgrq"
prop=
"sgrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
v-model=
"form.sgrq"
></el-date-picker>
<el-form-item
label=
"事故
时间
"
ref=
"sgrq"
prop=
"sgrq"
>
<el-date-picker
type=
"datetime"
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
v-model=
"form.sgrq"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -101,6 +100,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
gsid
:
''
,
//ID
id
:
''
,
//风险类型
...
...
src/views/riskPrecontrol/maintenanceRisk/index.vue
View file @
d83f64da
...
...
@@ -79,10 +79,13 @@
/* 查询参数*/
queryParams
:
{
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
()
jsrq
:
new
Date
().
getTime
()
},
/* 表格标题对应参数*/
tableTitle
:
[
/* 事故时间*/
{
label
:
"事故时间"
,
prop
:
"sgrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/aqgl/fxyk/shlx/query'
,
label
:
'name'
,
value
:
'id'
}},
...
...
@@ -94,10 +97,14 @@
{
label
:
"轻伤人数"
,
prop
:
"qsrs"
,
fieldType
:
"int"
},
{
label
:
"直接经济损失"
,
prop
:
"zjjjss"
,
fieldType
:
"float"
},
{
label
:
"损失工作日"
,
prop
:
"gzrss"
,
fieldType
:
"float"
},
{
label
:
"部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/kzzx/bm/query'
,
label
:
'bmmc'
,
value
:
'id'
/* 公司*/
{
label
:
"公司"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryGs'
,
label
:
'bmmc'
,
value
:
'id'
}},
/* 班组*/
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"车间编码"
,
prop
:
"cjid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"登记人"
,
prop
:
"djrid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/kzzx/user/query'
,
label
:
'username'
,
value
:
'userid'
}},
...
...
src/views/riskPrecontrol/queryRisk/edit.vue
View file @
d83f64da
...
...
@@ -44,29 +44,28 @@
<el-input
type=
"number"
:readonly=
"readonly"
v-model=
"form.gzrss"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"true"
src=
'/kzzx/bm/query'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"车间"
ref=
"cjid"
prop=
"cjid"
>
<CjSelect
:readonly=
"readonly"
:dyApp=
'this'
v-model=
'form.cjid'
style=
"width: 100%;"
></CjSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.cjid"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"公司"
ref=
"gsid"
prop=
"gsid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
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=
"8"
>
<el-form-item
label=
"班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
linkage
:linkParams=
"
{pid:form.gsid}" src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"登记人"
ref=
"djrid"
prop=
"djrid"
>
<RelSelect
src=
'/kzzx/user/query'
clearable
:match=
"
{value:'userid',label:'username'}" v-model='form.djrid' >
</RelSelect>
<RelSelect
src=
'/kzzx/user/query'
filterable
clearable
:match=
"
{value:'userid',label:'username'}" v-model='form.djrid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"事故
日期
"
ref=
"sgrq"
prop=
"sgrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
v-model=
"form.sgrq"
></el-date-picker>
<el-form-item
label=
"事故
时间
"
ref=
"sgrq"
prop=
"sgrq"
>
<el-date-picker
type=
"datetime"
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
v-model=
"form.sgrq"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -101,6 +100,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
gsid
:
''
,
//ID
id
:
''
,
//风险类型
...
...
src/views/riskPrecontrol/queryRisk/index.vue
View file @
d83f64da
...
...
@@ -9,26 +9,27 @@
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.ksrq"
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.ksrq"
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<
!--
<PrintButton
:app=
'app'
></PrintButton>
--
>
<
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>
<!--
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
-->
<!-- 额外按钮-->
</el-row>
...
...
@@ -77,29 +78,36 @@
baseUrl
:
'/aqgl/fxsj'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
()
},
/* 表格标题对应参数*/
tableTitle
:
[
/* 事故时间*/
{
label
:
"事故时间"
,
prop
:
"sgrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/aqgl/fxyk/shlx/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"风险性质"
,
prop
:
"fxxz"
,
fieldType
:
"ftString"
,
width
:
240
,
transform
:{
url
:
'/aqgl/fxyk/fxsj/init/shxz'
,
label
:
'name'
,
value
:
'id'
}},
}},
{
label
:
"风险性质"
,
prop
:
"fxxz"
,
fieldType
:
"ftString"
,
width
:
240
,
transform
:{
url
:
'/aqgl/fxyk/fxsj/init/shxz'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"死亡人数"
,
prop
:
"swrs"
,
fieldType
:
"int"
},
{
label
:
"重伤人数"
,
prop
:
"zsrs"
,
fieldType
:
"int"
},
{
label
:
"轻伤人数"
,
prop
:
"qsrs"
,
fieldType
:
"int"
},
{
label
:
"直接经济损失"
,
prop
:
"zjjjss"
,
fieldType
:
"float"
},
{
label
:
"损失工作日"
,
prop
:
"gzrss"
,
fieldType
:
"float"
},
{
label
:
"部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/kzzx/bm/query'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"车间编码"
,
prop
:
"cjid"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 公司*/
{
label
:
"公司"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryGs'
,
label
:
'bmmc'
,
value
:
'id'
}},
/* 班组*/
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"登记人"
,
prop
:
"djrid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'/kzzx/user/query'
,
label
:
'username'
,
value
:
'userid'
}},
}},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
...
...
@@ -109,9 +117,7 @@
}
},
methods
:
{
query
:
doQuery
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
...
...
src/views/riskPrecontrol/screeningCriteria/contentEdit.vue
View file @
d83f64da
...
...
@@ -25,7 +25,7 @@
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查人"
ref=
"jcr"
prop=
"jcr"
>
<RelSelect
filterable
style=
"width: 100%;"
:params=
"
{bmid:app.vMain.rowItem.gsid}" clearable :readonly="readonly" src='kzzx/user/query' :match="{value:'id',label:'username'}" v-model='form.jcr' >
</RelSelect>
<RelSelect
linkage
:linkParams=
"
{gwid:form.gwid}"
filterable style="width: 100%;" :params="{bmid:app.vMain.rowItem.gsid}" clearable :readonly="readonly" src='kzzx/user/query' :match="{value:'id',label:'username'}" v-model='form.jcr' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
...
...
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