修改监控流程页面【为改完】

This commit is contained in:
zhoulingpo
2023-04-19 18:01:03 +08:00
parent dcdea1cc22
commit 56714eaa95
11 changed files with 994 additions and 187 deletions
+94
View File
@@ -0,0 +1,94 @@
<!-- 流程组件公共数据 -->
<script>
export default {
name: 'ProcessMixins',
mixins: [],
components: {},
data() {
return {
processTypeList: [
// {
// label: '法规入库流程',
// value: '1'
// },
],
formDisableFlag: false,
pickerOptions: {
disabledDate(time) {
const start = new Date(new Date().toLocaleDateString());
start.setTime(start.getTime());
return time.getTime() < start
}
},
nowOrder: '',
nowOrderBy: '',
}
},
methods: {
// 表格排序
sortChange(sortObj, tableName) {
// console.log(sortObj)
this.nowOrderBy = sortObj.prop
if (sortObj.order === 'ascending') {
this.nowOrder = 'asc'
} else if (sortObj.order === 'descending') {
this.nowOrder = 'desc'
} else {
this.nowOrder = ''
this.nowOrderBy = ''
}
this[tableName]()
},
/**
* @description: 根据流程类型获取流程名称
* @date: 2020-11-25 15:47:12
* @auth: chenxiaoxi
*/
getPrcName(prcType) {
let prcName = ''
this.processTypeList.map(item => {
if (item.value === prcType) {
prcName = item.label
}
})
return prcName
},
/**
* @description: 对表单部分字段进行校验
* @date: 2021-01-15 10:00:16
* @auth: chenxiaoxi
*/
handleValidField(field) {
this.$refs['prcForm'].validateField(field)
},
/**
* @description: 查询下一节点处理人(高级经理)
* @date: 2021-03-11
* @auth: WangXu
*/
getResByCurrentRoleId(roleIds, roleName, callback) {
// 获取当前 foRoleId 有 otherFORoleId 就一定是 其他起草人填写的 FO
// 否则一定是主起草人填写的 FO
this.$http.get('sys/role/getParentsByFOs', {
ids: roleIds, // 当前登录人的角色
roleHierarchyName: roleName // 上级角色
}, {}, res => {
if (res.ok) {
callback.call(this, res.data)
} else {
this.$message.warning(res.message)
}
})
},
},
computed: {},
watch: {},
mounted() {
}
}
</script>