This commit is contained in:
yong.huang 2023-07-19 17:40:14 +08:00
parent 670a885cdc
commit 2c51cdfed2
6 changed files with 97 additions and 91 deletions

View File

@ -39,7 +39,7 @@ kombu = "==4.4.0"
# common setting # common setting
Flask-APScheduler = "==1.12.4" Flask-APScheduler = "==1.12.4"
timeout-decorator = "==0.5.0" timeout-decorator = "==0.5.0"
numpy = "==1.18.5" numpy = "==1.21.5"
pandas = "==1.3.2" pandas = "==1.3.2"
WTForms = "==3.0.0" WTForms = "==3.0.0"
email-validator = "==1.3.1" email-validator = "==1.3.1"

View File

@ -47,7 +47,7 @@ meld3==2.0.1
mistune==3.0.1 mistune==3.0.1
more-itertools==5.0.0 more-itertools==5.0.0
msgpack-python==0.5.6 msgpack-python==0.5.6
numpy==1.18.5 numpy==1.21.5
pandas==1.3.2 pandas==1.3.2
Pillow==8.3.2 Pillow==8.3.2
pkgutil_resolve_name==1.3.10 pkgutil_resolve_name==1.3.10

View File

@ -33,22 +33,24 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12" <a-col
><a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="别名"> :span="12"
<a-input name="alias" v-decorator="['alias', { rules: [] }]" /> </a-form-item ><a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="别名">
<a-input name="alias" v-decorator="['alias', { rules: [] }]" /> </a-form-item
></a-col> ></a-col>
<a-col :span="12" <a-col
><a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="数据类型"> :span="12"
<a-select ><a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="数据类型">
:disabled="true" <a-select
name="value_type" :disabled="true"
style="width: 100%" name="value_type"
v-decorator="['value_type', { rules: [{ required: true }] }]" style="width: 100%"
@change="handleChangeValueType" v-decorator="['value_type', { rules: [{ required: true }] }]"
> @change="handleChangeValueType"
<a-select-option :value="key" :key="key" v-for="(value, key) in valueTypeMap">{{ value }}</a-select-option> >
</a-select> <a-select-option :value="key" :key="key" v-for="(value, key) in valueTypeMap">{{ value }}</a-select-option>
</a-form-item></a-col </a-select>
</a-form-item></a-col
> >
<a-col :span="currentValueType === '6' ? 24 : 12"> <a-col :span="currentValueType === '6' ? 24 : 12">
<a-form-item <a-form-item
@ -161,8 +163,9 @@
:wrapper-col="horizontalFormItemLayout.wrapperCol" :wrapper-col="horizontalFormItemLayout.wrapperCol"
> >
<template slot="label"> <template slot="label">
<span style="position: relative; white-space: pre" <span
>{{ `索引` }} style="position: relative; white-space: pre"
>{{ `索引` }}
<a-tooltip title="字段可被用于检索,加速查询"> <a-tooltip title="字段可被用于检索,加速查询">
<a-icon <a-icon
style="position: absolute; top: 3px; left: -17px; color: #2f54eb" style="position: absolute; top: 3px; left: -17px; color: #2f54eb"
@ -192,8 +195,9 @@
:wrapper-col="horizontalFormItemLayout.wrapperCol" :wrapper-col="horizontalFormItemLayout.wrapperCol"
> >
<template slot="label"> <template slot="label">
<span style="position: relative; white-space: pre" <span
>{{ `显示` }} style="position: relative; white-space: pre"
>{{ `显示` }}
<a-tooltip title="CI实例表格默认展示该字段"> <a-tooltip title="CI实例表格默认展示该字段">
<a-icon <a-icon
style="position: absolute; top: 3px; left: -17px; color: #2f54eb" style="position: absolute; top: 3px; left: -17px; color: #2f54eb"
@ -237,8 +241,9 @@
:wrapper-col="horizontalFormItemLayout.wrapperCol" :wrapper-col="horizontalFormItemLayout.wrapperCol"
> >
<template slot="label"> <template slot="label">
<span style="position: relative; white-space: pre" <span
>{{ `多值` }} style="position: relative; white-space: pre"
>{{ `多值` }}
<a-tooltip title="字段的值是1个或者多个接口返回的值的类型是list"> <a-tooltip title="字段的值是1个或者多个接口返回的值的类型是list">
<a-icon <a-icon
style="position: absolute; top: 3px; left: -17px; color: #2f54eb" style="position: absolute; top: 3px; left: -17px; color: #2f54eb"
@ -302,8 +307,9 @@
<a-col :span="24" v-if="currentValueType !== '6'"> <a-col :span="24" v-if="currentValueType !== '6'">
<a-form-item :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }"> <a-form-item :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
<template slot="label"> <template slot="label">
<span style="position: relative; white-space: pre" <span
>{{ `计算属性` }} style="position: relative; white-space: pre"
>{{ `计算属性` }}
<a-tooltip <a-tooltip
:title="`该属性的值是通过模型的其它属性构建的表达式或者执行一段代码的方式计算而来,属性的引用方法为: {{ 属性名 }}`" :title="`该属性的值是通过模型的其它属性构建的表达式或者执行一段代码的方式计算而来,属性的引用方法为: {{ 属性名 }}`"
> >

