diff --git a/src/api/model/ecm.js b/src/api/model/ecm.js index e7d61a04..b30abf74 100644 --- a/src/api/model/ecm.js +++ b/src/api/model/ecm.js @@ -66,11 +66,20 @@ export default { ); } }, - read:{ - name: "详情", - req: async function (id) { + item: { + name: "获取", + req: async function(id){ return await http.get( - `${config.API_URL}/ecm/event/${id}/`); + `${config.API_URL}/ecm/event/${id}/` + ); + } + }, + handle: { + name: "创建", + req: async function(id,data){ + return await http.post( + `${config.API_URL}/ecm/event/${id}/handle/`, + data); } }, } @@ -138,4 +147,4 @@ export default { } -} \ No newline at end of file +} diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 76d20958..2ff3749c 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -18,7 +18,8 @@ @@ -26,27 +27,39 @@
    -
  • - -
  • { - this.msgList = res; - - }); + this.$API.ecm.myevent.list + .req({ is_read: false, page: 0 }) + .then((res) => { + this.msgList = res; + }); }, + createhandele(id) { +this.$router.push({ + name: "eventhandlefrom", + query: { + id: id, + }, + }); +this.msg=false; + }, + handele(id) { + this.$router.push({ + name: "eventhandlefrom", + query: { + id: id, + }, + }); + this.msg=false; + }, //个人信息 handleUser(command) { if (command == "uc") { @@ -173,6 +205,7 @@ export default { //显示短消息 showMsg() { this.msg = true; + this.getMyVents(); }, //标记已读 markRead() { diff --git a/src/style/media.scss b/src/style/media.scss index 01cd3e1e..b3d639fe 100644 --- a/src/style/media.scss +++ b/src/style/media.scss @@ -4,7 +4,7 @@ .el-form-item__label {display: block;text-align: left;padding: 0 0 10px;} .el-dialog {width: 90%!important;} .el-dialog.is-fullscreen {width: 100%!important;} - .el-drawer.rtl {width: 90%!important;} + //.el-drawer.rtl {width: 90%!important;} .el-form-item__content {margin-left: 0px!important;} .adminui-main { diff --git a/src/views/am/access_form.vue b/src/views/am/access_form.vue index 485d66a2..7de8cb80 100644 --- a/src/views/am/access_form.vue +++ b/src/views/am/access_form.vue @@ -13,6 +13,14 @@ label-width="120px" > + + + + 准入 + 禁入 + + + @@ -84,6 +92,7 @@ v-model="form.stay_minute_min" :min="0" :max="32767" + placeholder="分钟" controls-position="right" > @@ -94,18 +103,12 @@ v-model="form.stay_minute_max" :min="0" :max="32767" + placeholder="分钟" controls-position="right" > - - - - 准入 - 禁入 - - - + + + + { - this.$refs.saveDialog.open("show").setData(row); + this.$router.push({ + name: "eventhandlefrom", + query: { + id: row.event_.id, + }, }); }, //搜索