Commit 572356475ad2d6ae298eace3ae62f9cd64ec8257

Authored by monkeyhouyi
1 parent a28c3616

应用上报

src/views/DisposalSuggestions/index.vue
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 <template slot-scope="scope">{{ scope.row.questionType | dynamicText(questionTypeOptions) }}</template> 54 <template slot-scope="scope">{{ scope.row.questionType | dynamicText(questionTypeOptions) }}</template>
55 </el-table-column> 55 </el-table-column>
56 <el-table-column show-overflow-tooltip prop="link" label="有害链接" align="left" /> 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 <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" /> 58 <!-- <el-table-column show-overflow-tooltip prop="disposalSuggestions" label="处置建议" align="left" />
59 <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" /> 59 <el-table-column show-overflow-tooltip prop="id" label="主键" align="left" />
60 <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" /> 60 <el-table-column show-overflow-tooltip prop="department" label="部门" align="left" />
src/views/baseSystemInfo/InspectForm.vue
@@ -18,9 +18,9 @@ @@ -18,9 +18,9 @@
18 :rules="rules" 18 :rules="rules"
19 > 19 >
20 <el-col :span="24"> 20 <el-col :span="24">
21 - <el-form-item label="问题来源" prop="platformName"> 21 + <el-form-item label="问题来源" prop="source">
22 <el-input 22 <el-input
23 - v-model="dataForm.questionFrom" 23 + v-model="dataForm.source"
24 placeholder="请输入问题来源" 24 placeholder="请输入问题来源"
25 clearable 25 clearable
26 :style="{ width: '100%' }" 26 :style="{ width: '100%' }"
@@ -30,12 +30,26 @@ @@ -30,12 +30,26 @@
30 </el-col> 30 </el-col>
31 <el-col :span="24"> 31 <el-col :span="24">
32 <el-form-item label="平台名称" prop="platformName"> 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 </el-form-item> 48 </el-form-item>
35 </el-col> 49 </el-col>
36 <el-col :span="24"> 50 <el-col :span="24">
37 <el-form-item label="平台类型" prop="platformType"> 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 <el-radio 53 <el-radio
40 v-for="(item, index) in platformTypeOptions" 54 v-for="(item, index) in platformTypeOptions"
41 :key="index" 55 :key="index"
@@ -45,36 +59,66 @@ @@ -45,36 +59,66 @@
45 </el-radio-group> 59 </el-radio-group>
46 </el-form-item> 60 </el-form-item>
47 </el-col> 61 </el-col>
48 - <el-col :span="24"> 62 + <el-col :span="13">
49 <el-form-item label="问题类型" prop="questionType"> 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 <el-radio 65 <el-radio
52 v-for="(item, index) in questionTypeOptions" 66 v-for="(item, index) in questionTypeOptions"
53 :key="index" 67 :key="index"
54 - :label="item.id" 68 + :label="item.fullName"
55 >{{ item.fullName }}</el-radio 69 >{{ item.fullName }}</el-radio
56 > 70 >
  71 + <el-radio label="其他">其他</el-radio>
57 </el-radio-group> 72 </el-radio-group>
58 </el-form-item> 73 </el-form-item>
59 </el-col> 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 <el-form-item label="关键词" prop="questionClass"> 111 <el-form-item label="关键词" prop="questionClass">
62 - <el-select 112 + <el-input
63 v-model="dataForm.questionClass" 113 v-model="dataForm.questionClass"
64 - placeholder="请选择" 114 + placeholder="请输入关键词"
65 clearable 115 clearable
66 :style="{ width: '100%' }" 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 </el-form-item> 119 </el-form-item>
76 </el-col> 120 </el-col>
77 - <el-col :span="24"> 121 + <el-col :span="23">
78 <el-form-item label="问题内容" prop="questionContent"> 122 <el-form-item label="问题内容" prop="questionContent">
79 <el-input 123 <el-input
80 v-model="dataForm.questionContent" 124 v-model="dataForm.questionContent"
@@ -87,7 +131,7 @@ @@ -87,7 +131,7 @@
87 </el-input> 131 </el-input>
88 </el-form-item> 132 </el-form-item>
89 </el-col> 133 </el-col>
90 - <el-col :span="24"> 134 + <el-col :span="23">
91 <el-form-item label="有害链接" prop="link"> 135 <el-form-item label="有害链接" prop="link">
92 <el-input 136 <el-input
93 v-model="dataForm.link" 137 v-model="dataForm.link"
@@ -98,29 +142,7 @@ @@ -98,29 +142,7 @@
98 </el-input> 142 </el-input>
99 </el-form-item> 143 </el-form-item>
100 </el-col> 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 <el-form-item label="取证内容" prop="obtainEvidence"> 146 <el-form-item label="取证内容" prop="obtainEvidence">
125 <NCC-UploadFz 147 <NCC-UploadFz
126 v-model="dataForm.obtainEvidence" 148 v-model="dataForm.obtainEvidence"
@@ -146,6 +168,7 @@ @@ -146,6 +168,7 @@
146 import request from "@/utils/request"; 168 import request from "@/utils/request";
147 import { getDictionaryDataSelector } from "@/api/systemData/dictionary"; 169 import { getDictionaryDataSelector } from "@/api/systemData/dictionary";
148 import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface"; 170 import { getDetail, addForm, updataForm } from "@/api/systemData/dataInterface";
  171 +import { getInfoList } from "@/api/baseData/info";
149 export default { 172 export default {
150 components: {}, 173 components: {},
151 props: [], 174 props: [],
@@ -154,9 +177,14 @@ export default { @@ -154,9 +177,14 @@ export default {
154 loading: false, 177 loading: false,
155 visible: false, 178 visible: false,
156 isDetail: false, 179 isDetail: false,
  180 +
  181 + name_loading: undefined,
  182 + nameOptions: [],
  183 + otherQuestion: false,
  184 + showErrflag: false,
157 dataForm: { 185 dataForm: {
158 - id: "",  
159 id: undefined, 186 id: undefined,
  187 + source: undefined,
160 questionFrom: undefined, 188 questionFrom: undefined,
161 platformName: undefined, 189 platformName: undefined,
162 platformType: undefined, 190 platformType: undefined,
@@ -166,6 +194,9 @@ export default { @@ -166,6 +194,9 @@ export default {
166 link: undefined, 194 link: undefined,
167 obtainEvidence: [], 195 obtainEvidence: [],
168 annex: [], 196 annex: [],
  197 + otherQuestionType: '',
  198 + accurateDescription: undefined,
  199 + incorrectDescription: undefined,
169 }, 200 },
170 rules: { 201 rules: {
171 platformType: [ 202 platformType: [
@@ -197,11 +228,27 @@ export default { @@ -197,11 +228,27 @@ export default {
197 computed: {}, 228 computed: {},
198 watch: {}, 229 watch: {},
199 created() { 230 created() {
  231 + this.loadList();
200 this.getplatformTypeOptions(); 232 this.getplatformTypeOptions();
201 this.getquestionTypeOptions(); 233 this.getquestionTypeOptions();
202 }, 234 },
203 mounted() {}, 235 mounted() {},
204 methods: { 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 async getplatformTypeOptions() { 252 async getplatformTypeOptions() {
206 let list = this.$store.state.meta.system; 253 let list = this.$store.state.meta.system;
207 !list && 254 !list &&
@@ -213,6 +260,10 @@ export default { @@ -213,6 +260,10 @@ export default {
213 this.questionTypeOptions = res.data.list; 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 goBack() { 267 goBack() {
217 this.$emit("refresh"); 268 this.$emit("refresh");
218 }, 269 },