Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
23feb84e30
|
@ -1,85 +1,41 @@
|
|||
<template>
|
||||
<base-model :config="config">
|
||||
<div slot="dialog-body">
|
||||
<el-form
|
||||
ref="fileForm"
|
||||
:model="form"
|
||||
label-width="100px"
|
||||
size="small"
|
||||
:rules="rules"
|
||||
>
|
||||
<el-form ref="fileForm" :model="form" label-width="100px" size="small" :rules="rules">
|
||||
<div class="base-dialog-body">
|
||||
<el-form-item :label="$t('dictionary:file:form:name')" prop="Name">
|
||||
<el-input v-model="form.Name" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('dictionary:file:form:nameCN')"
|
||||
prop="NameCN"
|
||||
>
|
||||
<el-form-item :label="$t('dictionary:file:form:nameCN')" prop="NameCN">
|
||||
<el-input v-model="form.NameCN" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('dictionary:browser:form:ArchiveTypeEnum')"
|
||||
prop="ArchiveTypeEnum"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.ArchiveTypeEnum"
|
||||
clearable
|
||||
placeholder=""
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.ArchiveType"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-form-item :label="$t('dictionary:browser:form:ArchiveTypeEnum')" prop="ArchiveTypeEnum">
|
||||
<el-select v-model="form.ArchiveTypeEnum" clearable placeholder="" style="width: 100%">
|
||||
<el-option v-for="item in $d.ArchiveType" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('dictionary:browser:form:SubIdentificationEnum')"
|
||||
prop="SubIdentificationEnum"
|
||||
>
|
||||
<el-select
|
||||
style="width: 100%"
|
||||
v-model="form.SubIdentificationEnum"
|
||||
clearable
|
||||
placeholder=""
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.SubIdentification"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-form-item :label="$t('dictionary:browser:form:SubIdentificationEnum')" prop="SubIdentificationEnum">
|
||||
<el-select style="width: 100%" v-model="form.SubIdentificationEnum" clearable placeholder="">
|
||||
<el-option v-for="item in $d.SubIdentification" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('dictionary:file:form:ShowOrder')"
|
||||
prop="ShowOrder"
|
||||
>
|
||||
<el-input-number
|
||||
v-model="form.ShowOrder"
|
||||
:step="1"
|
||||
step-strictly
|
||||
></el-input-number>
|
||||
<el-form-item :label="$t('dictionary:browser:form:SysTemplateTypeEnum')" prop="SysTemplateTypeEnum">
|
||||
<el-select style="width: 100%" v-model="form.SysTemplateTypeEnum" clearable placeholder="">
|
||||
<el-option v-for="item in $d.SysTemplateType" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:form:ShowOrder')" prop="ShowOrder">
|
||||
<el-input-number v-model="form.ShowOrder" :step="1" step-strictly></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:form:IsEnable')">
|
||||
<el-switch
|
||||
v-model="form.IsEnable"
|
||||
:active-value="true"
|
||||
:inactive-value="false"
|
||||
>
|
||||
<el-switch v-model="form.IsEnable" :active-value="true" :inactive-value="false">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:form:IsConfirmRecord')">
|
||||
<el-switch
|
||||
v-model="form.IsConfirmRecord"
|
||||
:active-value="true"
|
||||
:inactive-value="false"
|
||||
>
|
||||
<el-switch v-model="form.IsConfirmRecord" :active-value="true" :inactive-value="false">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
@ -95,7 +51,7 @@
|
|||
</div>
|
||||
</base-model>
|
||||
</template>
|
||||
<script>
|
||||
<script>
|
||||
import baseModel from '@/components/BaseModel'
|
||||
import { addOrUpdateSysFileType } from '@/api/dictionary'
|
||||
export default {
|
||||
|
@ -126,6 +82,7 @@ export default {
|
|||
NameCN: null,
|
||||
SubIdentificationEnum: null,
|
||||
ShowOrder: 0,
|
||||
SysTemplateTypeEnum: null
|
||||
},
|
||||
rules: {
|
||||
Name: [
|
||||
|
@ -149,6 +106,13 @@ export default {
|
|||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
SysTemplateTypeEnum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ArchiveTypeEnum: [
|
||||
{
|
||||
required: true,
|
||||
|
|
|
@ -11,85 +11,41 @@
|
|||
<el-input v-model="searchData.NameCN" style="width: 100px" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:search:archiveTypeEnum')">
|
||||
<el-select
|
||||
v-model="searchData.ArchiveTypeEnum"
|
||||
clearable
|
||||
placeholder=""
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.ArchiveType"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-select v-model="searchData.ArchiveTypeEnum" clearable placeholder="" style="width: 100px">
|
||||
<el-option v-for="item in $d.ArchiveType" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('dictionary:file:search:subIdentificationEnum')"
|
||||
>
|
||||
<el-select
|
||||
v-model="searchData.SubIdentificationEnum"
|
||||
clearable
|
||||
placeholder=""
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.SubIdentification"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-form-item :label="$t('dictionary:file:search:subIdentificationEnum')">
|
||||
<el-select v-model="searchData.SubIdentificationEnum" clearable placeholder="" style="width: 100px">
|
||||
<el-option v-for="item in $d.SubIdentification" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:search:SysTemplateTypeEnum')">
|
||||
<el-select v-model="searchData.SysTemplateTypeEnum" clearable placeholder="" style="width: 100px">
|
||||
<el-option v-for="item in $d.SysTemplateType" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:search:isEnable')">
|
||||
<el-select
|
||||
v-model="searchData.IsEnable"
|
||||
clearable
|
||||
placeholder=""
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-select v-model="searchData.IsEnable" clearable placeholder="" style="width: 100px">
|
||||
<el-option v-for="item in $d.YesOrNo" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:file:search:isConfirmRecord')">
|
||||
<el-select
|
||||
v-model="searchData.IsConfirmRecord"
|
||||
clearable
|
||||
placeholder=""
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-select v-model="searchData.IsConfirmRecord" clearable placeholder="" style="width: 100px">
|
||||
<el-option v-for="item in $d.YesOrNo" :key="item.id" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@click="handleSearch"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
|
@ -101,106 +57,60 @@
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
v-adaptive="{ bottomOffset: 45 }"
|
||||
:data="list"
|
||||
stripe
|
||||
height="100"
|
||||
style="width: 100%"
|
||||
@sort-change="handleSortByColumn"
|
||||
>
|
||||
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 45 }" :data="list" stripe height="100"
|
||||
style="width: 100%" @sort-change="handleSortByColumn">
|
||||
<el-table-column type="index" width="40" />
|
||||
|
||||
<el-table-column
|
||||
prop="Name"
|
||||
:label="$t('dictionary:file:table:Name')"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop="NameCN"
|
||||
:label="$t('dictionary:file:table:NameCN')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="ArchiveTypeEnum"
|
||||
:label="$t('dictionary:file:table:archiveTypeEnum')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="Name" :label="$t('dictionary:file:table:Name')" sortable="custom" show-overflow-tooltip
|
||||
min-width="150px" />
|
||||
<el-table-column prop="NameCN" :label="$t('dictionary:file:table:NameCN')" show-overflow-tooltip
|
||||
sortable="custom" min-width="150px" />
|
||||
<el-table-column prop="ArchiveTypeEnum" :label="$t('dictionary:file:table:archiveTypeEnum')"
|
||||
show-overflow-tooltip sortable="custom" min-width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('ArchiveType', scope.row.ArchiveTypeEnum) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="SubIdentificationEnum"
|
||||
:label="$t('dictionary:file:table:subIdentificationEnum')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="SubIdentificationEnum" :label="$t('dictionary:file:table:subIdentificationEnum')"
|
||||
show-overflow-tooltip sortable="custom" min-width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('SubIdentification', scope.row.SubIdentificationEnum) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ShowOrder"
|
||||
:label="$t('dictionary:file:table:ShowOrder')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
:label="$t('dictionary:file:table:IsEnable')"
|
||||
prop="IsEnable"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="SysTemplateTypeEnum" :label="$t('dictionary:file:table:SysTemplateTypeEnum')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('SysTemplateType', scope.row.SysTemplateTypeEnum) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ShowOrder" :label="$t('dictionary:file:table:ShowOrder')" show-overflow-tooltip
|
||||
sortable="custom" />
|
||||
<el-table-column :label="$t('dictionary:file:table:IsEnable')" prop="IsEnable" show-overflow-tooltip
|
||||
sortable="custom" min-width="120px">
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="!scope.row.IsEnable ? 'info' : ''">
|
||||
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('dictionary:file:table:isConfirmRecord')"
|
||||
prop="IsConfirmRecord"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
width="200"
|
||||
>
|
||||
<el-table-column :label="$t('dictionary:file:table:isConfirmRecord')" prop="IsConfirmRecord"
|
||||
show-overflow-tooltip sortable="custom" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="!scope.row.IsEnable ? 'info' : ''">
|
||||
{{ $fd('YesOrNo', scope.row.IsConfirmRecord) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="CreateTime"
|
||||
:label="$t('dictionary:file:table:createTime')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="UpdateTime"
|
||||
:label="$t('dictionary:file:table:updateTime')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
:label="$t('dictionary:file:table:action')"
|
||||
width="200"
|
||||
fixed="right"
|
||||
>
|
||||
<el-table-column prop="CreateTime" :label="$t('dictionary:file:table:createTime')" show-overflow-tooltip
|
||||
sortable="custom" min-width="180px" />
|
||||
<el-table-column prop="UpdateTime" :label="$t('dictionary:file:table:updateTime')" show-overflow-tooltip
|
||||
sortable="custom" min-width="180px" />
|
||||
<el-table-column :label="$t('dictionary:file:table:action')" width="200" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handleEdit(scope.row)">
|
||||
{{ $t('dictionary:file:button:edit') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-if="hasPermi(['dictionary:template:file:del'])"
|
||||
>
|
||||
<el-button type="text" @click="handleDelete(scope.row)" v-if="hasPermi(['dictionary:template:file:del'])">
|
||||
{{ $t('dictionary:file:button:delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
@ -208,20 +118,9 @@
|
|||
</el-table>
|
||||
|
||||
<!-- 分页组件 -->
|
||||
<pagination
|
||||
class="page"
|
||||
:total="total"
|
||||
:page.sync="searchData.PageIndex"
|
||||
:limit.sync="searchData.PageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<File-form
|
||||
:config="config"
|
||||
:data="rowData"
|
||||
v-if="config.visible"
|
||||
@close="close"
|
||||
@getList="getList"
|
||||
/>
|
||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||
@pagination="getList" />
|
||||
<File-form :config="config" :data="rowData" v-if="config.visible" @close="close" @getList="getList" />
|
||||
</box-content>
|
||||
</BoxContent>
|
||||
</template>
|
||||
|
@ -238,6 +137,7 @@ const searchDataDefault = () => {
|
|||
Name: null,
|
||||
NameCN: null,
|
||||
SubIdentificationEnum: null,
|
||||
SysTemplateTypeEnum: null,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
asc: false,
|
||||
|
@ -344,4 +244,7 @@ export default {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.box-body .search .base-search-form .el-form-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue