Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0eab7795
authored
Oct 12, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二级模板参数和一级一致,不可修改
1 parent
5a70ba20
Pipeline
#4994
passed
in 2 minutes 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
src/views/ParamsModel/add.vue
src/views/ParamsModel/edit.vue
src/views/ParamsModel/add.vue
View file @
0eab779
...
...
@@ -17,7 +17,7 @@
<st-form-item
:label=
"'模板类型'+':'"
prop=
"type"
>
<st-input
v-model=
"form.type"
></st-input>
<st-input
v-model=
"form.type"
:disabled=
"$route.query.level === '2'"
></st-input>
</st-form-item>
<st-form-item
:label=
"'基础模板'+':'"
...
...
@@ -189,6 +189,7 @@ export default {
async
handleSelectBase
(
value
)
{
const
res
=
await
detailParameter
({
name
:
value
})
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
this
.
form
.
type
=
res
.
data
.
type
this
.
tableData
=
[]
const
binaryObj
=
res
.
data
.
parameters
.
binary
const
scalarsObj
=
res
.
data
.
parameters
.
scalars
...
...
src/views/ParamsModel/edit.vue
View file @
0eab779
...
...
@@ -17,7 +17,7 @@
<st-form-item
:label=
"'模板类型'+':'"
prop=
"type"
>
<st-input
v-model=
"form.type"
:disabled=
"
true
"
></st-input>
<st-input
v-model=
"form.type"
:disabled=
"
$route.query.level === '2'
"
></st-input>
</st-form-item>
<st-form-item
:label=
"'基础模板'+':'"
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment