- 编辑
+ 编辑
返回
保存
diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue
index e2874933..8d84f161 100644
--- a/src/views/report/glass/year.vue
+++ b/src/views/report/glass/year.vue
@@ -160,8 +160,8 @@ export default {
changeTime(val) {
if(val) {
// let timeStamp = val.getTime(); //标准时间转为时间戳,毫秒级别
- this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()); //开始时间
- this.endTimeStamp = this.timeFun(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()); //结束时间
+ this.endTimeStamp = this.timeFun(new Date(val.getFullYear(),11, 31, 7, 0, 0).getTime()); //开始时间
+ this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()); //结束时间
this.listQuery.reportTime[0] = parseTime(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
this.listQuery.reportTime[1] = parseTime(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
} else {
diff --git a/src/views/report/productionDayReport/index.vue b/src/views/report/productionDayReport/index.vue
index 03698658..f172fbdf 100644
--- a/src/views/report/productionDayReport/index.vue
+++ b/src/views/report/productionDayReport/index.vue
@@ -1,7 +1,7 @@
@@ -13,11 +13,12 @@
查询
- 导出
- 编辑
+ 编辑
返回
保存
@@ -28,26 +29,26 @@
-
+
{{ scope.row.lineName }}
-
+
{{ scope.row.inputNow }}
-
+
{{ scope.row.inputHis }}
-
+
{{ scope.row.inputTrend && scope.row.inputTrend != 0 ? parseFloat((scope.row.inputTrend *
100).toFixed(2)) + '%' : scope.row.inputTrend == 0 ? 0 : null }}
@@ -56,24 +57,24 @@
-
+
{{ scope.row.goodProductNow }}
-
+
{{ scope.row.goodProductHis }}
-
+
{{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
- parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
null
}}
@@ -82,7 +83,7 @@
-
+
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
100).toFixed(2)) +
'%' : null }}
@@ -91,7 +92,7 @@
-
+
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
100).toFixed(2)) +
'%' : null }}
@@ -100,7 +101,7 @@
-
+
{{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == 0 ? 0 : null
@@ -111,7 +112,7 @@
-
+
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
100).toFixed(2)) +
@@ -121,7 +122,7 @@
-
+
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
100).toFixed(2)) +
@@ -131,7 +132,7 @@
-
+
{{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
@@ -485,8 +486,8 @@ export default {
// console.log(val.setHours(7, 0, 0))
// console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000)
// let time = this.format(val.setHours(7, 0, 0))
- this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
- this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1) - 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
+ this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
+ this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
this.timeTips = this.listQuery.reportTime[0] + ' - ' + this.listQuery.reportTime[1]
// console.log(this.listQuery.reportTime);
} else {
diff --git a/src/views/report/productionMonthReport/index.vue b/src/views/report/productionMonthReport/index.vue
index 3a4d4c8f..d7970418 100644
--- a/src/views/report/productionMonthReport/index.vue
+++ b/src/views/report/productionMonthReport/index.vue
@@ -1,7 +1,7 @@
@@ -12,13 +12,15 @@
- 查询
+
+ 查询
- 导出
- 编辑
+ 编辑
返回
保存
@@ -51,9 +53,9 @@
{{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
- parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend == 0 ? 0 :
- null
- }}
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend == 0 ? 0 :
+ null
+ }}
@@ -77,9 +79,9 @@
{{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
- parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
- null
- }}
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
+ null
+ }}
@@ -88,8 +90,8 @@
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -97,8 +99,8 @@
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -107,10 +109,10 @@
{{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
- parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == 0 ?
+ 0 :
+ null
+ }}
@@ -120,8 +122,8 @@
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -130,8 +132,8 @@
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -140,11 +142,11 @@
{{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
- parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
diff --git a/src/views/report/productionWeekReport/index.vue b/src/views/report/productionWeekReport/index.vue
index a915b3bd..1a759e21 100644
--- a/src/views/report/productionWeekReport/index.vue
+++ b/src/views/report/productionWeekReport/index.vue
@@ -1,7 +1,7 @@
@@ -14,13 +14,15 @@
style="width: 350px" placeholder="选择周">
- 查询
+
+ 查询
- 导出
- 编辑
+ 编辑
返回
保存
@@ -52,11 +54,11 @@
{{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
- parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -80,11 +82,11 @@
{{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
- parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -93,8 +95,8 @@
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -102,8 +104,8 @@
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -112,11 +114,11 @@
{{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
- parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -126,8 +128,8 @@
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -136,8 +138,8 @@
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -146,11 +148,11 @@
{{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
- parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
diff --git a/src/views/report/productionYearReport/index.vue b/src/views/report/productionYearReport/index.vue
index baafb129..6f4f47e9 100644
--- a/src/views/report/productionYearReport/index.vue
+++ b/src/views/report/productionYearReport/index.vue
@@ -1,7 +1,7 @@
@@ -14,15 +14,17 @@
style="width: 350px" placeholder="选择年">
- 查询
+
+ 查询
- 导出
- 编辑
+ 编辑
返回
保存
@@ -55,11 +57,11 @@
{{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
- parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -83,11 +85,11 @@
{{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
- parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -96,8 +98,8 @@
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -105,8 +107,8 @@
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -115,11 +117,11 @@
{{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
- parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -129,8 +131,8 @@
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -139,8 +141,8 @@
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : null }}
+ 100).toFixed(2)) +
+ '%' : null }}
@@ -149,11 +151,11 @@
{{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
- parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
- 0 ?
- 0 :
- null
- }}
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
diff --git a/src/views/specialEquipment/basic/FireFighthing.vue b/src/views/specialEquipment/basic/FireFighthing.vue
index fdee29af..f2dd2080 100644
--- a/src/views/specialEquipment/basic/FireFighthing.vue
+++ b/src/views/specialEquipment/basic/FireFighthing.vue
@@ -91,13 +91,13 @@
pageSize: 10,
},
tableBtn: [
- this.$auth.hasPermi('base:core-equipment-attr:update') // ('se:firefight-attr:update') // TODO 此处需用firefight-attr权限还是core-equipment-attr 权限?
+ this.$auth.hasPermi('base:core-equipment-attr:update')
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('base:core-equipment-attr:delete') // ('se:firefight-attr:delete')
+ this.$auth.hasPermi('base:core-equipment-attr:delete')
? {
type: 'delete',
btnName: '删除',
@@ -142,19 +142,29 @@ export default {
return {
searchBarKeys: ['name', 'code'],
tableBtn: [
- this.$auth.hasPermi(`se:firefight:update`)
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:query',
+ ])
? {
type: 'detail',
btnName: '详情',
}
: undefined,
- this.$auth.hasPermi('se:firefight:update')
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:update',
+ 'base:core-worker:query',
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:create',
+ 'base:core-equipment-attr:query',
+ 'base:core-equipment-attr:delete',
+ ])
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('se:firefight:delete')
+ this.$auth.hasPermi('base:core-equipment:delete')
? {
type: 'delete',
btnName: '删除',
@@ -205,17 +215,32 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermi('base:core-equipment:export') ||
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:firefight:export') ? 'button' : '',
+ type: this.$auth.hasPermi('base:core-equipment:export')
+ ? 'button'
+ : '',
btnName: '导出',
name: 'export',
plain: true,
color: 'primary',
},
+ //
{
- type: this.$auth.hasPermi('se:firefight:create') ? 'button' : '',
+ type: this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
+ ? 'button'
+ : '',
btnName: '新增',
name: 'add',
plain: true,
diff --git a/src/views/specialEquipment/basic/Manage.vue b/src/views/specialEquipment/basic/Manage.vue
index ac915a88..285030a1 100644
--- a/src/views/specialEquipment/basic/Manage.vue
+++ b/src/views/specialEquipment/basic/Manage.vue
@@ -142,19 +142,29 @@ export default {
return {
searchBarKeys: ['name', 'code'],
tableBtn: [
- this.$auth.hasPermi(`se:manage:update`)
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:query',
+ ])
? {
type: 'detail',
btnName: '详情',
}
: undefined,
- this.$auth.hasPermi('se:manage:update')
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:update',
+ 'base:core-worker:query',
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:create',
+ 'base:core-equipment-attr:query',
+ 'base:core-equipment-attr:delete',
+ ])
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('se:manage:delete')
+ this.$auth.hasPermi('base:core-equipment:delete')
? {
type: 'delete',
btnName: '删除',
@@ -204,10 +214,17 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermi('base:core-equipment:export') ||
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:manage:export')
+ type: this.$auth.hasPermi('base:core-equipment:export')
? 'button'
: '',
btnName: '导出',
@@ -216,7 +233,10 @@ export default {
color: 'primary',
},
{
- type: this.$auth.hasPermi('se:manage:create')
+ type: this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
? 'button'
: '',
btnName: '新增',
diff --git a/src/views/specialEquipment/basic/Safety.vue b/src/views/specialEquipment/basic/Safety.vue
index ed27cda9..acb9e634 100644
--- a/src/views/specialEquipment/basic/Safety.vue
+++ b/src/views/specialEquipment/basic/Safety.vue
@@ -141,19 +141,30 @@ export default {
return {
searchBarKeys: ['name', 'code'],
tableBtn: [
- this.$auth.hasPermi(`se:safety:update`)
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:query',
+ ])
? {
type: 'detail',
btnName: '详情',
}
: undefined,
- this.$auth.hasPermi('se:safety:update')
+ //
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:update',
+ 'base:core-worker:query',
+ 'base:core-equipment:query',
+ 'base:core-equipment-attr:create',
+ 'base:core-equipment-attr:query',
+ 'base:core-equipment-attr:delete',
+ ])
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('se:safety:delete')
+ this.$auth.hasPermi('base:core-equipment:delete')
? {
type: 'delete',
btnName: '删除',
@@ -203,10 +214,17 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermi('base:core-equipment:export') ||
+ this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:safety:export')
+ type: this.$auth.hasPermi('base:core-equipment:export')
? 'button'
: '',
btnName: '导出',
@@ -215,7 +233,10 @@ export default {
color: 'primary',
},
{
- type: this.$auth.hasPermi('se:safety:create')
+ type: this.$auth.hasPermiAnd([
+ 'base:core-equipment:create',
+ 'base:core-worker:query',
+ ])
? 'button'
: '',
btnName: '新增',
diff --git a/src/views/specialEquipment/check/CheckOrderListTable.vue b/src/views/specialEquipment/check/CheckOrderListTable.vue
index c231f6d8..26e9c619 100644
--- a/src/views/specialEquipment/check/CheckOrderListTable.vue
+++ b/src/views/specialEquipment/check/CheckOrderListTable.vue
@@ -103,6 +103,7 @@
label="操作">
- |
+
+ |
+
- |
+
+ |
+
- |
+
+ |
+
@@ -78,20 +78,29 @@ export default {
addOrEditTitle: '',
searchBarKeys: ['name'],
tableBtn: [
- this.$auth.hasPermi('se:check:add-item')
+ this.$auth.hasPermiAnd([
+ 'equipment:check:create',
+ 'equipment:check:query',
+ 'equipment:check:update',
+ 'equipment:check:delete',
+ ])
? {
type: 'add',
btnName: '添加',
showTip: '添加巡检',
}
: undefined,
- this.$auth.hasPermi('se:check:update')
+ this.$auth.hasPermiAnd([
+ 'equipment:check:update',
+ 'equipment:check:query',
+ 'base:core-department:query',
+ ])
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('se:check:delete')
+ this.$auth.hasPermi('equipment:check:delete')
? {
type: 'delete',
btnName: '删除',
@@ -164,10 +173,20 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type: this.$auth.hasPermiAnd([
+ 'equipment:check:create',
+ 'base:core-department:query',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:check:create') ? 'button' : '',
+ type: this.$auth.hasPermiAnd([
+ 'equipment:check:create',
+ 'base:core-department:query',
+ ])
+ ? 'button'
+ : '',
btnName: '新增',
name: 'add',
plain: true,
diff --git a/src/views/specialEquipment/check/Content.vue b/src/views/specialEquipment/check/Content.vue
index bcc778c2..ba048c24 100644
--- a/src/views/specialEquipment/check/Content.vue
+++ b/src/views/specialEquipment/check/Content.vue
@@ -155,10 +155,25 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermiAnd([
+ 'equipment:check:create',
+ 'base:core-worker:query',
+ 'base:group-classes:query',
+ 'base:core-department:query',
+ ]) ||
+ this.$auth.hasPermi('equipment:check:export') ||
+ this.$auth.hasPermi('equipment:check:update')
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:check-unconfirm:create')
+ type: this.$auth.hasPermiAnd([
+ 'equipment:check:create',
+ 'base:core-worker:query',
+ 'base:group-classes:query',
+ 'base:core-department:query',
+ ])
? 'button'
: '',
btnName: '新增',
@@ -167,18 +182,14 @@ export default {
color: 'success',
},
{
- type: this.$auth.hasPermi('se:check-unconfirm:export')
- ? 'button'
- : '',
+ type: this.$auth.hasPermi('equipment:check:export') ? 'button' : '',
btnName: '导出',
name: 'export',
plain: true,
color: 'warning',
},
{
- type: this.$auth.hasPermi('se:check-unconfirm:confirm-all')
- ? 'button'
- : '',
+ type: this.$auth.hasPermi('equipment:check:update') ? 'button' : '',
btnName: '批量确认',
name: 'batch-confirm',
plain: true,
diff --git a/src/views/specialEquipment/check/Record.vue b/src/views/specialEquipment/check/Record.vue
index 45c72e5c..610a2d9f 100644
--- a/src/views/specialEquipment/check/Record.vue
+++ b/src/views/specialEquipment/check/Record.vue
@@ -71,7 +71,7 @@ export default {
addOrUpdateVisible: false,
searchBarKeys: ['name', 'actualCheckTime'],
tableBtn: [
- this.$auth.hasPermi('se:check-record:detail')
+ this.$auth.hasPermi('equipment:check:query')
? {
type: 'detail',
btnName: '详情',
@@ -147,10 +147,10 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type: this.$auth.hasPermi('equipment:check:export') ? 'separate' : '',
},
{
- type: this.$auth.hasPermi('se:check-record:export') ? 'button' : '',
+ type: this.$auth.hasPermi('equipment:check:export') ? 'button' : '',
btnName: '导出',
name: 'export',
plain: true,
diff --git a/src/views/specialEquipment/maintain/Monitor.vue b/src/views/specialEquipment/maintain/Monitor.vue
index 90e1fe4f..4933c0df 100644
--- a/src/views/specialEquipment/maintain/Monitor.vue
+++ b/src/views/specialEquipment/maintain/Monitor.vue
@@ -122,20 +122,22 @@ export default {
minWidth: 158,
showOverflowtooltip: true,
},
- {
- prop: 'opt2',
- label: '保养内容',
- entryText: '详情',
- subcomponent: TableBtn,
- width: 100,
- },
+ this.$auth.hasPermi('equipment:plan-config:query')
+ ? {
+ prop: 'opt2',
+ label: '保养内容',
+ entryText: '详情',
+ subcomponent: TableBtn,
+ width: 100,
+ }
+ : undefined,
{
prop: 'remainDays',
label: '距离下次保养剩余时间(天)',
subcomponent: RemainBox,
minWidth: 210,
},
- ],
+ ].filter(v => v),
searchBarFormConfig: [
{
type: 'select',
@@ -151,10 +153,12 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type: this.$auth.hasPermi('equipment:plan-config:export')
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:maintain-plan:export')
+ type: this.$auth.hasPermi('equipment:plan-config:export')
? 'button'
: '',
btnName: '导出',
diff --git a/src/views/specialEquipment/maintain/PlanConfig.vue b/src/views/specialEquipment/maintain/PlanConfig.vue
index a7a0cc26..1f9247d9 100644
--- a/src/views/specialEquipment/maintain/PlanConfig.vue
+++ b/src/views/specialEquipment/maintain/PlanConfig.vue
@@ -83,19 +83,31 @@ export default {
return {
searchBarKeys: ['planName'],
tableBtn: [
- this.$auth.hasPermi('se:maintain:update')
+ this.$auth.hasPermiAnd([
+ 'equipment:plan-config:query',
+ 'equipment:plan-config:create',
+ 'equipment:plan-config:update',
+ 'equipment:plan-config:delete',
+ 'base:core-equipment:query',
+ ])
? {
type: 'addContent',
btnName: '添加内容',
}
: undefined,
- this.$auth.hasPermi('se:maintain:update')
+ this.$auth.hasPermiAnd([
+ 'equipment:plan-config:update',
+ 'equipment:plan-config:query',
+ 'base:core-worker:query',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ ])
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('se:maintain:delete')
+ this.$auth.hasPermi('equipment:plan-config:delete')
? {
type: 'delete',
btnName: '删除',
@@ -166,10 +178,24 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type: this.$auth.hasPermiAnd([
+ 'equipment:plan-config:create',
+ 'base:core-worker:query',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:maintain:create') ? 'button' : '',
+ type: this.$auth.hasPermiAnd([
+ 'equipment:plan-config:create',
+ 'base:core-worker:query',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ ])
+ ? 'button'
+ : '',
btnName: '新增',
name: 'add',
plain: true,
diff --git a/src/views/specialEquipment/maintain/Record--detail.vue b/src/views/specialEquipment/maintain/Record--detail.vue
index dbddf8ba..98baf152 100644
--- a/src/views/specialEquipment/maintain/Record--detail.vue
+++ b/src/views/specialEquipment/maintain/Record--detail.vue
@@ -212,7 +212,7 @@ export default {
},
computed: {},
mounted() {
- this.loadEquipments();
+ // this.loadEquipments();
},
methods: {
/** 确认是否关闭 */
diff --git a/src/views/specialEquipment/maintain/Record.vue b/src/views/specialEquipment/maintain/Record.vue
index 4c2c2ba1..f00a15aa 100644
--- a/src/views/specialEquipment/maintain/Record.vue
+++ b/src/views/specialEquipment/maintain/Record.vue
@@ -100,26 +100,26 @@ export default {
return {
recordDetailVisible: false,
searchBarKeys: ['maintainPlanId', 'startTime', 'special'],
- tableBtn: [
- this.$auth.hasPermi('se:maintain-record:update')
- ? {
- type: 'detail',
- btnName: '详情',
- }
- : undefined,
- this.$auth.hasPermi('se:maintain-record:update')
- ? {
- type: 'edit',
- btnName: '修改',
- }
- : undefined,
- this.$auth.hasPermi('se:maintain-record:delete')
- ? {
- type: 'delete',
- btnName: '删除',
- }
- : undefined,
- ].filter((v) => v),
+ // tableBtn: [
+ // this.$auth.hasPermi('se:maintain-record:update')
+ // ? {
+ // type: 'detail',
+ // btnName: '详情',
+ // }
+ // : undefined,
+ // this.$auth.hasPermi('se:maintain-record:update')
+ // ? {
+ // type: 'edit',
+ // btnName: '修改',
+ // }
+ // : undefined,
+ // this.$auth.hasPermi('se:maintain-record:delete')
+ // ? {
+ // type: 'delete',
+ // btnName: '删除',
+ // }
+ // : undefined,
+ // ].filter((v) => v),
tableProps: [
{
prop: 'maintainOrderNumber',
@@ -182,14 +182,16 @@ export default {
filter: (val) =>
val != null ? ['-', '计划型', '非计划型'][val] : '-',
},
- {
- prop: '_detail',
- label: '详情',
- entryText: '详情',
- minWidth: 60,
- subcomponent: TableBtn,
- },
- ],
+ this.$auth.hasPermi('equipment:maintain-record:query')
+ ? {
+ prop: '_detail',
+ label: '详情',
+ entryText: '详情',
+ minWidth: 60,
+ subcomponent: TableBtn,
+ }
+ : '',
+ ].filter((v) => v),
searchBarFormConfig: [
{
type: 'select',
@@ -222,10 +224,12 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type: this.$auth.hasPermi('equipment:maintain-record:export')
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:maintain-record:export')
+ type: this.$auth.hasPermi('equipment:maintain-record:export')
? 'button'
: '',
btnName: '导出',
diff --git a/src/views/specialEquipment/maintain/Repair.vue b/src/views/specialEquipment/maintain/Repair.vue
index f4867771..79e59b53 100644
--- a/src/views/specialEquipment/maintain/Repair.vue
+++ b/src/views/specialEquipment/maintain/Repair.vue
@@ -88,19 +88,19 @@ export default {
'specialType',
],
tableBtn: [
- this.$auth.hasPermi('se:repair:finish')
+ this.$auth.hasPermi('equipment:repair:finish')
? {
type: 'finish',
btnName: '完成',
}
: undefined,
- this.$auth.hasPermi('se:repair:update')
+ this.$auth.hasPermi('equipment:repair:query')
? {
type: 'detail',
btnName: '详情',
}
: undefined,
- this.$auth.hasPermi('se:repair:delete')
+ this.$auth.hasPermi('equipment:repair:delete')
? {
type: 'delete',
btnName: '删除',
@@ -212,17 +212,31 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermi('equipment:repair:export') ||
+ this.$auth.hasPermiAnd([
+ 'equipment:repair:create',
+ 'base:core-worker:query',
+ 'system:user:list',
+ ])
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:repair:export') ? 'button' : '',
+ type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
btnName: '导出',
name: 'export',
plain: true,
color: 'primary',
},
{
- type: this.$auth.hasPermi('se:repair:create') ? 'button' : '',
+ type: this.$auth.hasPermiAnd([
+ 'equipment:repair:create',
+ 'base:core-worker:query',
+ 'system:user:list',
+ ])
+ ? 'button'
+ : '',
btnName: '新增',
name: 'add',
plain: true,
diff --git a/src/views/specialEquipment/maintain/WaitingList.vue b/src/views/specialEquipment/maintain/WaitingList.vue
index c52ba25d..1e53ad51 100644
--- a/src/views/specialEquipment/maintain/WaitingList.vue
+++ b/src/views/specialEquipment/maintain/WaitingList.vue
@@ -147,10 +147,25 @@ export default {
color: 'primary',
},
{
- type: 'separate',
+ type:
+ this.$auth.hasPermiAnd([
+ 'equipment:maintain-record:create',
+ 'base:core-worker:query',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ ]) ||
+ this.$auth.hasPermi('equipment:maintain-record:update') ||
+ this.$auth.hasPermi('equipment:maintain-record:export')
+ ? 'separate'
+ : '',
},
{
- type: this.$auth.hasPermi('se:maintain-record-pre:create')
+ type: this.$auth.hasPermiAnd([
+ 'equipment:maintain-record:create',
+ 'base:core-worker:query',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ ])
? 'button'
: '',
btnName: '新增',
@@ -159,7 +174,7 @@ export default {
color: 'success',
},
{
- type: this.$auth.hasPermi('se:maintain-record-pre:confirm-all')
+ type: this.$auth.hasPermi('equipment:maintain-record:update')
? 'button'
: '',
btnName: '批量确认',
@@ -168,7 +183,7 @@ export default {
plain: true,
},
{
- type: this.$auth.hasPermi('se:maintain-record-pre:export')
+ type: this.$auth.hasPermi('equipment:maintain-record:export')
? 'button'
: '',
btnName: '导出',
diff --git a/src/views/specialEquipment/maintain/WaitingListTable.vue b/src/views/specialEquipment/maintain/WaitingListTable.vue
index 3413df82..d278dcb7 100644
--- a/src/views/specialEquipment/maintain/WaitingListTable.vue
+++ b/src/views/specialEquipment/maintain/WaitingListTable.vue
@@ -144,7 +144,7 @@
label="操作">
+ v-if="$auth.hasPermi('equipment:maintain-record:query')">
|
+ v-if="
+ $auth.hasPermiAnd([
+ 'equipment:maintain-record:update',
+ 'base:core-production-line:query',
+ 'base:core-department:query',
+ 'equipment:maintain-record:create',
+ 'equipment:maintain-record:query',
+ 'equipment:maintain-record:delete',
+ ])
+ ">
|
- |
+
+ |
+