|
@@ -20,10 +20,10 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in getStatusList"
|
|
|
- :key="item.id"
|
|
|
+ v-for="item in constant.projectInitiationStatus"
|
|
|
+ :key="item.code"
|
|
|
:label="item.name"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.code"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -43,6 +43,7 @@
|
|
|
:columns="columns"
|
|
|
:data="tableData"
|
|
|
:count="total"
|
|
|
+ parentComponent="FinancingManage"
|
|
|
/>
|
|
|
</el-tabs>
|
|
|
</template>
|
|
@@ -57,7 +58,7 @@ import { mapGetters } from 'vuex'
|
|
|
import { getList, getAllList } from '@/api/financingManage'
|
|
|
|
|
|
export default {
|
|
|
- name: 'Demo',
|
|
|
+ name: 'FinancingManage',
|
|
|
data() {
|
|
|
return {
|
|
|
total: 0,
|
|
@@ -180,9 +181,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters([
|
|
|
- 'name'
|
|
|
- ]),
|
|
|
+ ...mapGetters(['constant']),
|
|
|
tablePower() {
|
|
|
return ({ item, tab, row }) => {
|
|
|
const { tabPower, rowPower } = item
|
|
@@ -199,6 +198,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.$store.dispatch('getConstant', ['projectInitiationStatus'])
|
|
|
this.fetchData()
|
|
|
},
|
|
|
methods: {
|
|
@@ -215,8 +215,9 @@ export default {
|
|
|
...this.search
|
|
|
}
|
|
|
if (this.activeName === 'all') {
|
|
|
- getAllList(params).then(({ rows }) => {
|
|
|
+ getAllList(params).then(({ rows, records }) => {
|
|
|
this.tableData = rows
|
|
|
+ this.total = records
|
|
|
})
|
|
|
} else {
|
|
|
getList(params).then(({ rows }) => {
|