Browse Source

fix: 添加动物防治按钮权限

sy-water-data-board-ui
hejunjie 1 month ago
parent
commit
64a07733d1
  1. 4
      src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue
  2. 4
      src/views/dike/runManage/pestAnimalControl2/acceptanceRecords/index.vue
  3. 4
      src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue
  4. 12
      src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue
  5. 6
      src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue
  6. 4
      src/views/dike/runManage/pestAnimalControl2/defectList/index.vue
  7. 4
      src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue

4
src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue

@ -203,7 +203,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:inspection:list:item:check']" v-hasPermi="['df:run:pestanimal2:inspection:list:item:check']"
@click="handleCheckDetails(scope.row, false)" @click="handleCheckDetails(scope.row, false)"
>查看 >查看
</el-button </el-button
@ -212,7 +212,7 @@
type="text" type="text"
size="small" size="small"
:disabled="scope.row.status !== '1'" :disabled="scope.row.status !== '1'"
v-hasPermi="['df:run:patrol:inspection:list:item:edit']" v-hasPermi="['df:run:pestanimal2:inspection:list:item:edit']"
@click="handleEditDetails(scope.row, true)" @click="handleEditDetails(scope.row, true)"
>编辑 >编辑
</el-button </el-button

4
src/views/dike/runManage/pestAnimalControl2/acceptanceRecords/index.vue

@ -217,7 +217,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:acceptance:list:item:check']" v-hasPermi="['df:run:pestanimal2:acceptance:list:item:check']"
@click="handleCheckDetails(scope.row, 'check')" @click="handleCheckDetails(scope.row, 'check')"
>查看</el-button >查看</el-button
> >
@ -225,7 +225,7 @@
type="text" type="text"
size="small" size="small"
:disabled="scope.row.detail.status === '5'" :disabled="scope.row.detail.status === '5'"
v-hasPermi="['df:run:patrol:acceptance:list:item:edit']" v-hasPermi="['df:run:pestanimal2:acceptance:list:item:edit']"
@click="handleCheckDetails(scope.row, 'edit')" @click="handleCheckDetails(scope.row, 'edit')"
>编辑</el-button >编辑</el-button
> >

4
src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue

@ -157,13 +157,13 @@
<el-button <el-button
type="primary" type="primary"
@click="handleAccept(true)" @click="handleAccept(true)"
v-hasPermi="['df:run:patrol:acceptance:detail:passed']" v-hasPermi="['df:run:pestanimal2:acceptance:detail:passed']"
>通过</el-button >通过</el-button
> >
<el-button <el-button
type="danger" type="danger"
@click="handleAccept(false)" @click="handleAccept(false)"
v-hasPermi="['df:run:patrol:acceptance:detail:rejected']" v-hasPermi="['df:run:pestanimal2:acceptance:detail:rejected']"
>驳回</el-button >驳回</el-button
> >
</div> </div>

12
src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue

