修改文档库的中英文切换

This commit is contained in:
qq787203167
2022-03-01 14:24:34 +08:00
parent 40c13f8731
commit e214d98d16
12 changed files with 59 additions and 32 deletions
@@ -90,19 +90,19 @@
return {
OperationList: [
{
text: '取消收藏',
text: this.$t('CancelCollection'),
ClickEvent: 'Collection'
},
{
text: '取消订阅',
text: this.$t('CancelSubscribe'),
ClickEvent: 'subscribe'
},
{
text: '编辑',
text: this.$t('edit'),
ClickEvent: 'editTable'
},
{
text: '删除',
text: this.$t('deleteLib'),
ClickEvent: 'deleteTable'
}
],
@@ -146,7 +146,7 @@
let query = {
...this.$refs.searchRef.queryParam,
id: this.idList.join(','),
flag:'file'
flag: 'file'
}
downloadFile('document/bussDocumentLibraryEO/exportZip', '文档库.zip', query, this.Deselect)
},
@@ -163,7 +163,7 @@
if (this.idList.length > 0) {
let _this = this
this.$confirm({
content: '确认删除?',
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: _this.idList.join(',') }).then((res) => {
if (res.success) {
@@ -198,7 +198,7 @@
deleteTable(val) {
let _this = this
this.$confirm({
content: '确认删除?',
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
if (res.success) {
@@ -215,7 +215,7 @@
Collection(val) {
let _this = this
this.$confirm({
content: val.collectFlag == 0 || !val.collectFlag ? '确认收藏?' : '确定取消收藏?',
content: val.collectFlag == 0 || !val.collectFlag ? _this.$t('ConfirmCollection') : _this.$t('cancelConfirmCollection'),
onOk() {
let url = ''
if (val.collectFlag == 0 || !val.collectFlag) {
@@ -238,7 +238,7 @@
subscribe(val) {
let _this = this
this.$confirm({
content: val.subscribeFlag == 0 || !val.subscribeFlag ? '确认订阅?' : '确定取消订阅?',
content: val.subscribeFlag == 0 || !val.subscribeFlag ? _this.$t('ConfirmSubscribe') : _this.$t('cancelConfirmSubscribe'),
onOk() {
let url = ''
if (val.subscribeFlag == 0 || !val.subscribeFlag) {
@@ -59,14 +59,14 @@
this.visible = false
},
add() {
this.title = '新增'
this.title = this.$t('add')
this.visible = true
this.$nextTick(() => {
this.$refs.addFormDataRef.add()
})
},
edit(item) {
this.title = '编辑'
this.title = this.$t('edit')
this.visible = true
this.$nextTick(() => {
this.$refs.addFormDataRef.edit(item)