Sfoglia il codice sorgente

修改表格宽度

master
YF-yuan 3 anni fa
parent
commit
7696e6c561
14 ha cambiato i file con 103 aggiunte e 240 eliminazioni
  1. +7
    -7
      src/views/second/assessmentResults/results/basicTarget.vue
  2. +7
    -7
      src/views/second/assessmentResults/results/constraint.vue
  3. +7
    -7
      src/views/second/assessmentResults/results/reward.vue
  4. +0
    -155
      src/views/second/assessmentResults/results/search.vue
  5. +22
    -4
      src/views/second/assessmentResults/scoreRules/search.vue
  6. +9
    -9
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  7. +7
    -7
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  8. +7
    -7
      src/views/second/coordinationManage/applyCooperation/reward.vue
  9. +6
    -6
      src/views/second/segmentation/basicTable.vue
  10. +7
    -7
      src/views/second/segmentation/constraint.vue
  11. +6
    -6
      src/views/second/segmentation/reward.vue
  12. +6
    -6
      src/views/second/taskSummary/basicTable.vue
  13. +6
    -6
      src/views/second/taskSummary/constraint.vue
  14. +6
    -6
      src/views/second/taskSummary/reward.vue

+ 7
- 7
src/views/second/assessmentResults/results/basicTarget.vue Vedi File

@@ -42,36 +42,36 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
@@ -92,7 +92,7 @@
</template>

