From ce67116a7e0f30d4de8fcdd85f8bdce6e819dc48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Mon, 18 Oct 2021 18:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/login.vue | 4 +- src/views/shop/demandHall/authentication.vue | 7 + src/views/wechat/reply/addReply.vue | 832 +++++++++++++++++++ src/views/wechat/reply/index.vue | 166 +--- 5 files changed, 871 insertions(+), 140 deletions(-) create mode 100644 src/views/wechat/reply/addReply.vue diff --git a/.env.development b/.env.development index f1ab67d..6831d33 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ ENV = 'development' # 接口地址 -VUE_APP_BASE_API = 'http://192.168.0.114:8094' +VUE_APP_BASE_API = 'http://192.168.0.112:8094' VUE_APP_WS_API = 'ws://localhost:8088' # 是否启用 babel-plugin-dynamic-import-node插件 diff --git a/src/views/login.vue b/src/views/login.vue index 458c1fc..4a125e1 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -71,8 +71,8 @@ export default { codeUrl: '', cookiePass: '', loginForm: { - username: 'admin', - password: '123456', + username: '', + password: '', rememberMe: false, code: '', uuid: '' diff --git a/src/views/shop/demandHall/authentication.vue b/src/views/shop/demandHall/authentication.vue index e5fddb5..f4997e4 100644 --- a/src/views/shop/demandHall/authentication.vue +++ b/src/views/shop/demandHall/authentication.vue @@ -219,6 +219,13 @@ export default { } }, authSubmit(){ + if(this.authForm.type == 0 && this.authForm.reason == ''){ + this.$message({ + message: '请填写不通过理由!', + type: 'error' + }) + return + } crudEnterpriseAuthentication.examineAuthenticationInfo(this.authForm).then((res)=>{ this.$message({ message: '操作成功!', diff --git a/src/views/wechat/reply/addReply.vue b/src/views/wechat/reply/addReply.vue new file mode 100644 index 0000000..1a8831b --- /dev/null +++ b/src/views/wechat/reply/addReply.vue @@ -0,0 +1,832 @@ + + + + {{ msg }} + + + + + 公众号 + + 9:36 + + + + {{ dataGroup.text.content }} + + + + + + {{ dataGroup.news[0].title }} + {{ dataGroup.news[0].date }} + + {{ dataGroup.news[0].description }} + + 阅读原文 + + + + + + {{ dataGroup.news[0].title }} + + + {{ newinfos.title }} + + + + + + + + + + + + + + + + + + + + {{ msg }} + + + + + 规则状态 + + + + + + + 启用 + + + + + 禁用 + + + + + + + + + + 类型 + + + + + + + 订阅消息 + + + + + 回复消息 + + + + + + + + + + 关键字 + + + + + + + + + + + + 消息类型 + + + + + 文字消息 + 图片 + + + + + + + + + + 规则内容 + + + + + + + + + + + + + + 提交 + + + + + + + + + + + + + diff --git a/src/views/wechat/reply/index.vue b/src/views/wechat/reply/index.vue index 6435b1d..cc72730 100644 --- a/src/views/wechat/reply/index.vue +++ b/src/views/wechat/reply/index.vue @@ -1,122 +1,25 @@ - - {{ msg }} - - - - - 公众号 - - 9:36 - - - - {{ dataGroup.text.content }} - - - - - - {{ dataGroup.news[0].title }} - {{ dataGroup.news[0].date }} - - {{ dataGroup.news[0].description }} - - 阅读原文 - - - - - - {{ dataGroup.news[0].title }} - - - {{ newinfos.title }} - - - - - - - - - - - - - - - - - - - - {{ msg }} - - - - - 规则状态 - - - - - - - 启用 - - - - - 禁用 - - - - - - - - - - 消息类型 - - - - - 文字消息 - - - - - - - - - - 规则内容 - - - - - - - - - - - - - - - 提交 - - - - - - + + 新增回复 + + + + + + {{scope.row.data.content}} + + + + + + 删除 + + + @@ -163,24 +66,14 @@ export default { }) }, mounted: function() { - this.key = 'subscribe' - this.msg = '编辑关注回复' get().then(rese => { this.result = rese - this.type = rese.type - this.status = rese.status - const newData = JSON.parse(rese.data) - if (rese.type == 'image') { - this.dataGroup.image.src = newDatasrc - } else if (rese.type == 'text') { - this.dataGroup.text.content = newData.content - } - if (this.used_key) { - this.keyword = this.result.key - } }) }, methods: { + addReply(){ + this.$router.push({ path: '/wechat/addReply' }) + }, checkPermission, beforeInit() { this.url = 'api/yxWechatReply' @@ -189,21 +82,20 @@ export default { return true }, subDelete(id) { - this.delLoading = true + // this.delLoading = true del(id).then(res => { - this.delLoading = false - this.$refs[id].doClose() - this.dleChangePage() - this.init() + get().then(rese => { + this.result = rese + }) this.$notify({ title: '删除成功', type: 'success', duration: 2500 }) }).catch(err => { - this.delLoading = false - this.$refs[id].doClose() - console.log(err.response.data.message) + // this.delLoading = false + // this.$refs[id].doClose() + // console.log(err.response.data.message) }) }, add() {
{{ msg }}