@ -81,7 +81,7 @@
:disabled="$route.query.mode === 'check'" :disabled="$route.query.mode === 'check'"
class="flex-shrink-0 myml-12" class="flex-shrink-0 myml-12"
type="success" type="success"
v-hasPermi="['df:run:patrol:inspection:detail:add']" v-hasPermi="['df:run:pestanimal2:inspection:detail:add']"
@click="addProblems" @click="addProblems"
>新增</el-button >新增</el-button
> >
@ -90,7 +90,7 @@
:disabled="$route.query.mode === 'check'" :disabled="$route.query.mode === 'check'"
class="flex-shrink-0" class="flex-shrink-0"
@click="delProblems" @click="delProblems"
v-hasPermi="['df:run:patrol:inspection:detail:allDel']" v-hasPermi="['df:run:pestanimal2:inspection:detail:allDel']"
size="small" size="small"
>删除</el-button >删除</el-button
> >
@ -237,7 +237,7 @@
size="small" size="small"
style="margin-right: 10px" style="margin-right: 10px"
type="text" type="text"
v-hasPermi="['df:run:patrol:inspection:detail:item:upload']" v-hasPermi="['df:run:pestanimal2:inspection:detail:item:upload']"
>上传图片</el-button >上传图片</el-button
> >
</el-upload> </el-upload>
@ -255,7 +255,7 @@
size="small" size="small"
:disabled="$route.query.mode === 'check'" :disabled="$route.query.mode === 'check'"
slot="reference" slot="reference"
v-hasPermi="['df:run:patrol:inspection:detail:item:del']" v-hasPermi="['df:run:pestanimal2:inspection:detail:item:del']"
>删除</el-button >删除</el-button
> >
</el-popconfirm> </el-popconfirm>
@ -267,14 +267,14 @@
<div class="bottom-btns" v-if="$route.query.mode !== 'check'"> <div class="bottom-btns" v-if="$route.query.mode !== 'check'">
<el-button <el-button
type="primary" type="primary"
v-hasPermi="['df:run:patrol:inspection:detail:submit']" v-hasPermi="['df:run:pestanimal2:inspection:detail:submit']"
@click="handleSave(true)" @click="handleSave(true)"
> >
保存并提交 保存并提交
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
v-hasPermi="['df:run:patrol:inspection:detail:save']" v-hasPermi="['df:run:pestanimal2:inspection:detail:save']"
@click="handleSave(false)" @click="handleSave(false)"
> >
保存 保存

6
src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue

@ -116,7 +116,7 @@
style="margin-right: 16px;" style="margin-right: 16px;"
size="small" size="small"
type="primary" type="primary"
v-hasPermi="['df:run:patrol:maintenance:detail:attachment']" v-hasPermi="['df:run:pestanimal2:maintenance:detail:attachment']"
>上传</el-button> >上传</el-button>
<div slot="tip" style="margin-top: 0" class="el-upload__tip">文件上传支持.jpg.png.tif.gif 单张图片5M以内最多上传3张</div> <div slot="tip" style="margin-top: 0" class="el-upload__tip">文件上传支持.jpg.png.tif.gif 单张图片5M以内最多上传3张</div>
</div> </div>
@ -134,13 +134,13 @@
<el-button <el-button
type="primary" type="primary"
@click="handleSave(true)" @click="handleSave(true)"
v-hasPermi="['df:run:patrol:maintenance:detail:submit']" v-hasPermi="['df:run:pestanimal2:maintenance:detail:submit']"
>保存并提交</el-button >保存并提交</el-button
> >
<el-button <el-button
type="primary" type="primary"
@click="handleSave(false)" @click="handleSave(false)"
v-hasPermi="['df:run:patrol:maintenance:detail:save']" v-hasPermi="['df:run:pestanimal2:maintenance:detail:save']"
>保存</el-button >保存</el-button
> >
<el-button @click="$router.go(-1)">返回</el-button> <el-button @click="$router.go(-1)">返回</el-button>

4
src/views/dike/runManage/pestAnimalControl2/defectList/index.vue

@ -204,14 +204,14 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:defect:list:item:getInvoices']" v-hasPermi="['df:run:pestanimal2:defect:list:item:getInvoices']"
@click="handleReceiveDetails(scope.row)" @click="handleReceiveDetails(scope.row)"
>领单</el-button >领单</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:defect:list:item:check']" v-hasPermi="['df:run:pestanimal2:defect:list:item:check']"
@click="handleCheckDetails(scope.row)" @click="handleCheckDetails(scope.row)"
>查看</el-button >查看</el-button
> >

4
src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue

@ -229,14 +229,14 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:maintenance:list:item:check']" v-hasPermi="['df:run:pestanimal2:maintenance:list:item:check']"
@click="handleCheckDetails(scope.row, 'check')" @click="handleCheckDetails(scope.row, 'check')"
>查看</el-button >查看</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-hasPermi="['df:run:patrol:maintenance:list:item:edit']" v-hasPermi="['df:run:pestanimal2:maintenance:list:item:edit']"
:disabled="scope.row.status !== '4'" :disabled="scope.row.status !== '4'"
@click="handleCheckDetails(scope.row, 'edit')" @click="handleCheckDetails(scope.row, 'edit')"
>编辑</el-button >编辑</el-button

Loading…
Cancel
Save