代码格式化

This commit is contained in:
yuebenshan committed 2023-02-15 16:51:08 +08:00
1 parent 14dbde48ab
commit 15131347f4
1 file changed
+19 -20
+19 -20
View File
@@ -167,7 +167,7 @@
<!-- <<<<<<<<<<<<< 加载页面组件 --> <!-- <<<<<<<<<<<<< 加载页面组件 -->
<script type="module"> <script type="module">
new Vue({ new Vue({
el: '#app', el: '#app',
template: '#app-template', template: '#app-template',
vueComponent: 'page', vueComponent: 'page',
@@ -175,8 +175,8 @@ new Vue({
data: { data: {
// 面包屑 // 面包屑
breadcrumbs: [ breadcrumbs: [
{text: '首页', disabled: true,}, { text: '首页', disabled: true, },
{text: '流程管理列表、发起任务', disabled: true,} { text: '流程管理列表、发起任务', disabled: true, }
], ],
validationRules: { validationRules: {
requireRules: [ requireRules: [
@@ -188,9 +188,9 @@ new Vue({
tableDataFromBackend: [], tableDataFromBackend: [],
tableData: [], tableData: [],
headers: [ headers: [
{text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'}, { text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed' },
{text: '流程ID', value: 'workflowId'}, { text: '流程ID', value: 'workflowId' },
{text: '流程名称', value: 'workflowName'}, { text: '流程名称', value: 'workflowName' },
], ],
searchInput: '', searchInput: '',
isHelpPageDrawerShown: false, isHelpPageDrawerShown: false,
@@ -231,7 +231,7 @@ new Vue({
await this.jumpUpdateWorkflow(uiActionData); await this.jumpUpdateWorkflow(uiActionData);
break; break;
default: default:
console.error("[doUiAction] uiActionId not find", {uiActionId}); console.error("[doUiAction] uiActionId not find", { uiActionId });
break; break;
} }
}, },
@@ -272,7 +272,7 @@ new Vue({
pageId: 'workflowManagement', pageId: 'workflowManagement',
actionId: 'selectUserList', actionId: 'selectUserList',
actionData: {}, actionData: {},
orderBy: [{column: 'userId', order: 'asc'}] orderBy: [{ column: 'userId', order: 'asc' }]
} }
} }
}); });
@@ -284,7 +284,7 @@ new Vue({
// ---------- <<<<<<<<<< 申请项目审核 -------- // ---------- <<<<<<<<<< 申请项目审核 --------
async prepareCreateFormData(funObj) { async prepareCreateFormData(funObj) {
console.log(funObj); console.log(funObj);
const {workflowForm, workflowPersonList, workflowId} = funObj; const { workflowForm, workflowPersonList, workflowId } = funObj;
this.currentWorkflowForm = workflowForm; this.currentWorkflowForm = workflowForm;
this.currentWorkflowPersonList = workflowPersonList; this.currentWorkflowPersonList = workflowPersonList;
this.currentWorkflowId = workflowId; this.currentWorkflowId = workflowId;
@@ -309,13 +309,13 @@ new Vue({
if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {}; if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue; workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue;
if (workflowPersonItem.assignValue.length === 0) { if (workflowPersonItem.assignValue.length === 0) {
window.vtoast.fail({message: `${workflowPersonItem.label}必填!`}); window.vtoast.fail({ message: `${workflowPersonItem.label}必填!` });
throw new Error("[prepareValidate] 审批人 false"); throw new Error("[prepareValidate] 审批人 false");
} }
}); });
}, },
async confirmCreateWorkDialog() { async confirmCreateWorkDialog() {
if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) { if (await window.confirmDialog({ title: "新增", content: "确定新增吗?" }) === false) {
throw new Error("[confirmCreateFormDialog] 否"); throw new Error("[confirmCreateFormDialog] 否");
} }
}, },
@@ -334,7 +334,7 @@ new Vue({
actionData: { actionData: {
formItemList: this.currentWorkflowForm, formItemList: this.currentWorkflowForm,
workflowId: this.currentWorkflowId, workflowId: this.currentWorkflowId,
workflowConfigCustom: JSON.stringify({nodeListOfUserTaskNode: this.currentWorkflowPersonList}) workflowConfigCustom: JSON.stringify({ nodeListOfUserTaskNode: this.currentWorkflowPersonList })
} }
} }
} }
@@ -360,29 +360,28 @@ new Vue({
} }
// ---------- jump >>>>>>>>>> -------- // ---------- jump >>>>>>>>>> --------
} }
}) })
</script> </script>
<style scoped> <style scoped>
.work-item-box { .work-item-box {
padding: 50% 0; padding: 50% 0;
position: relative; position: relative;
} }
.work-item-content { .work-item-content {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
@media (max-width: 500px) { @media (max-width: 500px) {
body [xs='4'] { body [xs='4'] {
flex: auto; flex: auto;
} }
} }
</style> </style>
{% endblock %} {% endblock %}