<script>
import search from "./search";
import search from "../../search";
export default {
components: {
search,

+ 7
- 7
src/views/second/assessmentResults/results/constraint.vue Vedi File

@@ -36,36 +36,36 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
@@ -88,7 +88,7 @@
</template>

<script>
import search from "./search";
import search from "../../search";
export default {
components: {
search,

+ 7
- 7
src/views/second/assessmentResults/results/reward.vue Vedi File

@@ -42,36 +42,36 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
@@ -93,7 +93,7 @@
</template>

<script>
import search from "./search";
import search from "../../search";
export default {
components: {
search,

+ 0
- 155
src/views/second/assessmentResults/results/search.vue Vedi File

@@ -1,155 +0,0 @@
<template>
<div class="search">
<el-form :inline="true" :model="searchParams" size="small">
<template v-if="type == 1 || type == 2">
<el-form-item label="一级指标:">
<el-select
filterable
clearable
v-model="searchParams.quota1"
@change="getQuota2List(searchParams.quota1)"
placeholder="请选择一级指标"
>
<el-option
v-for="(item, index) of quota1"
:key="index"
:label="item.quota1"
:value="item.quota1"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="二级指标:">
<el-select filterable clearable v-model="searchParams.quota2" placeholder="请选择二级指标">
<el-option
v-for="(item, index) of quota2"
:key="index"
:label="item.quota2"
:value="item.quota2"
></el-option>
</el-select>
</el-form-item>
</template>
<template v-if="type == 3">
<el-form-item label="考核指标:">
<el-select filterable clearable v-model="searchParams.quota" placeholder="请选择考核目标">
<el-option
v-for="(item, index) of quota"
:key="index"
:label="item"
:value="item"
></el-option>
</el-select>
</el-form-item>
</template>
<el-form-item label="考核内容:">
<el-input
placeholder="请输入考核内容"
clearable
v-model="searchParams.content"
></el-input>
</el-form-item>
<el-form-item label="参与部门:">
<treeselect
v-model="searchParams.partakeDept"
:options="formatDep"
placeholder="请选择参与部门"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0 ? d.children : undefined,
};
}
"
/>
</el-form-item>
<el-button type="primary" size="small" @click="search">查询</el-button>
<el-button
type="default"
size="small"
@click="
clear();
search();
"
>清空</el-button
>
</el-form>
</div>
</template>

<script>
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Treeselect from "@riophae/vue-treeselect"; // 下拉树
import { mapGetters, mapActions } from "vuex";
export default {
props: {
type: {
type: Number,
default() {
return 1;
},
},
},
components: {
Treeselect,
},
data() {
return {
searchParams: {
quota1: "",
quota2: "",
leaderDept: undefined,
cooperateDept: undefined,
quota: "",
content: "",
leaderUnit: "",
},
};
},
created() {
this.getQuota1List(this.type);
this.getDepartment(1);
this.getQuotaList();
},
methods: {
...mapActions({
getQuota1List: "base/getQuota1List",
getQuota2List: "base/getQuota2List",
getDepartment: "base/getDepartment",
getQuotaList: "base/getQuotaList",
}),
clear() {
this.searchParams = {
quota1: "",
quota2: "",
leaderDept: undefined,
cooperateDept: undefined,
quota: "",
content: "",
leaderUnit: "",
};
},
search() {
this.$emit("search:task", this.searchParams);
},
},
computed: {
...mapGetters(["quota1", "quota2", "formatDep", "quota"]),
},
watch: {
"searchParams.quota1"(val) {
if (!val) {
this.$store.commit("base/SET_QUOTAL2", []);
this.$set(this.searchParams, "quota2", "");
}
},
},
};
</script>

<style scoped>

</style>

+ 22
- 4
src/views/second/assessmentResults/scoreRules/search.vue Vedi File

@@ -1,6 +1,6 @@
<template>
<div class="search">
<el-form :inline="true" :model="searchParams" size="small">
<el-form :inline="true" :model="searchParams" size="small" >
<template v-if="type == 1 || type == 2">
<el-form-item label="一级指标:">
<el-select
@@ -48,11 +48,29 @@
v-model="searchParams.content"
></el-input>
</el-form-item>
<el-form-item label="参与部门:">
<el-form-item label="牵头部门:">
<treeselect
v-model="searchParams.partakeDept"
v-model="searchParams.leaderDept"
:options="formatDep"
placeholder="请选择参与部门"
placeholder="请选择牵头部门"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0 ? d.children : undefined,
};
}
"
/>
</el-form-item>
<el-form-item label="配合部门:">
<treeselect
v-model="searchParams.cooperateDept"
:options="formatDep"
placeholder="请选择配合部门"
:defaultExpandLevel="1"
:normalizer="
(d) => {

+ 9
- 9
src/views/second/coordinationManage/applyCooperation/basicTarget.vue Vedi File

@@ -38,41 +38,41 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="操作" width="125" align="center">
<el-table-column label="操作" width="60" align="center">
<el-link
@click="edit"
icon="el-icon-edit"
@@ -135,11 +135,11 @@ export default {
data() {
return {
dataList: [[]],
tableHeight: document.documentElement.clientHeight - 355,
tableHeight: document.documentElement.clientHeight - 305,
page: {
page: 1,
limit: Math.floor(
(document.documentElement.clientHeight - 355 - 45) / 45
(document.documentElement.clientHeight - 305 - 45) / 45
),
},
count: 0,

+ 7
- 7
src/views/second/coordinationManage/applyCooperation/constraint.vue Vedi File

@@ -32,41 +32,41 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="操作" width="125" align="center">
<el-table-column label="操作" width="60" align="center">
<el-link
@click="edit"
icon="el-icon-edit"

+ 7
- 7
src/views/second/coordinationManage/applyCooperation/reward.vue Vedi File

@@ -38,41 +38,41 @@
></el-table-column>
<el-table-column
label="分值"
min-width="60"
width="50"
align="center"
prop="points"
></el-table-column>

<el-table-column
label="区牵头单位"
min-width="95 "
width="80 "
align="center"
prop="leaderUnit"
></el-table-column>

<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }">
<span>{{ row.leaderDeptList | formatList }}</span>
</template>
</el-table-column>

<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="操作" width="125" align="center">
<el-table-column label="操作" width="60" align="center">
<el-link
@click="edit"
icon="el-icon-edit"

+ 6
- 6
src/views/second/segmentation/basicTable.vue Vedi File

@@ -50,29 +50,29 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderDeptList | formatList }}
</template>
</el-table-column>
<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column
label="配合部门"
min-width="80"
width="100"
align="center"
prop="cooperateDept"
>
@@ -82,7 +82,7 @@
</el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="cooperateDeptList"
>

+ 7
- 7
src/views/second/segmentation/constraint.vue Vedi File

@@ -43,29 +43,29 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column label="牵头部门" min-width="100" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderDeptList | formatList }}
</template>
</el-table-column>
<el-table-column label="责任领导" min-width="60" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column
label="配合部门"
min-width="100"
width="100"
align="center"
prop="cooperateDept"
>
@@ -75,7 +75,7 @@
</el-table-column>
<el-table-column
label="责任领导"
min-width="60"
width="80"
align="center"
prop="cooperateDeptList"
>
@@ -83,7 +83,7 @@
{{ row.cooperatePrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column label="操作" width="60" align="center">
<el-table-column label="操作" width="80" align="center">
<template slot-scope="{ row }">
<router-link
:to="{ name: 'segmentation', params: { id: row.id, type: 3 } }"

+ 6
- 6
src/views/second/segmentation/reward.vue Vedi File

@@ -50,29 +50,29 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }">
{{ row.leaderDeptList | formatList }}
</template>
</el-table-column>
<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
{{ row.leaderPrincipalList | formatList }}
</template>
</el-table-column>
<el-table-column
label="配合部门"
min-width="80"
width="100"
align="center"
prop="cooperateDept"
>
@@ -82,7 +82,7 @@
</el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="cooperateDeptList"
>

+ 6
- 6
src/views/second/taskSummary/basicTable.vue Vedi File

@@ -49,37 +49,37 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column
label="牵头部门"
min-width="100"
width="100"
align="center"
prop="leaderDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="配合部门"
min-width="100"
width="100"
align="center"
prop="cooperateDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="cooperatePrincipalList"
></el-table-column>

+ 6
- 6
src/views/second/taskSummary/constraint.vue Vedi File

@@ -41,37 +41,37 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column
label="牵头部门"
min-width="100"
width="100"
align="center"
prop="leaderDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="配合部门"
min-width="100"
width="100"
align="center"
prop="cooperateDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="cooperatePrincipalList"
></el-table-column>

+ 6
- 6
src/views/second/taskSummary/reward.vue Vedi File

@@ -45,37 +45,37 @@
></el-table-column>
<el-table-column
label="分值"
min-width="50"
width="50"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="区牵头单位"
min-width="80"
width="80"
align="center"
prop="leaderUnit"
></el-table-column>
<el-table-column
label="牵头部门"
min-width="100"
width="100"
align="center"
prop="leaderDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="配合部门"
min-width="100"
width="100"
align="center"
prop="cooperateDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="80"
width="80"
align="center"
prop="cooperatePrincipalList"
></el-table-column>

Loading…
Annulla
Salva