Commit 0eab7795 by 温丽香

二级模板参数和一级一致,不可修改

1 parent 5a70ba20
Pipeline #4994 passed
in 2 minutes 10 seconds
......@@ -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
......
......@@ -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="'基础模板'+':'"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!