Parcourir la source

显示昵称

master
YF-yuan il y a 3 ans
Parent
révision
b969ae458a
11 fichiers modifiés avec 218 ajouts et 9 suppressions
  1. +6
    -0
      src/api/chain/coordinationManage/cooperateList.js
  2. +12
    -0
      src/api/second/coordinationManage/cooperateList.js
  3. +1
    -2
      src/views/chain/search.vue
  4. +1
    -1
      src/views/common/fragment/HeaderRight.vue
  5. +1
    -1
      src/views/common/layout/HeaderNav.vue
  6. +1
    -1
      src/views/second/coordinationManage/cooperateList/basicTarget.vue
  7. +1
    -1
      src/views/second/coordinationManage/cooperateList/constraint.vue
  8. +1
    -1
      src/views/second/coordinationManage/cooperateList/reward.vue
  9. +66
    -2
      src/views/second/taskSummary/basicTable.vue
  10. +64
    -0
      src/views/second/taskSummary/constraint.vue
  11. +64
    -0
      src/views/second/taskSummary/reward.vue

+ 6
- 0
src/api/chain/coordinationManage/cooperateList.js Voir le fichier

@@ -0,0 +1,6 @@
import axios from "@/config/axios"
export default {
getDataList(params) {
return axios.get('/chainindustryapply/index', {params})
}
}

+ 12
- 0
src/api/second/coordinationManage/cooperateList.js Voir le fichier

@@ -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 })
},
}

+ 1
- 2
src/views/chain/search.vue Voir le fichier

@@ -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>


+ 1
- 1
src/views/common/fragment/HeaderRight.vue Voir le fichier

@@ -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/>

+ 1
- 1
src/views/common/layout/HeaderNav.vue Voir le fichier

@@ -16,7 +16,7 @@ import NProgress from "nprogress"

export default {
name: "EleHeaderNav",
components: {EleSidebarItem},
components: {EleSidebarItem},
data() {
return {
scroll: false, // 用于鼠标滚轮事件节流

+ 1
- 1
src/views/second/coordinationManage/cooperateList/basicTarget.vue Voir le fichier

@@ -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,

+ 1
- 1
src/views/second/coordinationManage/cooperateList/constraint.vue Voir le fichier

@@ -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,

+ 1
- 1
src/views/second/coordinationManage/cooperateList/reward.vue Voir le fichier

@@ -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,

+ 66
- 2
src/views/second/taskSummary/basicTable.vue Voir le fichier

@@ -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,
});
}
})

+ 64
- 0
src/views/second/taskSummary/constraint.vue Voir le fichier

@@ -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

+ 64
- 0
src/views/second/taskSummary/reward.vue Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer