|
@@ -65,10 +65,10 @@
|
|
<el-select
|
|
<el-select
|
|
style="width:500px;"
|
|
style="width:500px;"
|
|
v-model="addForm.subIds"
|
|
v-model="addForm.subIds"
|
|
|
|
+ :multiple="true"
|
|
filterable
|
|
filterable
|
|
remote
|
|
remote
|
|
reserve-keyword
|
|
reserve-keyword
|
|
- @change="subChange"
|
|
|
|
placeholder="请搜索选择实验室"
|
|
placeholder="请搜索选择实验室"
|
|
:remote-method="subSelectList">
|
|
:remote-method="subSelectList">
|
|
<el-option
|
|
<el-option
|
|
@@ -102,7 +102,8 @@
|
|
import { systemNoticeGetSendType,systemNoticeAdd,systemNotifyAdd,
|
|
import { systemNoticeGetSendType,systemNoticeAdd,systemNotifyAdd,
|
|
systemNoticeDetail,systemNoticeUpdate,
|
|
systemNoticeDetail,systemNoticeUpdate,
|
|
systemNoticeSendUserIds } from "@/api/systemManagement/index";
|
|
systemNoticeSendUserIds } from "@/api/systemManagement/index";
|
|
- import { systemNoticeGetNoticeType,systemUserSelect,systemDeptOrganizeStructure } from "@/api/commonality/permission";
|
|
|
|
|
|
+ import { systemNoticeGetNoticeType,systemUserSelect,
|
|
|
|
+ systemDeptOrganizeStructure,laboratorySubRelInfoGetRelListByPower } from "@/api/commonality/permission";
|
|
import { systemSubjectGetList } from '@/api/commonality/noPermission'
|
|
import { systemSubjectGetList } from '@/api/commonality/noPermission'
|
|
export default {
|
|
export default {
|
|
name: 'addPage',
|
|
name: 'addPage',
|
|
@@ -240,9 +241,19 @@
|
|
obj.noticeType = this.addForm.noticeType;
|
|
obj.noticeType = this.addForm.noticeType;
|
|
obj.sendType = this.addForm.sendType;
|
|
obj.sendType = this.addForm.sendType;
|
|
obj.userIds = this.addForm.sendType == 5 ? this.addForm.userIds : [];
|
|
obj.userIds = this.addForm.sendType == 5 ? this.addForm.userIds : [];
|
|
- obj.deptIds = this.addForm.sendType == 6 ? this.addForm.deptIds : [];
|
|
|
|
- obj.subIds = this.addForm.sendType == 7 ? this.addForm.subIds : [];
|
|
|
|
|
|
+ obj.subIds = this.addForm.sendType == 7 ? this.addForm.subIds+'' : '';
|
|
obj.sendState = this.addForm.sendState;
|
|
obj.sendState = this.addForm.sendState;
|
|
|
|
+ if(this.addForm.sendType == 6){
|
|
|
|
+ let list = this.$refs['cascader'].getCheckedNodes()
|
|
|
|
+ let valueList = [];
|
|
|
|
+ list.forEach((item)=>{
|
|
|
|
+ valueList.push(item.value)
|
|
|
|
+ })
|
|
|
|
+ obj.deptIds = valueList+'';
|
|
|
|
+ }else {
|
|
|
|
+ obj.deptIds = '';
|
|
|
|
+ }
|
|
|
|
+ console.log('obj',obj)
|
|
}else{
|
|
}else{
|
|
obj.notifyType = this.addForm.noticeType
|
|
obj.notifyType = this.addForm.noticeType
|
|
obj.company = this.addForm.company;
|
|
obj.company = this.addForm.company;
|