[add] 参数模板列表
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
<span class="title-text-text" :title="$t('Required')">{{$t('Required')}}</span>
|
<span class="title-text-text" :title="$t('Required')">{{$t('Required')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="state">
|
<a-form-model-item class="itemModel" prop="state">
|
||||||
<a-select>
|
<a-select :placeholder="$t('PleaseSelect')+$t('Required')">
|
||||||
<a-select-option v-for="(item, key) in isRequired" :key="key" :value="item.value">
|
<a-select-option v-for="(item, key) in isRequired" :key="key" :value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
||||||
{{ item.text || item.label }}
|
{{ item.text || item.label }}
|
||||||
@@ -47,29 +47,31 @@
|
|||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('NiONumber')">{{$t('NiONumber')}}</span>
|
:title="$t('ParameterName')">{{$t('ParameterName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.paramsTemplateName"
|
v-model="formInline.paramsTemplateName"
|
||||||
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
|
:placeholder="$t('PleaseEnter')+$t('ParameterName')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('Required')">{{$t('Required')}}</span>
|
<span class="title-text-text" :title="$t('technicalField')">{{$t('technicalField')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="state">
|
<a-form-model-item class="itemModel" prop="technologyTerritory">
|
||||||
<a-select>
|
<a-tree-select
|
||||||
<a-select-option v-for="(item, key) in isRequired" :key="key" :value="item.value">
|
v-model="formInline.technologyTerritory"
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
:maxTagCount="1"
|
||||||
{{ item.text || item.label }}
|
class="box-input"
|
||||||
</span>
|
style="width: 100%"
|
||||||
</a-select-option>
|
:tree-data="CategoryTreeList"
|
||||||
</a-select>
|
tree-checkable
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
||||||
|
/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -86,7 +88,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'addModel',
|
name: 'addModel',
|
||||||
components: {
|
components: {
|
||||||
@@ -99,6 +100,7 @@ export default {
|
|||||||
{value:1, label: '是' },
|
{value:1, label: '是' },
|
||||||
{value:0, label: '否' }
|
{value:0, label: '否' }
|
||||||
],
|
],
|
||||||
|
CategoryTreeList: [],
|
||||||
formInline: {},
|
formInline: {},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -129,8 +131,18 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getNameList()
|
this.getNameList()
|
||||||
|
this.getSysCategoryTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getSysCategoryTree() {
|
||||||
|
getAction('/sys/category/getSysCategoryTree', {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.CategoryTreeList = res.result
|
||||||
|
} else {
|
||||||
|
this.CategoryTreeList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getNameList() {
|
getNameList() {
|
||||||
getAction('project/projectNameInfoEO/list', {}).then((res) => {
|
getAction('project/projectNameInfoEO/list', {}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user