Compare commits
No commits in common. "0785219954fc8ce25023dd868d70751b446b2813" and "4164b24bd951cb48d72642ce110d3a2adafa9c48" have entirely different histories.
0785219954
...
4164b24bd9
|
@ -9,10 +9,10 @@
|
||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item :label="$t('dictionary:attachment:label:code')" prop="Code">
|
<el-form-item label="Code" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
|
<el-form-item label="业务场景: " prop="BusinessScenarioEnum">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.BusinessScenarioEnum"
|
v-model="form.BusinessScenarioEnum"
|
||||||
style="width:100%;"
|
style="width:100%;"
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item :label="$t('dictionary:attachment:export:form:file')">
|
<el-form-item label="文件: ">
|
||||||
<div class="upload-container">
|
<div class="upload-container">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<!-- 业务场景 -->
|
<el-form-item label="业务场景">
|
||||||
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
|
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.BusinessScenarioEnum"
|
v-model="searchData.BusinessScenarioEnum"
|
||||||
style="width:150px;"
|
style="width:150px;"
|
||||||
|
@ -17,8 +16,7 @@
|
||||||
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 文件名称 -->
|
<el-form-item label="文件名称">
|
||||||
<el-form-item :label="$t('dictionary:attachment:label:name')">
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchData.Name"
|
v-model="searchData.Name"
|
||||||
style="width:130px;"
|
style="width:130px;"
|
||||||
|
@ -59,14 +57,14 @@
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
:label="$t('dictionary:attachment:label:code')"
|
label="Code"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="BusinessScenarioEnum"
|
prop="BusinessScenarioEnum"
|
||||||
:label="$t('dictionary:attachment:label:businessScenario')"
|
label="业务场景"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
|
@ -78,18 +76,18 @@
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Name"
|
prop="Name"
|
||||||
:label="$t('dictionary:attachment:label:name')"
|
label="文件名称"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Description"
|
prop="Description"
|
||||||
:label="$t('dictionary:attachment:label:description')"
|
label="描述"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="IsDeleted"
|
prop="IsDeleted"
|
||||||
:label="$t('dictionary:attachment:label:isDeleted')"
|
label="是否废除"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
|
@ -100,7 +98,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="UpdateTime"
|
prop="UpdateTime"
|
||||||
:label="$t('dictionary:attachment:label:updateTime')"
|
label="上传时间"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
@ -111,19 +109,19 @@
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDownload(scope.row)"
|
@click="handleDownload(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:download') }}
|
下载
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:action:edit') }}
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:delete') }}
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -178,9 +176,9 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm(this.$t('dictionary:attachment:export:confirm:delete')).then(() => {
|
this.$confirm('确定删除该文件?').then(() => {
|
||||||
deleteCommonDocument(row.Id).then(() => {
|
deleteCommonDocument(row.Id).then(() => {
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success('删除成功')
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -197,7 +195,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = this.$t('common:button:new')
|
this.editDialog.title = 'Add'
|
||||||
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
@ -210,7 +208,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = this.$t('common:action:edit')
|
this.editDialog.title = 'Edit'
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
class="upload-temporary-file"
|
class="upload-temporary-file"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<el-form-item :label="$t('dictionary:attachment:export:search:code')" prop="Code">
|
<el-form-item label="Code" prop="Code">
|
||||||
<el-input v-model="form.Code" />
|
<el-input v-model="form.Code" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
@ -76,9 +76,8 @@
|
||||||
:label="$t('dictionary:attachment:export:form:isDeleted')"
|
:label="$t('dictionary:attachment:export:form:isDeleted')"
|
||||||
>
|
>
|
||||||
<el-radio-group v-model="form.IsDeleted">
|
<el-radio-group v-model="form.IsDeleted">
|
||||||
<el-radio v-for="item of $d.YesOrNo" :key="`IsDeleted${item.value}`" :label="item.value">
|
<el-radio :label="true">是</el-radio>
|
||||||
{{ item.label }}
|
<el-radio :label="false">否</el-radio>
|
||||||
</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
:label="$t('dictionary:attachment:export:search:code')"
|
label="Code"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
@ -235,7 +235,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = this.$t('common:button:new')
|
this.editDialog.title = 'Add'
|
||||||
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
this.currentRow = { FileTypeEnum: FileTypeEnum }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
@ -252,7 +252,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = this.$t('common:action:edit')
|
this.editDialog.title = 'Edit'
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
|
|
@ -247,7 +247,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.title = this.$t('common:button:new')
|
this.title = 'Add'
|
||||||
this.currentRow = {}
|
this.currentRow = {}
|
||||||
this.editVisible = true
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
|
@ -262,7 +262,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.title = this.$t('common:action:edit')
|
this.title = 'Edit'
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editVisible = true
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,36 +8,32 @@
|
||||||
label-width="160px"
|
label-width="160px"
|
||||||
size="small"
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('template:anonymization:label:group')" prop="Group">
|
<el-form-item label="Group: " prop="Group">
|
||||||
<el-input v-model="form.Group" />
|
<el-input v-model="form.Group" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('template:anonymization:label:element')" prop="Group">
|
<el-form-item label="Element: " prop="Group">
|
||||||
<el-input v-model="form.Element" />
|
<el-input v-model="form.Element" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- tag Description -->
|
<el-form-item label="tag Description: " prop="Group">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescription')" prop="Group">
|
|
||||||
<el-input v-model="form.TagDescription" />
|
<el-input v-model="form.TagDescription" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Tag DescriptionCN -->
|
<el-form-item label="Tag DescriptionCN: " prop="Group">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')" prop="Group">
|
|
||||||
<el-input v-model="form.TagDescriptionCN" />
|
<el-input v-model="form.TagDescriptionCN" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Value Representation -->
|
<el-form-item label="Value Representation: " prop="Group">
|
||||||
<el-form-item :label="$t('template:anonymization:label:valueRepresentation')" prop="Group">
|
|
||||||
<el-input v-model="form.ValueRepresentation" />
|
<el-input v-model="form.ValueRepresentation" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Is Fixed -->
|
<el-form-item label="Is Fixed: ">
|
||||||
<el-form-item :label="$t('template:anonymization:label:isFixed')">
|
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsFixed"
|
v-model="form.IsFixed"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
:inactive-value="false"
|
:inactive-value="false"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('template:anonymization:label:valueReplace')">
|
<el-form-item label="Replace Value: ">
|
||||||
<el-input v-model="form.ReplaceValue" />
|
<el-input v-model="form.ReplaceValue" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('template:anonymization:label:isEnable')">
|
<el-form-item label="Is Enable: ">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.IsEnable"
|
v-model="form.IsEnable"
|
||||||
:active-value="true"
|
:active-value="true"
|
||||||
|
@ -47,8 +43,8 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">{{ $t('common:button:cancel') }}</el-button>
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button>
|
||||||
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">{{ $t('common:button:save') }}</el-button>
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
</template>
|
</template>
|
||||||
|
@ -86,7 +82,7 @@ export default {
|
||||||
IsAdd: false
|
IsAdd: false
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
Group: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }]
|
Group: [{ required: true, message: 'Please specify', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
model_cfg: { visible: false, showClose: true, width: '600px', title: '' }
|
model_cfg: { visible: false, showClose: true, width: '600px', title: '' }
|
||||||
}
|
}
|
||||||
|
@ -112,7 +108,7 @@ export default {
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
addOrUpdateSystemAnonymization(this.form).then(res => {
|
addOrUpdateSystemAnonymization(this.form).then(res => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success('Saved successfully!')
|
||||||
this.model_cfg.visible = false
|
this.model_cfg.visible = false
|
||||||
this.$emit('getList')
|
this.$emit('getList')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
|
@ -3,20 +3,16 @@
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="mini" class="base-search-form">
|
<el-form :inline="true" size="mini" class="base-search-form">
|
||||||
<!-- Group -->
|
<el-form-item label="Group:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:group')">
|
|
||||||
<el-input v-model="searchData.Group" clearable style="width:120px;" />
|
<el-input v-model="searchData.Group" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Element -->
|
<el-form-item label="Element:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:element')">
|
|
||||||
<el-input v-model="searchData.Element" clearable style="width:120px;" />
|
<el-input v-model="searchData.Element" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Tag Description -->
|
<el-form-item label="Tag Description:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescription')">
|
|
||||||
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
|
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Tag DescriptionCN -->
|
<el-form-item label="Tag DescriptionCN:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')">
|
|
||||||
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -33,7 +29,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" size="mini" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
|
<el-button type="primary" size="mini" @click="handleAdd">New</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -46,39 +42,33 @@
|
||||||
height="100"
|
height="100"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<!-- Group -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Group"
|
prop="Group"
|
||||||
:label="$t('template:anonymization:label:group')"
|
label="Group"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<!-- Element -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Element"
|
prop="Element"
|
||||||
:label="$t('template:anonymization:label:element')"
|
label="Element"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Tag Description -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescription"
|
prop="TagDescription"
|
||||||
:label="$t('template:anonymization:label:tagDescription')"
|
label="Tag Description"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Tag DescriptionCN -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescriptionCN"
|
prop="TagDescriptionCN"
|
||||||
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
label="Tag DescriptionCN"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Value Representation -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ValueRepresentation"
|
prop="ValueRepresentation"
|
||||||
:label="$t('template:anonymization:label:valueRepresentation')"
|
label="Value Representation"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Is Fixed -->
|
<el-table-column label="Is Fixed" width="100">
|
||||||
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsFixed"
|
v-model="scope.row.IsFixed"
|
||||||
|
@ -88,14 +78,12 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Value Replace -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ReplaceValue"
|
prop="ReplaceValue"
|
||||||
:label="$t('template:anonymization:label:valueReplace')"
|
label="Value Replace"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Is Enable -->
|
<el-table-column label="Is Enable" width="100" fixed="right">
|
||||||
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
|
@ -105,21 +93,21 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common:action:action')" width="200" fixed="right">
|
<el-table-column label="Action" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:edit') }}
|
Edit
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:delete') }}
|
Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -165,7 +153,7 @@ export default {
|
||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateSystemAnonymization(item).then(res => {
|
addOrUpdateSystemAnonymization(item).then(res => {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success('Saved successfully!')
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
@ -173,12 +161,12 @@ export default {
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['AddDICOMConfig'].openDialog(this.$t('common:button:new'), {})
|
this.$refs['AddDICOMConfig'].openDialog('New Anonymization', {})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['AddDICOMConfig'].openDialog(this.$t('common:action:edit'), row)
|
this.$refs['AddDICOMConfig'].openDialog('Edit Anonymization', row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|
|
@ -3,20 +3,16 @@
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" size="mini" class="base-search-form">
|
<el-form :inline="true" size="mini" class="base-search-form">
|
||||||
<!-- Group -->
|
<el-form-item label="Group:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:group')">
|
|
||||||
<el-input v-model="searchData.Group" clearable style="width:120px;" />
|
<el-input v-model="searchData.Group" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Element -->
|
<el-form-item label="Element:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:element')">
|
|
||||||
<el-input v-model="searchData.Element" clearable style="width:120px;" />
|
<el-input v-model="searchData.Element" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Tag Description -->
|
<el-form-item label="Tag Description:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescription')">
|
|
||||||
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
|
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- Tag DescriptionCN -->
|
<el-form-item label="Tag DescriptionCN:">
|
||||||
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')">
|
|
||||||
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -33,7 +29,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
<el-button type="primary" size="mini" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
|
<el-button type="primary" size="mini" @click="handleAdd">New</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -46,39 +42,33 @@
|
||||||
height="100"
|
height="100"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="60" />
|
<el-table-column type="index" width="60" />
|
||||||
<!-- Group -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Group"
|
prop="Group"
|
||||||
:label="$t('template:anonymization:label:group')"
|
label="Group"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<!-- Element -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Element"
|
prop="Element"
|
||||||
:label="$t('template:anonymization:label:element')"
|
label="Element"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Tag Description -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescription"
|
prop="TagDescription"
|
||||||
:label="$t('template:anonymization:label:tagDescription')"
|
label="Tag Description"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Tag DescriptionCN -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="TagDescriptionCN"
|
prop="TagDescriptionCN"
|
||||||
:label="$t('template:anonymization:label:tagDescriptionCN')"
|
label="Tag DescriptionCN"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Value Representation -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ValueRepresentation"
|
prop="ValueRepresentation"
|
||||||
:label="$t('template:anonymization:label:valueRepresentation')"
|
label="Value Representation"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Is Fixed -->
|
<el-table-column label="Is Fixed" width="100">
|
||||||
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsFixed"
|
v-model="scope.row.IsFixed"
|
||||||
|
@ -88,14 +78,12 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Value Replace -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ReplaceValue"
|
prop="ReplaceValue"
|
||||||
:label="$t('template:anonymization:label:valueReplace')"
|
label="Value Replace"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
/>
|
/>
|
||||||
<!-- Is Enable -->
|
<el-table-column label="Is Enable" width="100" fixed="right">
|
||||||
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.IsEnable"
|
v-model="scope.row.IsEnable"
|
||||||
|
@ -105,21 +93,21 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common:action:action')" width="200" fixed="right">
|
<el-table-column label="Action" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:action:edit') }}
|
Edit
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:delete') }}
|
Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -164,7 +152,7 @@ export default {
|
||||||
switchChange(event, item) {
|
switchChange(event, item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateSystemAnonymization(item).then(res => {
|
addOrUpdateSystemAnonymization(item).then(res => {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$message.success('Saved successfully!')
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
@ -172,12 +160,12 @@ export default {
|
||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['AddDICOMConfig'].openDialog(this.$t('common:action:edit'), row)
|
this.$refs['AddDICOMConfig'].openDialog('Edit Anonymization', row)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['AddDICOMConfig'].openDialog(this.$t('common:button:new'), {
|
this.$refs['AddDICOMConfig'].openDialog('New IncreaseFields', {
|
||||||
Group: '',
|
Group: '',
|
||||||
Element: '',
|
Element: '',
|
||||||
TagDescription: '',
|
TagDescription: '',
|
||||||
|
|
Loading…
Reference in New Issue