|
@@ -6,13 +6,13 @@
|
|
|
ref="searchForm"
|
|
ref="searchForm"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
style="height: 25px; margin-top: -7px;text-align:right;">
|
|
style="height: 25px; margin-top: -7px;text-align:right;">
|
|
|
- <span class="item-name">所属分类: {{parentName}}</span>
|
|
|
|
|
|
|
+ <span class="item-name">所属分类: {{itemCode}}_{{parentName}}</span>
|
|
|
<el-form-item label="字典名称"
|
|
<el-form-item label="字典名称"
|
|
|
prop="name">
|
|
prop="name">
|
|
|
<el-input v-model="searchForm.name"
|
|
<el-input v-model="searchForm.name"
|
|
|
placeholder="字典名称"
|
|
placeholder="字典名称"
|
|
|
style="width: 140px;"
|
|
style="width: 140px;"
|
|
|
- clearable/>
|
|
|
|
|
|
|
+ clearable />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
@@ -47,13 +47,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
<ag-grid-vue class="table ag-theme-balham ag-title-center"
|
|
<ag-grid-vue class="table ag-theme-balham ag-title-center"
|
|
|
style="width: 100%; height: 100%;"
|
|
style="width: 100%; height: 100%;"
|
|
|
- id="myGrid"
|
|
|
|
|
- :gridOptions="gridOptions"
|
|
|
|
|
- @gridReady="onGridReady"
|
|
|
|
|
- :rowData="rowData"
|
|
|
|
|
- :columnDefs="columnDefs"
|
|
|
|
|
- rowSelection="multiple"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ id="myGrid"
|
|
|
|
|
+ :gridOptions="gridOptions"
|
|
|
|
|
+ @gridReady="onGridReady"
|
|
|
|
|
+ :rowData="rowData"
|
|
|
|
|
+ :columnDefs="columnDefs"
|
|
|
|
|
+ rowSelection="multiple">
|
|
|
</ag-grid-vue>
|
|
</ag-grid-vue>
|
|
|
<template slot="footer">
|
|
<template slot="footer">
|
|
|
<el-pagination style="margin: -10px;"
|
|
<el-pagination style="margin: -10px;"
|
|
@@ -66,7 +65,9 @@
|
|
|
layout="total, sizes, prev, pager, next, jumper">
|
|
layout="total, sizes, prev, pager, next, jumper">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</template>
|
|
</template>
|
|
|
- <edit-form :id="id" :parentId="parentId"
|
|
|
|
|
|
|
+ <edit-form :id="id"
|
|
|
|
|
+ :parentId="parseInt(parentId)"
|
|
|
|
|
+ :itemCode="itemCode"
|
|
|
v-model="editFormVisible"
|
|
v-model="editFormVisible"
|
|
|
@submit="doRefresh" />
|
|
@submit="doRefresh" />
|
|
|
</d2-container>
|
|
</d2-container>
|
|
@@ -103,11 +104,11 @@ export default {
|
|
|
|
|
|
|
|
parentId: null, // 字典分类id
|
|
parentId: null, // 字典分类id
|
|
|
parentName: null, // 字典分类
|
|
parentName: null, // 字典分类
|
|
|
|
|
+ itemCode: null,
|
|
|
id: -1,
|
|
id: -1,
|
|
|
rowdata: {},
|
|
rowdata: {},
|
|
|
searchForm: {
|
|
searchForm: {
|
|
|
name: ''
|
|
name: ''
|
|
|
- // code: ''
|
|
|
|
|
},
|
|
},
|
|
|
loading: false,
|
|
loading: false,
|
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
@@ -160,6 +161,7 @@ export default {
|
|
|
_this.gridApi = _this.gridOptions.api
|
|
_this.gridApi = _this.gridOptions.api
|
|
|
_this.gridColumnApi = _this.gridOptions.columnApi
|
|
_this.gridColumnApi = _this.gridOptions.columnApi
|
|
|
_this.parentId = _this.$route.query.Id
|
|
_this.parentId = _this.$route.query.Id
|
|
|
|
|
+ _this.itemCode = _this.$route.query.ItemCode
|
|
|
_this.parentName = _this.$route.query.name
|
|
_this.parentName = _this.$route.query.name
|
|
|
this.doRefresh()
|
|
this.doRefresh()
|
|
|
},
|
|
},
|
|
@@ -297,7 +299,6 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
-
|
|
|
|
|
.el-pagination {
|
|
.el-pagination {
|
|
|
margin: 1rem 0 2rem;
|
|
margin: 1rem 0 2rem;
|
|
|
text-align: right;
|
|
text-align: right;
|
|
@@ -312,8 +313,8 @@ export default {
|
|
|
margin-left: 1px;
|
|
margin-left: 1px;
|
|
|
padding: 5px 10px 0 0;
|
|
padding: 5px 10px 0 0;
|
|
|
}
|
|
}
|
|
|
-.ag-header-cell-text{
|
|
|
|
|
- text-align: center ;
|
|
|
|
|
|
|
+.ag-header-cell-text {
|
|
|
|
|
+ text-align: center;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
.item-name {
|
|
.item-name {
|