Commit ffe888ef7dc2c10f4ea9f91b2c5739cf70b4a74a

Authored by 273548560@qq.com
1 parent baafd814

修复bug

trash-ui/src/views/activiti/taskhistory/index.vue
1 <template> 1 <template>
2 <div class="app-container"> 2 <div class="app-container">
3 3
4 - <taskCard :task="task" v-for="task in taskList" @sendToParent="showTask"/> 4 + <taskCard :task="task" v-for="task in taskList" @sendToParent="showTask"/>
5 5
6 - <pagination :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> 6 + <pagination :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  7 + @pagination="getList"/>
7 8
8 <!-- 审批对话框 --> 9 <!-- 审批对话框 -->
9 <el-dialog :title="title" :visible.sync="open" v-if="open" width="500px" append-to-body> 10 <el-dialog :title="title" :visible.sync="open" v-if="open" width="500px" append-to-body>
@@ -14,11 +15,11 @@ @@ -14,11 +15,11 @@
14 </div> 15 </div>
15 </el-dialog> 16 </el-dialog>
16 <el-dialog :title="title" :visible.sync="open2" width="800px" append-to-body> 17 <el-dialog :title="title" :visible.sync="open2" width="800px" append-to-body>
17 - <threestepInfo :businessKey="businessKey" v-if="open2"/>  
18 - </el-dialog> 18 + <threestepInfo :businessKey="businessKey" v-if="open2"/>
  19 + </el-dialog>
19 20
20 <el-dialog :title="title" :visible.sync="construct" width="800px" append-to-body> 21 <el-dialog :title="title" :visible.sync="construct" width="800px" append-to-body>
21 - <constructsiteInfo :businessKey="businessKey" :signData="signData" v-if="construct" /> 22 + <constructsiteInfo :businessKey="businessKey" :signData="signData" v-if="construct"/>
22 </el-dialog> 23 </el-dialog>
23 <!-- 会议管理 --> 24 <!-- 会议管理 -->
24 <el-dialog :title="title" :visible.sync="conferenceOpen" width="850px" append-to-body> 25 <el-dialog :title="title" :visible.sync="conferenceOpen" width="850px" append-to-body>
@@ -32,15 +33,14 @@ @@ -32,15 +33,14 @@
32 33
33 34
34 <el-dialog :title="title" :visible.sync="earthsites" width="800px" append-to-body> 35 <el-dialog :title="title" :visible.sync="earthsites" width="800px" append-to-body>
35 - <earthsitesInfo :businessKey="businessKey" v-if="earthsites" /> 36 + <earthsitesInfo :businessKey="businessKey" v-if="earthsites"/>
36 </el-dialog> 37 </el-dialog>
37 38
38 <el-dialog :title="title" :visible.sync="contract" width="800px" append-to-body> 39 <el-dialog :title="title" :visible.sync="contract" width="800px" append-to-body>
39 - <contractInfo :businessKey="businessKey" v-if="contract" /> 40 + <contractInfo :businessKey="businessKey" v-if="contract"/>
40 </el-dialog> 41 </el-dialog>
41 42
42 43
43 -  
44 <!-- 后勤管理 --> 44 <!-- 后勤管理 -->
45 <el-dialog :title="title" :visible.sync="logisticsInfoOpen" width="500px" append-to-body 45 <el-dialog :title="title" :visible.sync="logisticsInfoOpen" width="500px" append-to-body
46 :close-on-click-modal="false"> 46 :close-on-click-modal="false">
@@ -61,265 +61,307 @@ @@ -61,265 +61,307 @@
61 </el-dialog> 61 </el-dialog>
62 62
63 <!-- 平台违规信息 --> 63 <!-- 平台违规信息 -->
64 - <el-dialog :title="title" :visible.sync="violationCaseFile" width="850px" append-to-body :close-on-click-modal="false"> 64 + <el-dialog :title="title" :visible.sync="violationCaseFile" width="850px" append-to-body
  65 + :close-on-click-modal="false">
