|
|
|
@ -6,7 +6,7 @@ |
|
|
|
<span v-if="pageType == 'view'">查看</span> |
|
|
|
</span> |
|
|
|
<div> |
|
|
|
<div class="dialog-h-content2 scroll-h"> |
|
|
|
<div class="dialog-h-content2 "> |
|
|
|
<el-form :inline="true" :model="formData" ref="form" :rules="dataRule" v-if="pageType != 'view'"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
@ -35,25 +35,24 @@ |
|
|
|
<el-input |
|
|
|
v-model="formData.content" |
|
|
|
type="textarea" |
|
|
|
:autosize="{ minRows:4, maxRows:10}" |
|
|
|
:disabled="disabled" |
|
|
|
style="width:500px;" |
|
|
|
|
|
|
|
:autosize="{ minRows: 6, maxRows: 20 }" |
|
|
|
maxlength="500" |
|
|
|
style="width:570px;" |
|
|
|
clearable |
|
|
|
placeholder="请输入" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div id="app_event" class="div_map"></div> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<el-form :inline="false" :model="formData" ref="form" label-width="140px" v-if="pageType == 'view'"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="发布渠道" prop="publishDitch">{{ formData.publishDitch }}</el-form-item> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="发布渠道" prop="publishDitch"><span v-if="formData.publishDitch == 0">专属钉钉</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="发布范围" prop="publishRangeName">{{ formData.publishRangeName }}</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
@ -63,11 +62,10 @@ |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="div_btn" v-if="pageType != 'view'"> |
|
|
|
<div class="div_btn" v-if="pageType != 'view'" style="text-align: center;"> |
|
|
|
<el-button size="small" @click="handleCancle">取 消</el-button> |
|
|
|
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> --> |
|
|
|
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm">保 存</el-button> |
|
|
|
<el-button size="small" type="primary" @click="handleComfirm">保 存</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -100,10 +98,10 @@ export default { |
|
|
|
type: Boolean, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
defaultData: { |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
// defaultData: { |
|
|
|
// type: Object, |
|
|
|
// default: null |
|
|
|
// }, |
|
|
|
pageType: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
@ -111,15 +109,15 @@ export default { |
|
|
|
detailId: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
detailData: { |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
disabled: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
} |
|
|
|
// detailData: { |
|
|
|
// type: Object, |
|
|
|
// default: null |
|
|
|
// }, |
|
|
|
// disabled: { |
|
|
|
// type: Boolean, |
|
|
|
// default: false |
|
|
|
// } |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
@ -136,7 +134,7 @@ export default { |
|
|
|
orgOptions: [], //组织 |
|
|
|
orgOptionProps: { |
|
|
|
//组织 |
|
|
|
multiple: false, |
|
|
|
multiple: true, |
|
|
|
value: 'agencyId', |
|
|
|
label: 'agencyName', |
|
|
|
children: 'subAgencyList', |
|
|
|
@ -199,8 +197,14 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleChangeAgency(val) { |
|
|
|
let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; |
|
|
|
this.formData.orgType= obj.level |
|
|
|
console.log('val', val); |
|
|
|
let obj = this.$refs['myCascader'].getCheckedNodes().map(item => { |
|
|
|
return { orgType: item.data.level, orgId: item.data.agencyId }; |
|
|
|
}); |
|
|
|
console.log('obj', obj); |
|
|
|
this.formData.rangeList = [...obj]; |
|
|
|
// let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; |
|
|
|
// this.formData.orgType= obj.level |
|
|
|
// if (obj) { |
|
|
|
// this.orgType = obj.level === 'grid' ? 'grid' : 'agency'; |
|
|
|
// } else { |
|
|
|
@ -223,10 +227,11 @@ export default { |
|
|
|
|
|
|
|
async save() { |
|
|
|
// this.formData.agencyId = this.agencyId; |
|
|
|
this.formData.rangeList={ |
|
|
|
orgId:this.formData.orgId, |
|
|
|
orgType:this.formData.orgType |
|
|
|
} |
|
|
|
// this.formData.rangeList=[{ |
|
|
|
// orgId:this.formData.orgId, |
|
|
|
// orgType:this.formData.orgType |
|
|
|
// }] |
|
|
|
|
|
|
|
var url = ''; |
|
|
|
var params = {}; |
|
|
|
url = '/message/organization/message/publish'; |
|
|
|
@ -314,7 +319,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/.dialog-h-content2 { |
|
|
|
max-height: calc(83vh - 90px); |
|
|
|
// max-height: calc(83vh - 90px); |
|
|
|
box-sizing: border-box; |
|
|
|
padding: 0 10px; |
|
|
|
overflow: auto; |
|
|
|
|