工作流模板调整

feature-JimuReport-1106-yjl
张同海 4 weeks ago
parent 99dba7d7c7
commit 676078300d

@ -149,13 +149,13 @@
})
}
})
const AuditTypeList = ref<any>([])
GetTaskTypeConstList().then((res) => {
AuditTypeList.value.splice(0)
res.data.forEach((item) => {
AuditTypeList.value.push(item)
})
})
// const AuditTypeList = ref<any>([])
// GetTaskTypeConstList().then((res) => {
// AuditTypeList.value.splice(0)
// res.data.forEach((item) => {
// AuditTypeList.value.push(item)
// })
// })
watch(
() => node.users,
(newVal, oldVal) => {
@ -244,12 +244,12 @@
<el-radio label="single">或签其中一名审批人通过或驳回即可</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item prop="method" label="执行人变更回调地址">
<!-- <el-form-item prop="method" label="执行人变更回调地址">
<el-input
type="textarea"
:rows="6"
placeholder="请输入内容"
v-model="node.MakerNotifyURL"
v-model="node.markerNotifyURL"
>
</el-input>
</el-form-item>
@ -266,7 +266,7 @@
:value="item.value"
></el-option>
</el-select>
</el-form-item>
</el-form-item> -->
<!-- <el-form-item prop="nobody" label="审批人为空">
<el-radio-group v-model="node.nobody">
<el-radio label="pass">自动通过</el-radio>

@ -98,6 +98,9 @@
content: '',
permissionId: '',
columnView: '',
auditType: '',
markerNotifyURL: '',
callbackURL: '',
id: '',
})
const state = reactive({
@ -113,6 +116,9 @@
// await setFieldsValue(res.data)
ApiData.name = res.data.name
ApiData.note = res.data.note
ApiData.auditType = res.data.auditType.toString()
ApiData.markerNotifyURL = res.data.markerNotifyURL
ApiData.callbackURL = res.data.callbackURL
ApiData.content = res.data.content
ApiData.permissionId = res.data.permissionId
ApiData.columnView = res.data.columnView
@ -215,6 +221,9 @@
ApiData.name = ''
ApiData.note = ''
ApiData.auditType = ''
ApiData.markerNotifyURL = ''
ApiData.callbackURL = ''
ApiData.content = ''
ApiData.permissionId = ''
ApiData.columnView = ''
@ -256,6 +265,9 @@
ApiData.name = step1Values.name
ApiData.note = step1Values.note
ApiData.columnView = step1Values.columnView
ApiData.auditType = step1Values.auditType
ApiData.markerNotifyURL = step1Values.markerNotifyURL
ApiData.callbackURL = step1Values.callbackURL
if (step1Values.id) {
ApiData.id = step1Values.id
}
@ -377,6 +389,9 @@
notification.success({ message: res.message, duration: 3 })
ApiData.name = ''
ApiData.note = ''
ApiData.auditType = ''
ApiData.markerNotifyURL = ''
ApiData.callbackURL = ''
ApiData.content = ''
ApiData.permissionId = ''
ApiData.columnView = ''

@ -1,6 +1,6 @@
import { BasicColumn, FormSchema } from '/@/components/Table'
import { Tag } from 'ant-design-vue'
import { GetTablesByClient } from './api'
import { GetTablesByClient, GetTaskTypeConstList } from './api'
export const columns: BasicColumn[] = [
// {
@ -63,12 +63,12 @@ export const searchFormSchema: FormSchema[] = [
},
]
export const formSchema: FormSchema[] = [
{
field: 'divider-selects',
component: 'Divider',
label: '基本信息',
colProps: { span: 24 },
},
// {
// field: 'divider-selects',
// component: 'Divider',
// label: '基本信息',
// colProps: { span: 24 },
// },
{
label: '',
field: 'id',
@ -80,34 +80,21 @@ export const formSchema: FormSchema[] = [
field: 'name',
label: '模板名称',
component: 'Input',
colProps: { span: 12 },
colProps: { span: 5 },
},
{
field: 'orderNo',
label: '排序号',
component: 'InputNumber',
defaultValue: 0,
colProps: { span: 12 },
},
{
field: 'status',
label: '是否启用',
component: 'Switch',
colProps: { span: 6 },
defaultValue: 0,
componentProps: {
checkedChildren: '启用',
checkedValue: 0,
unCheckedChildren: '禁用',
unCheckedValue: 1,
},
colProps: { span: 5 },
},
{
field: 'columnView',
label: '关联表',
component: 'ApiSelect',
required: true,
colProps: { span: 12 },
colProps: { span: 5 },
componentProps: () => {
return {
allowClear: true,
@ -122,11 +109,78 @@ export const formSchema: FormSchema[] = [
}
},
},
{
field: 'status',
label: '是否启用',
component: 'Switch',
colProps: { span: 4 },
defaultValue: 0,
componentProps: {
checkedChildren: '启用',
checkedValue: 0,
unCheckedChildren: '禁用',
unCheckedValue: 1,
},
},
{
label: '审批类型',
field: 'auditType',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 5 },
componentProps: ({ formModel }) => {
return {
api: GetTaskTypeConstList,
labelField: 'key',
showName: 'key',
valueField: 'value',
resultField: 'data',
}
},
},
{
field: 'markerNotifyURL',
label: '执行人变更回调地址',
component: 'InputTextArea',
colProps: { span: 8 },
componentProps: {
rows: 3,
},
},
{
field: 'callbackURL',
label: '回调地址',
component: 'InputTextArea',
colProps: { span: 8 },
componentProps: {
rows: 3,
},
},
{
field: 'note',
label: '备注',
component: 'InputTextArea',
colProps: { span: 20 },
colProps: { span: 8 },
componentProps: {
rows: 3,
},
},
{
label: '',
field: 'Space1',
component: 'Space',
colProps: {
span: 24,
},
},
{
label: '',
field: 'Space2',
component: 'Space',
colProps: {
span: 24,
},
},
]
export const permissionFormSchema: FormSchema[] = [

Loading…
Cancel
Save