Quellcode durchsuchen

提交】、

master
yangzhou-cyber vor 3 Jahren
Ursprung
Commit
f98cfab50e
3 geänderte Dateien mit 19 neuen und 7 gelöschten Zeilen
  1. +11
    -1
      src/views/assessingTarget/basicTarget.vue
  2. +4
    -1
      src/views/assessingTarget/constraint.vue
  3. +4
    -5
      src/views/assessingTarget/reward.vue

+ 11
- 1
src/views/assessingTarget/basicTarget.vue Datei anzeigen

@@ -128,10 +128,11 @@
>
<treeselect
v-model="updateData.leaderDept"
:flat="true"
:options="formatDep"
:multiple="true"
placeholder="请选择牵头部门"
:defaultExpandLevel="1"
:defaultExpandLevel="2"
:normalizer="
(d) => {
return {
@@ -193,6 +194,11 @@ export default {
type: { type: 0 },
};
},
watch:{
updateData(val){
console.log(val)
}
},
created() {
this.getDataList();
},
@@ -232,7 +238,11 @@ export default {
showLeaderDept(data) {
this.showDep = true;
data.leaderDept = (data.leaderDept && data.leaderDept.split(",")) || [];
data.leaderDept=data.leaderDept.map(item=>{
return parseInt(item);
})
this.updateData = data;
console.log(this.formatDep,data)
},
updateParams(data) {
this.searchParams = data;

+ 4
- 1
src/views/assessingTarget/constraint.vue Datei anzeigen

@@ -74,7 +74,7 @@
icon="el-icon-setting"
type="primary"
:underline="false"
@click="showLeaderDept(row)"
@click="showLeaderDept(row)"
>设置牵头部门</el-link
>
</template>
@@ -204,6 +204,9 @@ export default {
showLeaderDept(data) {
this.showDep = true;
data.leaderDept = (data.leaderDept && data.leaderDept.split(",")) || [];
data.leaderDept = data.leaderDept.map((item) => {
return parseInt(item);
});
this.updateData = data;
},
updateParams(data) {

+ 4
- 5
src/views/assessingTarget/reward.vue Datei anzeigen

@@ -39,11 +39,7 @@
align="center"
prop="points"
></el-table-column>
<el-table-column
label="预计加分"
min-width="60"
align="center"
>
<el-table-column label="预计加分" min-width="60" align="center">
<template slot-scope="{ row, $index }">
<div @dblclick="showText($index, true)" style="height: 100%">
<el-input
@@ -222,6 +218,9 @@ export default {
showLeaderDept(data) {
this.showDep = true;
data.leaderDept = (data.leaderDept && data.leaderDept.split(",")) || [];
data.leaderDept = data.leaderDept.map((item) => {
return parseInt(item);
});
this.updateData = data;
},
updateParams(data) {

Laden…
Abbrechen
Speichern