review cus-v-input -> jh-v-input替换
This commit is contained in:
1 parent
dc2e284685
commit
5d4aac843b
7 files changed
+69
-85
No files matched your search
@@ -16,15 +16,15 @@
|
|||||||
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">GUID</span>
|
<span class="inputLabel">GUID</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="GUID" v-model="flowData.Id"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="GUID" v-model="flowData.Id"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">流程名称</span>
|
<span class="inputLabel">流程名称</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="流程名称" v-model="flowData.Name"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="流程名称" v-model="flowData.Name"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">备注</span>
|
<span class="inputLabel">备注</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="备注" v-model="flowData.Remark"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="备注" v-model="flowData.Remark"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
|||||||
@@ -21,26 +21,26 @@
|
|||||||
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">GUID</span>
|
<span class="inputLabel">GUID</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line disabled label="GUID" v-model="line.id"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line disabled label="GUID" v-model="line.id"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">源活动</span>
|
<span class="inputLabel">源活动</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line disabled label="源活动" v-model="line.from"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line disabled label="源活动" v-model="line.from"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">目标活动</span>
|
<span class="inputLabel">目标活动</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line disabled label="目标活动" v-model="line.to"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line disabled label="目标活动" v-model="line.to"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">名称</span>
|
<span class="inputLabel">名称</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="名称" v-model="line.label"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="名称" v-model="line.label"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3" v-if="mode == 'serial'">
|
<v-col cols="12" class=" pb-3" v-if="mode == 'serial'">
|
||||||
<span class="inputLabel">操作类型</span>
|
<span class="inputLabel">操作类型</span>
|
||||||
<v-select
|
<v-select
|
||||||
:items="lineTypeList"
|
:items="lineTypeList"
|
||||||
dense filled single-line
|
dense filled single-line
|
||||||
class="cus-v-input mr-2"
|
class="jh-v-input mr-2"
|
||||||
label="操作类型"
|
label="操作类型"
|
||||||
color="success"
|
color="success"
|
||||||
item-color="success"
|
item-color="success"
|
||||||
@@ -49,11 +49,11 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">执行Hook</span>
|
<span class="inputLabel">执行Hook</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="执行Hook" v-model="line.hook"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="执行Hook" v-model="line.hook"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">备注说明</span>
|
<span class="inputLabel">备注说明</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="备注说明" v-model="line.Remark"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="备注说明" v-model="line.Remark"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
|||||||
@@ -22,15 +22,15 @@
|
|||||||
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">GUID</span>
|
<span class="inputLabel">GUID</span>
|
||||||
<v-text-field class="cus-v-input" dense filled single-line disabled label="GUID" v-model="node.id"></v-text-field>
|
<v-text-field class="jh-v-input" dense filled single-line disabled label="GUID" v-model="node.id"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">名称</span>
|
<span class="inputLabel">名称</span>
|
||||||
<v-text-field class="cus-v-input" dense filled single-line label="名称" v-model="node.label"></v-text-field>
|
<v-text-field class="jh-v-input" dense filled single-line label="名称" v-model="node.label"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">备注说明</span>
|
<span class="inputLabel">备注说明</span>
|
||||||
<v-text-field class="cus-v-input" dense filled single-line label="备注说明" v-model="node.Remark"></v-text-field>
|
<v-text-field class="jh-v-input" dense filled single-line label="备注说明" v-model="node.Remark"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<template v-if="!node.id.includes('start-') && !node.id.includes('end-')">
|
<template v-if="!node.id.includes('start-') && !node.id.includes('end-')">
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
color="success"
|
color="success"
|
||||||
item-color="success"
|
item-color="success"
|
||||||
item-value="value"
|
item-value="value"
|
||||||
class="cus-v-input"
|
class="jh-v-input"
|
||||||
label="指派类型"
|
label="指派类型"
|
||||||
v-model="node.assignType"
|
v-model="node.assignType"
|
||||||
></v-select>
|
></v-select>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">指派</span>
|
<span class="inputLabel">指派</span>
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
class="cus-v-input mr-2"
|
class="jh-v-input mr-2"
|
||||||
dense filled single-line clearable
|
dense filled single-line clearable
|
||||||
:items="optionList"
|
:items="optionList"
|
||||||
item-text="text"
|
item-text="text"
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
hide-details
|
hide-details
|
||||||
></v-textarea> -->
|
></v-textarea> -->
|
||||||
<v-text-field class="cus-v-input" dense filled single-line label="允许的操作(英文逗号分隔)" v-model="node.lineTypeList"></v-text-field>
|
<v-text-field class="jh-v-input" dense filled single-line label="允许的操作(英文逗号分隔)" v-model="node.lineTypeList"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- <v-col cols="12" class=" pb-3" >
|
<!-- <v-col cols="12" class=" pb-3" >
|
||||||
<span class="inputLabel">可写模板</span>
|
<span class="inputLabel">可写模板</span>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
color="success"
|
color="success"
|
||||||
item-color="success"
|
item-color="success"
|
||||||
item-value="value"
|
item-value="value"
|
||||||
class="cus-v-input"
|
class="jh-v-input"
|
||||||
label="可写模板"
|
label="可写模板"
|
||||||
multiple
|
multiple
|
||||||
v-model="node.formId"
|
v-model="node.formId"
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
item-value="value"
|
item-value="value"
|
||||||
color="success"
|
color="success"
|
||||||
item-color="success"
|
item-color="success"
|
||||||
class="cus-v-input"
|
class="jh-v-input"
|
||||||
label="隐藏模板"
|
label="隐藏模板"
|
||||||
multiple
|
multiple
|
||||||
v-model="node.formIdHidden"
|
v-model="node.formIdHidden"
|
||||||
@@ -110,11 +110,11 @@
|
|||||||
<template v-if="node.id.includes('end-')">
|
<template v-if="node.id.includes('end-')">
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">流程完成Hook</span>
|
<span class="inputLabel">流程完成Hook</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="流程完成Hook" v-model="node.finishHook"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="流程完成Hook" v-model="node.finishHook"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class=" pb-3">
|
<v-col cols="12" class=" pb-3">
|
||||||
<span class="inputLabel">流程中断Hook</span>
|
<span class="inputLabel">流程中断Hook</span>
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line label="流程中断Hook" v-model="node.interruptHook"></v-text-field>
|
<v-text-field class="jh-v-input mr-2" dense filled single-line label="流程中断Hook" v-model="node.interruptHook"></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</template>
|
</template>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
|
|
||||||
<v-list-item-content v-if="formItem.component.type === 'input'">
|
<v-list-item-content v-if="formItem.component.type === 'input'">
|
||||||
<v-text-field class="cus-v-input" dense outlined :label="(index+1) + '. ' + formItem.component.outline"
|
<v-text-field class="jh-v-input" dense outlined :label="(index+1) + '. ' + formItem.component.outline"
|
||||||
:disabled="true"></v-text-field>
|
:disabled="true"></v-text-field>
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
v-if="formItemList[selectCanvaIndex].component.type === 'singleSelect' || formItemList[selectCanvaIndex].component.type === 'multipleSelect'">
|
v-if="formItemList[selectCanvaIndex].component.type === 'singleSelect' || formItemList[selectCanvaIndex].component.type === 'multipleSelect'">
|
||||||
<v-row no-gutters>
|
<v-row no-gutters>
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line prefix="标题: " color="success"
|
<v-text-field class="jh-v-input mr-2" dense filled single-line prefix="标题: " color="success"
|
||||||
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
||||||
<div style="display: flex; flex-direction: row;justify-content: space-between; align-items: center;">
|
<div style="display: flex; flex-direction: row;justify-content: space-between; align-items: center;">
|
||||||
<v-subheader class="pa-0">选项列表</v-subheader>
|
<v-subheader class="pa-0">选项列表</v-subheader>
|
||||||
@@ -139,11 +139,11 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'textarea'">
|
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'textarea'">
|
||||||
<v-text-field class="cus-v-input" dense filled single-line label="多行文本"
|
<v-text-field class="jh-v-input" dense filled single-line label="多行文本"
|
||||||
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
||||||
</v-card>
|
</v-card>
|
||||||
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'input'">
|
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'input'">
|
||||||
<v-text-field class="cus-v-input" dense filled single-line label="单行文本"
|
<v-text-field class="jh-v-input" dense filled single-line label="单行文本"
|
||||||
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
||||||
</v-card>
|
</v-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -382,7 +382,7 @@ Vue.component("form-item-list-generator", {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .theme--light.v-text-field--filled.cus-v-input.black > .v-input__control > .v-input__slot {
|
body .theme--light.v-text-field--filled.jh-v-input.black > .v-input__control > .v-input__slot {
|
||||||
background: #e6ebee;
|
background: #e6ebee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -103,11 +103,11 @@
|
|||||||
<span class="jh-input-label">审批流程 - 添加审批人</span>
|
<span class="jh-input-label">审批流程 - 添加审批人</span>
|
||||||
<v-row v-for="node in workflowPersonList">
|
<v-row v-for="node in workflowPersonList">
|
||||||
<v-col cols="2">
|
<v-col cols="2">
|
||||||
<v-text-field class="cus-v-input " dense filled single-line hide-details v-model="node.label" disabled></v-text-field>
|
<v-text-field class="jh-v-input " dense filled single-line hide-details v-model="node.label" disabled></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="4">
|
<v-col cols="4">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
class="cus-v-input mr-2"
|
class="jh-v-input mr-2"
|
||||||
dense filled single-line clearable
|
dense filled single-line clearable
|
||||||
:items="userList"
|
:items="userList"
|
||||||
item-text="username"
|
item-text="username"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block vueTemplate %}
|
{% block vueTemplate %}
|
||||||
|
|
||||||
<script type="text/html" id="app-template">
|
<script type="text/html" id="app-template">
|
||||||
<div>
|
<div>
|
||||||
<v-app mobile-breakpoint="sm">
|
<v-app mobile-breakpoint="sm">
|
||||||
<jh-menu />
|
<jh-menu />
|
||||||
<v-main class="mt-15">
|
<v-main class="mt-15">
|
||||||
@@ -13,9 +13,7 @@
|
|||||||
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
||||||
<div class="pt-3 text-h7 font-weight-bold">流程编辑
|
<div class="pt-3 text-h7 font-weight-bold">流程编辑
|
||||||
<!-- 帮助页按钮 -->
|
<!-- 帮助页按钮 -->
|
||||||
<v-icon
|
<v-icon @click="isHelpPageDrawerShown = true" color="success" small>mdi-help-circle-outline
|
||||||
@click="isHelpPageDrawerShown = true" color="success"
|
|
||||||
small>mdi-help-circle-outline
|
|
||||||
</v-icon>
|
</v-icon>
|
||||||
</div>
|
</div>
|
||||||
<v-breadcrumbs class="pb-3 pt-0 pl-0" :items="breadcrumbs" divider="-"></v-breadcrumbs>
|
<v-breadcrumbs class="pb-3 pt-0 pl-0" :items="breadcrumbs" divider="-"></v-breadcrumbs>
|
||||||
@@ -36,27 +34,28 @@
|
|||||||
<v-card class="pa-4">
|
<v-card class="pa-4">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="流程名:" v-model="editItem['workflowName']" :rules="requireRules">
|
<v-text-field
|
||||||
|
class="jh-v-input mr-2" dense filled single-line color="success" prefix="流程名:"
|
||||||
|
v-model="editItem['workflowName']" :rules="validationRules.requireRules">
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- <v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="分类:" v-model="editItem['workflowCategory']" :rules="requireRules">
|
|
||||||
</v-text-field>
|
|
||||||
</v-col> -->
|
|
||||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||||
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="备注:"
|
<v-text-field
|
||||||
|
class="jh-v-input mr-2" dense filled single-line color="success" prefix="备注:"
|
||||||
v-model="editItem['workflowRemark']">
|
v-model="editItem['workflowRemark']">
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||||
<v-select class="cus-v-input mr-2" dense filled single-line color="success" prefix="审批模式:"
|
<v-select
|
||||||
|
class="jh-v-input mr-2" dense filled single-line color="success" prefix="审批模式:"
|
||||||
v-model="editItem['mode']" :items="constantCollection.modeList" />
|
v-model="editItem['mode']" :items="constantCollection.modeList" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<div class="pt-4 pb-4 text-h7">流程设置</div>
|
<div class="pt-4 pb-4 text-h7">流程设置</div>
|
||||||
<process-flow v-if="!loading" ref="processFlow" :data="editItem.workflowConfig" :user="constantCollection.userList"
|
<process-flow
|
||||||
|
v-if="!loading" ref="processFlow" :data="editItem.workflowConfig" :user="constantCollection.userList"
|
||||||
:group="constantCollection.groupList" :tpl="constantCollection.workflowFormList"
|
:group="constantCollection.groupList" :tpl="constantCollection.workflowFormList"
|
||||||
:mode="editItem.mode">
|
:mode="editItem.mode">
|
||||||
</process-flow>
|
</process-flow>
|
||||||
@@ -88,7 +87,7 @@
|
|||||||
<jh-toast />
|
<jh-toast />
|
||||||
<jh-mask />
|
<jh-mask />
|
||||||
<jh-confirm-dialog />
|
<jh-confirm-dialog />
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="app">
|
<div id="app">
|
||||||
@@ -102,37 +101,28 @@
|
|||||||
{% include 'component/flow/editNode.html' %}
|
{% include 'component/flow/editNode.html' %}
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
template: '#app-template',
|
template: '#app-template',
|
||||||
vueComponent: 'page',
|
vueComponent: 'page',
|
||||||
vuetify: new Vuetify(),
|
vuetify: new Vuetify(),
|
||||||
data: () => ({
|
data: () => ({
|
||||||
breadcrumbs: [
|
breadcrumbs: [
|
||||||
{
|
{text: '首页', disabled: true,},
|
||||||
text: '首页',
|
{text: '申请模板', disabled: true,}
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: '申请模板',
|
|
||||||
disabled: true,
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
validationRules: {
|
validationRules: {
|
||||||
requireRules: [
|
|
||||||
v => !!v || 'This is required',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
requireRules: [
|
requireRules: [
|
||||||
v => !!v || '必填',
|
v => !!v || '必填',
|
||||||
],
|
],
|
||||||
|
},
|
||||||
constantCollection: {
|
constantCollection: {
|
||||||
userList: [],
|
userList: [],
|
||||||
groupList: [],
|
groupList: [],
|
||||||
workflowFormList: [],
|
workflowFormList: [],
|
||||||
modeList: [
|
modeList: [
|
||||||
{ text: '串行', value: 'serial' },
|
{text: '串行', value: 'serial'},
|
||||||
{ text: '并行', value: 'parallel' },
|
{text: '并行', value: 'parallel'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
editItem: {},
|
editItem: {},
|
||||||
@@ -156,7 +146,7 @@
|
|||||||
const searchParams = new URLSearchParams(location.search.substring(1));
|
const searchParams = new URLSearchParams(location.search.substring(1));
|
||||||
const id = searchParams.get('id');
|
const id = searchParams.get('id');
|
||||||
if (id) {
|
if (id) {
|
||||||
this.editItem = { id };
|
this.editItem = {id};
|
||||||
await this.syncEditItem()
|
await this.syncEditItem()
|
||||||
} else {
|
} else {
|
||||||
this.clearItemData();
|
this.clearItemData();
|
||||||
@@ -180,7 +170,7 @@
|
|||||||
await this.syncEditItem()
|
await this.syncEditItem()
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error("[doUiAction] uiActionId not find", { uiActionId });
|
console.error("[doUiAction] uiActionId not find", {uiActionId});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -213,7 +203,7 @@
|
|||||||
* 获取user数据
|
* 获取user数据
|
||||||
*/
|
*/
|
||||||
async getUserList() {
|
async getUserList() {
|
||||||
const { rows } = (await window.jianghuAxios({
|
const {rows} = (await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'workflowManagement',
|
pageId: 'workflowManagement',
|
||||||
@@ -224,14 +214,14 @@
|
|||||||
}
|
}
|
||||||
})).data.appData.resultData;
|
})).data.appData.resultData;
|
||||||
this.constantCollection.userList = rows.map(e => {
|
this.constantCollection.userList = rows.map(e => {
|
||||||
return { text: e.username, value: e.userId, userId: e.userId }
|
return {text: e.username, value: e.userId, userId: e.userId}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取group数据
|
* 获取group数据
|
||||||
*/
|
*/
|
||||||
async getGroupList() {
|
async getGroupList() {
|
||||||
const { rows } = (await window.jianghuAxios({
|
const {rows} = (await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'workflowManagement',
|
pageId: 'workflowManagement',
|
||||||
@@ -242,18 +232,18 @@
|
|||||||
}
|
}
|
||||||
})).data.appData.resultData;
|
})).data.appData.resultData;
|
||||||
this.constantCollection.groupList = rows.map(e => {
|
this.constantCollection.groupList = rows.map(e => {
|
||||||
return { text: e.groupName, value: e.groupId }
|
return {text: e.groupName, value: e.groupId}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
async clearItemData() {
|
async clearItemData() {
|
||||||
this.dialogSaveInfoAction = 'createItem';
|
this.dialogSaveInfoAction = 'createItem';
|
||||||
this.editItem = { workflowForm: [], workflowConfig: { lineList: [], nodeList: [] }, mode: 'serial' };
|
this.editItem = {workflowForm: [], workflowConfig: {lineList: [], nodeList: []}, mode: 'serial'};
|
||||||
},
|
},
|
||||||
|
|
||||||
// ---------- 新建流程 createItem >>>>>>>>>> --------
|
// ---------- 新建流程 createItem >>>>>>>>>> --------
|
||||||
async confirmCreateItemDialog() {
|
async confirmCreateItemDialog() {
|
||||||
if (await window.confirmDialog({ title: "新增", content: "确定新增吗?" }) === false) {
|
if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) {
|
||||||
throw new Error("[confirmCreateFormDialog] 否");
|
throw new Error("[confirmCreateFormDialog] 否");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -261,7 +251,7 @@
|
|||||||
delete this.editItem.id;
|
delete this.editItem.id;
|
||||||
const item = this.buildEditItem();
|
const item = this.buildEditItem();
|
||||||
await window.vtoast.loading("新增数据");
|
await window.vtoast.loading("新增数据");
|
||||||
const { rows } = (await window.jianghuAxios({
|
const {rows} = (await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'workflowManagement',
|
pageId: 'workflowManagement',
|
||||||
@@ -277,12 +267,12 @@
|
|||||||
async syncEditItem() {
|
async syncEditItem() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.dialogSaveInfoAction = 'updateItem';
|
this.dialogSaveInfoAction = 'updateItem';
|
||||||
const { rows } = (await window.jianghuAxios({
|
const {rows} = (await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'workflowManagement',
|
pageId: 'workflowManagement',
|
||||||
actionId: 'selectItemList',
|
actionId: 'selectItemList',
|
||||||
where: { id: this.editItem.id },
|
where: {id: this.editItem.id},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})).data.appData.resultData;
|
})).data.appData.resultData;
|
||||||
@@ -300,7 +290,7 @@
|
|||||||
}, 500)
|
}, 500)
|
||||||
},
|
},
|
||||||
buildEditItem() {
|
buildEditItem() {
|
||||||
const { id, workflowId, workflowName, workflowRemark, workflowCategory, mode, workflowForm } = this.editItem;
|
const {id, workflowId, workflowName, workflowRemark, workflowCategory, mode, workflowForm} = this.editItem;
|
||||||
const workflowConfig = this.$refs.processFlow.getData();
|
const workflowConfig = this.$refs.processFlow.getData();
|
||||||
workflowConfig.mode = mode
|
workflowConfig.mode = mode
|
||||||
// TODO: 清除不存在的用户
|
// TODO: 清除不存在的用户
|
||||||
@@ -328,12 +318,12 @@
|
|||||||
|
|
||||||
// ---------- 修改流程 updateItem >>>>>>>>>> --------
|
// ---------- 修改流程 updateItem >>>>>>>>>> --------
|
||||||
async confirmUpdateItemDialog() {
|
async confirmUpdateItemDialog() {
|
||||||
if (await window.confirmDialog({ title: "修改", content: "确定修改吗?" }) === false) {
|
if (await window.confirmDialog({title: "修改", content: "确定修改吗?"}) === false) {
|
||||||
throw new Error("[confirmUpdateItemDialog] 否");
|
throw new Error("[confirmUpdateItemDialog] 否");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async doUpdateItem() {
|
async doUpdateItem() {
|
||||||
const { id, ...item } = this.buildEditItem();
|
const {id, ...item} = this.buildEditItem();
|
||||||
await window.vtoast.loading("修改数据");
|
await window.vtoast.loading("修改数据");
|
||||||
await window.jianghuAxios({
|
await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
@@ -341,7 +331,7 @@
|
|||||||
pageId: 'workflowManagement',
|
pageId: 'workflowManagement',
|
||||||
actionId: 'updateItem',
|
actionId: 'updateItem',
|
||||||
actionData: item,
|
actionData: item,
|
||||||
where: { id: id }
|
where: {id: id}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -349,19 +339,19 @@
|
|||||||
},
|
},
|
||||||
// ---------- <<<<<<<<<< 修改流程 updateItem --------
|
// ---------- <<<<<<<<<< 修改流程 updateItem --------
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr>td:not(.v-data-table__mobile-row) {
|
.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr > td:not(.v-data-table__mobile-row) {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme--light.v-data-table>.v-data-table__wrapper>table>tbody>tr {
|
.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -100,11 +100,11 @@
|
|||||||
<span class="jh-input-label">审批流程 - 添加审批人</span>
|
<span class="jh-input-label">审批流程 - 添加审批人</span>
|
||||||
<v-row v-for="workflowPersonItem in currentWorkflowPersonList">
|
<v-row v-for="workflowPersonItem in currentWorkflowPersonList">
|
||||||
<v-col cols="12" xs="6" md="4">
|
<v-col cols="12" xs="6" md="4">
|
||||||
<v-text-field class="cus-v-input " dense filled single-line hide-details v-model="workflowPersonItem.label" disabled></v-text-field>
|
<v-text-field class="jh-v-input " dense filled single-line hide-details v-model="workflowPersonItem.label" disabled></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" xs="6" md="4">
|
<v-col cols="12" xs="6" md="4">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
class="cus-v-input mr-2"
|
class="jh-v-input mr-2"
|
||||||
dense filled single-line clearable
|
dense filled single-line clearable
|
||||||
:items="userList"
|
:items="userList"
|
||||||
item-text="username"
|
item-text="username"
|
||||||
@@ -175,14 +175,8 @@ new Vue({
|
|||||||
data: {
|
data: {
|
||||||
// 面包屑
|
// 面包屑
|
||||||
breadcrumbs: [
|
breadcrumbs: [
|
||||||
{
|
{text: '首页', disabled: true,},
|
||||||
text: '首页',
|
{text: '流程管理列表、发起任务', disabled: true,}
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: '流程管理列表、发起任务',
|
|
||||||
disabled: true,
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
validationRules: {
|
validationRules: {
|
||||||
requireRules: [
|
requireRules: [
|
||||||
|
|||||||
Reference in new issue
Block a user