Commit aa59b7421669ac48e89804a67ec41f2586b065fa
Merge branch 'dev' of http://39.98.150.180/antissoft/NetworkInformation into dev
Showing
3 changed files
with
31 additions
and
11 deletions
.DS_Store
No preview for this file type
src/.DS_Store
No preview for this file type
src/views/baseSpecialAction/FormPage.vue
| ... | ... | @@ -47,11 +47,6 @@ |
| 47 | 47 | </el-form-item> |
| 48 | 48 | </el-col> |
| 49 | 49 | <el-col :span="12"> |
| 50 | - <el-form-item label="发布次数" prop="releaseCount"> | |
| 51 | - <el-input-number v-model="dataForm.releaseCount" :min="1" :max="100"></el-input-number> | |
| 52 | - </el-form-item> | |
| 53 | - </el-col> | |
| 54 | - <el-col :span="24"> | |
| 55 | 50 | <el-form-item label="发布周期" prop="releaseCount"> |
| 56 | 51 | <el-select v-model="dataForm.releaseCycle" placeholder="请选择"> |
| 57 | 52 | <el-option v-for="item in CycleOptions" :key="item.value" :label="item.label" :value="item.value"> |
| ... | ... | @@ -59,7 +54,7 @@ |
| 59 | 54 | </el-select> |
| 60 | 55 | </el-form-item> |
| 61 | 56 | </el-col> |
| 62 | - <el-col :span="24"> | |
| 57 | + <el-col :span="12"> | |
| 63 | 58 | <el-form-item label="自动发布" prop="isOpenRelease"> |
| 64 | 59 | <el-radio-group v-model="dataForm.isOpenRelease"> |
| 65 | 60 | <el-radio :label="true">是</el-radio> |
| ... | ... | @@ -67,6 +62,11 @@ |
| 67 | 62 | </el-radio-group> |
| 68 | 63 | </el-form-item> |
| 69 | 64 | </el-col> |
| 65 | + <el-col :span="12"> | |
| 66 | + <el-form-item label="发布次数" prop="releaseCount"> | |
| 67 | + <el-input-number v-model="dataForm.releaseCount" :min="1" :max="100"></el-input-number> | |
| 68 | + </el-form-item> | |
| 69 | + </el-col> | |
| 70 | 70 | <el-col :span="24" v-if="ncc.hasFormP('annex')"> |
| 71 | 71 | <el-form-item label="附件" prop="annex"> |
| 72 | 72 | <NCC-UploadFz v-model="dataForm.annex" :fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传"> |
| ... | ... | @@ -87,7 +87,11 @@ |
| 87 | 87 | </el-col> |
| 88 | 88 | <el-col :span="24" v-if="ncc.hasFormP('communicationArea')"> |
| 89 | 89 | <el-form-item label="填报表单" prop="communicationArea"> |
| 90 | - <el-button size="mini" @click="dialogVisible = true">设计表单</el-button> | |
| 90 | + <el-select v-model="dataForm.relationId" placeholder="请选择专项行动填报表单" style="margin-right: 10px;width: 300px;"> | |
| 91 | + <el-option v-for="item in BaseList" :key="item.id" :label="item.fullName" :value="item.id"> | |
| 92 | + </el-option> | |
| 93 | + </el-select> | |
| 94 | + <el-button size="mini" type="text" @click="dialogVisible = true">没有找到表单?点击设计表单</el-button> | |
| 91 | 95 | </el-form-item> |
| 92 | 96 | </el-col> |
| 93 | 97 | <el-col :span="24" v-if="false"> |
| ... | ... | @@ -128,12 +132,11 @@ |
| 128 | 132 | </span> |
| 129 | 133 | </div> |
| 130 | 134 | </div> |
| 131 | - <el-dialog title="专项行动表单设计" :visible.sync="dialogVisible" fullscreen > | |
| 132 | - <!-- <webDesignForm ref="webDesignForm"></webDesignForm> --> | |
| 135 | + <el-dialog title="专项行动表单设计" :visible.sync="dialogVisible" fullscreen @close="handleClose"> | |
| 133 | 136 | <iframe |
| 134 | 137 | :src="nestedPageUrl" |
| 135 | 138 | width="100%" |
| 136 | - :height="viewportHeight - 110 + 'px'" | |
| 139 | + :height="viewportHeight - 58 + 'px'" | |
| 137 | 140 | frameborder="0" |
| 138 | 141 | allowfullscreen> |
| 139 | 142 | </iframe> |
| ... | ... | @@ -157,6 +160,7 @@ export default { |
| 157 | 160 | dialogVisible: false, |
| 158 | 161 | viewportHeight: 0, |
| 159 | 162 | nestedPageUrl:"http://8.130.38.56:8043/old/#/onlineDev/webDesign/indexNew", |
| 163 | + // nestedPageUrl:"http://localhost:3000/#/onlineDev/webDesign/indexNew", | |
| 160 | 164 | dataForm: { |
| 161 | 165 | id: undefined, |
| 162 | 166 | specialActionType: undefined, |
| ... | ... | @@ -207,6 +211,7 @@ export default { |
| 207 | 211 | ], |
| 208 | 212 | specialActionTypeOptions: [], |
| 209 | 213 | communicationAreaOptions: [], |
| 214 | + BaseList:[] | |
| 210 | 215 | }; |
| 211 | 216 | }, |
| 212 | 217 | computed: {}, |
| ... | ... | @@ -214,6 +219,7 @@ export default { |
| 214 | 219 | created() { |
| 215 | 220 | this.getspecialActionTypeOptions(); |
| 216 | 221 | this.getcommunicationAreaOptions(); |
| 222 | + this.getDataForm(); | |
| 217 | 223 | this.updateViewportHeight(); |
| 218 | 224 | // 监听窗口大小变化事件 |
| 219 | 225 | window.addEventListener('resize', this.updateViewportHeight); |
| ... | ... | @@ -224,7 +230,11 @@ export default { |
| 224 | 230 | window.removeEventListener('resize', this.updateViewportHeight); |
| 225 | 231 | }, |
| 226 | 232 | methods: { |
| 227 | - | |
| 233 | + handleClose() { | |
| 234 | + // 这里是对话框关闭后需要执行的代码 | |
| 235 | + this.getDataForm(); | |
| 236 | + // 例如,你可以在这里添加任何其他的逻辑 | |
| 237 | + }, | |
| 228 | 238 | //查询所有区县 |
| 229 | 239 | getcommunicationAreaOptions() { |
| 230 | 240 | request({ |
| ... | ... | @@ -234,6 +244,16 @@ export default { |
| 234 | 244 | this.communicationAreaOptions = res.data; |
| 235 | 245 | }); |
| 236 | 246 | }, |
| 247 | + //查询表单 | |
| 248 | + getDataForm() { | |
| 249 | + request({ | |
| 250 | + url: "/visualdev/Base?type=1", | |
| 251 | + method: "get", | |
| 252 | + }).then((res) => { | |
| 253 | + this.BaseList = res.data.list[0].children; | |
| 254 | + console.log(this.BaseList) | |
| 255 | + }); | |
| 256 | + }, | |
| 237 | 257 | updateViewportHeight() { |
| 238 | 258 | // 获取页面显示高度 |
| 239 | 259 | this.viewportHeight = window.innerHeight || document.documentElement.clientHeight; | ... | ... |