|
@@ -2,14 +2,14 @@
|
|
<el-dialog
|
|
<el-dialog
|
|
:title="refList.title"
|
|
:title="refList.title"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
- width="33%"
|
|
|
|
|
|
+ width="36%"
|
|
:before-close="handleClose"
|
|
:before-close="handleClose"
|
|
:close-on-press-escape="false"
|
|
:close-on-press-escape="false"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
v-loading.fullscreen.lock="fullscreenLoading"
|
|
v-loading.fullscreen.lock="fullscreenLoading"
|
|
>
|
|
>
|
|
- <el-form :model="form" ref="form" :rules="rules" label-width="100px">
|
|
|
|
|
|
+ <el-form :model="form" ref="form" :rules="rules" label-width="120px">
|
|
<el-form-item label="分类名称:" prop="typeId">
|
|
<el-form-item label="分类名称:" prop="typeId">
|
|
<el-select
|
|
<el-select
|
|
:disabled="!refList.show"
|
|
:disabled="!refList.show"
|
|
@@ -80,11 +80,11 @@
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
<template v-if="index == 0" slot="label">
|
|
<template v-if="index == 0" slot="label">
|
|
- <span>访问权限:</span>
|
|
|
|
|
|
+ <span>可访问手机号:</span>
|
|
</template>
|
|
</template>
|
|
<div class="form_item_content">
|
|
<div class="form_item_content">
|
|
<el-input
|
|
<el-input
|
|
- clearable
|
|
|
|
|
|
+ clearable
|
|
placeholder="请输入手机号"
|
|
placeholder="请输入手机号"
|
|
v-onlyInt
|
|
v-onlyInt
|
|
maxlength="11"
|
|
maxlength="11"
|
|
@@ -98,6 +98,22 @@
|
|
></i>
|
|
></i>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="可访问群组:">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.conversationList"
|
|
|
|
+ multiple
|
|
|
|
+ collapse-tags
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in conversationList"
|
|
|
|
+ :key="item.openConversationId"
|
|
|
|
+ :label="item.conversationName"
|
|
|
|
+ :value="item.openConversationId"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button size="small" @click="handleClose">取 消</el-button>
|
|
<el-button size="small" @click="handleClose">取 消</el-button>
|
|
@@ -125,8 +141,10 @@ export default {
|
|
name: '',
|
|
name: '',
|
|
status: 1,
|
|
status: 1,
|
|
typeId: '',
|
|
typeId: '',
|
|
- role: [{ value: '' }]
|
|
|
|
|
|
+ role: [{ value: '' }],
|
|
|
|
+ conversationList: []
|
|
},
|
|
},
|
|
|
|
+ conversationList: [],
|
|
refList: {},
|
|
refList: {},
|
|
fileList: [],
|
|
fileList: [],
|
|
classifyList: [],
|
|
classifyList: [],
|
|
@@ -155,7 +173,8 @@ export default {
|
|
status: 1,
|
|
status: 1,
|
|
typeId: '',
|
|
typeId: '',
|
|
fileSize: '',
|
|
fileSize: '',
|
|
- role: [{ value: '' }]
|
|
|
|
|
|
+ role: [{ value: '' }],
|
|
|
|
+ conversationList: []
|
|
}
|
|
}
|
|
this.fileList = []
|
|
this.fileList = []
|
|
this.$refs['form'].resetFields()
|
|
this.$refs['form'].resetFields()
|
|
@@ -170,6 +189,7 @@ export default {
|
|
this.visbleChange(true)
|
|
this.visbleChange(true)
|
|
this.details()
|
|
this.details()
|
|
}
|
|
}
|
|
|
|
+ this.conversationGetDropList()
|
|
}
|
|
}
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
},
|
|
},
|
|
@@ -181,7 +201,7 @@ export default {
|
|
if (data.code == 0) {
|
|
if (data.code == 0) {
|
|
this.form = data.data
|
|
this.form = data.data
|
|
let role = []
|
|
let role = []
|
|
- if (this.form.role&&this.form.role.length != 0) {
|
|
|
|
|
|
+ if (this.form.role && this.form.role.length != 0) {
|
|
this.form.role.forEach(item => {
|
|
this.form.role.forEach(item => {
|
|
role.push({ value: item })
|
|
role.push({ value: item })
|
|
})
|
|
})
|
|
@@ -189,6 +209,11 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.form.role = [{ value: '' }]
|
|
this.form.role = [{ value: '' }]
|
|
}
|
|
}
|
|
|
|
+ let conversationList = []
|
|
|
|
+ this.form.conversationList.forEach(item => {
|
|
|
|
+ conversationList.push(item.openConversationId)
|
|
|
|
+ })
|
|
|
|
+ this.form.conversationList = conversationList
|
|
this.fileList = [{ name: this.form.name, url: this.form.docUrl }]
|
|
this.fileList = [{ name: this.form.name, url: this.form.docUrl }]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -227,7 +252,7 @@ export default {
|
|
if (data.code == 0) {
|
|
if (data.code == 0) {
|
|
this.form.role = data.data.role
|
|
this.form.role = data.data.role
|
|
let role = []
|
|
let role = []
|
|
- if (this.form.role&&this.form.role.length != 0) {
|
|
|
|
|
|
+ if (this.form.role && this.form.role.length != 0) {
|
|
this.form.role.forEach(item => {
|
|
this.form.role.forEach(item => {
|
|
role.push({ value: item })
|
|
role.push({ value: item })
|
|
})
|
|
})
|
|
@@ -322,6 +347,19 @@ export default {
|
|
role.push(item.value)
|
|
role.push(item.value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ let conversationList = []
|
|
|
|
+ this.conversationList.forEach(item => {
|
|
|
|
+ if (
|
|
|
|
+ this.form.conversationList.find(
|
|
|
|
+ ltem => item.openConversationId == ltem
|
|
|
|
+ )
|
|
|
|
+ ) {
|
|
|
|
+ conversationList.push({
|
|
|
|
+ chatId: item.chatId,
|
|
|
|
+ openConversationId: item.openConversationId
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
let code = {
|
|
let code = {
|
|
docUrl: this.form.docUrl,
|
|
docUrl: this.form.docUrl,
|
|
linkUrl: this.form.linkUrl,
|
|
linkUrl: this.form.linkUrl,
|
|
@@ -329,7 +367,8 @@ export default {
|
|
status: this.form.status,
|
|
status: this.form.status,
|
|
typeId: this.form.typeId,
|
|
typeId: this.form.typeId,
|
|
fileSize: this.form.fileSize,
|
|
fileSize: this.form.fileSize,
|
|
- role: role
|
|
|
|
|
|
+ role: role,
|
|
|
|
+ conversationList: conversationList
|
|
}
|
|
}
|
|
this.refList.show ? this.addfile(code) : this.editfile(code)
|
|
this.refList.show ? this.addfile(code) : this.editfile(code)
|
|
}
|
|
}
|
|
@@ -381,6 +420,14 @@ export default {
|
|
* **/
|
|
* **/
|
|
deletjurisdiction(val) {
|
|
deletjurisdiction(val) {
|
|
this.form.role.splice(val, 1)
|
|
this.form.role.splice(val, 1)
|
|
|
|
+ },
|
|
|
|
+ //会话下拉列表
|
|
|
|
+ conversationGetDropList() {
|
|
|
|
+ api.GET('conversation/getDropList').then(res => {
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ this.conversationList = res.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|