Commit e3666df6 authored by wangxl's avatar wangxl

www

parent 3f8ad59d
......@@ -118,21 +118,21 @@ const EditableCell = {
props: {
text: Number,
},
data() {
data () {
return {
value: this.text,
editable: false,
};
},
methods: {
handleChange(value) {
handleChange (value) {
this.value = value;
},
check() {
check () {
this.editable = false;
this.$emit('change', this.value);
},
edit() {
edit () {
this.editable = true;
},
},
......@@ -176,7 +176,7 @@ export default {
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300 },
{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: "答辩分数", scopedSlots: { customRender: 'defenseInfo' }, align: 'center', width: 150 },
{ title: "项目类别", dataIndex: 'projClassName' , align: 'center' },
{ title: "项目类别", dataIndex: 'projClassName', align: 'center' },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center' },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center' },
{ title: '技术专家评分', dataIndex: 'gradeScore1', align: 'center' },
......@@ -285,12 +285,7 @@ export default {
this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data;
this.tableData = dataList.map(item => {
return {
...item,
projClassName: item.projClass === "1" ? "一般项目" : "重点项目",
}
})
this.tableData = dataList
this.pagination.total = total;
this.tableData.forEach(e => {
e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目"
......@@ -406,7 +401,7 @@ export default {
}
}).catch(() => { this.loading = false })
},
onCellChange(key, dataIndex, value) {
onCellChange (key, dataIndex, value) {
const target = this.tableData.find(item => item.id === key);
if (target) {
target[dataIndex] = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment