ocr同步成功提示
This commit is contained in:
@@ -229,7 +229,8 @@
|
|||||||
//下载
|
//下载
|
||||||
actionDown(val){
|
actionDown(val){
|
||||||
// console.log()
|
// console.log()
|
||||||
downloadFile('/sys/common/download', val.fileName, { id: val.id })
|
// downloadFile('/sys/common/download', val.fileName, { id: val.id })
|
||||||
|
downloadFile(val.docRealFile)
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
actionDelete(record){
|
actionDelete(record){
|
||||||
@@ -289,11 +290,12 @@
|
|||||||
}
|
}
|
||||||
postAction(`ocr/ocrRecord/syncToDocument`,params).then(res=>{
|
postAction(`ocr/ocrRecord/syncToDocument`,params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
this.$message.success(res.result)
|
this.$message.success(res.message)
|
||||||
this.toVisible=false
|
this.toVisible=false
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
//同步至文档库取消
|
//同步至文档库取消
|
||||||
handleCancelTo(){
|
handleCancelTo(){
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-table-footer">
|
<div class="doc-table-footer">
|
||||||
<a-button type="primary" class="btn-export" @click="tableExport">导入</a-button>
|
<a-button type="primary" class="btn-export" @click="tableExport">{{$t('import')}}</a-button>
|
||||||
<a-button type="primary" @click="onClose">取消</a-button>
|
<a-button type="primary" @click="onClose">{{$t('cancel')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -93,6 +93,8 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getSubscribtion()
|
||||||
|
this.loadData()
|
||||||
this.visible=this.subVisible
|
this.visible=this.subVisible
|
||||||
this.generateList(this.treeData)
|
this.generateList(this.treeData)
|
||||||
},
|
},
|
||||||
@@ -100,7 +102,15 @@
|
|||||||
//获取数据
|
//获取数据
|
||||||
loadData(){
|
loadData(){
|
||||||
let params = {}
|
let params = {}
|
||||||
getAction(``,params).then(res=> {
|
getAction(`sys/category/getSysCategoryTree`,params).then(res=> {
|
||||||
|
if(res.success){
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//获取用户的订阅
|
||||||
|
getSubscribtion(){
|
||||||
|
getAction(`domain/domainUserRel/queryList`,{}).then(res=> {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -111,7 +121,15 @@
|
|||||||
},
|
},
|
||||||
handleOk(e) {
|
handleOk(e) {
|
||||||
this.confirmLoading = true;
|
this.confirmLoading = true;
|
||||||
this.$emit('visible',false)
|
|
||||||
|
let params={
|
||||||
|
|
||||||
|
}
|
||||||
|
postAction(`domain/domainUserRel/insert`,params).then(res=>{
|
||||||
|
if(res.success){
|
||||||
|
this.$emit('visible',false)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleCancel(e) {
|
handleCancel(e) {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
title: '所属模块',
|
title: '所属模块',
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: 'isModel',
|
dataIndex: 'isModel_dictText',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,15 @@
|
|||||||
<a-button class="form-btn-reset" @click="reset">重置</a-button>
|
<a-button class="form-btn-reset" @click="reset">重置</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dic-list-module">
|
<div class="table-operator">
|
||||||
<a-button type="primary" class="dic-list-add" @click="dicAdd">{{$t('add')}}</a-button>
|
<div class="operator-text" @click="dicAdd">
|
||||||
|
<a-icon type="plus" />
|
||||||
|
{{$t('add')}}
|
||||||
|
</div>
|
||||||
|
<div class="operator-text" @click="batDelete">
|
||||||
|
<a-icon type="delete" />
|
||||||
|
{{$t('BatchDelete')}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dic-list-table">
|
<div class="dic-list-table">
|
||||||
<list-table v-if="dictVal=='list'&&dataFlag" :tableData="tableData" @editDict="editDict" @deleteDict="deleteDict" :total="total"></list-table>
|
<list-table v-if="dictVal=='list'&&dataFlag" :tableData="tableData" @editDict="editDict" @deleteDict="deleteDict" :total="total"></list-table>
|
||||||
@@ -192,7 +199,6 @@
|
|||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
let parentNode=[]
|
let parentNode=[]
|
||||||
this.tabletreeData=[...res.result]
|
this.tabletreeData=[...res.result]
|
||||||
|
|
||||||
let data = this.toTree(this.tabletreeData)
|
let data = this.toTree(this.tabletreeData)
|
||||||
this.tabletreeData=data
|
this.tabletreeData=data
|
||||||
this.dataFlag=true
|
this.dataFlag=true
|
||||||
@@ -263,6 +269,7 @@
|
|||||||
putAction(`sys/dictItem/edit`, params).then(res => {
|
putAction(`sys/dictItem/edit`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
this.form={}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.newVisible = false
|
this.newVisible = false
|
||||||
} else {
|
} else {
|
||||||
@@ -286,7 +293,16 @@
|
|||||||
sysDictId: this.record.id
|
sysDictId: this.record.id
|
||||||
}
|
}
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
|
putAction(`sys/category/edit`,params).then(res=>{
|
||||||
|
if(res.success){
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.form={}
|
||||||
|
this.loadData()
|
||||||
|
this.newVisible = false
|
||||||
|
}else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
//新增
|
//新增
|
||||||
postAction(`sys/category/add`, params).then(res => {
|
postAction(`sys/category/add`, params).then(res => {
|
||||||
@@ -313,7 +329,9 @@
|
|||||||
this.parentVisible=false
|
this.parentVisible=false
|
||||||
},
|
},
|
||||||
//树状编辑
|
//树状编辑
|
||||||
editTreeDict(val){
|
editTreeDict(val,form){
|
||||||
|
this.isEdit=true
|
||||||
|
this.form={...form}
|
||||||
this.newVisible=val
|
this.newVisible=val
|
||||||
this.parentVisible=true
|
this.parentVisible=true
|
||||||
},
|
},
|
||||||
@@ -327,12 +345,22 @@
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
//批量删除
|
||||||
|
batDelete(){
|
||||||
|
let params={
|
||||||
|
|
||||||
|
}
|
||||||
|
deleteAction(`sys/category/getChildListBatch`,params).then(res=>{
|
||||||
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
.dic-list{
|
.dic-list{
|
||||||
.dic-list-content{
|
.dic-list-content{
|
||||||
.dic-list-header{
|
.dic-list-header{
|
||||||
@@ -348,6 +376,9 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.dic-list-table{
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dict-module{
|
.dict-module{
|
||||||
@@ -362,4 +393,11 @@
|
|||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.dic-list{
|
||||||
|
.dic-list-content{
|
||||||
|
.table-operator{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '描述',
|
title: '描述',
|
||||||
dataIndex: 'describe',
|
dataIndex: 'description',
|
||||||
width: '30%',
|
width: '30%',
|
||||||
key: 'describe',
|
key: 'description',
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -65,7 +65,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
tabData:[],
|
tabData:[],
|
||||||
selectedRowKeys:[]
|
selectedRowKeys:[],
|
||||||
|
selected:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -121,7 +122,7 @@
|
|||||||
},
|
},
|
||||||
//编辑
|
//编辑
|
||||||
actionEdit(val){
|
actionEdit(val){
|
||||||
this.$emit('editDict',true)
|
this.$emit('editDict',true,val)
|
||||||
},
|
},
|
||||||
onSelectAll(selected) {
|
onSelectAll(selected) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
|
|||||||
Reference in New Issue
Block a user