|
@@ -78,7 +78,7 @@
|
|
|
<div class="addDialogMid">
|
|
|
<div class="addDialogTit">
|
|
|
<span>通知标题</span>
|
|
|
- <el-input v-model="input" placeholder="请输入内容"></el-input>
|
|
|
+ <el-input v-model="addMess.tit" placeholder="请输入内容"></el-input>
|
|
|
</div>
|
|
|
<div class="addDialogTit addDialogCon">
|
|
|
<span>通知内容</span>
|
|
@@ -87,12 +87,12 @@
|
|
|
:rows="10"
|
|
|
resize="none"
|
|
|
placeholder="请输入内容"
|
|
|
- v-model="textarea">
|
|
|
+ v-model="addMess.con">
|
|
|
</el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="init" class="btn5">确认添加</el-button>
|
|
|
+ <el-button type="primary" @click="confirmAdd" class="btn5">确认添加</el-button>
|
|
|
<el-button @click="init" class="btn5">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -156,16 +156,12 @@
|
|
|
dialogVisible1:false,
|
|
|
dialogVisible2:false,
|
|
|
input:'',
|
|
|
- options:[],
|
|
|
- options1:[],
|
|
|
- options2:[],
|
|
|
- options3:[],
|
|
|
- options4:[],
|
|
|
+
|
|
|
tableData:[{
|
|
|
projectName:'创业孵化基地企业情况信息表',
|
|
|
date:'2022-11-12 10:18',
|
|
|
size:'50k',
|
|
|
- founder:'黄猿'
|
|
|
+ founder:'黄猿',
|
|
|
},
|
|
|
{
|
|
|
projectName:'创业孵化基地企业情况信息表',
|
|
@@ -175,14 +171,13 @@
|
|
|
|
|
|
}
|
|
|
],
|
|
|
- pavalues:{
|
|
|
- value:'',
|
|
|
- value1:'',
|
|
|
- value2:'',
|
|
|
- value3:'',
|
|
|
- value4:'',
|
|
|
+
|
|
|
+ addMess:{
|
|
|
+ tit:'',
|
|
|
+ con:''
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
methods:{
|
|
|
del(){
|
|
@@ -191,7 +186,7 @@
|
|
|
},
|
|
|
init(){
|
|
|
//重置
|
|
|
-
|
|
|
+
|
|
|
console.log(this.textarea)
|
|
|
console.log(this.input)
|
|
|
if(this.textarea==''||this.input=='')return;
|
|
@@ -210,6 +205,23 @@
|
|
|
addMessage(){
|
|
|
this.dialogVisible=true;
|
|
|
},
|
|
|
+ confirmAdd(){
|
|
|
+ let param ={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ title:this.addMess.tit,
|
|
|
+ brief:this.addMess.con,
|
|
|
+ }
|
|
|
+ console.log(param)
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api+"/CreateNewNotification",param)
|
|
|
+ .then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ // this.init()
|
|
|
+ },err=>{
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
lookIntro(){
|
|
|
this.dialogVisible2=true;
|
|
|
}
|