diff --git a/src/views/cai/sysPush/add-sys-push-dialog.vue b/src/views/cai/sysPush/add-sys-push-dialog.vue index 693af0f..5bfe407 100644 --- a/src/views/cai/sysPush/add-sys-push-dialog.vue +++ b/src/views/cai/sysPush/add-sys-push-dialog.vue @@ -320,7 +320,33 @@ export default { this.form.id = id || undefined this.open = true this.$nextTick(() => { - this.$refs['form'].resetFields() + // this.$refs['form'].resetFields() + this.form = { + id: undefined, + groupId: 0, + usercode: undefined, + + onlyText: undefined, + + textText1: undefined, + textText2: undefined, + textLinkType: 0, + textLinkUrl: undefined, + + oneImageTitleType:2, + oneImageImage:undefined, + oneImageText:undefined, + oneImageLinkType: 0, + oneImageLinkUrl: undefined, + + onlyImage:undefined, + + sendTimeType: 0, + sendTime: undefined, + title: undefined, + type: 0, + remark: undefined + } this.userInfo = {} this.textContext = [] this.imageContext = [] diff --git a/src/views/cai/sysPushLog/index.vue b/src/views/cai/sysPushLog/index.vue index dc16250..5de858c 100644 --- a/src/views/cai/sysPushLog/index.vue +++ b/src/views/cai/sysPushLog/index.vue @@ -38,6 +38,36 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + + + + + + + + 搜索 + 重置 + + +
+
+ + +
{{value.nickname}}({{ value.usercode }})
+
+
+
+
@@ -56,6 +86,7 @@ export default { data() { return { systemPushGroupIdList,systemPushLogStatus,systemPushSendTimeTypeList,systemPushStatusList,systemPushTypeList, + systemName: process.env.VUE_APP_SYSTEM_HOME, // 遮罩层 loading: true, // 选中数组 @@ -77,6 +108,12 @@ export default { sysPushId: undefined, status: undefined, }, + sourceUserList:[], + userList: [], + showUserOpen: false, + userForm:{ + name: undefined + } }; }, created() { @@ -93,7 +130,9 @@ export default { }); }, handleShowUser(row){ - + this.userList = JSON.parse(row.userJson); + this.sourceUserList = JSON.parse(row.userJson); + this.showUserOpen = true }, /** 搜索按钮操作 */ handleQuery() { @@ -105,6 +144,24 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, + handleUserQuery(){ + let name = this.userForm.name + console.log(name) + if(name){ + let list = [] + this.sourceUserList.forEach(value => { + console.log(value) + if(value.usercode == name){ + list.push(value) + } + }) + this.userList = list + } + }, + resetUserQuery(){ + this.userForm.name = undefined + this.userList = this.sourceUserList + }, // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id) @@ -114,3 +171,30 @@ export default { } }; + + diff --git a/vue.config.js b/vue.config.js index 5d3da61..0ca3e4c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target: `http://124.222.254.188:9779/prod-api`, + // target: `http://localhost:8080`, + target: `http://124.222.254.188:9779/prod-api`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''