发起审批 && 清理代码

This commit is contained in:
ChenXinXin committed 2024-04-30 16:40:08 +08:00
1 parent 5f7e5a038f
commit b64c952d0f
30 files changed
+308 -1228

No files matched your search

+55 -59
View File
@@ -2,50 +2,61 @@
<div class="workflow-basic-info-container">
<v-row>
<v-col cols="12" sm="12" md="12" xl="12">
<span class="jh-input-label">流程名<span class="red--text text--accent-2 ml-1">*必填</span></span>
<v-text-field
class="jh-v-input mr-2" dense filled single-line color="success"
v-model="workflowInfo['workflowName']" :rules="validationRules.requireRules">
</v-text-field>
<span class="jh-input-label">流程名<span class="red--text text--accent-2 ml-1">*必填</span></span>
<v-text-field
class="jh-v-input mr-2" dense filled single-line color="success"
v-model="workflowInfo['workflowName']" :rules="validationRules.requireRules">
</v-text-field>
</v-col>
<v-col cols="12" sm="12" md="12" xl="12">
<span class="jh-input-label">模板图标</span>
<v-menu
:nudge-right="40"
transition="scale-transition"
offset-y
min-width="auto"
max-width="20%"
max-height="60%"
class="block"
>
<template v-slot:activator="{ on, attrs }">
<v-text-field
class="jh-v-input"
dense
single-line
filled
v-model="workflowInfo['taskTemplateIcon']"
v-bind="attrs"
v-on="on"
<span class="jh-input-label">模板图标</span>
<v-menu
:nudge-right="40"
transition="scale-transition"
offset-y
min-width="auto"
max-width="75%"
max-height="60%"
class="block"
>
<template #prepend-inner>
<v-icon size="18" class="mr-1" color="green">mdi-{{workflowInfo['taskTemplateIcon']}}</v-icon>
<template v-slot:activator="{ on, attrs }">
<v-text-field
class="jh-v-input"
dense
single-line
filled
v-model="workflowInfo['taskTemplateIcon']"
v-bind="attrs"
v-on="on"
>
<template #prepend-inner>
<template v-if="workflowInfo.taskTemplateIcon">
<v-img
max-height="30"
max-width="30"
:src="`/<$ ctx.app.config.appId $>/public${workflowInfo.taskTemplateIcon}`"
></v-img>
</template>
</template>
</v-text-field>
</template>
</v-text-field>
</template>
<v-card>
<div class="d-flex flex-wrap">
<div
<v-card>
<div class="d-flex flex-wrap">
<div
v-for="icon in materialDesignIcons"
class="item-icon pa-1"
@click="setIcon(icon)"
>
<v-icon size="18" class="mr-1" :color="workflowInfo['taskTemplateIcon'] == icon ? 'green' : ''">mdi-{{icon}}</v-icon>
:class="`item-icon pa-1 ${workflowInfo.taskTemplateIcon == icon && 'green'}`"
@click="workflowInfo.taskTemplateIcon = icon"
>
<v-img
max-height="30"
max-width="30"
:src="`/<$ ctx.app.config.appId $>/public${icon}`"
></v-img>
</div>
</div>
</div>
</v-card>
</v-menu>
</v-card>
</v-menu>
</v-col>
<v-col cols="12" sm="12" md="12" xl="12" class="pb-1">
@@ -54,16 +65,19 @@
filled small hide-actions hide-controls hide-details>
</v-combobox>
</v-col>
<v-col cols="12" sm="12" md="12" xl="12">
<!-- <v-col cols="12" sm="12" md="12" xl="12">
<span class="jh-input-label">备注</span>
<v-text-field
class="jh-v-input mr-2" dense filled single-line color="success"
v-model="workflowInfo['workflowRemark']">
</v-text-field>
</v-col>
</v-col> -->
</v-row>
</div>
</template>
<script src="/<$ ctx.app.config.appId $>/public/task-template-icons.js"></script>
<script type="module">
Vue.component("workflow-basic-info", {
template: '#workflow-basic-info',
@@ -86,27 +100,9 @@ Vue.component("workflow-basic-info", {
],
},
constantObj: {
modeList: [
{text: '串行', value: 'serial'},
{text: '并行', value: 'parallel'},
],
taskTemplateGroup: ['行政', '人事', '其他']
},
materialDesignIcons: [
'account',
'account-lock',
'account-lock-open',
'account-lock-open-outline',
'account-lock-outline',
'account-minus',
'account-minus-outline',
],
// materialDesignIcons: [
// '10001.png',
// '10002.png',
// '10003.png',
// '10004.png',
// ],
materialDesignIcons
}
},
watch: {