View File

@ -60,7 +60,7 @@
</vxe-column> </vxe-column>
<vxe-column field="type_id" title="模型" width="150px"> <vxe-column field="type_id" title="模型" width="150px">
<template #default="{ row }"> <template #default="{ row }">
{{ row.operate_type === '删除模型' ? row.change.alias : row.type_id}} {{ row.operate_type === '删除模型' ? row.change.alias : row.type_id }}
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="changeDescription" title="描述"> <vxe-column field="changeDescription" title="描述">

View File

@ -382,9 +382,9 @@
:style="{ display: 'inline-block', width: '98%', margin: '0 7px 24px' }" :style="{ display: 'inline-block', width: '98%', margin: '0 7px 24px' }"
v-if=" v-if="
attributes.findIndex((v) => v == 'bank_card_number') !== -1 || attributes.findIndex((v) => v == 'bank_card_number') !== -1 ||
attributes.findIndex((v) => v == 'bank_card_name') !== -1 || attributes.findIndex((v) => v == 'bank_card_name') !== -1 ||
attributes.findIndex((v) => v == 'opening_bank') !== -1 || attributes.findIndex((v) => v == 'opening_bank') !== -1 ||
attributes.findIndex((v) => v == 'account_opening_location') !== -1 attributes.findIndex((v) => v == 'account_opening_location') !== -1
" "
> >
<a-row :gutter="[8, { xs: 8 }]"> <a-row :gutter="[8, { xs: 8 }]">

View File

@ -179,7 +179,7 @@
sortable sortable
v-if=" v-if="
checkedCols.findIndex((v) => v == 'department_name') !== -1 && checkedCols.findIndex((v) => v == 'department_name') !== -1 &&
attributes.findIndex((v) => v == 'department_name') !== -1 attributes.findIndex((v) => v == 'department_name') !== -1
" "
key="department_name" key="department_name"
> >
@ -217,7 +217,7 @@
sortable sortable
v-if=" v-if="
checkedCols.findIndex((v) => v == 'position_name') !== -1 && checkedCols.findIndex((v) => v == 'position_name') !== -1 &&
attributes.findIndex((v) => v == 'position_name') !== -1 attributes.findIndex((v) => v == 'position_name') !== -1
" "
key="position_name" key="position_name"
> >
@ -251,7 +251,7 @@
sortable sortable
v-if=" v-if="
checkedCols.findIndex((v) => v == 'direct_supervisor_id') !== -1 && checkedCols.findIndex((v) => v == 'direct_supervisor_id') !== -1 &&
attributes.findIndex((v) => v == 'direct_supervisor_id') !== -1 attributes.findIndex((v) => v == 'direct_supervisor_id') !== -1
" "
key="direct_supervisor_id" key="direct_supervisor_id"
> >
@ -290,8 +290,8 @@
min-width="80" min-width="80"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'annual_leave') !== -1 && checkedCols.findIndex((v) => v == 'annual_leave') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'annual_leave') !== -1 attributes.findIndex((v) => v == 'annual_leave') !== -1
" "
key="annual_leave" key="annual_leave"
> >
@ -325,8 +325,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'virtual_annual_leave') !== -1 && checkedCols.findIndex((v) => v == 'virtual_annual_leave') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'virtual_annual_leave') !== -1 attributes.findIndex((v) => v == 'virtual_annual_leave') !== -1
" "
key="virtual_annual_leave" key="virtual_annual_leave"
> >
@ -360,8 +360,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'parenting_leave') !== -1 && checkedCols.findIndex((v) => v == 'parenting_leave') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'parenting_leave') !== -1 attributes.findIndex((v) => v == 'parenting_leave') !== -1
" "
key="parenting_leave" key="parenting_leave"
> >
@ -395,8 +395,8 @@
min-width="150" min-width="150"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'entry_date') !== -1 && checkedCols.findIndex((v) => v == 'entry_date') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'entry_date') !== -1 attributes.findIndex((v) => v == 'entry_date') !== -1
" "
key="entry_date" key="entry_date"
> >
@ -431,8 +431,8 @@
v-bind="tableType === 'structure' ? { filters: internOptions, 'filter-multiple': false } : {}" v-bind="tableType === 'structure' ? { filters: internOptions, 'filter-multiple': false } : {}"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'is_internship') !== -1 && checkedCols.findIndex((v) => v == 'is_internship') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'is_internship') !== -1 attributes.findIndex((v) => v == 'is_internship') !== -1
" "
key="is_internship" key="is_internship"
> >
@ -469,8 +469,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'leave_date') !== -1 && checkedCols.findIndex((v) => v == 'leave_date') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'leave_date') !== -1 attributes.findIndex((v) => v == 'leave_date') !== -1
" "
key="leave_date" key="leave_date"
> >
@ -504,8 +504,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'id_card') !== -1 && checkedCols.findIndex((v) => v == 'id_card') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'id_card') !== -1 attributes.findIndex((v) => v == 'id_card') !== -1
" "
key="id_card" key="id_card"
> >
@ -539,8 +539,8 @@
min-width="80" min-width="80"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'nation') !== -1 && checkedCols.findIndex((v) => v == 'nation') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'nation') !== -1 attributes.findIndex((v) => v == 'nation') !== -1
" "
key="nation" key="nation"
> >
@ -574,8 +574,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'id_place') !== -1 && checkedCols.findIndex((v) => v == 'id_place') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'id_place') !== -1 attributes.findIndex((v) => v == 'id_place') !== -1
" "
key="id_place" key="id_place"
> >
@ -609,8 +609,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'party') !== -1 && checkedCols.findIndex((v) => v == 'party') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'party') !== -1 attributes.findIndex((v) => v == 'party') !== -1
" "
key="party" key="party"
> >
@ -644,8 +644,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'household_registration_type') !== -1 && checkedCols.findIndex((v) => v == 'household_registration_type') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'household_registration_type') !== -1 attributes.findIndex((v) => v == 'household_registration_type') !== -1
" "
key="household_registration_type" key="household_registration_type"
> >
@ -679,8 +679,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'hometown') !== -1 && checkedCols.findIndex((v) => v == 'hometown') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'hometown') !== -1 attributes.findIndex((v) => v == 'hometown') !== -1
" "
key="hometown" key="hometown"
> >
@ -714,8 +714,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'marry') !== -1 && checkedCols.findIndex((v) => v == 'marry') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'marry') !== -1 attributes.findIndex((v) => v == 'marry') !== -1
" "
key="marry" key="marry"
> >
@ -749,8 +749,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'max_degree') !== -1 && checkedCols.findIndex((v) => v == 'max_degree') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'max_degree') !== -1 attributes.findIndex((v) => v == 'max_degree') !== -1
" "
key="max_degree" key="max_degree"
> >
@ -784,8 +784,8 @@
min-width="110" min-width="110"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'emergency_person') !== -1 && checkedCols.findIndex((v) => v == 'emergency_person') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'emergency_person') !== -1 attributes.findIndex((v) => v == 'emergency_person') !== -1
" "
key="emergency_person" key="emergency_person"
> >
@ -819,8 +819,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'emergency_phone') !== -1 && checkedCols.findIndex((v) => v == 'emergency_phone') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'emergency_phone') !== -1 attributes.findIndex((v) => v == 'emergency_phone') !== -1
" "
key="emergency_phone" key="emergency_phone"
> >
@ -854,8 +854,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'bank_card_number') !== -1 && checkedCols.findIndex((v) => v == 'bank_card_number') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'bank_card_number') !== -1 attributes.findIndex((v) => v == 'bank_card_number') !== -1
" "
key="bank_card_number" key="bank_card_number"
> >
@ -889,8 +889,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'bank_card_name') !== -1 && checkedCols.findIndex((v) => v == 'bank_card_name') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'bank_card_name') !== -1 attributes.findIndex((v) => v == 'bank_card_name') !== -1
" "
key="bank_card_name" key="bank_card_name"
> >
@ -924,8 +924,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'opening_bank') !== -1 && checkedCols.findIndex((v) => v == 'opening_bank') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'opening_bank') !== -1 attributes.findIndex((v) => v == 'opening_bank') !== -1
" "
key="opening_bank" key="opening_bank"
> >
@ -959,8 +959,8 @@
min-width="120" min-width="120"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'account_opening_location') !== -1 && checkedCols.findIndex((v) => v == 'account_opening_location') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'account_opening_location') !== -1 attributes.findIndex((v) => v == 'account_opening_location') !== -1
" "
key="account_opening_location" key="account_opening_location"
> >
@ -993,8 +993,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'school') !== -1 && checkedCols.findIndex((v) => v == 'school') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'school') !== -1 attributes.findIndex((v) => v == 'school') !== -1
" "
key="school" key="school"
> >
@ -1027,8 +1027,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'major') !== -1 && checkedCols.findIndex((v) => v == 'major') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'major') !== -1 attributes.findIndex((v) => v == 'major') !== -1
" "
key="major" key="major"
> >
@ -1061,8 +1061,8 @@
min-width="80" min-width="80"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'education') !== -1 && checkedCols.findIndex((v) => v == 'education') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'education') !== -1 attributes.findIndex((v) => v == 'education') !== -1
" "
key="education" key="education"
> >
@ -1095,8 +1095,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'graduation_year') !== -1 && checkedCols.findIndex((v) => v == 'graduation_year') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'graduation_year') !== -1 attributes.findIndex((v) => v == 'graduation_year') !== -1
" "
key="graduation_year" key="graduation_year"
> >
@ -1129,8 +1129,8 @@
min-width="80" min-width="80"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'name') !== -1 && checkedCols.findIndex((v) => v == 'name') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'name') !== -1 attributes.findIndex((v) => v == 'name') !== -1
" "
key="name" key="name"
> >
@ -1163,8 +1163,8 @@
min-width="80" min-width="80"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'gender') !== -1 && checkedCols.findIndex((v) => v == 'gender') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'gender') !== -1 attributes.findIndex((v) => v == 'gender') !== -1
" "
key="gender" key="gender"
> >
@ -1197,8 +1197,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'birthday') !== -1 && checkedCols.findIndex((v) => v == 'birthday') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'birthday') !== -1 attributes.findIndex((v) => v == 'birthday') !== -1
" "
key="birthday" key="birthday"
> >
@ -1231,8 +1231,8 @@
min-width="100" min-width="100"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'parental_leave_left') !== -1 && checkedCols.findIndex((v) => v == 'parental_leave_left') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'parental_leave_left') !== -1 attributes.findIndex((v) => v == 'parental_leave_left') !== -1
" "
key="parental_leave_left" key="parental_leave_left"
> >
@ -1267,8 +1267,8 @@
:formatter="formatDate" :formatter="formatDate"
v-if=" v-if="
checkedCols.findIndex((v) => v == 'last_login') !== -1 && checkedCols.findIndex((v) => v == 'last_login') !== -1 &&
tableType == 'structure' && tableType == 'structure' &&
attributes.findIndex((v) => v == 'last_login') !== -1 attributes.findIndex((v) => v == 'last_login') !== -1
" "
key="last_login" key="last_login"
> >