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,11 +47,6 @@ | ||
| 47 | </el-form-item> | 47 | </el-form-item> |
| 48 | </el-col> | 48 | </el-col> |
| 49 | <el-col :span="12"> | 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 | <el-form-item label="发布周期" prop="releaseCount"> | 50 | <el-form-item label="发布周期" prop="releaseCount"> |
| 56 | <el-select v-model="dataForm.releaseCycle" placeholder="请选择"> | 51 | <el-select v-model="dataForm.releaseCycle" placeholder="请选择"> |
| 57 | <el-option v-for="item in CycleOptions" :key="item.value" :label="item.label" :value="item.value"> | 52 | <el-option v-for="item in CycleOptions" :key="item.value" :label="item.label" :value="item.value"> |
| @@ -59,7 +54,7 @@ | @@ -59,7 +54,7 @@ | ||
| 59 | </el-select> | 54 | </el-select> |
| 60 | </el-form-item> | 55 | </el-form-item> |
| 61 | </el-col> | 56 | </el-col> |
| 62 | - <el-col :span="24"> | 57 | + <el-col :span="12"> |
| 63 | <el-form-item label="自动发布" prop="isOpenRelease"> | 58 | <el-form-item label="自动发布" prop="isOpenRelease"> |
| 64 | <el-radio-group v-model="dataForm.isOpenRelease"> | 59 | <el-radio-group v-model="dataForm.isOpenRelease"> |
| 65 | <el-radio :label="true">是</el-radio> | 60 | <el-radio :label="true">是</el-radio> |
| @@ -67,6 +62,11 @@ | @@ -67,6 +62,11 @@ | ||
| 67 | </el-radio-group> | 62 | </el-radio-group> |
| 68 | </el-form-item> | 63 | </el-form-item> |
| 69 | </el-col> | 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 | <el-col :span="24" v-if="ncc.hasFormP('annex')"> | 70 | <el-col :span="24" v-if="ncc.hasFormP('annex')"> |
| 71 | <el-form-item label="附件" prop="annex"> | 71 | <el-form-item label="附件" prop="annex"> |
| 72 | <NCC-UploadFz v-model="dataForm.annex" :fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传"> | 72 | <NCC-UploadFz v-model="dataForm.annex" :fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传"> |
| @@ -87,7 +87,11 @@ | @@ -87,7 +87,11 @@ | ||
| 87 | </el-col> | 87 | </el-col> |
| 88 | <el-col :span="24" v-if="ncc.hasFormP('communicationArea')"> | 88 | <el-col :span="24" v-if="ncc.hasFormP('communicationArea')"> |
| 89 | <el-form-item label="填报表单" prop="communicationArea"> | 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 | </el-form-item> | 95 | </el-form-item> |
| 92 | </el-col> | 96 | </el-col> |
| 93 | <el-col :span="24" v-if="false"> | 97 | <el-col :span="24" v-if="false"> |
| @@ -128,12 +132,11 @@ | @@ -128,12 +132,11 @@ | ||
| 128 | </span> | 132 | </span> |
| 129 | </div> | 133 | </div> |
| 130 | </div> | 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 | <iframe | 136 | <iframe |
| 134 | :src="nestedPageUrl" | 137 | :src="nestedPageUrl" |
| 135 | width="100%" | 138 | width="100%" |
| 136 | - :height="viewportHeight - 110 + 'px'" | 139 | + :height="viewportHeight - 58 + 'px'" |
| 137 | frameborder="0" | 140 | frameborder="0" |
| 138 | allowfullscreen> | 141 | allowfullscreen> |
| 139 | </iframe> | 142 | </iframe> |
| @@ -157,6 +160,7 @@ export default { | @@ -157,6 +160,7 @@ export default { | ||
| 157 | dialogVisible: false, | 160 | dialogVisible: false, |
| 158 | viewportHeight: 0, | 161 | viewportHeight: 0, |
| 159 | nestedPageUrl:"http://8.130.38.56:8043/old/#/onlineDev/webDesign/indexNew", | 162 | nestedPageUrl:"http://8.130.38.56:8043/old/#/onlineDev/webDesign/indexNew", |
| 163 | + // nestedPageUrl:"http://localhost:3000/#/onlineDev/webDesign/indexNew", | ||
| 160 | dataForm: { | 164 | dataForm: { |
| 161 | id: undefined, | 165 | id: undefined, |
| 162 | specialActionType: undefined, | 166 | specialActionType: undefined, |
| @@ -207,6 +211,7 @@ export default { | @@ -207,6 +211,7 @@ export default { | ||
| 207 | ], | 211 | ], |
| 208 | specialActionTypeOptions: [], | 212 | specialActionTypeOptions: [], |
| 209 | communicationAreaOptions: [], | 213 | communicationAreaOptions: [], |
| 214 | + BaseList:[] | ||
| 210 | }; | 215 | }; |
| 211 | }, | 216 | }, |
| 212 | computed: {}, | 217 | computed: {}, |
| @@ -214,6 +219,7 @@ export default { | @@ -214,6 +219,7 @@ export default { | ||
| 214 | created() { | 219 | created() { |
| 215 | this.getspecialActionTypeOptions(); | 220 | this.getspecialActionTypeOptions(); |
| 216 | this.getcommunicationAreaOptions(); | 221 | this.getcommunicationAreaOptions(); |
| 222 | + this.getDataForm(); | ||
| 217 | this.updateViewportHeight(); | 223 | this.updateViewportHeight(); |
| 218 | // 监听窗口大小变化事件 | 224 | // 监听窗口大小变化事件 |
| 219 | window.addEventListener('resize', this.updateViewportHeight); | 225 | window.addEventListener('resize', this.updateViewportHeight); |
| @@ -224,7 +230,11 @@ export default { | @@ -224,7 +230,11 @@ export default { | ||
| 224 | window.removeEventListener('resize', this.updateViewportHeight); | 230 | window.removeEventListener('resize', this.updateViewportHeight); |
| 225 | }, | 231 | }, |
| 226 | methods: { | 232 | methods: { |
| 227 | - | 233 | + handleClose() { |
| 234 | + // 这里是对话框关闭后需要执行的代码 | ||
| 235 | + this.getDataForm(); | ||
| 236 | + // 例如,你可以在这里添加任何其他的逻辑 | ||
| 237 | + }, | ||
| 228 | //查询所有区县 | 238 | //查询所有区县 |
| 229 | getcommunicationAreaOptions() { | 239 | getcommunicationAreaOptions() { |
| 230 | request({ | 240 | request({ |
| @@ -234,6 +244,16 @@ export default { | @@ -234,6 +244,16 @@ export default { | ||
| 234 | this.communicationAreaOptions = res.data; | 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 | updateViewportHeight() { | 257 | updateViewportHeight() { |
| 238 | // 获取页面显示高度 | 258 | // 获取页面显示高度 |
| 239 | this.viewportHeight = window.innerHeight || document.documentElement.clientHeight; | 259 | this.viewportHeight = window.innerHeight || document.documentElement.clientHeight; |