|
@@ -18,7 +18,7 @@
|
|
|
|
|
|
<div class="table">
|
|
|
<dilTable v-bind.sync="options">
|
|
|
- <el-table-column fixed="right" label="操作" width="120" header-align="center">
|
|
|
+ <el-table-column fixed="right" label="操作" width="150" header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -34,6 +34,13 @@
|
|
|
>
|
|
|
修改
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="releaseNotice(scope)"
|
|
|
+ >
|
|
|
+ 发布
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="mini"
|
|
@@ -52,6 +59,7 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
+import { getCookie } from '@/utils/util.js'
|
|
|
export default {
|
|
|
name:"homeworkPath",
|
|
|
data(){
|
|
@@ -62,6 +70,7 @@ export default {
|
|
|
// first请求数据的地址
|
|
|
requestUrl: "/api/v1/ams/getCarrierNoticeList?apiId=414",
|
|
|
},
|
|
|
+ userId:""
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -69,6 +78,28 @@ export default {
|
|
|
this.options.requestUrl = "/api/v1/ams/getCarrierNoticeList?apiId=414&con="+this.textInput;
|
|
|
},
|
|
|
|
|
|
+ //发布
|
|
|
+ releaseNotice(scope){
|
|
|
+ console.log("发布")
|
|
|
+ console.log(scope.row)
|
|
|
+ let dilNotice={
|
|
|
+ noticeTitle:scope.row.noticeTitle,
|
|
|
+ noticeContent:scope.row.noticeContent,
|
|
|
+ insertUsername:scope.row.insertUsername,
|
|
|
+ insertTime:scope.row.insertTime,
|
|
|
+ noticeId:scope.row.noticeId,
|
|
|
+ permission:scope.row.permission
|
|
|
+ }
|
|
|
+ this.axios.post("/api/v1/ams/releaseNotice",dilNotice).
|
|
|
+ then((res)=>{
|
|
|
+ if (res.data.code=="200"){
|
|
|
+ this.$message.success("发布成功")
|
|
|
+ }else {
|
|
|
+ this.$message.error("发布失败")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ },
|
|
|
|
|
|
|
|
|
CarrierNotice() {
|
|
@@ -78,7 +109,6 @@ export default {
|
|
|
/*新增通知*/
|
|
|
toInsert() {
|
|
|
this.$router.push("/addNotice");
|
|
|
-
|
|
|
},
|
|
|
|
|
|
/*通知详情*/
|
|
@@ -130,7 +160,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
+ /* created() {
|
|
|
+ this.userId= getCookie('userId')
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
</script>
|