ソースを参照

修改列表样式

master
YF-yuan 3年前
コミット
43478d03e4
7個のファイルの変更46行の追加35行の削除
  1. +9
    -2
      src/views/assessingTarget/basicTarget.vue
  2. +1
    -1
      src/views/assessingTarget/search.vue
  3. +13
    -6
      src/views/assessingTarget/tab.vue
  4. +10
    -10
      src/views/summary/basicTarget.vue
  5. +6
    -7
      src/views/summary/constraint.vue
  6. +7
    -8
      src/views/summary/reward.vue
  7. +0
    -1
      src/views/system/user/index.vue

+ 9
- 2
src/views/assessingTarget/basicTarget.vue ファイルの表示

@@ -1,7 +1,7 @@
<template>
<div class="basic-target ele-body">
<el-card shadow="never">
<tab />
<tab @get-type="updateType($event)"/>
<search :type="1" @search:task="updateParams($event)" />
<el-table
:data="dataList"
@@ -158,6 +158,7 @@ export default {
quota1: "",
quota2: "",
},
class:{type:0}
};
},
created() {
@@ -172,6 +173,12 @@ export default {
this.resetCurrentPage();
this.getDataList();
},
updateType(data) {
console.log(data);
this.class = data;
this.resetCurrentPage();
this.getDataList();
},
resetCurrentPage() {
let page = this.page;
page.page = 1;
@@ -205,7 +212,7 @@ export default {
getDataList() {
this.loading = true;
api
.getList(Object.assign({}, this.searchParams, this.page))
.getList(Object.assign({},this.class, this.searchParams, this.page))
.then((res) => {
this.loading = false;
let data = res.data.data.records;

+ 1
- 1
src/views/assessingTarget/search.vue ファイルの表示

@@ -1,6 +1,6 @@
<template>
<div class="search">
<el-form :inline="true" :model="searchParams" size="small">
<el-form :inline="true" :model="searchParams" size="mini">
<template v-if="type == 1 || type == 2">
<el-form-item label="一级指标:">
<el-select

+ 13
- 6
src/views/assessingTarget/tab.vue ファイルの表示

@@ -1,8 +1,8 @@
<template>
<div class="tab">
<el-radio-group v-model="type" style="margin-bottom: 30px" size="medium">
<el-radio-button label="all">全部任务</el-radio-button>
<el-radio-button label="mine">部门任务</el-radio-button>
<el-radio-group v-model="type" style="margin-bottom: 30px" size="mini">
<el-radio-button :label="0" @change="getType(0)">全部任务</el-radio-button>
<el-radio-button :label="1" @change="getType(1)">部门任务</el-radio-button>
</el-radio-group>
</div>
</template>
@@ -10,9 +10,16 @@
<script>
export default {
data(){
return{
type:"all"
}
return{
type: 0,
}
},
methods: {
getType (params) {
this.type = params
// console.log(params)
this.$emit("get-type", {type: params});
}
}
};
</script>

+ 10
- 10
src/views/summary/basicTarget.vue ファイルの表示

@@ -18,31 +18,31 @@
></el-table-column>
<el-table-column
label="一级指标"
min-width="150"
min-width="80"
align="center"
prop="quota1"
></el-table-column>
<el-table-column
label="二级指标"
min-width="150"
min-width="120"
align="center"
prop="quota2"
></el-table-column>
<el-table-column
label="考核内容和计分规则"
min-width="80"
min-width="300"
align="center"
prop="content"
></el-table-column>
<el-table-column
label="分值"
min-width="100"
min-width="60"
align="center"
prop="points"
></el-table-column>
<el-table-column
label="预计得分"
min-width="100"
min-width="60"
align="center"
prop="expectedPoints"
></el-table-column>
@@ -60,13 +60,13 @@
></el-table-column>
<el-table-column
label="责任领导"
min-width="100"
min-width="80"
align="center"
prop="leaderPrincipal"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="得分说明"
min-width="80"
min-width="120"
align="center"
prop="note"
></el-table-column>
@@ -107,7 +107,8 @@ export default {
components: {
search,
},
created() {
// mixins: [assessing],
created() {
this.getDataList();
this.$store.dispatch('base/getQuota1List',1)
},
@@ -128,7 +129,6 @@ export default {
});
this.dataList = data;
this.count = res.data.data.total;
console.log(res.data);
})
.catch(() => {
this.loading=false

+ 6
- 7
src/views/summary/constraint.vue ファイルの表示

@@ -18,19 +18,19 @@
></el-table-column>
<el-table-column
label="考核指标"
min-width="150"
min-width="80"
align="center"
prop="quota"
></el-table-column>
<el-table-column
label="考核内容和计分规则"
min-width="80"
min-width="400"
align="center"
prop="content"
></el-table-column>
<el-table-column
label="预计扣分"
min-width="100"
min-width="50"
align="center"
prop="expectedPoints"
></el-table-column>
@@ -44,13 +44,13 @@
label="牵头部门"
min-width="80"
align="center"
prop="leaderDept"
prop="leaderDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="100"
align="center"
prop="leaderPrincipal"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="扣分说明"
@@ -95,7 +95,7 @@ export default {
components: {
search,
},
created() {
created() {
this.getDataList();
this.$store.dispatch('base/getQuota1List',1)
},
@@ -116,7 +116,6 @@ export default {
});
this.dataList = data;
this.count = res.data.data.total;
console.log(res.data);
})
.catch(() => {
this.loading=false

+ 7
- 8
src/views/summary/reward.vue ファイルの表示

@@ -18,19 +18,19 @@
></el-table-column>
<el-table-column
label="一级指标"
min-width="150"
min-width="100"
align="center"
prop="quota1"
></el-table-column>
<el-table-column
label="二级指标"
min-width="150"
min-width="100"
align="center"
prop="quota2"
></el-table-column>
<el-table-column
label="考核内容和计分规则"
min-width="80"
min-width="200"
align="center"
prop="content"
></el-table-column>
@@ -56,17 +56,17 @@
label="牵头部门"
min-width="80"
align="center"
prop="leaderDept"
prop="leaderDeptList"
></el-table-column>
<el-table-column
label="责任领导"
min-width="100"
align="center"
prop="leaderPrincipal"
prop="leaderPrincipalList"
></el-table-column>
<el-table-column
label="得分说明"
min-width="80"
min-width="120"
align="center"
prop="note"
></el-table-column>
@@ -107,7 +107,7 @@ export default {
components: {
search,
},
created() {
created() {
this.getDataList();
this.$store.dispatch('base/getQuota1List',1)
},
@@ -128,7 +128,6 @@ export default {
});
this.dataList = data;
this.count = res.data.data.total;
console.log(res.data);
})
.catch(() => {
this.loading=false

+ 0
- 1
src/views/system/user/index.vue ファイルの表示

@@ -328,7 +328,6 @@ export default {
this.$http.get('/dept/getDeptList/1').then(res => {
if (res.data.code === 0) {
this.departmentsList = res.data.data;
console.log(this.departmentsList);
} else {
this.$message.error(res.data.msg);
}

読み込み中…
キャンセル
保存