Commit a2d1a53feb25972bd229e336dfc4864dbe8f4f29
1 parent
73755355
提交
Showing
5 changed files
with
19 additions
and
5 deletions
src/assets/data.js
0 → 100644
src/views/DisposalSuggestions/index.vue
| @@ -46,6 +46,7 @@ | @@ -46,6 +46,7 @@ | ||
| 46 | </el-table-column> | 46 | </el-table-column> |
| 47 | <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> | 47 | <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> |
| 48 | <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" /> | 48 | <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" /> |
| 49 | + <el-table-column show-overflow-tooltip prop="" label="录入时间" align="left" /> | ||
| 49 | <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" /> | 50 | <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" /> |
| 50 | <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" /> | 51 | <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" /> |
| 51 | <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> | 52 | <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> |
src/views/baseInspectionReport/Form.vue
| @@ -57,7 +57,14 @@ | @@ -57,7 +57,14 @@ | ||
| 57 | </el-col> | 57 | </el-col> |
| 58 | <el-col :span="23" v-show="dataForm.platformType == '580634746028033285' && !isDisabledTypeByName"> | 58 | <el-col :span="23" v-show="dataForm.platformType == '580634746028033285' && !isDisabledTypeByName"> |
| 59 | <el-form-item label="归属平台" prop="selfMediaPlatformType"> | 59 | <el-form-item label="归属平台" prop="selfMediaPlatformType"> |
| 60 | - <el-input v-model="dataForm.selfMediaPlatformType" placeholder="请输入归属平台" clearable :style="{ width: '100%' }" :disabled="!!this.dataForm.id"/> | 60 | + <el-radio-group v-model="dataForm.selfMediaPlatformType" :disabled="!!this.dataForm.id"> |
| 61 | + <el-radio v-for="(item, index) in mediaPlatList" :key="index" :label="item" >{{ item }}</el-radio> | ||
| 62 | + </el-radio-group> | ||
| 63 | + </el-form-item> | ||
| 64 | + </el-col> | ||
| 65 | + <el-col :span="23" v-show="dataForm.selfMediaPlatformType == '其他'"> | ||
| 66 | + <el-form-item label="其他归属平台" prop="selfMediaPlatformTypeOther"> | ||
| 67 | + <el-input v-model="dataForm.selfMediaPlatformTypeOther" placeholder="请输入其他归属平台" clearable :style="{ width: '100%' }" /> | ||
| 61 | </el-form-item> | 68 | </el-form-item> |
| 62 | </el-col> | 69 | </el-col> |
| 63 | <el-col :span="23"> | 70 | <el-col :span="23"> |
| @@ -156,6 +163,7 @@ | @@ -156,6 +163,7 @@ | ||
| 156 | import request from "@/utils/request"; | 163 | import request from "@/utils/request"; |
| 157 | import { getDictionaryDataSelector } from "@/api/systemData/dictionary"; | 164 | import { getDictionaryDataSelector } from "@/api/systemData/dictionary"; |
| 158 | import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface"; | 165 | import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface"; |
| 166 | +import { MediaPlatList } from "@/assets/data" | ||
| 159 | import { getInfoList } from "@/api/baseData/info"; | 167 | import { getInfoList } from "@/api/baseData/info"; |
| 160 | export default { | 168 | export default { |
| 161 | components: {}, | 169 | components: {}, |
| @@ -180,7 +188,8 @@ export default { | @@ -180,7 +188,8 @@ export default { | ||
| 180 | incorrectDescription: undefined, | 188 | incorrectDescription: undefined, |
| 181 | obtainEvidence: [], | 189 | obtainEvidence: [], |
| 182 | annex: [], | 190 | annex: [], |
| 183 | - otherQuestionType: undefined | 191 | + otherQuestionType: undefined, |
| 192 | + selfMediaPlatformTypeOther: undefined, | ||
| 184 | }, | 193 | }, |
| 185 | rules: { | 194 | rules: { |
| 186 | platformName: [ | 195 | platformName: [ |
| @@ -200,6 +209,7 @@ export default { | @@ -200,6 +209,7 @@ export default { | ||
| 200 | platformTypeOptions: [], | 209 | platformTypeOptions: [], |
| 201 | questionTypeOptions: [], | 210 | questionTypeOptions: [], |
| 202 | nameOptions: [], | 211 | nameOptions: [], |
| 212 | + mediaPlatList: MediaPlatList, | ||
| 203 | }; | 213 | }; |
| 204 | }, | 214 | }, |
| 205 | computed: { | 215 | computed: { |
| @@ -293,6 +303,7 @@ export default { | @@ -293,6 +303,7 @@ export default { | ||
| 293 | let obj = { | 303 | let obj = { |
| 294 | ...this.dataForm, | 304 | ...this.dataForm, |
| 295 | questionType: this.dataForm.questionType == '其他' ? this.dataForm.otherQuestionType : this.dataForm.questionType, | 305 | questionType: this.dataForm.questionType == '其他' ? this.dataForm.otherQuestionType : this.dataForm.questionType, |
| 306 | + selfMediaPlatformType: this.dataForm.selfMediaPlatformType == '其他' ? this.dataForm.selfMediaPlatformTypeOther : this.dataForm.questionType, | ||
| 296 | } | 307 | } |
| 297 | let res = !this.dataForm.id ? await addForm(obj) : await updataForm(obj); | 308 | let res = !this.dataForm.id ? await addForm(obj) : await updataForm(obj); |
| 298 | this.$message({ | 309 | this.$message({ |
src/views/baseInspectionReport/index.vue
| @@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
| 58 | <el-table-column show-overflow-tooltip label="问题类型" prop="questionType" align="left" /> | 58 | <el-table-column show-overflow-tooltip label="问题类型" prop="questionType" align="left" /> |
| 59 | <!-- <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> --> | 59 | <!-- <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> --> |
| 60 | <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" /> | 60 | <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" /> |
| 61 | + <el-table-column show-overflow-tooltip prop="" label="录入时间" align="left" /> | ||
| 61 | <!-- <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> --> | 62 | <!-- <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> --> |
| 62 | <!-- <el-table-column show-overflow-tooltip label="问题分类" prop="questionClass" align="left"> | 63 | <!-- <el-table-column show-overflow-tooltip label="问题分类" prop="questionClass" align="left"> |
| 63 | <template slot-scope="scope">{{ scope.row.questionClass | dynamicText(questionClassOptions) }}</template> | 64 | <template slot-scope="scope">{{ scope.row.questionClass | dynamicText(questionClassOptions) }}</template> |
src/views/baseSpecialAction/Form.vue
| @@ -288,9 +288,6 @@ export default { | @@ -288,9 +288,6 @@ export default { | ||
| 288 | }); | 288 | }); |
| 289 | }, | 289 | }, |
| 290 | dataFormSubmit(type) { | 290 | dataFormSubmit(type) { |
| 291 | - console.log(this.dataForm); | ||
| 292 | - return | ||
| 293 | - | ||
| 294 | this.validateForm(type, () => { | 291 | this.validateForm(type, () => { |
| 295 | let obj = { | 292 | let obj = { |
| 296 | ...this.dataForm, | 293 | ...this.dataForm, |