Commit a28c3616116cc26888476dc9f3a2ad21b6752649
1 parent
fcbf44a0
研判
Showing
1 changed file
with
25 additions
and
21 deletions
src/views/DisposalSuggestions/Form.vue
| @@ -6,10 +6,10 @@ | @@ -6,10 +6,10 @@ | ||
| 6 | class="NCC-dialog NCC-dialog_center" | 6 | class="NCC-dialog NCC-dialog_center" |
| 7 | lock-scroll | 7 | lock-scroll |
| 8 | width="60%" | 8 | width="60%" |
| 9 | - v-loading="loading" | 9 | + v-loading="loading" |
| 10 | > | 10 | > |
| 11 | <el-row :gutter="15" class=""> | 11 | <el-row :gutter="15" class=""> |
| 12 | - <el-col :span="10" style="border-right: 1px solid #e6e6e6;"> | 12 | + <el-col :span="10" style="border-right: 1px solid #e6e6e6"> |
| 13 | <el-row> | 13 | <el-row> |
| 14 | <el-col :span="24" class="form_title"> 巡查上报详情 </el-col> | 14 | <el-col :span="24" class="form_title"> 巡查上报详情 </el-col> |
| 15 | <el-col :span="24"> | 15 | <el-col :span="24"> |
| @@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
| 98 | :style="{ width: '100%' }" | 98 | :style="{ width: '100%' }" |
| 99 | type="textarea" | 99 | type="textarea" |
| 100 | :autosize="{ minRows: 4, maxRows: 4 }" | 100 | :autosize="{ minRows: 4, maxRows: 4 }" |
| 101 | - maxlength="200" | 101 | + maxlength="200" |
| 102 | > | 102 | > |
| 103 | </el-input> | 103 | </el-input> |
| 104 | </el-form-item> | 104 | </el-form-item> |
| @@ -117,20 +117,14 @@ | @@ -117,20 +117,14 @@ | ||
| 117 | <el-radio-group | 117 | <el-radio-group |
| 118 | v-model="suggestionForm.judgmentClass" | 118 | v-model="suggestionForm.judgmentClass" |
| 119 | size="medium" | 119 | size="medium" |
| 120 | - @change="judgmentClassChange" | 120 | + @change="judgmentClassChange" |
| 121 | > | 121 | > |
| 122 | - <el-radio label="不采纳">不采纳</el-radio> | ||
| 123 | - <el-radio label="执法">执法</el-radio> | ||
| 124 | - <el-radio label="存档">存档</el-radio> | ||
| 125 | - <el-radio label="进一步处置">进一步处置</el-radio> | 122 | + <el-radio v-for="v in judgmentClassOption" :key="v.Id" :label="v.Id">{{v.FullName}}</el-radio> |
| 126 | </el-radio-group> | 123 | </el-radio-group> |
| 127 | </el-form-item> | 124 | </el-form-item> |
| 128 | </el-col> | 125 | </el-col> |
| 129 | - <el-col :span="24" v-if="showSuggsetion"> | ||
| 130 | - <el-form-item | ||
| 131 | - label="研判意见" | ||
| 132 | - prop="judgmentOpinions" | ||
| 133 | - > | 126 | + <el-col :span="24" v-if="showSuggsetion"> |
| 127 | + <el-form-item label="研判意见" prop="judgmentOpinions"> | ||
| 134 | <el-input | 128 | <el-input |
| 135 | v-model="suggestionForm.judgmentOpinions" | 129 | v-model="suggestionForm.judgmentOpinions" |
| 136 | placeholder="请输入研判意见" | 130 | placeholder="请输入研判意见" |
| @@ -138,7 +132,7 @@ | @@ -138,7 +132,7 @@ | ||
| 138 | :style="{ width: '100%' }" | 132 | :style="{ width: '100%' }" |
| 139 | type="textarea" | 133 | type="textarea" |
| 140 | :autosize="{ minRows: 4, maxRows: 4 }" | 134 | :autosize="{ minRows: 4, maxRows: 4 }" |
| 141 | - maxlength="200" | 135 | + maxlength="200" |
| 142 | > | 136 | > |
| 143 | </el-input> | 137 | </el-input> |
| 144 | </el-form-item> | 138 | </el-form-item> |
| @@ -196,14 +190,14 @@ export default { | @@ -196,14 +190,14 @@ export default { | ||
| 196 | judgmentOpinions: "", //判断意见 | 190 | judgmentOpinions: "", //判断意见 |
| 197 | judgmentClass: "", //判断分类 | 191 | judgmentClass: "", //判断分类 |
| 198 | deadline: "", | 192 | deadline: "", |
| 199 | - judgmentClass: "", | ||
| 200 | }, | 193 | }, |
| 201 | rules: { | 194 | rules: { |
| 202 | judgmentClass: [ | 195 | judgmentClass: [ |
| 203 | { required: true, message: "请选择审核类型", trigger: "change" }, | 196 | { required: true, message: "请选择审核类型", trigger: "change" }, |
| 204 | ], | 197 | ], |
| 205 | }, | 198 | }, |
| 206 | - showSuggsetion: false, | 199 | + showSuggsetion: false, |
| 200 | + judgmentClassOption: [], | ||
| 207 | }; | 201 | }; |
| 208 | }, | 202 | }, |
| 209 | computed: { | 203 | computed: { |
| @@ -216,6 +210,7 @@ export default { | @@ -216,6 +210,7 @@ export default { | ||
| 216 | created() { | 210 | created() { |
| 217 | this.getplatformTypeOptions(); | 211 | this.getplatformTypeOptions(); |
| 218 | this.getquestionTypeOptions(); | 212 | this.getquestionTypeOptions(); |
| 213 | + this.getjudgmentClassOptions(); | ||
| 219 | }, | 214 | }, |
| 220 | mounted() {}, | 215 | mounted() {}, |
| 221 | methods: { | 216 | methods: { |
| @@ -229,17 +224,25 @@ export default { | @@ -229,17 +224,25 @@ export default { | ||
| 229 | this.questionTypeOptions = res.data.list; | 224 | this.questionTypeOptions = res.data.list; |
| 230 | }); | 225 | }); |
| 231 | }, | 226 | }, |
| 227 | + getjudgmentClassOptions() { | ||
| 228 | + request({ | ||
| 229 | + url: `/Extend/BaseInspectionReport/GetReviewTypeList`, | ||
| 230 | + method: 'GET', | ||
| 231 | + }).then(res => { | ||
| 232 | + this.judgmentClassOption = res.data; | ||
| 233 | + }) | ||
| 234 | + }, | ||
| 232 | goBack() { | 235 | goBack() { |
| 233 | this.$emit("refresh"); | 236 | this.$emit("refresh"); |
| 234 | }, | 237 | }, |
| 235 | init(id, isDetail) { | 238 | init(id, isDetail) { |
| 236 | this.dataForm.id = id || 0; | 239 | this.dataForm.id = id || 0; |
| 237 | this.visible = true; | 240 | this.visible = true; |
| 238 | - this.showSuggsetion = false; | 241 | + this.showSuggsetion = false; |
| 239 | this.$nextTick(async () => { | 242 | this.$nextTick(async () => { |
| 240 | this.$refs["suggestionForm"].resetFields(); | 243 | this.$refs["suggestionForm"].resetFields(); |
| 241 | if (this.dataForm.id) { | 244 | if (this.dataForm.id) { |
| 242 | - this.loading = true; | 245 | + this.loading = true; |
| 243 | let res = await getDetail(this.dataForm.id); | 246 | let res = await getDetail(this.dataForm.id); |
| 244 | this.dataForm = res.data; | 247 | this.dataForm = res.data; |
| 245 | this.loading = false; | 248 | this.loading = false; |
| @@ -248,9 +251,10 @@ export default { | @@ -248,9 +251,10 @@ export default { | ||
| 248 | } | 251 | } |
| 249 | }); | 252 | }); |
| 250 | }, | 253 | }, |
| 251 | - judgmentClassChange(v) { | ||
| 252 | - this.showSuggsetion = Boolean(v == '进一步处置' || v == '不采纳') | ||
| 253 | - }, | 254 | + judgmentClassChange(v) { |
| 255 | + this.suggestionForm.judgmentOpinions = ''; | ||
| 256 | + this.showSuggsetion = Boolean(v == "590769458901943557" || v == "590769521820697861"); | ||
| 257 | + }, | ||
| 254 | dataFormSubmit() { | 258 | dataFormSubmit() { |
| 255 | if ( | 259 | if ( |
| 256 | !this.suggestionForm.disposalSuggestions && | 260 | !this.suggestionForm.disposalSuggestions && |