Browse Source

修改:文件管理新增下拉列表带入可访问群组

zhangfu 3 years ago
parent
commit
8fff641e5b
2 changed files with 8 additions and 2 deletions
  1. 7 1
      src/pages/fileManagement/edit.vue
  2. 1 1
      src/pages/sessionManagement/edit.vue

+ 7 - 1
src/pages/fileManagement/edit.vue

@@ -225,7 +225,7 @@ export default {
      * **/
     visbleChange(val) {
       if (val) {
-        api.POST('/doc/type/dropList').then(data => {
+        api.GET('/doc/type/dropListAll').then(data => {
           if (data.code == 0) {
             this.classifyList = data.data
           }
@@ -236,9 +236,15 @@ export default {
      * @method 分类选择
      * **/
     classifyChange(val) {
+      this.form.conversationList = []
       this.classifyList.find(item => {
         if (item.typeId == val) {
           this.form.linkUrl = item.linkUrl
+          if (item.list) {
+            item.list.map(val => {
+              this.form.conversationList.push(val.openConversationId)
+            })
+          }
         }
       })
       this.detailClassifica(val)

+ 1 - 1
src/pages/sessionManagement/edit.vue

@@ -95,7 +95,7 @@
       </el-form-item>
     </el-form>
     <span slot="footer" class="dialog-footer">
-      <el-button @click="dialogVisible = false">取 消</el-button>
+      <el-button @click="handleClose">取 消</el-button>
       <el-button type="primary" @click="determine('form')">确 定</el-button>
     </span>
   </el-dialog>