Commit e47508b6e093138d12dcc3f6dee6d9f291d4341f

Authored by monkeyhouyi
1 parent eec97c6a

优化专项行动

src/components/InfoEditRecord/index.vue
@@ -188,12 +188,12 @@ @@ -188,12 +188,12 @@
188 > 188 >
189 <el-card> 189 <el-card>
190 <h4 v-if="v.content"> 190 <h4 v-if="v.content">
191 - 更新  
192 - <p v-for="(item, index) in v.updataList" :key="index"> 191 + <!-- <p v-for="(item, index) in v.updataList" :key="index">
193 将“{{ item.PropertyName }}”从“{{ 192 将“{{ item.PropertyName }}”从“{{
194 item.OldValue 193 item.OldValue
195 }}”改为“{{ item.NewValue }}” 194 }}”改为“{{ item.NewValue }}”
196 - </p> 195 + </p> -->
  196 + <p v-for="(item, index) in v.changeRecord" :key="index">{{ item }}</p>
197 </h4> 197 </h4>
198 <h4 v-else> 198 <h4 v-else>
199 <p>{{ v.describe }}</p> 199 <p>{{ v.describe }}</p>
@@ -345,6 +345,7 @@ export default { @@ -345,6 +345,7 @@ export default {
345 let date = new Date(item.creatorTime * 1000); 345 let date = new Date(item.creatorTime * 1000);
346 item.updataTime = this.$m(date).format("YYYY-MM-DD HH:mm:ss"); 346 item.updataTime = this.$m(date).format("YYYY-MM-DD HH:mm:ss");
347 item.updataList = JSON.parse(item.content); 347 item.updataList = JSON.parse(item.content);
  348 + item.changeRecord = item.content ? JSON.parse(item.describe) : item.describe;
348 }); 349 });
349 this.updataRecordList = data.list; 350 this.updataRecordList = data.list;
350 this.record_loading = false; 351 this.record_loading = false;
src/views/baseSpecialAction/dynamicModel/list/Form.vue
@@ -162,7 +162,7 @@ export default { @@ -162,7 +162,7 @@ export default {
162 if (callback && typeof callback === "function") callback() 162 if (callback && typeof callback === "function") callback()
163 this.visible = false 163 this.visible = false
164 this.btnLoading = false 164 this.btnLoading = false
165 - !this.dataForm.id && this.toSaveItemid(itemId) 165 + !this.dataForm.id && await this.toSaveItemid(itemId)
166 this.$emit('refreshDataList', true) 166 this.$emit('refreshDataList', true)
167 } 167 }
168 }) 168 })
@@ -173,7 +173,7 @@ export default { @@ -173,7 +173,7 @@ export default {
173 let res = await request({ 173 let res = await request({
174 url: '/Extend/BaseSpecialActionInfo/UpdateState', 174 url: '/Extend/BaseSpecialActionInfo/UpdateState',
175 method: "PUT", 175 method: "PUT",
176 - data: { 176 + params: {
177 id: this.taskId, 177 id: this.taskId,
178 itemId 178 itemId
179 }, 179 },
src/views/baseSystemInfo/index.vue
@@ -107,21 +107,19 @@ @@ -107,21 +107,19 @@
107 </el-table-column> 107 </el-table-column>
108 <el-table-column 108 <el-table-column
109 show-overflow-tooltip 109 show-overflow-tooltip
110 - prop="contactUser" 110 + prop="principalName"
111 label="联系人" 111 label="联系人"
112 align="center" 112 align="center"
113 /> 113 />
114 <el-table-column 114 <el-table-column
115 show-overflow-tooltip 115 show-overflow-tooltip
116 - prop="contactPhone" 116 + prop="principalPhone"
117 label="联系电话" 117 label="联系电话"
118 align="center" 118 align="center"
119 /> 119 />
120 - <el-table-column  
121 - prop="areaName"  
122 - label="所属区域"  
123 - align="center"  
124 - /> 120 + <el-table-column label="所属区域" prop="areaId" align="left" show-overflow-tooltip>
  121 + <template slot-scope="scope">{{ scope.row.areaId | dynamicText(areaOptions) }}</template>
  122 + </el-table-column>
125 <el-table-column label="操作" width="250"> 123 <el-table-column label="操作" width="250">
126 <!-- 查看,修改,归属地变更,上报 --> 124 <!-- 查看,修改,归属地变更,上报 -->
127 <template slot-scope="scope"> 125 <template slot-scope="scope">
@@ -280,6 +278,7 @@ export default { @@ -280,6 +278,7 @@ export default {
280 }, 278 },
281 created() { 279 created() {
282 this.initSystemTypeList(); 280 this.initSystemTypeList();
  281 + this.initAreaTypeList();
283 this.initList(); 282 this.initList();
284 }, 283 },
285 mounted() {}, 284 mounted() {},
@@ -334,7 +333,6 @@ export default { @@ -334,7 +333,6 @@ export default {
334 systemName: v.SysytemInfo.SystemName, 333 systemName: v.SysytemInfo.SystemName,
335 systemType: v.SysytemInfo.SystemType, 334 systemType: v.SysytemInfo.SystemType,
336 systemClass: v.SysytemInfo.SystemClass, 335 systemClass: v.SysytemInfo.SystemClass,
337 - areaName: v.SysytemInfo.AreaName,  
338 areaId: v.SysytemInfo.AreaId, 336 areaId: v.SysytemInfo.AreaId,
339 principalName: v.SysytemInfo.PrincipalName, 337 principalName: v.SysytemInfo.PrincipalName,
340 principalPhone: v.SysytemInfo.PrincipalPhone, 338 principalPhone: v.SysytemInfo.PrincipalPhone,
src/views/overView/Overview.vue
@@ -121,7 +121,7 @@ @@ -121,7 +121,7 @@
121 </el-row> 121 </el-row>
122 <MsgForm v-if="MsgFormVisible" ref="MsgForm" @refreshDataList="msgRefresh"/> 122 <MsgForm v-if="MsgFormVisible" ref="MsgForm" @refreshDataList="msgRefresh"/>
123 <HandleInspectForm v-if="HandleInspectFormVisible" ref="HandleInspectForm" @refresh="(val) => {taskRefresh('HandleInspectFormVisible', val)}"/> 123 <HandleInspectForm v-if="HandleInspectFormVisible" ref="HandleInspectForm" @refresh="(val) => {taskRefresh('HandleInspectFormVisible', val)}"/>
124 - <NCC-Form v-if="formVisible" ref="NCCForm" @refresh="(val) => {taskRefresh('formVisible', val)}" /> 124 + <NCC-Form v-if="formVisible" ref="NCCForm" @refreshDataList="(val) => {taskRefresh('formVisible', val)}" />
125 </div> 125 </div>
126 </template> 126 </template>
127 127
@@ -270,8 +270,8 @@ export default { @@ -270,8 +270,8 @@ export default {
270 }) 270 })
271 } else if(row.taskType == '专项行动') { 271 } else if(row.taskType == '专项行动') {
272 this.formVisible = true; 272 this.formVisible = true;
273 - let data = await this.getBaseSpecialActionInfo('588008032122701061');  
274 - // let row = await this.getBaseSpecialActionInfo(row.taskCorrelationId); 273 + // let data = await this.getBaseSpecialActionInfo('588008032122701061');
  274 + let data = await this.getBaseSpecialActionInfo(row.taskCorrelationId);
275 var Itemid = data.itemId || '';//数据id,没有的话就是新增 ,有的话就是修改 275 var Itemid = data.itemId || '';//数据id,没有的话就是新增 ,有的话就是修改
276 var modelId = data.formId;//关联的表单id 276 var modelId = data.formId;//关联的表单id
277 var taskId = data.id; // 当前专项行动id 277 var taskId = data.id; // 当前专项行动id