65 <violationCaseFileInfo :idInfo="businessKey" v-if="violationCaseFile"/> 66 <violationCaseFileInfo :idInfo="businessKey" v-if="violationCaseFile"/>
66 </el-dialog> 67 </el-dialog>
67 68
68 <!-- 违规预警信息 --> 69 <!-- 违规预警信息 -->
69 - <el-dialog :title="title" :visible.sync="violationCaseFile1" width="850px" append-to-body :close-on-click-modal="false"> 70 + <el-dialog :title="title" :visible.sync="violationCaseFile1" width="850px" append-to-body
  71 + :close-on-click-modal="false">
70 <violationWarningInformationInfo :idInfo="businessKey" v-if="violationCaseFile1"/> 72 <violationWarningInformationInfo :idInfo="businessKey" v-if="violationCaseFile1"/>
71 </el-dialog> 73 </el-dialog>
72 74
73 - <el-dialog :title="title" :visible.sync="supervisionOpen" width="700px" append-to-body :close-on-click-modal="false"> 75 + <el-dialog :title="title" :visible.sync="supervisionOpen" width="700px" append-to-body
  76 + :close-on-click-modal="false">
74 <supervisionInfo :infoData="supervisionData"/> 77 <supervisionInfo :infoData="supervisionData"/>
75 </el-dialog> 78 </el-dialog>
76 </div> 79 </div>
77 </template> 80 </template>
78 81
79 82
80 -  
81 <script> 83 <script>
82 - import {  
83 - listEndTask,  
84 - listTask,  
85 - formDataShow  
86 - } from "@/api/activiti/taskhistory";  
87 -  
88 - import { getSignByObjId, addSign, updateSign } from "@/api/sign/sign";  
89 - import taskCard from "@/views/activiti/task/taskCard";  
90 - import earthSitesForm from "@/views/workflow/earthSitesForm";  
91 - import threestepInfo from "@/views/business/threestep/threestepInfo";  
92 - import constructsiteInfo from "@/views/activiti/task/constructsiteInfo";  
93 - import conferenceInfo from "@/views/office/conference/conferenceInfo";  
94 - import leaveApplicationInfo from "@/views/office/leaveApplication/leaveApplicationInfo";  
95 - import earthsitesInfo from "@/views/activiti/task/earthsitesInfo";  
96 - import contractInfo from "@/views/activiti/task/contractInfo";  
97 - import logisticsInfo from "@/views/office/logistics/logisticsInfo";  
98 - import handleInfo from "@/views/office/handle/handleInfo";  
99 - import caseOfflineInfo from "@/views/caseOffline/caseOffline/caseOfflineInfo";  
100 - import violationCaseFileInfo from "@/views/casefile/violationCaseFile/violationCaseFileInfo";  
101 - import violationWarningInformationInfo from "@/views/casefile/violationWarningInformation/violationWarningInformationInfo";  
102 - import supervisionInfo from "../task/SupervisionInfo";  
103 -  
104 -  
105 -  
106 - export default {  
107 - name: "taskHistory",  
108 - props: {  
109 - type: {  
110 - type: Number 84 +import {
  85 + listEndTask,
  86 + listTask,
  87 + formDataShow
  88 +} from "@/api/activiti/taskhistory";
  89 +
  90 +import {getSignByObjId, addSign, updateSign} from "@/api/sign/sign";
  91 +import taskCard from "@/views/activiti/task/taskCard";
  92 +import earthSitesForm from "@/views/workflow/earthSitesForm";
  93 +import threestepInfo from "@/views/business/threestep/threestepInfo";
  94 +import constructsiteInfo from "@/views/activiti/task/constructsiteInfo";
  95 +import conferenceInfo from "@/views/office/conference/conferenceInfo";
  96 +import leaveApplicationInfo from "@/views/office/leaveApplication/leaveApplicationInfo";
  97 +import earthsitesInfo from "@/views/activiti/task/earthsitesInfo";
  98 +import contractInfo from "@/views/activiti/task/contractInfo";
  99 +import logisticsInfo from "@/views/office/logistics/logisticsInfo";
  100 +import handleInfo from "@/views/office/handle/handleInfo";
  101 +import caseOfflineInfo from "@/views/caseOffline/caseOffline/caseOfflineInfo";
  102 +import violationCaseFileInfo from "@/views/casefile/violationCaseFile/violationCaseFileInfo";
  103 +import violationWarningInformationInfo
  104 + from "@/views/casefile/violationWarningInformation/violationWarningInformationInfo";
  105 +import supervisionInfo from "../task/SupervisionInfo";
  106 +import {getDict} from "@/api/dict";
  107 +
  108 +
  109 +export default {
  110 + name: "taskHistory",
  111 + props: {
  112 + type: {
  113 + type: Number
  114 + }
  115 + },
  116 + components: {
  117 + taskCard,
  118 + threestepInfo,
  119 + conferenceInfo,
  120 + leaveApplicationInfo,
  121 + logisticsInfo,
  122 + handleInfo,
  123 + constructsiteInfo,
  124 + earthsitesInfo,
  125 + contractInfo,
  126 + caseOfflineInfo,
  127 + violationCaseFileInfo,
  128 + violationWarningInformationInfo,
  129 + supervisionInfo
  130 + },
  131 + data() {
  132 + return {
  133 + id: '',
  134 + definitionKey: '',
  135 + businessKey: '',
  136 + // 遮罩层
  137 + loading: true,
  138 + // 选中数组
  139 + ids: [],
  140 + // 非单个禁用
  141 + single: true,
  142 + // 非多个禁用
  143 + multiple: true,
  144 + // 显示搜索条件
  145 + showSearch: true,
  146 + // 总条数
  147 + total: 0,
  148 + // 请假表格数据
  149 + taskList: [],
  150 + // 弹出层标题
  151 + title: "",
  152 + // 查询参数
  153 + queryParams: {
  154 + pageNum: 1,
  155 + pageSize: 10,
  156 + },
  157 + // 表单参数
  158 + form: {
  159 + formData: []
  160 + },
  161 + needShow: false,
  162 + // 表单校验
  163 + rules: {},
  164 + uploadImageDialog: false,
  165 + idInfo: null,
  166 + signData: null,
  167 + supervisionData: null,
  168 + // 是否显示弹出层
  169 + earthsites: false,
  170 + contract: false,
  171 + logisticsInfoOpen: false,
  172 + handleAffairsInfoOpen: false,
  173 + caseOffline: false,
  174 + violationCaseFile: false,
  175 + violationCaseFile1: false,
  176 + supervisionOpen: false,
  177 + open: false,
  178 + open2: false,
  179 + conferenceOpen: false,
  180 + construct: false,
  181 + leaveApplicationOpen: false,
  182 + };
  183 + },
  184 + created() {
  185 + let dep = {type: "CSUserDepartmentType"};
  186 +
  187 + getDict(dep).then(res => {
  188 + this.depts = res.result;
  189 + });
  190 +
  191 + let role = {type: "CSUserPostType"};
  192 +
  193 + getDict(role).then(res => {
  194 + this.roles = res.result;
  195 + });
  196 + this.getList();
  197 + },
  198 + methods: {
  199 + /** 查询请假列表 */
  200 + getList() {
  201 + this.loading = true;
  202 + if (this.type == 1) {
  203 + listEndTask(this.queryParams).then(response => {
  204 + this.taskList = response.rows;
  205 + this.total = response.total;
  206 + this.loading = false;
  207 + });
  208 + } else {
  209 + listTask(this.queryParams).then(response => {
  210 + this.taskList = response.rows;
  211 + this.total = response.total;
  212 + this.loading = false;
  213 + });
111 } 214 }
112 }, 215 },
113 - components: {  
114 - taskCard,  
115 - threestepInfo,  
116 - conferenceInfo,  
117 - leaveApplicationInfo,  
118 - logisticsInfo,  
119 - handleInfo,  
120 - constructsiteInfo,  
121 - earthsitesInfo,  
122 - contractInfo,  
123 - caseOfflineInfo,  
124 - violationCaseFileInfo,  
125 - violationWarningInformationInfo,  
126 - supervisionInfo 216 +
  217 + // 取消按钮
  218 + cancel() {
  219 + this.earthsites = false;
  220 + this.contract = false;
  221 + this.logisticsInfoOpen = false;
  222 + this.handleAffairsInfoOpen = false;
  223 + this.caseOffline = false;
  224 + this.violationCaseFile = false;
  225 + this.violationCaseFile1 = false;
  226 + this.supervisionOpen = false;
  227 + this.open = false;
  228 + this.open2 = false;
  229 + this.conferenceOpen = false;
  230 + this.construct = false;
  231 + this.leaveApplicationOpen = false;
  232 + this.reset();
127 }, 233 },
128 - data() {  
129 - return {  
130 - id: '',  
131 - definitionKey: '',  
132 - businessKey: '',  
133 - // 遮罩层  
134 - loading: true,  
135 - // 选中数组  
136 - ids: [],  
137 - // 非单个禁用  
138 - single: true,  
139 - // 非多个禁用  
140 - multiple: true,  
141 - // 显示搜索条件  
142 - showSearch: true,  
143 - // 总条数  
144 - total: 0,  
145 - // 请假表格数据  
146 - taskList: [],  
147 - // 弹出层标题  
148 - title: "",  
149 - // 是否显示弹出层  
150 - open: false,  
151 - open2:false,  
152 - // 查询参数  
153 - queryParams: {  
154 - pageNum: 1,  
155 - pageSize: 10,  
156 - },  
157 - // 表单参数  
158 - form: {  
159 - formData: []  
160 - },  
161 - needShow:false,  
162 - // 表单校验  
163 - rules: {},  
164 -  
165 - uploadImageDialog: false,  
166 - conferenceOpen: false,  
167 - construct:false,  
168 - idInfo:null,  
169 - leaveApplicationOpen:false,  
170 - signData:null,  
171 - earthsites:false,  
172 - contract:false, 234 + // 表单重置
  235 + reset() {
  236 + this.definitionKey = '';
  237 + this.businessKey = '';
  238 + this.form = {
  239 + formData: [],
173 }; 240 };
  241 + this.resetForm("form");
174 }, 242 },
175 - created() {  
176 - this.getList();  
177 - },  
178 - methods: {  
179 - /** 查询请假列表 */  
180 - getList() {  
181 - this.loading = true;  
182 - if(this.type == 1){  
183 - listEndTask(this.queryParams).then(response => {  
184 - this.taskList = response.rows;  
185 - this.total = response.total;  
186 - this.loading = false;  
187 - });  
188 - }else{  
189 - listTask(this.queryParams).then(response => {  
190 - this.taskList = response.rows;  
191 - this.total = response.total;  
192 - this.loading = false;  
193 - });  
194 - }  
195 - },  
196 -  
197 - // 取消按钮  
198 - cancel() {  
199 - this.open = false;  
200 -  
201 - this.earthsites=false;  
202 - this.contract=false;  
203 - this.logisticsInfoOpen=false;  
204 - this.handleAffairsInfoOpen=false;  
205 - this.caseOffline=false;  
206 - this.violationCaseFile=false;  
207 - this.violationCaseFile1=false;  
208 - this.supervisionOpen=false;  
209 - this.open=false;  
210 - this.open2=false;  
211 - this.conferenceOpen=false;  
212 - this.construct=false;  
213 - this.leaveApplicationOpen=false;  
214 - this.reset();  
215 - },  
216 - // 表单重置  
217 - reset() {  
218 - this.definitionKey = '',  
219 - this.businessKey = '',  
220 - this.form = {  
221 - formData: [],  
222 - };  
223 - this.resetForm("form");  
224 - },  
225 - showTask(row,idx) {  
226 -  
227 - this.needShow = false;  
228 - this.reset();  
229 - this.definitionKey = row.definitionKey;  
230 - this.businessKey = row.businessKey;  
231 - this.id = row.id;  
232 -  
233 - this.title = "详情";  
234 -  
235 - if(this.definitionKey == "conference"){  
236 - this.idInfo = row.businessKey.substring(row.businessKey.indexOf(":")+1);  
237 - this.conferenceOpen = true;  
238 - return; 243 + showTask(row, idx) {
  244 + this.needShow = false;
  245 + this.reset();
  246 + this.definitionKey = row.definitionKey;
  247 + this.businessKey = row.businessKey;
  248 + this.id = row.id;
  249 +
  250 + this.title = "详情";
  251 + formDataShow(row.id).then(response => {
  252 + let datas = response.data;
  253 + let formData = []
  254 + for (let i = 0; i < datas.length; i++) {
  255 + let strings = datas[i].split('--__!!')
  256 + let controlValue = null
  257 + let controlDefault = null
  258 + switch (strings[1]) {
  259 + case 'radio':
  260 + controlValue = idx;
  261 + controlDefault = strings[4]
  262 + break;
  263 + // default:
  264 + }
  265 + formData.push({
  266 + controlId: strings[0],
  267 + controlType: strings[1],
  268 + controlLable: strings[2],
  269 + controlIsParam: strings[3],
  270 + controlValue: controlValue,
  271 + controlDefault: controlDefault
  272 + })
239 } 273 }
240 - if(this.definitionKey == "workflow_leave"){  
241 - this.idInfo = row.businessKey.substring(row.businessKey.lastIndexOf(":")+1);  
242 - this.leaveApplicationOpen = true; 274 + if (this.definitionKey == "handleAffairs" || this.definitionKey == "gongwenchuli" || this.definitionKey == "yuelan" || this.definitionKey == "yuelanxuexi") {
  275 + this.controlId = formData[0].controlId;
  276 + this.idInfo = row.businessKey.split(":")[1];
  277 + this.handleAffairsInfoOpen = true;
243 return; 278 return;
244 } 279 }
  280 + });
245 281
246 - if(this.definitionKey == "workflow_constructsite"){  
247 - getSignByObjId(this.businessKey.split(":")[1]).then(res=>{  
248 - this.signData = res;  
249 - this.construct = true;  
250 - });  
251 - return;  
252 - }  
253 - if(this.definitionKey == "workflow_earthsites"){  
254 - this.earthsites = true;  
255 - return;  
256 - }  
257 - if(this.definitionKey == "workflow_conract"){  
258 - this.contract = true;  
259 - return;  
260 - } 282 + if (this.definitionKey == "conference") {
  283 + this.idInfo = row.businessKey.substring(row.businessKey.indexOf(":") + 1);
  284 + this.conferenceOpen = true;
  285 + return;
  286 + }
  287 + if (this.definitionKey == "workflow_leave") {
  288 + this.idInfo = row.businessKey.substring(row.businessKey.lastIndexOf(":") + 1);
  289 + this.leaveApplicationOpen = true;
  290 + return;
  291 + }
261 292
  293 + if (this.definitionKey == "workflow_constructsite") {
  294 + getSignByObjId(this.businessKey.split(":")[1]).then(res => {
  295 + this.signData = res;
  296 + this.construct = true;
  297 + });
  298 + return;
  299 + }
  300 + if (this.definitionKey == "workflow_earthsites") {
  301 + this.earthsites = true;
  302 + return;
  303 + }
  304 + if (this.definitionKey == "workflow_conract") {
  305 + this.contract = true;
  306 + return;
  307 + }
262 308
263 - if(this.definitionKey == "workflow_threestep"){  
264 - this.open2 = true;  
265 - return;  
266 - }  
267 309
268 - if (this.definitionKey == "logistics") {  
269 - this.idInfo = row.businessKey.substring(row.businessKey.lastIndexOf(":") + 1);  
270 - this.logisticsInfoOpen = true;  
271 - return;  
272 - }  
273 - if (this.definitionKey == "handleAffairs" || this.definitionKey == "gongwenchuli" || this.definitionKey == "yuelan" || this.definitionKey=="yuelanxuexi") {  
274 - this.controlId = this.form.formData[0].controlId;  
275 - this.idInfo = row.businessKey.split(":")[1];  
276 - this.handleAffairsInfoOpen = true;  
277 - return;  
278 - }  
279 - if(this.definitionKey == "workflow_caseoffline"){  
280 - this.caseOffline = true;  
281 - return;  
282 - } 310 + if (this.definitionKey == "workflow_threestep") {
  311 + this.open2 = true;
  312 + return;
  313 + }
283 314
284 - if(this.definitionKey == "workflow_casefile"){  
285 - this.violationCaseFile = true;  
286 - return;  
287 - } 315 + if (this.definitionKey == "logistics") {
  316 + this.idInfo = row.businessKey.substring(row.businessKey.lastIndexOf(":") + 1);
  317 + this.logisticsInfoOpen = true;
  318 + return;
  319 + }
288 320
289 - if(this.definitionKey == "violation_warning"){  
290 - this.violationCaseFile1 = true;  
291 - return;  
292 - } 321 + if (this.definitionKey == "workflow_caseoffline") {
  322 + this.caseOffline = true;
  323 + return;
  324 + }
  325 +
  326 + if (this.definitionKey == "workflow_casefile") {
  327 + this.violationCaseFile = true;
  328 + return;
  329 + }
  330 +
  331 + if (this.definitionKey == "violation_warning") {
  332 + this.violationCaseFile1 = true;
  333 + return;
  334 + }
293 335
294 - if(this.definitionKey.indexOf("supervision")>-1){  
295 - const params = {  
296 - id: row.businessKey.split(":")[1],  
297 - }  
298 - getSupervision(params).then(res=>{  
299 - if(res.result==null){  
300 - this.$message.error("获取纪检督察详情失败!请重试")  
301 - return;  
302 - }  
303 - this.supervisionData = res.result;  
304 - this.supervisionOpen = true;  
305 - }) 336 + if (this.definitionKey.indexOf("supervision") > -1) {
  337 + const params = {
  338 + id: row.businessKey.split(":")[1],
  339 + }
  340 + getSupervision(params).then(res => {
  341 + if (res.result == null) {
  342 + this.$message.error("获取纪检督察详情失败!请重试")
306 return; 343 return;
307 } 344 }
  345 + this.supervisionData = res.result;
  346 + this.supervisionOpen = true;
  347 + })
  348 + return;
  349 + }
308 350
309 351
310 - },  
311 - /** 提交按钮 */  
312 - submitForm() {  
313 - formDataSave(this.id, this.form.formData).then(response => {  
314 - this.msgSuccess("审批成功");  
315 - this.open = false;  
316 - this.getList();  
317 - });  
318 - },  
319 - }  
320 - }; 352 + },
  353 + /** 提交按钮 */
  354 + submitForm() {
  355 + formDataSave(this.id, this.form.formData).then(response => {
  356 + this.msgSuccess("审批成功");
  357 + this.open = false;
  358 + this.getList();
  359 + });
  360 + },
  361 + }
  362 +};
