正在显示
1 个修改的文件
包含
28 行增加
和
11 行删除
@@ -6,30 +6,30 @@ | @@ -6,30 +6,30 @@ | ||
6 | <el-row> | 6 | <el-row> |
7 | <el-col :span="5"> | 7 | <el-col :span="5"> |
8 | <el-input v-model="umb_queryInfo.sndr" | 8 | <el-input v-model="umb_queryInfo.sndr" |
9 | - size="medium" | 9 | + size="mini" |
10 | placeholder="帐户名称" clearable> | 10 | placeholder="帐户名称" clearable> |
11 | <template slot="prepend" ><i class="el-icon-user"></i>帐户名称</template> | 11 | <template slot="prepend" ><i class="el-icon-user"></i>帐户名称</template> |
12 | </el-input> | 12 | </el-input> |
13 | </el-col> | 13 | </el-col> |
14 | <el-col :span="5"> | 14 | <el-col :span="5"> |
15 | <el-input v-model="umb_queryInfo.btype" | 15 | <el-input v-model="umb_queryInfo.btype" |
16 | - size="medium" | 16 | + size="mini" |
17 | placeholder="消息大类" clearable> | 17 | placeholder="消息大类" clearable> |
18 | <template slot="prepend"><i class="el-icon-s-platform"></i>消息大类</template> | 18 | <template slot="prepend"><i class="el-icon-s-platform"></i>消息大类</template> |
19 | </el-input> | 19 | </el-input> |
20 | </el-col> | 20 | </el-col> |
21 | <el-col :span="5"> | 21 | <el-col :span="5"> |
22 | <el-input v-model="umb_queryInfo.stype" | 22 | <el-input v-model="umb_queryInfo.stype" |
23 | - size="medium" | 23 | + size="mini" |
24 | placeholder="消息子类" clearable> | 24 | placeholder="消息子类" clearable> |
25 | <template slot="prepend"><i class="el-icon-s-operation"></i>消息子类</template> | 25 | <template slot="prepend"><i class="el-icon-s-operation"></i>消息子类</template> |
26 | </el-input> | 26 | </el-input> |
27 | </el-col> | 27 | </el-col> |
28 | <el-col :span="5"> | 28 | <el-col :span="5"> |
29 | - <el-button type="warning" size="medium" icon="el-icon-search" @click="queryRouterList"> | 29 | + <el-button type="warning" size="mini" icon="el-icon-search" @click="queryRouterList"> |
30 | 查询 | 30 | 查询 |
31 | </el-button> | 31 | </el-button> |
32 | - <el-button type="primary" size="medium" icon="el-icon-plus" @click="dialogFormVisible = true"> | 32 | + <el-button type="primary" size="mini" icon="el-icon-plus" @click="addFormShow"> |
33 | 添加 | 33 | 添加 |
34 | </el-button> | 34 | </el-button> |
35 | </el-col> | 35 | </el-col> |
@@ -70,10 +70,12 @@ | @@ -70,10 +70,12 @@ | ||
70 | > | 70 | > |
71 | <template slot-scope="scope"> | 71 | <template slot-scope="scope"> |
72 | <div v-for="reciver in scope.row.rcvrList" v-bind:key="reciver.id"> | 72 | <div v-for="reciver in scope.row.rcvrList" v-bind:key="reciver.id"> |
73 | - {{reciver.rcvrTopic}}<!--,{{reciver.filterList.filter}}--> | ||
74 | - <el-button type="text" size="mini" @click="addReceiverFiletery(reciver.id)">增加过滤</el-button> | 73 | + {{reciver.rcvrTopic}} |
74 | + <el-button type="text" size="mini" @click="addReceiverFiletery(reciver.id)">[删除]</el-button><!--,{{reciver.filterList.filter}}--> | ||
75 | + <el-button type="text" size="mini" @click="addReceiverFiletery(reciver.id)">[增加过滤]</el-button> | ||
75 | <!-- <div v-for="filters in reciver.filterList">{{filters.filter}}</div>--> | 76 | <!-- <div v-for="filters in reciver.filterList">{{filters.filter}}</div>--> |
76 | </div> | 77 | </div> |
78 | + <el-button type="text" size="mini" @click="addReceiverFiletery()">[增加接收者]</el-button> | ||
77 | </template> | 79 | </template> |
78 | </el-table-column> | 80 | </el-table-column> |
79 | <el-table-column | 81 | <el-table-column |
@@ -91,6 +93,7 @@ | @@ -91,6 +93,7 @@ | ||
91 | </el-table-column> | 93 | </el-table-column> |
92 | <el-table-column label="操作" width="250px" align="center" fixed="right"> | 94 | <el-table-column label="操作" width="250px" align="center" fixed="right"> |
93 | <template slot-scope="scope"> | 95 | <template slot-scope="scope"> |
96 | + <el-button type="primary" size="mini" @click="editRouter(scope.$index,scope.row)">编辑</el-button> | ||
94 | <el-button type="danger" size="mini" @click="delRouter(scope.$index,scope.row)">删除</el-button> | 97 | <el-button type="danger" size="mini" @click="delRouter(scope.$index,scope.row)">删除</el-button> |
95 | </template> | 98 | </template> |
96 | </el-table-column> | 99 | </el-table-column> |
@@ -103,7 +106,7 @@ | @@ -103,7 +106,7 @@ | ||
103 | @size-change="handleSizeChange" | 106 | @size-change="handleSizeChange" |
104 | @current-change="handleCurrentChange" | 107 | @current-change="handleCurrentChange" |
105 | :current-page="umb_queryInfo.pageNum" | 108 | :current-page="umb_queryInfo.pageNum" |
106 | - :page-sizes="[100, 200, 300, 400]" | 109 | + :page-sizes="[10, 20, 50, 100]" |
107 | :page-size="umb_queryInfo.pageSize" | 110 | :page-size="umb_queryInfo.pageSize" |
108 | layout="total, sizes, prev, pager, next, jumper" | 111 | layout="total, sizes, prev, pager, next, jumper" |
109 | :total="umb_queryData.total"> | 112 | :total="umb_queryData.total"> |
@@ -111,7 +114,7 @@ | @@ -111,7 +114,7 @@ | ||
111 | </div> | 114 | </div> |
112 | </el-row> | 115 | </el-row> |
113 | <el-row> | 116 | <el-row> |
114 | - <el-dialog title="路由消息添加" :visible.sync="dialogFormVisible" width="70%" style="margin-top: -20px" text-align="center"> | 117 | + <el-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFormVisible" width="70%" style="margin-top: -20px" text-align="center"> |
115 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="145px" | 118 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="145px" |
116 | class="demo-ruleForm" style="margin-top: -10px ;margin-left: -150px" align="center" > | 119 | class="demo-ruleForm" style="margin-top: -10px ;margin-left: -150px" align="center" > |
117 | <el-form-item label="" prop="sndr"> | 120 | <el-form-item label="" prop="sndr"> |
@@ -134,13 +137,13 @@ | @@ -134,13 +137,13 @@ | ||
134 | <div slot="footer" class="dialog-footer" align="center"> | 137 | <div slot="footer" class="dialog-footer" align="center"> |
135 | <el-button @click="dialogFormVisible = false" size="medium" | 138 | <el-button @click="dialogFormVisible = false" size="medium" |
136 | style="width: 100px;background-color: #6F8294;color: #ffffff">取 消</el-button> | 139 | style="width: 100px;background-color: #6F8294;color: #ffffff">取 消</el-button> |
137 | - <el-button type="primary" size="medium" style="width: 100px" @click="submitForm('ruleForm')">确 定</el-button> | 140 | + <el-button type="primary" size="medium" style="width: 100px" @click="ialogStatus==='create'?submitForm('ruleForm'):subEditForm()">确 定</el-button> |
138 | </div> | 141 | </div> |
139 | 142 | ||
140 | </el-dialog> | 143 | </el-dialog> |
141 | </el-row> | 144 | </el-row> |
142 | <el-row> | 145 | <el-row> |
143 | - <el-dialog title="增加过滤规则" :visible.sync="dialogFilterVisible" width="40%" style="margin-top: 100px"> | 146 | + <el-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFilterVisible" width="40%" style="margin-top: 100px"> |
144 | <!-- <RouterFilter v-bind:propRouterReceiveId="selectReceiverId"> </RouterFilter>--> | 147 | <!-- <RouterFilter v-bind:propRouterReceiveId="selectReceiverId"> </RouterFilter>--> |
145 | <el-form :inline="true" label-width="120px" status-icon style="margin-top: -10px" | 148 | <el-form :inline="true" label-width="120px" status-icon style="margin-top: -10px" |
146 | :model="queue_addForm" :rules="queue_addFormRules" ref="queue_addFormRef" align="center"> | 149 | :model="queue_addForm" :rules="queue_addFormRules" ref="queue_addFormRef" align="center"> |
@@ -213,6 +216,11 @@ | @@ -213,6 +216,11 @@ | ||
213 | components: { Queue,RouterFilter }, | 216 | components: { Queue,RouterFilter }, |
214 | data(){ | 217 | data(){ |
215 | return{ | 218 | return{ |
219 | + dialogMap: { | ||
220 | + update: '编辑', | ||
221 | + create: '新增', | ||
222 | + }, | ||
223 | + dialogStatus: 'create', | ||
216 | /** | 224 | /** |
217 | * queue,新增表单 | 225 | * queue,新增表单 |
218 | */ | 226 | */ |
@@ -331,6 +339,10 @@ | @@ -331,6 +339,10 @@ | ||
331 | this.umb_queryInfo.pageNum=val; | 339 | this.umb_queryInfo.pageNum=val; |
332 | this.queryRouterList(); | 340 | this.queryRouterList(); |
333 | }, | 341 | }, |
342 | + addFormShow:function(){ | ||
343 | + this.dialogStatus= 'create'; | ||
344 | + this.dialogFormVisible = true; | ||
345 | + }, | ||
334 | queryRouterList(){ | 346 | queryRouterList(){ |
335 | queRouter(this.umb_queryInfo).then((response) => { | 347 | queRouter(this.umb_queryInfo).then((response) => { |
336 | let res = response.data; | 348 | let res = response.data; |
@@ -341,6 +353,11 @@ | @@ -341,6 +353,11 @@ | ||
341 | 353 | ||
342 | }); | 354 | }); |
343 | }, | 355 | }, |
356 | + editRouter:function(index,row){ | ||
357 | + this.dialogStatus= 'update'; | ||
358 | + this.dialogFormVisible = true; | ||
359 | + this.ruleForm = Object.assign({}, row); | ||
360 | + }, | ||
344 | delRouter(index,row){ | 361 | delRouter(index,row){ |
345 | // 弹框询问是否删除? | 362 | // 弹框询问是否删除? |
346 | this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', { | 363 | this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', { |
-
请 注册 或 登录 后发表评论