|
|
|
@ -186,7 +186,8 @@ export default {
|
|
|
|
|
} else if (type == '保存') {
|
|
|
|
|
templateMetricsAdd(this.addFrom).then(res=>{
|
|
|
|
|
if(res.code == 200) {
|
|
|
|
|
this.$refs.importFrom.resetFields();
|
|
|
|
|
// this.$refs.importFrom.resetFields();
|
|
|
|
|
this.getEditinfo();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "新增成功!",
|
|
|
|
@ -266,7 +267,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
getEditinfo(){
|
|
|
|
|
getId().then(res=>{
|
|
|
|
|
if(res.data) {
|
|
|
|
|
this.addFrom = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 选择年份变化
|
|
|
|
|