This commit is contained in:
2023-07-11 21:06:34 +08:00
parent a20de5c2f3
commit 92d102c346
3 changed files with 39 additions and 32 deletions

View File

@@ -77,7 +77,7 @@
<el-form-item> <el-form-item>
<div style="display: flex;flex-direction: row;align-items: center;flex-wrap: nowrap;justify-content: flex-end"> <div style="display: flex;flex-direction: row;align-items: center;flex-wrap: nowrap;justify-content: flex-end">
<el-button @click="submit()" type="primary" style=";margin-top:10px">提交</el-button> <el-button @click="submit('ruleForm')" type="primary" style=";margin-top:10px">提交</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -122,30 +122,37 @@ export default {
openSubmit(){ openSubmit(){
this.dialogVisible=true; this.dialogVisible=true;
}, },
submit(){ submit(formName){
axios({ this.$refs[formName].validate((valid) => {
method: 'post', if (valid) {
// 请求的地址 axios({
url: 'http://localhost:8082/helloGithub_war_exploded/insertFileByAdmin', method: 'post',
// URL 中的查询参数 // 请求的地址
params: this.form, url: 'http://localhost:8082/helloGithub_war_exploded/insertFileByAdmin',
}).then(function (res) { // URL 中的查询参数
if(res.data.code===200){ params: this.form,
Vue.prototype.$notify({ }).then(function (res) {
title: '成功', if(res.data.code===200){
message: ('i', {style: 'color: teal'}, res.data.msg+'请等待审核'), Vue.prototype.$notify({
type: 'success', title: '成功',
offset: 50 message: ('i', {style: 'color: teal'}, res.data.msg+'请等待审核'),
}); type: 'success',
}else{ offset: 50
Vue.prototype.$notify.error({ });
title: '错误', }else{
message: res.data.msg, Vue.prototype.$notify.error({
offset: 50 title: '错误',
}); message: res.data.msg,
} offset: 50
});
}
})
}else{
return false;
}
}) })
}, },
goBack() { goBack() {
window.history.go(-1); window.history.go(-1);

View File

@@ -11,9 +11,9 @@
class="el-menu-demo" class="el-menu-demo"
mode="horizontal" mode="horizontal"
text-color="#ffffff"> text-color="#ffffff">
<el-menu-item> <!-- <el-menu-item>-->
<i class="el-icon-s-platform"></i>大屏展示 <!-- <i class="el-icon-s-platform"></i>大屏展示-->
</el-menu-item> <!-- </el-menu-item>-->
<el-menu-item> <el-menu-item>
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<div style="height:100%;"> <div style="height:100%;">

View File

@@ -300,9 +300,9 @@ export default {
that.date=res.data.Date; that.date=res.data.Date;
that.Month=res.data.Month; that.Month=res.data.Month;
that.Year=res.data.Year; that.Year=res.data.Year;
setTimeout(()=>{
that.eChart2(that.date,'echart2'); that.eChart2(that.date,'echart2');
},1000);
@@ -413,9 +413,9 @@ export default {
xData.push(a.categoryName); xData.push(a.categoryName);
yData.push(a.num); yData.push(a.num);
}); });
setTimeout(()=>{
that.echart_Pie(xData,yData,'echart1'); that.echart_Pie(xData,yData,'echart1');
},1000)
}); });
}, },