Browse Source

fix:前端优化

master
pengwei 1 month ago
parent
commit
141eacaf71
  1. 2
      src/components/police-picker.vue
  2. 1
      src/views/mobileSupervise/Inspection.vue
  3. 10
      src/views/mobileSupervise/TaskProblem.vue

2
src/components/police-picker.vue

@ -224,7 +224,7 @@ watch(()=>props.modelValue,(val)=>{
watch(()=>props.dataDepartId,(val)=>{ watch(()=>props.dataDepartId,(val)=>{
console.log('val',val) console.log('val',val)
if(val){ if(val){
query.value.departId = node.id; query.value.departId = val.id;
getList(); getList();
} }
},{immediate:true,deep:true}) },{immediate:true,deep:true})

1
src/views/mobileSupervise/Inspection.vue

@ -2657,6 +2657,7 @@ watch(departs, () => {
watch(() => form.value.specialType, (newVal) => { watch(() => form.value.specialType, (newVal) => {
console.log('newVal',newVal)
if (newVal === '六项规定督察') { if (newVal === '六项规定督察') {
form.value.samplingTarget = '自定义人员' form.value.samplingTarget = '自定义人员'
} }

10
src/views/mobileSupervise/TaskProblem.vue

@ -93,8 +93,8 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="260"> <el-table-column label="操作" width="260">
<template #default="{ row }"> <template #default="{ row }">
<div>
<el-button type="primary" link @click="showDeatil(row)">问题详情</el-button> <el-button type="primary" link @click="showDeatil(row)">问题详情</el-button>
<el-button <el-button
@click="upProblemFun(row)" @click="upProblemFun(row)"
type="primary" type="primary"
@ -103,6 +103,8 @@
> >
编辑 编辑
</el-button> </el-button>
</div>
<div>
<el-button <el-button
v-if="row.distributionState === '0'" v-if="row.distributionState === '0'"
type="primary" type="primary"
@ -123,6 +125,7 @@
> >
{{ row.problemState == "1" ? "删除" : "恢复" }} {{ row.problemState == "1" ? "删除" : "恢复" }}
</el-button> </el-button>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -186,11 +189,12 @@
getDictLable(dict.distributionState, activeRow.distributionState) getDictLable(dict.distributionState, activeRow.distributionState)
}}</span> }}</span>
</div> </div>
</div> <div class="col col-24">
<div> <label>上传附件</label>
<file-list :files="activeRow.files ? JSON.parse(activeRow.files) : []" /> <file-list :files="activeRow.files ? JSON.parse(activeRow.files) : []" />
</div> </div>
</div> </div>
</div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog

Loading…
Cancel
Save