作者 RuoYi

优化代码

@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
41 order by dict_sort asc 41 order by dict_sort asc
42 </select> 42 </select>
43 43
44 - <select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult"> 44 + <select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
45 <include refid="selectDictDataVo"/> 45 <include refid="selectDictDataVo"/>
46 where status = '0' and dict_type = #{dictType} order by dict_sort asc 46 where status = '0' and dict_type = #{dictType} order by dict_sort asc
47 </select> 47 </select>
@@ -127,11 +127,9 @@ export default { @@ -127,11 +127,9 @@ export default {
127 } 127 }
128 authUserSelectAll({ roleId: roleId, userIds: userIds }).then(res => { 128 authUserSelectAll({ roleId: roleId, userIds: userIds }).then(res => {
129 this.$modal.msgSuccess(res.msg); 129 this.$modal.msgSuccess(res.msg);
130 - if (res.code === 200) {  
131 - this.visible = false;  
132 - this.$emit("ok");  
133 - }  
134 - }); 130 + this.visible = false;
  131 + this.$emit("ok");
  132 + });
135 } 133 }
136 } 134 }
137 }; 135 };