321 </script> 363 </script>
322 364
323 <style> 365 <style>
324 - @import '../../../assets/css/task.css' 366 +@import '../../../assets/css/task.css';
325 </style> 367 </style>
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationInfo.vue
1 <template> 1 <template>
2 - <el-form ref="form" :model="form" :rules="rules" label-width="115px"> 2 + <el-form ref="form" :model="form" label-width="115px">
3 <el-row :gutter="2"> 3 <el-row :gutter="2">
4 <el-col :span="11"> 4 <el-col :span="11">
5 <el-form-item label="案卷编号" prop="number"> 5 <el-form-item label="案卷编号" prop="number">
trash-ui/src/views/h5/taskhistory/index.vue
@@ -91,6 +91,7 @@ @@ -91,6 +91,7 @@
91 import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo"; 91 import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo";
92 import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo"; 92 import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo";
93 import violationWarningInformationInfo from "@/views/h5/task/violationWarningInformationInfo"; 93 import violationWarningInformationInfo from "@/views/h5/task/violationWarningInformationInfo";
  94 + import {getDict} from "@/api/dict";
94 95
95 export default { 96 export default {
96 name: "taskHistory", 97 name: "taskHistory",
@@ -136,9 +137,6 @@ @@ -136,9 +137,6 @@
136 taskList: [], 137 taskList: [],
137 // 弹出层标题 138 // 弹出层标题
138 title: "", 139 title: "",
139 - // 是否显示弹出层  
140 - open: false,  
141 - open2:false,  
142 // 查询参数 140 // 查询参数
143 queryParams: { 141 queryParams: {
144 pageNum: 1, 142 pageNum: 1,
@@ -153,22 +151,37 @@ @@ -153,22 +151,37 @@
153 rules: {}, 151 rules: {},
154 152
155 uploadImageDialog: false, 153 uploadImageDialog: false,
156 - conferenceOpen: false,  
157 - construct:false,  
158 idInfo:null, 154 idInfo:null,
159 - leaveApplicationOpen:false,  
160 signData:null, 155 signData:null,
161 - earthsites:false,  
162 - contract:false,  
163 - supervisionOpen:false, 156 + supervisionData: null,
  157 + // 是否显示弹出层
  158 + earthsites: false,
  159 + contract: false,
164 logisticsInfoOpen: false, 160 logisticsInfoOpen: false,
165 handleAffairsInfoOpen: false, 161 handleAffairsInfoOpen: false,
166 caseOffline: false, 162 caseOffline: false,
167 violationCaseFile: false, 163 violationCaseFile: false,
168 violationCaseFile1: false, 164 violationCaseFile1: false,
  165 + supervisionOpen: false,
  166 + open: false,
  167 + open2: false,
  168 + conferenceOpen: false,
  169 + construct: false,
  170 + leaveApplicationOpen: false,
169 }; 171 };
170 }, 172 },
171 created() { 173 created() {
  174 + let dep = {type: "CSUserDepartmentType"};
  175 +
  176 + getDict(dep).then(res => {
  177 + this.depts = res.result;
  178 + });
  179 +
  180 + let role = {type: "CSUserPostType"};
  181 +
  182 + getDict(role).then(res => {
  183 + this.roles = res.result;
  184 + });
172 this.getList(); 185 this.getList();
173 }, 186 },
174 methods: { 187 methods: {
@@ -228,7 +241,36 @@ @@ -228,7 +241,36 @@
228 this.id = row.id; 241 this.id = row.id;
229 242
230 this.title = "详情"; 243 this.title = "详情";
231 - 244 + formDataShow(row.id).then(response => {
  245 + let datas = response.data;
  246 + let formData = []
  247 + for (let i = 0; i < datas.length; i++) {
  248 + let strings = datas[i].split('--__!!')
  249 + let controlValue = null
  250 + let controlDefault = null
  251 + switch (strings[1]) {
  252 + case 'radio':
  253 + controlValue = idx;
  254 + controlDefault = strings[4]
  255 + break;
  256 + // default:
  257 + }
  258 + formData.push({
  259 + controlId: strings[0],
  260 + controlType: strings[1],
  261 + controlLable: strings[2],
  262 + controlIsParam: strings[3],
  263 + controlValue: controlValue,
  264 + controlDefault: controlDefault
  265 + })
  266 + }
  267 + if (this.definitionKey == "handleAffairs" || this.definitionKey == "gongwenchuli" || this.definitionKey == "yuelan" || this.definitionKey == "yuelanxuexi") {
  268 + this.controlId = formData[0].controlId;
  269 + this.idInfo = row.businessKey.split(":")[1];
  270 + this.handleAffairsInfoOpen = true;
  271 + return;
  272 + }
  273 + });
232 if(this.definitionKey == "conference"){ 274 if(this.definitionKey == "conference"){
233 this.idInfo = row.businessKey.substring(row.businessKey.indexOf(":")+1); 275 this.idInfo = row.businessKey.substring(row.businessKey.indexOf(":")+1);
234 this.conferenceOpen = true; 276 this.conferenceOpen = true;
@@ -267,11 +309,6 @@ @@ -267,11 +309,6 @@
267 this.logisticsInfoOpen = true; 309 this.logisticsInfoOpen = true;
268 return; 310 return;
269 } 311 }
270 - if (this.definitionKey == "handleAffairs" || this.definitionKey == "gongwenchuli" || this.definitionKey == "yuelan" || this.definitionKey=="yuelanxuexi") {  
271 - this.idInfo = row.businessKey.split(":")[1];  
272 - this.handleAffairsInfoOpen = true;  
273 - return;  
274 - }  
275 if(this.definitionKey == "workflow_caseoffline"){ 312 if(this.definitionKey == "workflow_caseoffline"){
276 this.caseOffline = true; 313 this.caseOffline = true;
277 return; 314 return;
@@ -314,4 +351,4 @@ @@ -314,4 +351,4 @@
314 .el-select-dropdown__item{ 351 .el-select-dropdown__item{
315 width:300px; 352 width:300px;
316 } 353 }
317 -</style>  
318 \ No newline at end of file 354 \ No newline at end of file
  355 +</style>