820e4384 by renchao@pashanhoo.com

style:批量操作

1 parent 0e4babcb
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
76 * @author: renchao 76 * @author: renchao
77 */ 77 */
78 handleSubmit () { 78 handleSubmit () {
79 debugger
80 this.$refs['ruleForm'].validate((valid) => { 79 this.$refs['ruleForm'].validate((valid) => {
81 if (valid) { 80 if (valid) {
82 this.$parent.addSave(this.ruleForm); 81 this.$parent.addSave(this.ruleForm);
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-21 10:15:11 4 * @LastEditTime: 2023-07-25 14:14:04
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -177,9 +177,8 @@ ...@@ -177,9 +177,8 @@
177 * @author: renchao 177 * @author: renchao
178 */ 178 */
179 batchUnitClick () { 179 batchUnitClick () {
180 debugger
181 this.currentSelectProps.batchOperation = true; 180 this.currentSelectProps.batchOperation = true;
182 // this.activeIndex = "-1"; 181 this.activeIndex = "-1";
183 this.$parent.stepForm(0); 182 this.$parent.stepForm(0);
184 183
185 }, 184 },
...@@ -201,7 +200,7 @@ ...@@ -201,7 +200,7 @@
201 * @author: renchao 200 * @author: renchao
202 */ 201 */
203 unitClick (index) { 202 unitClick (index) {
204 if(this.unitData.length==0) return 203 if (this.unitData.length == 0) return
205 this.currentSelectProps = this.unitData[index]; 204 this.currentSelectProps = this.unitData[index];
206 this.currentSelectProps.batchOperation = false; 205 this.currentSelectProps.batchOperation = false;
207 this.activeIndex = index.toString(); 206 this.activeIndex = index.toString();
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
158 this.fresh++; 158 this.fresh++;
159 //获取单元对应的所有表单信息 159 //获取单元对应的所有表单信息
160 this.tabList = res.result; 160 this.tabList = res.result;
161 console.log(res.result, 'res.result');
161 //默认加载第一个表单信息 162 //默认加载第一个表单信息
162 let arr = res.result.filter(item => item.defaultForm) 163 let arr = res.result.filter(item => item.defaultForm)
163 if (arr.length > 0) { 164 if (arr.length > 0) {
......