@@ -0,0 +1,6 @@ | |||
import axios from "@/config/axios" | |||
export default { | |||
getDataList(params) { | |||
return axios.get('/chainindustryapply/index', {params}) | |||
} | |||
} |
@@ -0,0 +1,12 @@ | |||
import axios from "@/config/axios" | |||
export default { | |||
getBasicDataList(params) { | |||
return axios.get('/cooperateapply/getBasicTaskCheckApplyList', { params }) | |||
}, | |||
getRewardDataList(params) { | |||
return axios.get('/cooperateapply/getSpecialPowerCheckApplyList', { params }) | |||
}, | |||
getConstraintDataList(params) { | |||
return axios.get('/cooperateapply/getRigidityConstraintCheckApplyList', { params }) | |||
}, | |||
} |
@@ -40,8 +40,7 @@ | |||
> | |||
<el-button style="margin-left: 20px" size="small" type="warning" v-if="showExport" @click="emitExport">导出</el-button> | |||
</el-form> | |||
<!-- <div class="operating" v-if="showExport"> | |||
</div> --> | |||
</div> | |||
</template> | |||
@@ -8,7 +8,7 @@ | |||
<el-submenu index="user" popper-class="ele-menu-pop"> | |||
<template slot="title"> | |||
<el-avatar :src="user.avatar"/> | |||
<span>{{ user.username || '' }}</span> | |||
<span>{{ user.nickname || '' }}</span> | |||
</template> | |||
<el-menu-item index="password" @click="showPassword"><i class="el-icon-key"></i><span>修改密码</span></el-menu-item> | |||
<el-divider/> |
@@ -16,7 +16,7 @@ import NProgress from "nprogress" | |||
export default { | |||
name: "EleHeaderNav", | |||
components: {EleSidebarItem}, | |||
components: {EleSidebarItem}, | |||
data() { | |||
return { | |||
scroll: false, // 用于鼠标滚轮事件节流 |
@@ -132,7 +132,7 @@ | |||
<script> | |||
import search from "../../search"; | |||
import { mapGetters } from "vuex"; | |||
import api from "@/api/second/coordinationManage/approvalCooperation"; | |||
import api from "@/api/second/coordinationManage/cooperateList"; | |||
export default { | |||
components: { | |||
search, |
@@ -125,7 +125,7 @@ | |||
<script> | |||
import search from "../../search"; | |||
import { mapGetters } from "vuex"; | |||
import api from "@/api/second/coordinationManage/approvalCooperation"; | |||
import api from "@/api/second/coordinationManage/cooperateList"; | |||
export default { | |||
components: { | |||
search, |
@@ -132,7 +132,7 @@ | |||
<script> | |||
import search from "../../search"; | |||
import { mapGetters } from "vuex"; | |||
import api from "@/api/second/coordinationManage/approvalCooperation"; | |||
import api from "@/api/second/coordinationManage/cooperateList"; | |||
export default { | |||
components: { | |||
search, |
@@ -53,6 +53,22 @@ | |||
align="center" | |||
prop="points" | |||
></el-table-column> | |||
<el-table-column label="扣分" width="80" align="center"> | |||
<template slot-scope="{ row, $index }"> | |||
<div @click="showText($index, true)" style="height: 100%"> | |||
<el-input | |||
:ref="'input' + $index" | |||
v-model="row.deptPoints" | |||
v-if="row.focus" | |||
@blur=" | |||
showText($index, false); | |||
updatePoints(row, $index); | |||
" | |||
></el-input> | |||
<span v-else>{{ row.deptPoints || 0 }}</span> | |||
</div> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="区牵头单位" | |||
width="95" | |||
@@ -397,6 +413,7 @@ export default { | |||
(document.documentElement.clientHeight - 260 - 45) / 45 | |||
), | |||
}, | |||
preValue: null, | |||
}; | |||
}, | |||
created() { | |||
@@ -414,6 +431,53 @@ export default { | |||
}, | |||
}, | |||
methods: { | |||
updatePoints(row, index) { | |||
if (row.deptPoints == this.preValue) { | |||
return; | |||
} | |||
if ( | |||
row.deptPoints < 0 || | |||
row.deptPoints > row.points || | |||
!row.deptPoints.trim() | |||
) { | |||
this.$message({ | |||
type: "warning", | |||
message: "请输入数值0~" + row.points, | |||
}); | |||
let data = this.dataList; | |||
data[index].deptPoints = this.preValue; | |||
this.dataList = data; | |||
return; | |||
} | |||
editApi | |||
.editItem({ | |||
itemId: row.id, | |||
expectedPoints: row.deptPoints, | |||
}) | |||
.then((res) => { | |||
this.$message({ type: "success", message: "修改成功" }); | |||
}) | |||
.catch(() => { | |||
this.$message.error("修改失败"); | |||
this.getDataList(); | |||
}); | |||
}, | |||
showText(index, bool) { | |||
try { | |||
let data = this.dataList; | |||
// data[index].focus = bool; | |||
// this.dataList = data; | |||
this.$set(this.dataList[index], "focus", bool); | |||
if (bool) { | |||
this.preValue = data[index].deptPoints; | |||
} | |||
this.$nextTick(() => { | |||
this.$refs["input" + index].focus(); | |||
}); | |||
} catch (e) { | |||
console.log(e); | |||
} | |||
}, | |||
exportData(data) { | |||
this.loading = true; | |||
api | |||
@@ -424,7 +488,7 @@ export default { | |||
if (res.data.code == 0) { | |||
// window.open(res.data.data); | |||
// window.location.href=res.data.data; | |||
window.location.href=res.data.data | |||
window.location.href = res.data.data; | |||
this.$message({ | |||
type: "success", | |||
message: "导出成功", | |||
@@ -630,7 +694,7 @@ export default { | |||
} else { | |||
this.$message({ | |||
type: "error", | |||
message: res.data.msg | |||
message: res.data.msg, | |||
}); | |||
} | |||
}) |
@@ -47,6 +47,22 @@ | |||
align="center" | |||
prop="points" | |||
></el-table-column> | |||
<el-table-column label="扣分" width="80" align="center"> | |||
<template slot-scope="{ row, $index }"> | |||
<div @click="showText($index, true)" style="height: 100%"> | |||
<el-input | |||
:ref="'input' + $index" | |||
v-model="row.deptPoints" | |||
v-if="row.focus" | |||
@blur=" | |||
showText($index, false); | |||
updatePoints(row, $index); | |||
" | |||
></el-input> | |||
<span v-else>{{ row.deptPoints || 0 }}</span> | |||
</div> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="区牵头单位" | |||
width="95" | |||
@@ -391,6 +407,7 @@ export default { | |||
(document.documentElement.clientHeight - 260 - 45) / 45 | |||
), | |||
}, | |||
preValue: null, | |||
}; | |||
}, | |||
created() { | |||
@@ -408,6 +425,53 @@ export default { | |||
}, | |||
}, | |||
methods: { | |||
updatePoints(row, index) { | |||
if (row.deptPoints == this.preValue) { | |||
return; | |||
} | |||
if ( | |||
row.deptPoints < 0 || | |||
row.deptPoints > row.points || | |||
!row.deptPoints.trim() | |||
) { | |||
this.$message({ | |||
type: "warning", | |||
message: "请输入数值0~" + row.points, | |||
}); | |||
let data = this.dataList; | |||
data[index].deptPoints = this.preValue; | |||
this.dataList = data; | |||
return; | |||
} | |||
editApi | |||
.editItem({ | |||
itemId: row.id, | |||
expectedPoints: row.deptPoints, | |||
}) | |||
.then((res) => { | |||
this.$message({ type: "success", message: "修改成功" }); | |||
}) | |||
.catch(() => { | |||
this.$message.error("修改失败"); | |||
this.getDataList(); | |||
}); | |||
}, | |||
showText(index, bool) { | |||
try { | |||
let data = this.dataList; | |||
// data[index].focus = bool; | |||
// this.dataList = data; | |||
this.$set(this.dataList[index], "focus", bool); | |||
if (bool) { | |||
this.preValue = data[index].deptPoints; | |||
} | |||
this.$nextTick(() => { | |||
this.$refs["input" + index].focus(); | |||
}); | |||
} catch (e) { | |||
console.log(e); | |||
} | |||
}, | |||
exportData(data) { | |||
this.loading = true; | |||
api |
@@ -53,6 +53,22 @@ | |||
align="center" | |||
prop="points" | |||
></el-table-column> | |||
<el-table-column label="加分" width="80" align="center"> | |||
<template slot-scope="{ row, $index }"> | |||
<div @click="showText($index, true)" style="height: 100%"> | |||
<el-input | |||
:ref="'input' + $index" | |||
v-model="row.deptPoints" | |||
v-if="row.focus" | |||
@blur=" | |||
showText($index, false); | |||
updatePoints(row, $index); | |||
" | |||
></el-input> | |||
<span v-else>{{ row.deptPoints || 0 }}</span> | |||
</div> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="区牵头单位" | |||
width="95" | |||
@@ -398,6 +414,7 @@ export default { | |||
(document.documentElement.clientHeight - 260 - 45) / 45 | |||
), | |||
}, | |||
preValue: null | |||
}; | |||
}, | |||
created() { | |||
@@ -415,6 +432,53 @@ export default { | |||
}, | |||
}, | |||
methods: { | |||
updatePoints(row, index) { | |||
if (row.deptPoints == this.preValue) { | |||
return; | |||
} | |||
if ( | |||
row.deptPoints < 0 || | |||
row.deptPoints > row.points || | |||
!row.deptPoints.trim() | |||
) { | |||
this.$message({ | |||
type: "warning", | |||
message: "请输入数值0~" + row.points, | |||
}); | |||
let data = this.dataList; | |||
data[index].deptPoints = this.preValue; | |||
this.dataList = data; | |||
return; | |||
} | |||
editApi | |||
.editItem({ | |||
itemId: row.id, | |||
expectedPoints: row.deptPoints, | |||
}) | |||
.then((res) => { | |||
this.$message({ type: "success", message: "修改成功" }); | |||
}) | |||
.catch(() => { | |||
this.$message.error("修改失败"); | |||
this.getDataList(); | |||
}); | |||
}, | |||
showText(index, bool) { | |||
try { | |||
let data = this.dataList; | |||
// data[index].focus = bool; | |||
// this.dataList = data; | |||
this.$set(this.dataList[index], "focus", bool); | |||
if (bool) { | |||
this.preValue = data[index].deptPoints; | |||
} | |||
this.$nextTick(() => { | |||
this.$refs["input" + index].focus(); | |||
}); | |||
} catch (e) { | |||
console.log(e); | |||
} | |||
}, | |||
exportData(data) { | |||
this.loading = true; | |||
api |