Browse Source

多选用户

gks 1 year ago
parent
commit
147bab6a36
2 changed files with 7 additions and 2 deletions
  1. 6 1
      src/views/AuxiliaryIndex/index.vue
  2. 1 1
      src/views/GATHER/index.vue

+ 6 - 1
src/views/AuxiliaryIndex/index.vue

@@ -162,7 +162,7 @@
               v-for="(item) in roleList"
               :key="item.value"
               :label="item.roleName"
-              :value="item.roleId + ''"
+              :value="item.roleId"
             >
             </el-option>
           </el-select>
@@ -403,6 +403,10 @@ export default {
       getNORMROLE(id).then((response) => {
         this.form = response.data;
         this.form.roleName = "张三";
+        this.form.senId = this.form.senId.split(",");
+        this.form.senId.forEach((item,i)=>{
+          this.form.senId[i] = +item;
+        });
         this.open = true;
         this.title = "修改辅助指标采集权限分配";
       });
@@ -411,6 +415,7 @@ export default {
     submitForm() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
+          this.form.senId = this.form.senId.toString();
           if (this.form.id != null) {
             updateNORMROLE(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");

+ 1 - 1
src/views/GATHER/index.vue

@@ -673,7 +673,7 @@
                       v-model="listItem.collCalue"
                       :placeholder="'请输入' + listItem.normfeeName"
                     ></el-input>
-                    <div v-if="edit == false" style="background-color: rgba(0, 0, 0, .03); padding-left: 5px;" >{{ listItem.collCalue ? listItem.collCalue :"请输入" }}</div>
+                    <div v-if="edit == false" style="background-color: rgba(0, 0, 0, .03); padding-left: 5px;" >{{ listItem.collCalue || listItem.collCalue == 0 ? listItem.collCalue :"请输入" }}</div>
                   </el-form-item>
                 </el-col>
               </el-form>