Commit a2d1a53feb25972bd229e336dfc4864dbe8f4f29

Authored by monkeyhouyi
1 parent 73755355

提交

src/assets/data.js 0 → 100644
  1 +// 假数据
  2 +
  3 +// 1.归属平台
  4 +export const MediaPlatList = ['微信', '微博', '抖音', '今日头条', '小红书', '其他'];
0 5 \ No newline at end of file
... ...
src/views/DisposalSuggestions/index.vue
... ... @@ -46,6 +46,7 @@
46 46 </el-table-column>
47 47 <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" />
48 48 <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" />
  49 + <el-table-column show-overflow-tooltip prop="" label="录入时间" align="left" />
49 50 <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" />
50 51 <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" />
51 52 <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" />
... ...
src/views/baseInspectionReport/Form.vue
... ... @@ -57,7 +57,14 @@
57 57 </el-col>
58 58 <el-col :span="23" v-show="dataForm.platformType == '580634746028033285' && !isDisabledTypeByName">
59 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 68 </el-form-item>
62 69 </el-col>
63 70 <el-col :span="23">
... ... @@ -156,6 +163,7 @@
156 163 import request from "@/utils/request";
157 164 import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
158 165 import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface";
  166 +import { MediaPlatList } from "@/assets/data"
159 167 import { getInfoList } from "@/api/baseData/info";
160 168 export default {
161 169 components: {},
... ... @@ -180,7 +188,8 @@ export default {
180 188 incorrectDescription: undefined,
181 189 obtainEvidence: [],
182 190 annex: [],
183   - otherQuestionType: undefined
  191 + otherQuestionType: undefined,
  192 + selfMediaPlatformTypeOther: undefined,
184 193 },
185 194 rules: {
186 195 platformName: [
... ... @@ -200,6 +209,7 @@ export default {
200 209 platformTypeOptions: [],
201 210 questionTypeOptions: [],
202 211 nameOptions: [],
  212 + mediaPlatList: MediaPlatList,
203 213 };
204 214 },
205 215 computed: {
... ... @@ -293,6 +303,7 @@ export default {
293 303 let obj = {
294 304 ...this.dataForm,
295 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 308 let res = !this.dataForm.id ? await addForm(obj) : await updataForm(obj);
298 309 this.$message({
... ...
src/views/baseInspectionReport/index.vue
... ... @@ -58,6 +58,7 @@
58 58 <el-table-column show-overflow-tooltip label="问题类型" prop="questionType" align="left" />
59 59 <!-- <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> -->
60 60 <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" />
  61 + <el-table-column show-overflow-tooltip prop="" label="录入时间" align="left" />
61 62 <!-- <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> -->
62 63 <!-- <el-table-column show-overflow-tooltip label="问题分类" prop="questionClass" align="left">
63 64 <template slot-scope="scope">{{ scope.row.questionClass | dynamicText(questionClassOptions) }}</template>
... ...
src/views/baseSpecialAction/Form.vue
... ... @@ -288,9 +288,6 @@ export default {
288 288 });
289 289 },
290 290 dataFormSubmit(type) {
291   - console.log(this.dataForm);
292   - return
293   -
294 291 this.validateForm(type, () => {
295 292 let obj = {
296 293 ...this.dataForm,
... ...