对接虚拟清单详情

This commit is contained in:
qq787203167
2022-04-14 14:37:35 +08:00
parent 5c9ee968ea
commit 2a0a4cd536
2 changed files with 29 additions and 12 deletions
@@ -175,12 +175,15 @@
:title="$t('technicalField')">{{$t('technicalField')}}</span> :title="$t('technicalField')">{{$t('technicalField')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="technologyTerritory"> <a-form-model-item class="itemModel" prop="technologyTerritory">
<j-dict-select-tag class="box-input" v-model="formInline.technologyTerritory" <a-tree-select
:disabled="disabled" v-model="formInline.technologyTerritory"
@input="handleInput('technologyTerritory')" :maxTagCount="1"
:placeholder="$t('PleaseSelect')+$t('technicalField')" class="box-input"
:type="'select'" style="width: 100%"
:triggerChange="false" :dictCode="'technology_territory'"/> :tree-data="CategoryTreeList"
tree-checkable
:placeholder="$t('PleaseSelect')+$t('technicalField')"
/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -499,12 +502,23 @@
confirmLoading: false, confirmLoading: false,
rules: {}, rules: {},
formInline: {}, formInline: {},
disabled: false disabled: false,
CategoryTreeList: []
} }
}, },
mounted() { mounted() {
this.getSysCategoryTree()
}, },
methods: { methods: {
getSysCategoryTree() {
getAction(this.url.getSysCategoryTree, {}).then((res) => {
if (res.success) {
this.CategoryTreeList = res.result
} else {
this.CategoryTreeList = []
}
})
},
editModel(item) { editModel(item) {
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@@ -183,7 +183,8 @@
setBatch: '/dummy/dummyInventoryInfoEO/setBatch', setBatch: '/dummy/dummyInventoryInfoEO/setBatch',
importZipUrl: '/dummy/dummyInventoryInfoEO/importData', importZipUrl: '/dummy/dummyInventoryInfoEO/importData',
exportData: '/dummy/dummyInventoryInfoEO/exportData', exportData: '/dummy/dummyInventoryInfoEO/exportData',
exportTemplate: '/dummy/dummyInventoryInfoEO/exportTemplate' exportTemplate: '/dummy/dummyInventoryInfoEO/exportTemplate',
getSysCategoryTree:'/sys/category/getSysCategoryTree',
}, },
loading: false, loading: false,
dataSource: [], dataSource: [],
@@ -259,7 +260,7 @@
{ {
title: this.$t('technicalField'), title: this.$t('technicalField'),
align: 'center', align: 'center',
dataIndex: 'technologyTerritory' dataIndex: 'technologyTerritoryName'
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
@@ -277,7 +278,7 @@
children: [ children: [
{ {
title: this.$t('Deliverables'), title: this.$t('Deliverables'),
dataIndex: 'designDeliverableTemplate', dataIndex: 'designDeliverableTemplateName',
align: 'center' align: 'center'
}, },
{ {
@@ -297,7 +298,7 @@
children: [ children: [
{ {
title: this.$t('Deliverables'), title: this.$t('Deliverables'),
dataIndex: 'prehomoDeliverableTemplate', dataIndex: 'prehomoDeliverableTemplateName',
align: 'center' align: 'center'
}, },
{ {
@@ -317,7 +318,7 @@
children: [ children: [
{ {
title: this.$t('Deliverables'), title: this.$t('Deliverables'),
dataIndex: 'verifyDeliverableTemplate', dataIndex: 'verifyDeliverableTemplateName',
align: 'center' align: 'center'
}, },
{ {
@@ -471,6 +472,8 @@
this.$refs.addModelRef.addModel() this.$refs.addModelRef.addModel()
}, },
handleDel() { handleDel() {
this.$refs.editModelRef.editModel()
return
if (this.selectedRowKeys.length > 0) { if (this.selectedRowKeys.length > 0) {
let _this = this let _this = this
this.$confirm({ this.$confirm({