提交 9951e21e 编写于 作者: 符英鹏's avatar 符英鹏 🏀

feat:'申请奖学金可以删除填写的记录'

上级 319a6c34
流水线 #5856 已通过 ,包含阶段
in 25 second
无法预览此类型文件
.title[data-v-2a317b2c]{text-align:center}.row-title[data-v-2a317b2c]{display:flex;margin-bottom:20px}.add-btn[data-v-2a317b2c]{display:flex;justify-content:center}[data-v-2a317b2c] .ivu-tag-text{font-size:16px}
\ No newline at end of file
.title[data-v-2b5aaf0e]{text-align:center}.row-title[data-v-2b5aaf0e]{display:flex;margin-bottom:20px}.add-btn[data-v-2b5aaf0e]{display:flex;justify-content:center}[data-v-2b5aaf0e] .ivu-tag-text{font-size:16px}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>iView Admin Pro</title><link href=css/app.5ea00409.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 iView Admin Pro。</strong></noscript><div id=app></div><script src=js/chunk-vendors.35c4ce0a.js></script><script src=js/app.5993dec5.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>iView Admin Pro</title><link href=css/app.5ea00409.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 iView Admin Pro。</strong></noscript><div id=app></div><script src=js/chunk-vendors.35c4ce0a.js></script><script src=js/app.fab13651.js></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
...@@ -66,7 +66,23 @@ ...@@ -66,7 +66,23 @@
></Input> ></Input>
</Col> </Col>
<Col :span="8" offset="1"> <Col :span="8" offset="1">
<Cascader :data="innovationTree" v-model="item.name" @on-change="(value,selectedData)=>{handleinnovationChange(value, selectedData,index)}"></Cascader> <Cascader
:data="innovationTree"
v-model="item.name"
@on-change="
(value, selectedData) => {
handleinnovationChange(value, selectedData, index);
}
"
></Cascader>
</Col>
<Col :span="2">
<Button
type="error"
shape="circle"
icon="md-close"
@click="handleInnovationRemove(index)"
></Button>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
...@@ -114,7 +130,23 @@ ...@@ -114,7 +130,23 @@
></Input> ></Input>
</Col> </Col>
<Col :span="8" offset="1"> <Col :span="8" offset="1">
<Cascader :data="praticeTree" v-model="item.name" @on-change="(value,selectedData)=>{handlesocialChange(value, selectedData,index)}"></Cascader> <Cascader
:data="praticeTree"
v-model="item.name"
@on-change="
(value, selectedData) => {
handlesocialChange(value, selectedData, index);
}
"
></Cascader>
</Col>
<Col :span="2">
<Button
type="error"
shape="circle"
icon="md-close"
@click="handleSocialRemove(index)"
></Button>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
...@@ -163,7 +195,23 @@ ...@@ -163,7 +195,23 @@
></Input> ></Input>
</Col> </Col>
<Col :span="8" offset="1"> <Col :span="8" offset="1">
<Cascader :data="comprehensiveTree" v-model="item.name" @on-change="(value,selectedData)=>{handleComprehensiveChange(value, selectedData,index)}"></Cascader> <Cascader
:data="comprehensiveTree"
v-model="item.name"
@on-change="
(value, selectedData) => {
handleComprehensiveChange(value, selectedData, index);
}
"
></Cascader>
</Col>
<Col :span="2">
<Button
type="error"
shape="circle"
icon="md-close"
@click="handleComprehensiveRemove(index)"
></Button>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
...@@ -227,6 +275,7 @@ export default { ...@@ -227,6 +275,7 @@ export default {
value: "", value: "",
index: "1", index: "1",
score: undefined, score: undefined,
name: [],
}, },
], ],
Comprehensive: [ Comprehensive: [
...@@ -235,6 +284,7 @@ export default { ...@@ -235,6 +284,7 @@ export default {
value: "", value: "",
index: "1", index: "1",
score: undefined, score: undefined,
name: [],
}, },
], ],
}, },
...@@ -320,24 +370,24 @@ export default { ...@@ -320,24 +370,24 @@ export default {
innovationAbilityTables.push({ innovationAbilityTables.push({
itemName: item.value, itemName: item.value,
sort: Number(item.index), sort: Number(item.index),
columnId:item.name.join(','), columnId: item.name.join(","),
score:item.score score: item.score,
}); });
}); });
this.formFileds.social.map((item) => { this.formFileds.social.map((item) => {
socialPracticeTables.push({ socialPracticeTables.push({
itemName: item.value, itemName: item.value,
sort: Number(item.index), sort: Number(item.index),
columnId:item.name.join(','), columnId: item.name.join(","),
score:item.score score: item.score,
}); });
}); });
this.formFileds.Comprehensive.map((item) => { this.formFileds.Comprehensive.map((item) => {
comprehensiveQualityTables.push({ comprehensiveQualityTables.push({
itemName: item.value, itemName: item.value,
sort: Number(item.index), sort: Number(item.index),
columnId:item.name.join(','), columnId: item.name.join(","),
score:item.score score: item.score,
}); });
}); });
const params = { const params = {
...@@ -368,14 +418,41 @@ export default { ...@@ -368,14 +418,41 @@ export default {
}); });
}, },
handleinnovationChange(value,data,index){ handleinnovationChange(value, data, index) {
this.formFileds.innovation[index].score = data[data.length-1].score; this.formFileds.innovation[index].score = data[data.length - 1].score;
},
handlesocialChange(value, data, index) {
this.formFileds.social[index].score = data[data.length - 1].score;
},
handleComprehensiveChange(value, data, index) {
this.formFileds.Comprehensive[index].score = data[data.length - 1].score;
},
// 删除创新能力单条记录
handleInnovationRemove(index) {
this.$Modal.confirm({
title: "确定要删除该记录吗?",
onOk: () => {
this.formFileds.innovation.splice(index, 1);
},
});
},
// 删除社会实践单条记录
handleSocialRemove(index){
this.$Modal.confirm({
title: "确定要删除该记录吗?",
onOk: () => {
this.formFileds.social.splice(index, 1);
}, },
handlesocialChange(value,data,index){ });
this.formFileds.social[index].score = data[data.length-1].score;
}, },
handleComprehensiveChange(value,data,index){ // 删除综合素质单条记录
this.formFileds.Comprehensive[index].score = data[data.length-1].score; handleComprehensiveRemove(index){
this.$Modal.confirm({
title: "确定要删除该记录吗?",
onOk: () => {
this.formFileds.Comprehensive.splice(index, 1);
},
});
}, },
}, },
}; };
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或