Commit 572356475ad2d6ae298eace3ae62f9cd64ec8257

Authored by monkeyhouyi
1 parent a28c3616

应用上报

src/views/DisposalSuggestions/index.vue
... ... @@ -54,7 +54,7 @@
54 54 <template slot-scope="scope">{{ scope.row.questionType | dynamicText(questionTypeOptions) }}</template>
55 55 </el-table-column>
56 56 <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" />
57   - <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="关键词" align="left" />
  57 + <el-table-column show-overflow-tooltip prop="questionClass" label="关键词" align="left" />
58 58 <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" />
59 59 <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" />
60 60 <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" />
... ...
src/views/baseSystemInfo/InspectForm.vue
... ... @@ -18,9 +18,9 @@
18 18 :rules="rules"
19 19 >
20 20 <el-col :span="24">
21   - <el-form-item label="问题来源" prop="platformName">
  21 + <el-form-item label="问题来源" prop="source">
22 22 <el-input
23   - v-model="dataForm.questionFrom"
  23 + v-model="dataForm.source"
24 24 placeholder="请输入问题来源"
25 25 clearable
26 26 :style="{ width: '100%' }"
... ... @@ -30,12 +30,26 @@
30 30 </el-col>
31 31 <el-col :span="24">
32 32 <el-form-item label="平台名称" prop="platformName">
33   - <SelsctLoad v-model="dataForm.platformName" :disabled="true"/>
  33 + <el-select
  34 + v-model="dataForm.platformName"
  35 + filterable
  36 + remote
  37 + reserve-keyword
  38 + placeholder="请输入平台名称"
  39 + :remote-method="loadList"
  40 + :loading="name_loading">
  41 + <el-option
  42 + v-for="item in nameOptions"
  43 + :key="item.value"
  44 + :label="item.label"
  45 + :value="item.value">
  46 + </el-option>
  47 + </el-select>
34 48 </el-form-item>
35 49 </el-col>
36 50 <el-col :span="24">
37 51 <el-form-item label="平台类型" prop="platformType">
38   - <el-radio-group v-model="dataForm.platformType" :disabled="true">
  52 + <el-radio-group v-model="dataForm.platformType" :style="{}">
39 53 <el-radio
40 54 v-for="(item, index) in platformTypeOptions"
41 55 :key="index"
... ... @@ -45,36 +59,66 @@
45 59 </el-radio-group>
46 60 </el-form-item>
47 61 </el-col>
48   - <el-col :span="24">
  62 + <el-col :span="13">
49 63 <el-form-item label="问题类型" prop="questionType">
50   - <el-radio-group v-model="dataForm.questionType">
  64 + <el-radio-group v-model="dataForm.questionType" @change="questionTypeChange">
51 65 <el-radio
52 66 v-for="(item, index) in questionTypeOptions"
53 67 :key="index"
54   - :label="item.id"
  68 + :label="item.fullName"
55 69 >{{ item.fullName }}</el-radio
56 70 >
  71 + <el-radio label="其他">其他</el-radio>
57 72 </el-radio-group>
58 73 </el-form-item>
59 74 </el-col>
60   - <el-col :span="24">
  75 + <template v-if="otherQuestion">
  76 + <el-col :span="10">
  77 + <el-input
  78 + v-model="dataForm.otherQuestionType"
  79 + placeholder="请输入问题类型"
  80 + clearable
  81 + :style="{ width: '100%' }"
  82 + >
  83 + </el-input>
  84 + </el-col>
  85 + </template>
  86 + <template v-if="showErrflag">
  87 + <el-col :span="12">
  88 + <el-form-item label="正确描述" prop="accurateDescription">
  89 + <el-input
  90 + v-model="dataForm.accurateDescription"
  91 + placeholder="请输入正确描述"
  92 + clearable
  93 + :style="{ width: '100%' }"
  94 + >
  95 + </el-input>
  96 + </el-form-item>
  97 + </el-col>
  98 + <el-col :span="11">
  99 + <el-form-item label="错误描述" prop="incorrectDescription">
  100 + <el-input
  101 + v-model="dataForm.incorrectDescription"
  102 + placeholder="请输入错误描述"
  103 + clearable
  104 + :style="{ width: '100%' }"
  105 + >
  106 + </el-input>
  107 + </el-form-item>
  108 + </el-col>
  109 + </template>
  110 + <el-col :span="23">
61 111 <el-form-item label="关键词" prop="questionClass">
62   - <el-select
  112 + <el-input
