Merge branch 'bjxz-dev' into chenH
This commit is contained in:
commit
649837a6cb
@ -54,7 +54,7 @@ export const deleteSafeInspectTaskRecordApi = data => post('xmgl/xzSecurityInspe
|
|||||||
|
|
||||||
//子任务管理
|
//子任务管理
|
||||||
export const getinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/list', data);
|
export const getinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/list', data);
|
||||||
export const getSafeinspectTaskItemRecordApi = data => post('xmgl/SafeInspectTaskItemRecord/list', data);
|
export const getSafeinspectTaskItemRecordApi = data => post('xmgl/xzSecurityInspectTaskItemRecord/list', data);
|
||||||
export const deleteinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/delete', data);
|
export const deleteinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/delete', data);
|
||||||
export const deleteSafeinspectTaskItemRecordApi = data => post('xmgl/SafeInspectTaskItemRecord/delete', data);
|
export const deleteSafeinspectTaskItemRecordApi = data => post('xmgl/SafeInspectTaskItemRecord/delete', data);
|
||||||
|
|
||||||
|
|||||||
@ -277,6 +277,27 @@ Vue.use(vuescroll, {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 按钮权限控制指令
|
||||||
|
Vue.directive('permission', {
|
||||||
|
inserted: (el, binding)=>{
|
||||||
|
const { value } = binding;
|
||||||
|
// 判断当前用户是否拥有该按钮权限
|
||||||
|
if (!checkPermission(value)) {
|
||||||
|
el.parentNode.removeChild(el);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 判断权限的函数
|
||||||
|
function checkPermission(permission) {
|
||||||
|
var permissions = store.state.userInfo.menuAuthority.menuList;
|
||||||
|
permissions = permissions.filter(
|
||||||
|
(x) => x.menuName == permission.moduleName
|
||||||
|
)[0];
|
||||||
|
let index = permissions.actionList.findIndex(
|
||||||
|
(x) => x.actionCode == permission.key
|
||||||
|
)
|
||||||
|
return index != -1?true:false;
|
||||||
|
}
|
||||||
// 加载缩略图
|
// 加载缩略图
|
||||||
Vue.prototype.downloadImgMin = function(row) {
|
Vue.prototype.downloadImgMin = function(row) {
|
||||||
let fileUrl = store.state.FILEURL + row.fileUrl
|
let fileUrl = store.state.FILEURL + row.fileUrl
|
||||||
|
|||||||
@ -278,6 +278,14 @@
|
|||||||
label="整改时限(天)"
|
label="整改时限(天)"
|
||||||
align="center"
|
align="center"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="扣分"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{scope.row.deductScore || 0}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -462,6 +470,12 @@
|
|||||||
@input="handleEdit"
|
@input="handleEdit"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="扣分" prop="deductScore">
|
||||||
|
<el-input
|
||||||
|
placeholder="请输入"
|
||||||
|
v-model="dialogdata.deductScore"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button
|
<el-button
|
||||||
|
|||||||
@ -67,11 +67,7 @@
|
|||||||
>{{ $t("message.laborMange.refresh") }}</el-button
|
>{{ $t("message.laborMange.refresh") }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="
|
v-permission="{key: 'qrcodeAg', moduleName: '人员登记培训'}"
|
||||||
menuList.actionList.findIndex(
|
|
||||||
(x) => x.actionCode == 'qrcodeAg'
|
|
||||||
) != -1
|
|
||||||
"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="openCode"
|
@click="openCode"
|
||||||
plain
|
plain
|
||||||
@ -704,7 +700,6 @@ export default {
|
|||||||
{ name: "不合格", value: 0 },
|
{ name: "不合格", value: 0 },
|
||||||
{ name: "未培训", value: -1 },
|
{ name: "未培训", value: -1 },
|
||||||
],
|
],
|
||||||
menuList: this.$store.state.userInfo.menuAuthority.menuList,
|
|
||||||
qrCodeDialog: false,
|
qrCodeDialog: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -788,9 +783,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.projectSn = this.$store.state.projectSn;
|
this.projectSn = this.$store.state.projectSn;
|
||||||
this.menuList = this.menuList.filter(
|
|
||||||
(x) => x.menuName == "人员登记培训"
|
|
||||||
)[0];
|
|
||||||
this.getMachineList();
|
this.getMachineList();
|
||||||
this.getInfoList();
|
this.getInfoList();
|
||||||
this.getProjectList();
|
this.getProjectList();
|
||||||
|
|||||||
@ -1705,7 +1705,9 @@
|
|||||||
? "一般"
|
? "一般"
|
||||||
: detailData.urgentLevel == 2
|
: detailData.urgentLevel == 2
|
||||||
? "严重"
|
? "严重"
|
||||||
: "紧要"
|
: detailData.urgentLevel == 3
|
||||||
|
? "紧要"
|
||||||
|
: ""
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@ -1702,7 +1702,9 @@
|
|||||||
? "一般"
|
? "一般"
|
||||||
: detailData.urgentLevel == 2
|
: detailData.urgentLevel == 2
|
||||||
? "严重"
|
? "严重"
|
||||||
: "紧要"
|
: detailData.urgentLevel == 3
|
||||||
|
? "紧要"
|
||||||
|
: ""
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user