Commit e3666df6 authored by wangxl's avatar wangxl

www

parent 3f8ad59d
...@@ -118,21 +118,21 @@ const EditableCell = { ...@@ -118,21 +118,21 @@ const EditableCell = {
props: { props: {
text: Number, text: Number,
}, },
data() { data () {
return { return {
value: this.text, value: this.text,
editable: false, editable: false,
}; };
}, },
methods: { methods: {
handleChange(value) { handleChange (value) {
this.value = value; this.value = value;
}, },
check() { check () {
this.editable = false; this.editable = false;
this.$emit('change', this.value); this.$emit('change', this.value);
}, },
edit() { edit () {
this.editable = true; this.editable = true;
}, },
}, },
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300 }, { title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300 },
{ title: "项目编号", dataIndex: "projNo", align: 'center' }, { title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: "答辩分数", scopedSlots: { customRender: 'defenseInfo' }, align: 'center', width: 150 }, { 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: 'appUnitName', align: 'center' },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center' }, { title: '申报人', dataIndex: 'appPersonName', align: 'center' },
{ title: '技术专家评分', dataIndex: 'gradeScore1', align: 'center' }, { title: '技术专家评分', dataIndex: 'gradeScore1', align: 'center' },
...@@ -285,12 +285,7 @@ export default { ...@@ -285,12 +285,7 @@ export default {
this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
this.tableData = dataList.map(item => { this.tableData = dataList
return {
...item,
projClassName: item.projClass === "1" ? "一般项目" : "重点项目",
}
})
this.pagination.total = total; this.pagination.total = total;
this.tableData.forEach(e => { this.tableData.forEach(e => {
e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目" e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目"
...@@ -406,7 +401,7 @@ export default { ...@@ -406,7 +401,7 @@ export default {
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
onCellChange(key, dataIndex, value) { onCellChange (key, dataIndex, value) {
const target = this.tableData.find(item => item.id === key); const target = this.tableData.find(item => item.id === key);
if (target) { if (target) {
target[dataIndex] = value; 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