|
@@ -9,7 +9,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex ml-20">
|
|
<div class="flex ml-20">
|
|
|
<div v-for="(item,index) in stage" :class="active === index ? 'total-s' : 'total'"
|
|
<div v-for="(item,index) in stage" :class="active === index ? 'total-s' : 'total'"
|
|
|
- class="flex flex-col flex-align-start flex-center mt-20 bold font-16" @click="choise(index)">
|
|
|
|
|
|
|
+ class="flex flex-col flex-align-start flex-center mt-20 bold font-16" @click="switchTab(item,index)">
|
|
|
<span class="ml-15 sp">{{ item.name }}</span>
|
|
<span class="ml-15 sp">{{ item.name }}</span>
|
|
|
<span class="ml-15 sp1 mt-5">{{ item.projectNumber }}<span class="grey font-14 ml-5">个</span></span>
|
|
<span class="ml-15 sp1 mt-5">{{ item.projectNumber }}<span class="grey font-14 ml-5">个</span></span>
|
|
|
</div>
|
|
</div>
|
|
@@ -29,6 +29,9 @@
|
|
|
@size-change="sizeChange"
|
|
@size-change="sizeChange"
|
|
|
@refresh-change="refreshChange"
|
|
@refresh-change="refreshChange"
|
|
|
@on-load="onLoad">
|
|
@on-load="onLoad">
|
|
|
|
|
+ <!-- <template #menu="{row}">-->
|
|
|
|
|
+ <!-- <el-button icon="Operation" text @click="track(row.id)">跟踪审计</el-button>-->
|
|
|
|
|
+ <!-- </template>-->
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
<el-dialog v-model="showAdd"
|
|
<el-dialog v-model="showAdd"
|
|
|
append-to-body
|
|
append-to-body
|
|
@@ -115,6 +118,8 @@ export default {
|
|
|
columnBtn: false,
|
|
columnBtn: false,
|
|
|
searchShow: true,
|
|
searchShow: true,
|
|
|
editBtn: true,
|
|
editBtn: true,
|
|
|
|
|
+ editBtnText: '跟踪审计',
|
|
|
|
|
+ editBtnIcon: 'Operation',
|
|
|
addBtn: false,
|
|
addBtn: false,
|
|
|
delBtn: true,
|
|
delBtn: true,
|
|
|
border: true,
|
|
border: true,
|
|
@@ -129,35 +134,35 @@ export default {
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
addDisplay: false,
|
|
addDisplay: false,
|
|
|
editDisplay: false,
|
|
editDisplay: false,
|
|
|
- width: 500
|
|
|
|
|
|
|
+ width: 400
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '更新时间',
|
|
|
|
|
- prop: 'updateTime',
|
|
|
|
|
- type: 'month',
|
|
|
|
|
- format: 'yyyy-MM-dd',
|
|
|
|
|
- valueFormat: 'yyyy-MM-dd'
|
|
|
|
|
|
|
+ label: '项目总投资(万元)',
|
|
|
|
|
+ prop: 'totalAmount',
|
|
|
|
|
+ width: 180
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '项目类型',
|
|
|
|
|
|
|
+ label: '项目领域',
|
|
|
prop: 'dictName'
|
|
prop: 'dictName'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '项目进行阶段',
|
|
label: '项目进行阶段',
|
|
|
- prop: 'lot'
|
|
|
|
|
|
|
+ prop: 'stageId'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '项目总投资(万元)',
|
|
|
|
|
- prop: 'totalAmount'
|
|
|
|
|
|
|
+ label: '发债时间',
|
|
|
|
|
+ prop: 'issueDate',
|
|
|
|
|
+ type: 'month',
|
|
|
|
|
+ format: 'yyyy-MM',
|
|
|
|
|
+ valueFormat: 'yyyy-MM'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '创建时间',
|
|
|
|
|
- prop: 'createTime',
|
|
|
|
|
|
|
+ label: '更新时间',
|
|
|
|
|
+ prop: 'updateTime',
|
|
|
type: 'month',
|
|
type: 'month',
|
|
|
format: 'yyyy-MM-dd',
|
|
format: 'yyyy-MM-dd',
|
|
|
valueFormat: 'yyyy-MM-dd'
|
|
valueFormat: 'yyyy-MM-dd'
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ }]
|
|
|
},
|
|
},
|
|
|
page: {
|
|
page: {
|
|
|
size: 10,
|
|
size: 10,
|
|
@@ -183,8 +188,15 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- choise(index) {
|
|
|
|
|
|
|
+ switchTab(item, index) {
|
|
|
this.active = index
|
|
this.active = index
|
|
|
|
|
+ this.onLoad({stageId: item.id})
|
|
|
|
|
+ },
|
|
|
|
|
+ track(id) {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: '/home/details',
|
|
|
|
|
+ query: {id: id, type: '1'}
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
onLoad(query = {}) {
|
|
onLoad(query = {}) {
|
|
|
let data = {...query, ...this.page}
|
|
let data = {...query, ...this.page}
|
|
@@ -200,7 +212,12 @@ export default {
|
|
|
if (['view'].includes(type)) {
|
|
if (['view'].includes(type)) {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/home/details',
|
|
path: '/home/details',
|
|
|
- query: {id: this.form.id}
|
|
|
|
|
|
|
+ query: {id: this.form.id, type: '0'}
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if (type === 'edit') {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: '/home/details',
|
|
|
|
|
+ query: {id: this.form.id, type: '1'}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -213,13 +230,6 @@ export default {
|
|
|
refreshChange() {
|
|
refreshChange() {
|
|
|
this.onLoad(this.page, this.query);
|
|
this.onLoad(this.page, this.query);
|
|
|
},
|
|
},
|
|
|
- getStageList() {
|
|
|
|
|
- this.$api.project.userStageList().then(res => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- this.stage = res.data
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
rowDel(row) {
|
|
rowDel(row) {
|
|
|
this.$confirm("确定删除选择的项目?", {
|
|
this.$confirm("确定删除选择的项目?", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -237,6 +247,13 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ getStageList() {
|
|
|
|
|
+ this.$api.project.userStageList().then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.stage = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getTypeList() {
|
|
getTypeList() {
|
|
|
this.$api.project.typeList().then(res => {
|
|
this.$api.project.typeList().then(res => {
|
|
|
this.typeList = res.data.records
|
|
this.typeList = res.data.records
|
|
@@ -254,12 +271,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- go() {
|
|
|
|
|
- this.$router.push('/home/details')
|
|
|
|
|
- },
|
|
|
|
|
- go1() {
|
|
|
|
|
- this.$router.push('/home/track')
|
|
|
|
|
- },
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -285,6 +296,7 @@ export default {
|
|
|
|
|
|
|
|
.sp {
|
|
.sp {
|
|
|
color: #AC1F1D;
|
|
color: #AC1F1D;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.sp1 {
|
|
.sp1 {
|