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
f439da4f
Commit
f439da4f
authored
Oct 31, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
5a7e351f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
3 deletions
+89
-3
mainEdit.vue
src/views/basicData/securityDocumentManagement/mainEdit.vue
+86
-0
mainIndex.vue
src/views/basicData/securityDocumentManagement/mainIndex.vue
+3
-3
No files found.
src/views/basicData/securityDocumentManagement/mainEdit.vue
0 → 100644
View file @
f439da4f
<
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=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
fieldType=
'int'
></el-input>
</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-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"content"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
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
()
{
console
.
log
(
this
.
$router
)
this
.
systemType
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
app
.
systemType
))
},
/* 组件名称*/
name
:
'appVersionEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
xh
:
''
,
name
:
''
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
appid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
name
:
[{
required
:
true
,
trigger
:
'blur'
},
],
type
:
[{
required
:
true
,
trigger
:
'change'
},
],
version
:
[{
required
:
true
,
trigger
:
'blur'
},
],
url
:
[{
required
:
true
,
trigger
:
'blur'
},
],
}
}
},
methods
:
{
/* 重写方法,this.app来调用index页面定义的api*/
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/basicData/securityDocumentManagement/mainIndex.vue
View file @
f439da4f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<el-row
class=
"tool-bar"
>
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'
app
'
></AddButton>
<AddButton
ref=
"add"
:app=
'
this
'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
...
@@ -61,8 +61,8 @@
...
@@ -61,8 +61,8 @@
doDelete
doDelete
}
from
"@/api/basicData/securityDocumentManagement.js"
;
}
from
"@/api/basicData/securityDocumentManagement.js"
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./
e
dit'
import
Edit
from
'./
mainE
dit'
import
{
tableMixin
}
from
'common'
import
{
tableMixin
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'mainIndex'
,
name
:
'mainIndex'
,
...
...
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