|
|
@@ -19,8 +19,8 @@
|
|
|
<div v-if='permissions.permissions?.projectAdd' class='flex flex-center flex-justify-start'>
|
|
|
<base-button class="ml-20 mt-20" icon="Plus" title="新增"
|
|
|
@click="showAdd = true"/>
|
|
|
- <base-button class="ml-20 mt-20" icon="Edit" title="项目导入"
|
|
|
- @click="showImport = true"/>
|
|
|
+<!-- <base-button class="ml-20 mt-20" icon="Edit" title="项目导入"-->
|
|
|
+<!-- @click="showImport = true"/>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<avue-crud ref="crud"
|
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
methods: {
|
|
|
switchTab (item, index) {
|
|
|
this.active = index
|
|
|
- this.onLoad({ stageId: item.id === -1 ? '' : item.id })
|
|
|
+ this.onLoad({ stageName: item.name === '全部阶段' ? '' : item.name })
|
|
|
},
|
|
|
onLoad (query = {}) {
|
|
|
this.loading = true
|
|
|
@@ -292,7 +292,7 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
this.getStageList()
|
|
|
- this.getTotalAmount()
|
|
|
+ this.getTotalAmount(data)
|
|
|
})
|
|
|
},
|
|
|
beforeOpen (done, type) {
|
|
|
@@ -344,8 +344,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getTotalAmount () {
|
|
|
- this.$api.project.totalAmount(this.query).then(res => {
|
|
|
+ getTotalAmount (data) {
|
|
|
+ this.$api.project.totalAmount(Object.assign(data, this.query)).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.num = res.data
|
|
|
} else {
|