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