Commit e47508b6e093138d12dcc3f6dee6d9f291d4341f

Authored by monkeyhouyi
1 parent eec97c6a

优化专项行动

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