63 113 v-model="dataForm.questionClass"
64   - placeholder="请选择"
  114 + placeholder="请输入关键词"
65 115 clearable
66 116 :style="{ width: '100%' }"
67 117 >
68   - <el-option
69   - v-for="(item, index) in questionClassOptions"
70   - :key="index"
71   - :label="item.fullName"
72   - :value="item.id"
73   - ></el-option>
74   - </el-select>
  118 + </el-input>
75 119 </el-form-item>
76 120 </el-col>
77   - <el-col :span="24">
  121 + <el-col :span="23">
78 122 <el-form-item label="问题内容" prop="questionContent">
79 123 <el-input
80 124 v-model="dataForm.questionContent"
... ... @@ -87,7 +131,7 @@
87 131 </el-input>
88 132 </el-form-item>
89 133 </el-col>
90   - <el-col :span="24">
  134 + <el-col :span="23">
91 135 <el-form-item label="有害链接" prop="link">
92 136 <el-input
93 137 v-model="dataForm.link"
... ... @@ -98,29 +142,7 @@
98 142 </el-input>
99 143 </el-form-item>
100 144 </el-col>
101   - <el-col :span="12">
102   - <el-form-item label="正确描述" prop="platformName">
103   - <el-input
104   - v-model="dataForm.platformName"
105   - placeholder="请输入正确描述"
106   - clearable
107   - :style="{ width: '100%' }"
108   - >
109   - </el-input>
110   - </el-form-item>
111   - </el-col>
112   - <el-col :span="12">
113   - <el-form-item label="错误描述" prop="platformName">
114   - <el-input
115   - v-model="dataForm.platformName"
116   - placeholder="请输入错误描述"
117   - clearable
118   - :style="{ width: '100%' }"
119   - >
120   - </el-input>
121   - </el-form-item>
122   - </el-col>
123   - <el-col :span="24">
  145 + <el-col :span="23">
124 146 <el-form-item label="取证内容" prop="obtainEvidence">
125 147 <NCC-UploadFz
126 148 v-model="dataForm.obtainEvidence"
... ... @@ -146,6 +168,7 @@
146 168 import request from "@/utils/request";
147 169 import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
148 170 import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface";
  171 +import { getInfoList } from "@/api/baseData/info";
149 172 export default {
150 173 components: {},
151 174 props: [],
... ... @@ -154,9 +177,14 @@ export default {
154 177 loading: false,
155 178 visible: false,
156 179 isDetail: false,
  180 +
  181 + name_loading: undefined,
  182 + nameOptions: [],
  183 + otherQuestion: false,
  184 + showErrflag: false,
157 185 dataForm: {
158   - id: "",
159 186 id: undefined,
  187 + source: undefined,
160 188 questionFrom: undefined,
161 189 platformName: undefined,
162 190 platformType: undefined,
... ... @@ -166,6 +194,9 @@ export default {
166 194 link: undefined,
167 195 obtainEvidence: [],
168 196 annex: [],
  197 + otherQuestionType: '',
  198 + accurateDescription: undefined,
  199 + incorrectDescription: undefined,
169 200 },
170 201 rules: {
171 202 platformType: [
... ... @@ -197,11 +228,27 @@ export default {
197 228 computed: {},
198 229 watch: {},
199 230 created() {
  231 + this.loadList();
200 232 this.getplatformTypeOptions();
201 233 this.getquestionTypeOptions();
202 234 },
203 235 mounted() {},
204 236 methods: {
  237 + loadList(query) {
  238 + this.name_loading = true;
  239 + getInfoList({pageIndex: 1, pageSize: 100, keyword: query }).then(({ data }) => {
  240 + let list = [];
  241 + data.list.length &&
  242 + data.list.forEach((item) => {
  243 + list.push({
  244 + label: item.SysytemInfo.SystemName,
  245 + value: item.SysytemInfo.Id,
  246 + });
  247 + });
  248 + this.nameOptions = list;
  249 + this.name_loading = false;
  250 + });
  251 + },
205 252 async getplatformTypeOptions() {
206 253 let list = this.$store.state.meta.system;
207 254 !list &&
... ... @@ -213,6 +260,10 @@ export default {
213 260 this.questionTypeOptions = res.data.list;
214 261 });
215 262 },
  263 + questionTypeChange(v) {
  264 + this.showErrflag = Boolean(v == '错误表述');
  265 + this.otherQuestion = Boolean(v == '其他');
  266 + },
216 267 goBack() {
217 268 this.$emit("refresh");
218 269 },
... ...