稽查新增类型文件大小
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a0b88298ad
commit
4ebf3e6272
|
@ -243,16 +243,7 @@
|
|||
<el-col v-show="form.ConfigType === 'C' && title !== '复制'" :span="24">
|
||||
<el-form-item label="前端展示类型">
|
||||
<el-radio-group v-model="form.DataType" style="line-height: 30px;padding-top: 10px;" @change="(v) => {if (v === 'Table'){rowDrop2()}}">
|
||||
<el-radio :label="''">字符串</el-radio>
|
||||
<el-radio label="Array">数组(类似QC问题审核)</el-radio>
|
||||
<el-radio label="Dialog">对话</el-radio>
|
||||
<el-radio label="Link">外链</el-radio>
|
||||
<el-radio label="DialogTable">弹框列表</el-radio>
|
||||
<el-radio label="Table">表格</el-radio>
|
||||
<el-radio label="Router">路由</el-radio>
|
||||
<el-radio label="Image">图片</el-radio>
|
||||
<el-radio label="ImageList">图片数组</el-radio>
|
||||
<el-radio label="OSS">OSS</el-radio>
|
||||
<el-radio :label="item.value" v-for="item in $d.AuditDataType" :key="item.id">{{item.label}}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -671,11 +662,15 @@
|
|||
<div style="padding: 0 40px;display: flex;flex-direction: column">
|
||||
<div style="text-align: right;height: 50px;">
|
||||
<el-select v-model="copeParams.FromItemId" collapse-tags filterable placeholder="完全拷贝对象" clearable size="small">
|
||||
<el-option v-for="item of list" :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||
</el-select>
|
||||
<template v-for="item of list">
|
||||
<el-option :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||
</template>
|
||||
</el-select>
|
||||
<el-button type="primary" size="mini" style="margin-right: 10px" @click="handleOverCope(selectRow)">完全拷贝</el-button>
|
||||
<el-select v-model="copeParams.DataSourceGuids" multiple collapse-tags filterable placeholder="拷贝对象" clearable size="small">
|
||||
<el-option v-for="item of list" :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||
<template v-for="item of list">
|
||||
<el-option :key="item.Id" v-if="drawer_cfg.drawerChild && item.ConfigType === 'M' && item.ObjectTypeId === selectRow.ObjectTypeId && item.OptTypeId && item.ChildrenTypeId " :value="item.Id" :label="item.DescriptionCN" />
|
||||
</template>
|
||||
</el-select>
|
||||
<el-button type="primary" size="mini" @click="handleCope(selectRow)">拷贝</el-button>
|
||||
<el-button type="primary" size="mini" @click="handleAdd(selectRow)">新建</el-button>
|
||||
|
|
|
@ -843,6 +843,36 @@ export default {
|
|||
}
|
||||
return
|
||||
}
|
||||
if (v.DataType === 'FileSize') {
|
||||
if (obj[v.Code]) {
|
||||
obj[v.Code] = obj[v.Code].filter(s => s && s.trim())
|
||||
if (row.OptType === 'Add' || row.OptType === 'Init') {
|
||||
item = {
|
||||
key: v.Code,
|
||||
Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value,
|
||||
newValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--',
|
||||
oldValue: ''
|
||||
}
|
||||
} else if (row.OptType === 'Delete') {
|
||||
item = {
|
||||
key: v.Code,
|
||||
Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value,
|
||||
oldValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--',
|
||||
newValue: '--'
|
||||
}
|
||||
} else {
|
||||
item = {
|
||||
key: v.Code,
|
||||
Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value,
|
||||
newValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--',
|
||||
oldValue: parseInt(upObj[v.Code] ) >= 0 ? `${(upObj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--',
|
||||
}
|
||||
}
|
||||
item.DataType = v.DataType
|
||||
this[auditData].push(item)
|
||||
}
|
||||
return
|
||||
}
|
||||
if (v.DataType === 'ImageList') {
|
||||
// if (obj[v.Code] && obj[v.Code].length > 0) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue