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