|
|
@@ -55,6 +55,17 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-form-item v-if="isScopeUser" label="公告范围:" prop="scopeUserIds">
|
|
|
+ <ibps-employee-selector
|
|
|
+ v-if="form.scopeUserIds && form.scopeUserIds !== 'ALL'"
|
|
|
+ :readonly="true"
|
|
|
+ :multiple="true"
|
|
|
+ :isUseScope="true"
|
|
|
+ placeholder="不选择时默认全部"
|
|
|
+ v-model="form.scopeUserIds"
|
|
|
+ />
|
|
|
+ <el-tag v-else>全部</el-tag>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="附件:" prop="fileAttach">
|
|
|
<ibps-attachment-selector
|
|
|
v-if="form.fileAttach"
|
|
|
@@ -86,12 +97,14 @@ import IbpsTypeSelect from '@/business/platform/cat/type/select'
|
|
|
import IbpsAttachmentSelector from '@/business/platform/file/attachment/selector'
|
|
|
import IbpsUeditor from '@/components/ibps-ueditor'
|
|
|
import { getFile } from '@/utils/avatar'
|
|
|
+import IbpsEmployeeSelector from '@/business/platform/org/employee/selector'
|
|
|
import { isPublicOptions, publicItemOptions, typeOptions } from './constants'
|
|
|
export default {
|
|
|
components: {
|
|
|
IbpsAttachmentSelector,
|
|
|
IbpsUeditor,
|
|
|
- IbpsTypeSelect
|
|
|
+ IbpsTypeSelect,
|
|
|
+ IbpsEmployeeSelector
|
|
|
},
|
|
|
props: {
|
|
|
visible: {
|
|
|
@@ -114,7 +127,9 @@ export default {
|
|
|
typeOptions: typeOptions,
|
|
|
publicItemOptions: publicItemOptions,
|
|
|
isPublicOptions: isPublicOptions,
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ scopeUserIds: ''
|
|
|
+ },
|
|
|
toolbars: [{ key: 'cancel', label: '关闭' }]
|
|
|
}
|
|
|
},
|
|
|
@@ -124,6 +139,10 @@ export default {
|
|
|
},
|
|
|
image() {
|
|
|
return getFile(this.form.picture)
|
|
|
+ },
|
|
|
+ isScopeUser() {
|
|
|
+ const setting = this.$store.getters.setting
|
|
|
+ return setting?.system?.isScopeUser
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -182,11 +201,8 @@ export default {
|
|
|
.text-border {
|
|
|
width: 100%;
|
|
|
color: #000000;
|
|
|
- box-shadow:
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 1px 0px 0 rgba(0, 0, 0, 0.1);
|
|
|
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
+ 0 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 0px 0 rgba(0, 0, 0, 0.1);
|
|
|
min-height: 38px;
|
|
|
font-size: 14px;
|
|
|
font-weight: bold;
|