Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
97d48207
Commit
97d48207
authored
Dec 29, 2022
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理后台国际化翻译 / 运营管理国际化
parent
17766dc0
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10737 additions
and
10175 deletions
+10737
-10175
en_US.json
src/i18n/languages/en_US.json
+66
-3
index.vue
src/views/ecw/banner/index.vue
+51
-51
index.vue
src/views/ecw/bannerPop/index.vue
+41
-41
index.vue
src/views/system/helpDoc/index.vue
+37
-37
index.vue
src/views/system/internalHelpDoc/index.vue
+36
-36
index.vue
src/views/system/needKnow/index.vue
+43
-43
index.vue
src/views/system/notice/index.vue
+39
-39
yarn.lock
yarn.lock
+10424
-9925
No files found.
src/i18n/languages/en_US.json
View file @
97d48207
...
@@ -2173,6 +2173,69 @@
...
@@ -2173,6 +2173,69 @@
"是否确认删除昵称为{nickname}的会员?"
:
"Are you sure to delete the member whose nickname is {nickname}?"
,
"是否确认删除昵称为{nickname}的会员?"
:
"Are you sure to delete the member whose nickname is {nickname}?"
,
"取消删除"
:
"Cancel Delete"
,
"取消删除"
:
"Cancel Delete"
,
"重货标准(CBM)"
:
"Heavy cargo standard (CBM)"
,
"重货标准(CBM)"
:
"Heavy cargo standard (CBM)"
,
"应收可能出现多个币种的情况,多个币种没法计算整个收款单的核销比例,所以增加一个中间币种,如果应收只有一个币种就使用应收币种,如果有多个币种就以美元为核销基准币种"
:
""
,
"应收可能出现多个币种的情况,多个币种没法计算整个收款单的核销比例,所以增加一个中间币种,如果应收只有一个币种就使用应收币种,如果有多个币种就以美元为核销基准币种"
:
""
,
"实收币种与核销基准币种一样时,无需填写汇率,不一样需要填写汇率"
:
""
"实收币种与核销基准币种一样时,无需填写汇率,不一样需要填写汇率"
:
""
,
}
"WEB端图片"
:
""
,
"APP端图片"
:
""
,
"WEB端广告图片(建议尺寸"
:
""
,
"请上传WEB端广告图片"
:
""
,
"APP端广告图片(建议尺寸"
:
""
,
"请上传APP端广告图片"
:
""
,
"web端广告图片不能为空"
:
""
,
"app端广告图片不能为空"
:
""
,
"禁用"
:
""
,
"添加广告设置"
:
""
,
"修改广告设置"
:
""
,
"是否确认删除广告设置编号为"
:
""
,
"是否确认导出所有广告设置数据项?"
:
""
,
"有效期开始时间"
:
""
,
"请输入有效期开始时间"
:
""
,
"有效期结束时间"
:
""
,
"请输入有效期结束时间"
:
""
,
"弹窗标题"
:
""
,
"弹窗时间"
:
""
,
"网页中文"
:
""
,
"网页英文"
:
""
,
"开始时间不能大于结束时间"
:
""
,
"结束时间不能小于开始时间"
:
""
,
"添加广告弹窗"
:
""
,
"修改广告弹窗"
:
""
,
"是否确认删除广告弹窗编号为"
:
""
,
"是否确认导出所有广告弹窗数据项?"
:
""
,
"已核销比例\\n(已核销基准币种总金额/应收总金额)"
:
""
,
"是否要删除昵称为"
:
""
,
"的会员"
:
""
,
"请输入标题中文"
:
""
,
"请输入标题英文"
:
""
,
"内容中文"
:
""
,
"内容英语"
:
""
,
"添加帮助文档"
:
""
,
"修改帮助文档"
:
""
,
"是否确认删除帮助文档编号为"
:
""
,
"是否确认导出所有帮助文档数据项?"
:
""
,
"请输入内容中文"
:
""
,
"请输入内容英语"
:
""
,
"添加对内帮助文档"
:
""
,
"修改对内帮助文档"
:
""
,
"是否确认删除对内帮助文档编号为"
:
""
,
"是否确认导出所有对内帮助文档数据项?"
:
""
,
"须知类型"
:
""
,
"请选择须知类型"
:
""
,
"添加须知"
:
""
,
"修改须知"
:
""
,
"是否确认删除须知编号为"
:
""
,
"是否确认导出所有须知数据项?"
:
""
,
"公告标题"
:
""
,
"请输入公告标题"
:
""
,
"操作人员"
:
""
,
"请输入操作人员"
:
""
,
"公告类型"
:
""
,
"有效日期"
:
""
,
"创建者"
:
""
,
"内容英文"
:
""
,
"公告标题不能为空"
:
""
,
"公告类型不能为空"
:
""
,
"添加公告"
:
""
,
"修改公告"
:
""
,
"是否确认删除公告编号为"
:
""
}
\ No newline at end of file
src/views/ecw/banner/index.vue
View file @
97d48207
This diff is collapsed.
Click to expand it.
src/views/ecw/bannerPop/index.vue
View file @
97d48207
This diff is collapsed.
Click to expand it.
src/views/system/helpDoc/index.vue
View file @
97d48207
...
@@ -3,26 +3,26 @@
...
@@ -3,26 +3,26 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"标题中文
"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('标题中文')
"
prop=
"titleZh"
>
<el-input
v-model=
"queryParams.titleZh"
placeholder=
"请输入标题中文
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.titleZh"
:placeholder=
"$t('请输入标题中文')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标题英文
"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('标题英文')
"
prop=
"titleEn"
>
<el-input
v-model=
"queryParams.titleEn"
placeholder=
"请输入标题英文
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.titleEn"
:placeholder=
"$t('请输入标题英文')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态
"
prop=
"status"
>
<el-form-item
:label=
"$t('状态')
"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择
"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.status"
:placeholder=
"$t('请选择')
"
clearable
size=
"small"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)"
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间
"
>
<el-form-item
:label=
"$t('创建时间')
"
>
<el-date-picker
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
<el-date-picker
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期
"
/>
type=
"daterange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')
"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:help-doc:create']"
>
新增
</el-button>
v-hasPermi=
"['system:help-doc:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['system:help-doc:export']"
>
导出
</el-button>
v-hasPermi=
"['system:help-doc:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -42,26 +42,26 @@
...
@@ -42,26 +42,26 @@
<!-- 列表 -->
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
""
align=
"center"
prop=
"id"
/>
<el-table-column
label=
""
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"标题中文
"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
:label=
"$t('标题中文')
"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"标题英文
"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
:label=
"$t('标题英文')
"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
label=
"内容中文
"
align=
"center"
prop=
"contentZh"
/>
<el-table-column
:label=
"$t('内容中文')
"
align=
"center"
prop=
"contentZh"
/>
<el-table-column
label=
"内容英语
"
align=
"center"
prop=
"contentEn"
/>
<el-table-column
:label=
"$t('内容英语')
"
align=
"center"
prop=
"contentEn"
/>
<el-table-column
label=
"状态
"
align=
"center"
prop=
"status"
>
<el-table-column
:label=
"$t('状态')
"
align=
"center"
prop=
"status"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.HELP_DOC_STATUS"
:value=
"scope.row.status"
/>
<dict-tag
:type=
"DICT_TYPE.HELP_DOC_STATUS"
:value=
"scope.row.status"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间
"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')
"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作
"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
:label=
"$t('操作')
"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:help-doc:update']"
>
修改
</el-button>
v-hasPermi=
"['system:help-doc:update']"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:help-doc:delete']"
>
删除
</el-button>
v-hasPermi=
"['system:help-doc:delete']"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -72,19 +72,19 @@
...
@@ -72,19 +72,19 @@
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"标题中文
"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('标题中文')
"
prop=
"titleZh"
>
<el-input
v-model=
"form.titleZh"
placeholder=
"请输入标题中文
"
/>
<el-input
v-model=
"form.titleZh"
:placeholder=
"$t('请输入标题中文')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标题英文
"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('标题英文')
"
prop=
"titleEn"
>
<el-input
v-model=
"form.titleEn"
placeholder=
"请输入标题英文
"
/>
<el-input
v-model=
"form.titleEn"
:placeholder=
"$t('请输入标题英文')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"内容中文
"
prop=
"contentZh"
>
<el-form-item
:label=
"$t('内容中文')
"
prop=
"contentZh"
>
<editor
v-model=
"form.contentZh"
:min-height=
"192"
/>
<editor
v-model=
"form.contentZh"
:min-height=
"192"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"内容英语
"
prop=
"contentEn"
>
<el-form-item
:label=
"$t('内容英语')
"
prop=
"contentEn"
>
<editor
v-model=
"form.contentEn"
:min-height=
"192"
/>
<editor
v-model=
"form.contentEn"
:min-height=
"192"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态
"
prop=
"status"
>
<el-form-item
:label=
"$t('状态')
"
prop=
"status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)"
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)"
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{dict.label}}
</el-radio>
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{dict.label}}
</el-radio>
...
@@ -92,8 +92,8 @@
...
@@ -92,8 +92,8 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{$t('确 定')}}
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
{{$t('取 消')}}
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -190,7 +190,7 @@ export default {
...
@@ -190,7 +190,7 @@ export default {
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
();
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
添加帮助文档
"
;
this
.
title
=
this
.
$t
(
"
添加帮助文档
"
)
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
...
@@ -199,7 +199,7 @@ export default {
...
@@ -199,7 +199,7 @@ export default {
getHelpDoc
(
id
).
then
(
response
=>
{
getHelpDoc
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
修改帮助文档
"
;
this
.
title
=
this
.
$t
(
"
修改帮助文档
"
)
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -211,7 +211,7 @@ export default {
...
@@ -211,7 +211,7 @@ export default {
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateHelpDoc
(
this
.
form
).
then
(
response
=>
{
updateHelpDoc
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -219,7 +219,7 @@ export default {
...
@@ -219,7 +219,7 @@ export default {
}
}
// 添加的提交
// 添加的提交
createHelpDoc
(
this
.
form
).
then
(
response
=>
{
createHelpDoc
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -228,11 +228,11 @@ export default {
...
@@ -228,11 +228,11 @@ export default {
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
id
=
row
.
id
;
const
id
=
row
.
id
;
this
.
$modal
.
confirm
(
'
是否确认删除帮助文档编号为"
'
+
id
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除帮助文档编号为"
'
)
+
id
+
this
.
$t
(
'
"的数据项?
'
)
).
then
(
function
()
{
return
deleteHelpDoc
(
id
);
return
deleteHelpDoc
(
id
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
删除成功
"
)
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
...
@@ -243,7 +243,7 @@ export default {
...
@@ -243,7 +243,7 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
'
是否确认导出所有帮助文档数据项?
'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有帮助文档数据项?
'
)
).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportHelpDocExcel
(
params
);
return
exportHelpDocExcel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
...
...
src/views/system/internalHelpDoc/index.vue
View file @
97d48207
...
@@ -3,25 +3,25 @@
...
@@ -3,25 +3,25 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"标题中文
"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('标题中文')
"
prop=
"titleZh"
>
<el-input
v-model=
"queryParams.titleZh"
placeholder=
"请输入标题中文
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.titleZh"
:placeholder=
"$t('请输入标题中文')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标题英文
"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('标题英文')
"
prop=
"titleEn"
>
<el-input
v-model=
"queryParams.titleEn"
placeholder=
"请输入标题英文
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.titleEn"
:placeholder=
"$t('请输入标题英文')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态
"
prop=
"status"
>
<el-form-item
:label=
"$t('状态')
"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择
"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.status"
:placeholder=
"$t('请选择')
"
clearable
size=
"small"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间
"
>
<el-form-item
:label=
"$t('创建时间')
"
>
<el-date-picker
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
<el-date-picker
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-
placeholder=
"开始日期"
end-placeholder=
"结束日期
"
/>
type=
"daterange"
range-separator=
"-"
start-
:placeholder=
"$t('开始日期')"
end-:placeholder=
"$t('结束日期')
"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -29,11 +29,11 @@
...
@@ -29,11 +29,11 @@
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:internal-help-doc:create']"
>
新增
</el-button>
v-hasPermi=
"['system:internal-help-doc:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['system:internal-help-doc:export']"
>
导出
</el-button>
v-hasPermi=
"['system:internal-help-doc:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -41,22 +41,22 @@
...
@@ -41,22 +41,22 @@
<!-- 列表 -->
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
""
align=
"center"
prop=
"id"
/>
<el-table-column
label=
""
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"标题中文
"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
:label=
"$t('标题中文')
"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"标题英文
"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
:label=
"$t('标题英文')
"
align=
"center"
prop=
"titleEn"
/>
<!--
<el-table-column
label=
"内容中文
"
align=
"center"
prop=
"contentZh"
/>
-->
<!--
<el-table-column
:label=
"$t('内容中文')
"
align=
"center"
prop=
"contentZh"
/>
-->
<!--
<el-table-column
label=
"内容英语
"
align=
"center"
prop=
"contentEn"
/>
-->
<!--
<el-table-column
:label=
"$t('内容英语')
"
align=
"center"
prop=
"contentEn"
/>
-->
<el-table-column
label=
"状态
"
align=
"center"
prop=
"status"
/>
<el-table-column
:label=
"$t('状态')
"
align=
"center"
prop=
"status"
/>
<el-table-column
label=
"创建时间
"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')
"
align=
"center"
prop=
"createTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作
"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
:label=
"$t('操作')
"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:internal-help-doc:update']"
>
修改
</el-button>
v-hasPermi=
"['system:internal-help-doc:update']"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:internal-help-doc:delete']"
>
删除
</el-button>
v-hasPermi=
"['system:internal-help-doc:delete']"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -67,17 +67,17 @@
...
@@ -67,17 +67,17 @@
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"60%"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"60%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"标题中文
"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('标题中文')
"
prop=
"titleZh"
>
<el-input
v-model=
"form.titleZh"
placeholder=
"请输入标题中文
"
/>
<el-input
v-model=
"form.titleZh"
:placeholder=
"$t('请输入标题中文')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标题英文
"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('标题英文')
"
prop=
"titleEn"
>
<el-input
v-model=
"form.titleEn"
placeholder=
"请输入标题英文
"
/>
<el-input
v-model=
"form.titleEn"
:placeholder=
"$t('请输入标题英文')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"内容中文
"
prop=
"contentZh"
>
<el-form-item
:label=
"$t('内容中文')
"
prop=
"contentZh"
>
<editor
v-model=
"form.contentZh"
placeholder=
"请输入内容中文
"
/>
<editor
v-model=
"form.contentZh"
:placeholder=
"$t('请输入内容中文')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"内容英语
"
prop=
"contentEn"
>
<el-form-item
:label=
"$t('内容英语')
"
prop=
"contentEn"
>
<editor
v-model=
"form.contentEn"
placeholder=
"请输入内容英语
"
/>
<editor
v-model=
"form.contentEn"
:placeholder=
"$t('请输入内容英语')
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"0-启用,1-停用"
prop=
"status"
>
<el-form-item
label=
"0-启用,1-停用"
prop=
"status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio-group
v-model=
"form.status"
>
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
();
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
添加对内帮助文档
"
;
this
.
title
=
this
.
$t
(
"
添加对内帮助文档
"
)
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
getInternalHelpDoc
(
id
).
then
(
response
=>
{
getInternalHelpDoc
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
修改对内帮助文档
"
;
this
.
title
=
this
.
$t
(
"
修改对内帮助文档
"
)
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateInternalHelpDoc
(
this
.
form
).
then
(
response
=>
{
updateInternalHelpDoc
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -214,7 +214,7 @@ export default {
...
@@ -214,7 +214,7 @@ export default {
}
}
// 添加的提交
// 添加的提交
createInternalHelpDoc
(
this
.
form
).
then
(
response
=>
{
createInternalHelpDoc
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -223,11 +223,11 @@ export default {
...
@@ -223,11 +223,11 @@ export default {
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
id
=
row
.
id
;
const
id
=
row
.
id
;
this
.
$modal
.
confirm
(
'
是否确认删除对内帮助文档编号为"
'
+
id
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除对内帮助文档编号为"
'
)
+
id
+
this
.
$t
(
'
"的数据项?
'
)
).
then
(
function
()
{
return
deleteInternalHelpDoc
(
id
);
return
deleteInternalHelpDoc
(
id
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
删除成功
"
)
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
...
@@ -238,7 +238,7 @@ export default {
...
@@ -238,7 +238,7 @@ export default {
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
// 执行导出
this
.
$modal
.
confirm
(
'
是否确认导出所有对内帮助文档数据项?
'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有对内帮助文档数据项?
'
)
).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportInternalHelpDocExcel
(
params
);
return
exportInternalHelpDocExcel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
...
...
src/views/system/needKnow/index.vue
View file @
97d48207
This diff is collapsed.
Click to expand it.
src/views/system/notice/index.vue
View file @
97d48207
This diff is collapsed.
Click to expand it.
yarn.lock
View file @
97d48207
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment