拆分列表
This commit is contained in:
@@ -77,6 +77,9 @@
|
|||||||
import SplitText from './modules/SplitText'
|
import SplitText from './modules/SplitText'
|
||||||
import ImportResult from './modules/ImportResult'
|
import ImportResult from './modules/ImportResult'
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||||
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
|
import axios from 'axios'
|
||||||
|
import Vue from 'vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'splitting',
|
name: 'splitting',
|
||||||
@@ -92,46 +95,37 @@
|
|||||||
loading:false,
|
loading:false,
|
||||||
total:0,
|
total:0,
|
||||||
ids:[],
|
ids:[],
|
||||||
tableData:[
|
tableData:[],
|
||||||
{
|
|
||||||
dbFieldTxt_dictText:'11111',
|
|
||||||
dbFieldEnName_dictText:'aaaaa',
|
|
||||||
fieldShowType_dictText:'345435435',
|
|
||||||
dbLength_dictText:'et435344354',
|
|
||||||
orderNum_dictText:'dfgdrgd',
|
|
||||||
showAreaName:'sdfsdfsd',
|
|
||||||
}
|
|
||||||
],
|
|
||||||
columns:[
|
columns:[
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'dbFieldTxt_dictText',
|
dataIndex: 'serialNumber',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'dbFieldEnName_dictText',
|
dataIndex: 'title',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('TextStatus'),
|
title: this.$t('TextStatus'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'fieldShowType_dictText',
|
dataIndex: 'fileType_dictText',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('fileName'),
|
title: this.$t('fileName'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'dbLength_dictText'
|
dataIndex: 'fileName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('splitTime'),
|
title: this.$t('splitTime'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'orderNum_dictText'
|
dataIndex: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('splitResult'),
|
title: this.$t('splitResult'),
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'showAreaName'
|
dataIndex: 'splitResult_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -144,7 +138,9 @@
|
|||||||
queryParams:{
|
queryParams:{
|
||||||
pageNo:1,
|
pageNo:1,
|
||||||
pageSize:10
|
pageSize:10
|
||||||
}
|
},
|
||||||
|
token:Vue.ls.get(ACCESS_TOKEN),
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
@@ -163,7 +159,7 @@
|
|||||||
let params={
|
let params={
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}
|
}
|
||||||
getAction(``,params).then(res=>{
|
getAction(`split/sarFileSplitInfo/page`,params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
this.tableData=[...res.result.records]
|
this.tableData=[...res.result.records]
|
||||||
this.loading=false
|
this.loading=false
|
||||||
@@ -193,12 +189,28 @@
|
|||||||
content: '',
|
content: '',
|
||||||
onOk:
|
onOk:
|
||||||
async () => {
|
async () => {
|
||||||
deleteAction(``, params).then(res => {
|
axios({
|
||||||
if (res.success) {
|
url: '/jero-boot/split/sarFileSplitInfo/deleteBatch',
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
transformRequest: [function (data) {
|
||||||
|
let ret = ''
|
||||||
|
for (let it in data) {
|
||||||
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}],
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'X-Access-Token':this.token
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.data.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
if(this.selectedRowKeys&&this.selectedRowKeys.length==this.tableData.length){
|
if(this.selectedRowKeys&&this.selectedRowKeys.length==this.tableData.length){
|
||||||
this.queryParams.pageNo=this.queryParams.pageNo-1
|
this.queryParams.pageNo=this.queryParams.pageNo-1
|
||||||
}
|
}
|
||||||
|
this.selectedRowKeys=[]
|
||||||
this.loadData()
|
this.loadData()
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
@@ -216,19 +228,21 @@
|
|||||||
deleteDetail(val){
|
deleteDetail(val){
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: this.$t('confirmDeletion'),
|
content: this.$t('confirmDeletion'),
|
||||||
onOk() {
|
onOk:
|
||||||
deleteAction(``, { id: val.id }).then((res) => {
|
async () => {
|
||||||
if (res.success) {
|
getAction(`split/sarFileSplitInfo/delete`, { id: val.id }).then((res) => {
|
||||||
this.$message.success(res.message)
|
if (res.success) {
|
||||||
if(this.tableData&&this.tableData.length==1&&this.queryParams.pageNo!=1){
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.queryParams.pageNo=this.queryParams.pageNo-1
|
if (this.tableData && this.tableData.length == 1 && this.queryParams.pageNo != 1) {
|
||||||
|
this.queryParams.pageNo = this.queryParams.pageNo - 1
|
||||||
|
}
|
||||||
|
this.loadData()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
this.loadData()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
sVisible(val){
|
sVisible(val){
|
||||||
|
|||||||
@@ -173,7 +173,8 @@
|
|||||||
{ required: true, message: this.$t('enterSortingNumber'), trigger: 'change' },
|
{ required: true, message: this.$t('enterSortingNumber'), trigger: 'change' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
areaTable:[]
|
areaTable:[],
|
||||||
|
flag:false, //表单提交标识
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
@@ -184,6 +185,7 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
loadData(){
|
loadData(){
|
||||||
|
this.loading=true
|
||||||
let params={
|
let params={
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}
|
}
|
||||||
@@ -192,6 +194,8 @@
|
|||||||
this.areaTable=[...res.result.records]
|
this.areaTable=[...res.result.records]
|
||||||
this.total=res.result.total
|
this.total=res.result.total
|
||||||
}
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.loading=false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSelectChange(selectedRowKeys) {
|
onSelectChange(selectedRowKeys) {
|
||||||
@@ -209,6 +213,7 @@
|
|||||||
hideModal() {
|
hideModal() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.flag=true
|
||||||
//编辑
|
//编辑
|
||||||
if(this.form.id){
|
if(this.form.id){
|
||||||
putAction(`tag/onlCgformArea/edit`,this.form).then((res)=>{
|
putAction(`tag/onlCgformArea/edit`,this.form).then((res)=>{
|
||||||
@@ -224,7 +229,9 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
});
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
//新增
|
//新增
|
||||||
postAction(`/tag/onlCgformArea/add`,this.form).then(res=>{
|
postAction(`/tag/onlCgformArea/add`,this.form).then(res=>{
|
||||||
@@ -242,7 +249,9 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
this.newVisible = false;
|
this.newVisible = false;
|
||||||
} else {
|
} else {
|
||||||
@@ -263,7 +272,7 @@
|
|||||||
content: '',
|
content: '',
|
||||||
onOk:
|
onOk:
|
||||||
async () => {
|
async () => {
|
||||||
deleteAction(`tag/onlCgformArea/delete`, { id: val }).then((res) => {
|
getAction(`tag/onlCgformArea/delete`, { id: val }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'));
|
this.$message.success(this.$t('OperationSuccessful'));
|
||||||
if(this.areaTable.length==1&&this.queryParams.pageNo!=1){
|
if(this.areaTable.length==1&&this.queryParams.pageNo!=1){
|
||||||
|
|||||||
@@ -54,18 +54,6 @@
|
|||||||
{{item.name}}
|
{{item.name}}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<!-- <a-tree-select-->
|
|
||||||
<!-- v-model="pid"-->
|
|
||||||
<!-- style="width: 100%"-->
|
|
||||||
<!-- :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"-->
|
|
||||||
<!-- :tree-data="treeData"-->
|
|
||||||
<!-- placeholder="请选择父级名称"-->
|
|
||||||
<!-- tree-default-expand-all-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- <span v-if="key === '0-0-1'" slot="title" slot-scope="{ key, value }">-->
|
|
||||||
<!-- Child Node1 {{ value }}-->
|
|
||||||
<!-- </span>-->
|
|
||||||
<!-- </a-tree-select>-->
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item :label="$t('describe')" prop="description">
|
<a-form-model-item :label="$t('describe')" prop="description">
|
||||||
<a-input v-model="form.description" :placeholder="$t('PleaseEnterDescription')" />
|
<a-input v-model="form.description" :placeholder="$t('PleaseEnterDescription')" />
|
||||||
@@ -139,7 +127,8 @@
|
|||||||
selectedIds:[], //树形选中的id
|
selectedIds:[], //树形选中的id
|
||||||
parentData:[],
|
parentData:[],
|
||||||
editPId:'',
|
editPId:'',
|
||||||
tabletreeDataSource:[]
|
tabletreeDataSource:[],
|
||||||
|
flag:false, //提交表单标识
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -151,6 +140,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
@@ -190,11 +180,12 @@
|
|||||||
postAction(`sys/category/queryPageList`,{
|
postAction(`sys/category/queryPageList`,{
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
// name:this.queryParams.itemText,
|
// name:this.queryParams.itemText,
|
||||||
id:this.record.id,
|
sysDictId:this.record.id,
|
||||||
isTagDict:1
|
isTagDict:1
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
let parentNode=[]
|
let parentNode=[]
|
||||||
this.tabletreeDataSource=[...res.result]
|
this.tabletreeDataSource=[...res.result]
|
||||||
|
this.total=res.result.total
|
||||||
let data = this.toTree(this.tabletreeDataSource)
|
let data = this.toTree(this.tabletreeDataSource)
|
||||||
this.tabletreeData=data
|
this.tabletreeData=data
|
||||||
this.parentData=this.getParents
|
this.parentData=this.getParents
|
||||||
@@ -261,66 +252,78 @@
|
|||||||
hideModal(){
|
hideModal(){
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if(this.dictVal=='list') {
|
if(!this.flag) {
|
||||||
let params = {
|
this.flag = true
|
||||||
...this.form,
|
|
||||||
dictId: this.record.id
|
if (this.dictVal == 'list') {
|
||||||
}
|
let params = {
|
||||||
if (this.isEdit) {
|
...this.form,
|
||||||
putAction(`sys/dictItem/edit`, params).then(res => {
|
dictId: this.record.id
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
this.reFresh()
|
|
||||||
this.form = {}
|
|
||||||
this.loadData()
|
|
||||||
this.newVisible = false
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
|
||||||
}
|
}
|
||||||
})
|
if (this.isEdit) {
|
||||||
} else {
|
putAction(`sys/dictItem/edit`, params).then(res => {
|
||||||
postAction(`sys/dictItem/add`, params).then(res => {
|
if (res.success) {
|
||||||
if (res.success) {
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.reFresh()
|
||||||
this.reFresh()
|
this.form = {}
|
||||||
this.form = {}
|
this.loadData()
|
||||||
this.loadData()
|
this.newVisible = false
|
||||||
this.newVisible = false
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
postAction(`sys/dictItem/add`, params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.reFresh()
|
||||||
|
this.form = {}
|
||||||
|
this.loadData()
|
||||||
|
this.newVisible = false
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
} else if (this.dictVal == 'tree') {
|
||||||
}
|
let params = {
|
||||||
} else if (this.dictVal == 'tree') {
|
...this.form,
|
||||||
let params = {
|
sysDictId: this.record.id
|
||||||
...this.form,
|
}
|
||||||
sysDictId: this.record.id
|
if (this.isEdit) {
|
||||||
}
|
putAction(`sys/category/edit`, params).then(res => {
|
||||||
if (this.isEdit) {
|
if (res.success) {
|
||||||
putAction(`sys/category/edit`, params).then(res => {
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
if (res.success) {
|
this.form = {}
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.loadData()
|
||||||
this.form = {}
|
this.newVisible = false
|
||||||
this.loadData()
|
} else {
|
||||||
this.newVisible = false
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
//新增
|
||||||
|
postAction(`sys/category/add`, params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.form = {}
|
||||||
|
this.loadData()
|
||||||
|
this.newVisible = false
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
} else {
|
|
||||||
//新增
|
|
||||||
postAction(`sys/category/add`, params).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
this.form = {}
|
|
||||||
this.loadData()
|
|
||||||
this.newVisible = false
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <a-spin :spinning="confirmLoading">-->
|
<a-spin :spinning="confirmLoading">
|
||||||
<!-- <j-form-container :disabled="formDisabled">-->
|
<!-- <j-form-container :disabled="formDisabled">-->
|
||||||
<div class="form-tag">
|
<div class="form-tag">
|
||||||
<a-form>
|
<a-form>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- </j-form-container>-->
|
<!-- </j-form-container>-->
|
||||||
<!-- </a-spin>-->
|
</a-spin>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
import { validateDuplicateValue } from '@/utils/util'
|
import { validateDuplicateValue } from '@/utils/util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'OnlCgformTagForm',
|
name: 'TagForm',
|
||||||
components: {
|
components: {
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
contentOption2:[],
|
contentOption2:[],
|
||||||
isTagContent:false,
|
isTagContent:false,
|
||||||
isSearch:true,
|
isSearch:true,
|
||||||
|
flag:false, //表单提交标识
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@@ -349,49 +349,52 @@
|
|||||||
this.$refs.tagEditForm.validate((valid)=>{
|
this.$refs.tagEditForm.validate((valid)=>{
|
||||||
// console.log('valid',valid)
|
// console.log('valid',valid)
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.confirmLoading = true;
|
if(!this.flag){
|
||||||
let httpurl = '';
|
this.flag=true
|
||||||
let method = '';
|
this.confirmLoading = true;
|
||||||
// console.log('this.editId',this.editId)
|
let httpurl = '';
|
||||||
if(this.submitEdit=='add'){
|
let method = '';
|
||||||
httpurl+=this.url.add;
|
// console.log('this.editId',this.editId)
|
||||||
method = 'post';
|
if(this.submitEdit=='add'){
|
||||||
this.form.id=''
|
httpurl+=this.url.add;
|
||||||
this.form.isReadOnly=0
|
method = 'post';
|
||||||
}else if(this.submitEdit=='edit'){
|
this.form.id=''
|
||||||
httpurl+=this.url.edit;
|
this.form.isReadOnly=0
|
||||||
method = 'put';
|
}else if(this.submitEdit=='edit'){
|
||||||
this.form.id=this.editId
|
httpurl+=this.url.edit;
|
||||||
|
method = 'put';
|
||||||
|
this.form.id=this.editId
|
||||||
|
|
||||||
|
}
|
||||||
|
this.form.dbIsKey='0'
|
||||||
|
this.form.dbIsNull='1'
|
||||||
|
this.form.dbPointLength='0'
|
||||||
|
this.form.isShowForm='1'
|
||||||
|
this.form.dbFieldName=this.form.dbFieldTxt
|
||||||
|
this.contentOption.forEach(item=>{
|
||||||
|
if(item.id==this.form.dictId){
|
||||||
|
// console.log('11111')
|
||||||
|
this.form.dictField=item.dictCode
|
||||||
|
this.form.dictText=item.dictName
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// console.log('form',this.form)
|
||||||
|
httpAction(httpurl,this.form,method).then((res)=>{
|
||||||
|
if(res.success){
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'));
|
||||||
|
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
||||||
|
`,{}).then(res=>{
|
||||||
|
})
|
||||||
|
this.$emit('ok',false);
|
||||||
|
}else{
|
||||||
|
this.$message.warning(this.$t('operationFailed'));
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.confirmLoading = false;
|
||||||
|
this.flag=false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
this.form.dbIsKey='0'
|
|
||||||
this.form.dbIsNull='1'
|
|
||||||
this.form.dbPointLength='0'
|
|
||||||
this.form.isShowForm='1'
|
|
||||||
this.form.dbFieldName=this.form.dbFieldTxt
|
|
||||||
this.contentOption.forEach(item=>{
|
|
||||||
if(item.id==this.form.dictId){
|
|
||||||
// console.log('11111')
|
|
||||||
this.form.dictField=item.dictCode
|
|
||||||
this.form.dictText=item.dictName
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// console.log('form',this.form)
|
|
||||||
httpAction(httpurl,this.form,method).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'));
|
|
||||||
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
|
||||||
`,{}).then(res=>{
|
|
||||||
})
|
|
||||||
this.$emit('ok',false);
|
|
||||||
}else{
|
|
||||||
this.$message.warning(this.$t('operationFailed'));
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
this.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
popupCallback(row){
|
popupCallback(row){
|
||||||
@@ -408,7 +411,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleChange(value) {
|
handleChange(value) {
|
||||||
console.log(`selected ${value}`);
|
// console.log(`selected ${value}`);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,18 +16,18 @@
|
|||||||
<a class="action-delete" href="javascript:;" @click="onDelete(record)">{{$t('delete')}}</a>
|
<a class="action-delete" href="javascript:;" @click="onDelete(record)">{{$t('delete')}}</a>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- <div class="page" v-if="tabData.length > 0">-->
|
<div class="page" v-if="tabData.length > 0">
|
||||||
<!-- <a-pagination-->
|
<a-pagination
|
||||||
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||||
<!-- show-quick-jumper-->
|
show-quick-jumper
|
||||||
<!-- show-size-changer-->
|
show-size-changer
|
||||||
<!-- :current="queryParams.pageNo"-->
|
:current="queryParams.pageNo"
|
||||||
<!-- :page-size.sync="queryParams.pageSize"-->
|
:page-size.sync="queryParams.pageSize"
|
||||||
<!-- :total="total"-->
|
:total="total"
|
||||||
<!-- @change="onChangePage"-->
|
@change="onChangePage"
|
||||||
<!-- @showSizeChange="SizeChange"-->
|
@showSizeChange="SizeChange"
|
||||||
<!-- />-->
|
/>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -38,7 +38,8 @@
|
|||||||
name: 'treeTable',
|
name: 'treeTable',
|
||||||
props:{
|
props:{
|
||||||
tabletreeData:Array,
|
tabletreeData:Array,
|
||||||
record:Object
|
record:Object,
|
||||||
|
total:String
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a class="action-edit" @click="editVisible(record.id)" v-if="record.isReadOnly==0" v-has="'tag:edit'">{{$t('edit')}}</a>
|
<a class="action-edit" @click="editVisible(record.id)" v-if="record.isReadOnly==0" v-has="'tag:edit'">{{$t('edit')}}</a>
|
||||||
<a class="table-del" v-if="record.isReadOnly==2||record.isReadOnly==0" @click="deleteVisible(record.id)" v-has="'tag:delete'">{{$t('delete')}}</a>
|
<a class="table-del" v-if="record.isReadOnly==2||record.isReadOnly==0" @click="deleteVisible(record.id)" v-has="'tag:logicDelete'">{{ $t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" v-if="tableData.length > 0">
|
<div class="page" v-if="tableData.length > 0">
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
|
||||||
<a-table :data-source="tableData" rowKey="id" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :pagination="false" class="tag-con-table">
|
<a-table :data-source="tableData" rowKey="id" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :pagination="false" :loading="loading" class="tag-con-table">
|
||||||
|
|
||||||
<template slot="action" slot-scope="text, record">
|
<template slot="action" slot-scope="text, record">
|
||||||
<a class="action-dict" @click="handleDicPop(record)">{{$t('DictionaryConfiguration')}}</a>
|
<a class="action-dict" @click="handleDicPop(record)">{{$t('DictionaryConfiguration')}}</a>
|
||||||
@@ -87,7 +87,6 @@
|
|||||||
<dic-list :dictVal="dictVal" :record="record" v-if="dicVisible"></dic-list>
|
<dic-list :dictVal="dictVal" :record="record" v-if="dicVisible"></dic-list>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
<!-- <tab-table :tableData="tableData" :columns="columns"></tab-table>-->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -112,6 +111,7 @@
|
|||||||
pageSize:10
|
pageSize:10
|
||||||
},
|
},
|
||||||
ids:[],
|
ids:[],
|
||||||
|
loading:false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
contentVisible:false,
|
contentVisible:false,
|
||||||
tableData:[],
|
tableData:[],
|
||||||
@@ -164,6 +164,7 @@
|
|||||||
dictVal:'list',
|
dictVal:'list',
|
||||||
record: {},
|
record: {},
|
||||||
isEdit:1,
|
isEdit:1,
|
||||||
|
flag:false, //表单提交标识
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
@@ -175,6 +176,7 @@
|
|||||||
methods:{
|
methods:{
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
loadData(param){
|
loadData(param){
|
||||||
|
this.loading=true
|
||||||
let params={
|
let params={
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
isTagDict:1,
|
isTagDict:1,
|
||||||
@@ -186,6 +188,8 @@
|
|||||||
this.total=res.result.total
|
this.total=res.result.total
|
||||||
this.tableData=[...res.result.records]
|
this.tableData=[...res.result.records]
|
||||||
}
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.loading=false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查询
|
//查询
|
||||||
@@ -213,27 +217,33 @@
|
|||||||
this.$refs.ruleForm.validate((valid)=>{
|
this.$refs.ruleForm.validate((valid)=>{
|
||||||
// console.log('valide',valide)
|
// console.log('valide',valide)
|
||||||
if(valid){
|
if(valid){
|
||||||
if(this.isEdit==1){
|
|
||||||
params.id=''
|
|
||||||
params.isTagDict=1
|
|
||||||
params.isReadOnly=0
|
|
||||||
postAction(`sys/dict/add`,params).then(res=>{
|
|
||||||
if(res.success){
|
|
||||||
this.$message.success( this.$t('OperationSuccessful'))
|
|
||||||
this.reFresh()
|
|
||||||
this.loadData()
|
|
||||||
this.contentVisible=false
|
|
||||||
this.form={}
|
|
||||||
}else{
|
|
||||||
if(res.message='标签名称不能重复'){
|
|
||||||
this.$message.warning(this.$t('labelNameCannotDuplicate'))
|
|
||||||
|
|
||||||
}else{
|
if(!this.flag){
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.flag=true
|
||||||
|
if(this.isEdit==1){
|
||||||
|
|
||||||
|
params.id=''
|
||||||
|
params.isTagDict=1
|
||||||
|
params.isReadOnly=0
|
||||||
|
postAction(`sys/dict/add`,params).then(res=> {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.contentVisible = false
|
||||||
|
this.reFresh()
|
||||||
|
this.loadData()
|
||||||
|
this.form = {}
|
||||||
|
} else {
|
||||||
|
if (res.message = '标签名称不能重复') {
|
||||||
|
this.$message.warning(this.$t('labelNameCannotDuplicate'))
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
})
|
})
|
||||||
}else if(this.isEdit==0){
|
}else if(this.isEdit==0){
|
||||||
this.$delete(params,'isReadOnly')
|
this.$delete(params,'isReadOnly')
|
||||||
@@ -249,7 +259,10 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.flag=false
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -360,7 +373,7 @@
|
|||||||
this.dictVal='list'
|
this.dictVal='list'
|
||||||
this.dicVisible=true
|
this.dicVisible=true
|
||||||
|
|
||||||
}else{
|
}else if(record.attributeType=='2'){
|
||||||
// this.typeVisible[record.id]=false
|
// this.typeVisible[record.id]=false
|
||||||
this.dictVal='tree'
|
this.dictVal='tree'
|
||||||
this.dicVisible=true
|
this.dicVisible=true
|
||||||
|
|||||||
@@ -41,19 +41,21 @@
|
|||||||
<a-drawer class="show-drawer" :title="titleTag" placement="right" width="1000px" @close="close" :visible="drawerVisible" :after-visible-change="afterVisibleChange" >
|
<a-drawer class="show-drawer" :title="titleTag" placement="right" width="1000px" @close="close" :visible="drawerVisible" :after-visible-change="afterVisibleChange" >
|
||||||
|
|
||||||
<div class="new-tag-drawer">
|
<div class="new-tag-drawer">
|
||||||
<tag-form v-if="drawerVisible&&editFlag" ref="realForm" @ok="closeTag" :isTagContent="isTagContent" :editData="editData" :editId=editId :submitEdit="submitEdit" :disabled="disableSubmit" normal> </tag-form>
|
<a-spin :spinning="spinningDrawer" style="width: 100%;height:100%">
|
||||||
|
<tag-form v-if="drawerVisible&&editFlag" ref="realForm" @ok="closeTag" :isTagContent="isTagContent" :editData="editData" :editId=editId :submitEdit="submitEdit" :disabled="disableSubmit" normal> </tag-form>
|
||||||
|
|
||||||
<div class="drawer-footer" v-if="drawerVisible&&editFlag">
|
<div class="drawer-footer" v-if="drawerVisible&&editFlag">
|
||||||
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">{{$t('preservation')}}</a-button>
|
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">{{$t('preservation')}}</a-button>
|
||||||
<a-button @click="handleCancel" style="margin-bottom: 0;">{{$t('close')}}</a-button>
|
<a-button @click="handleCancel" style="margin-bottom: 0;">{{$t('close')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<a-modal class="show-area" v-model="areaVisible" :title="$t('ExhibitionAreaManagement')" :footer="null" @cancel="hideModal">
|
<a-modal class="show-area" v-model="areaVisible" :title="$t('ExhibitionAreaManagement')" :footer="null" @cancel="hideModal">
|
||||||
<area-manage v-if="areaVisible" @diaHide="diaHide" @submitOk="submitOk" @deleteOk="deleteOk" @updateOk="updateOk"></area-manage>
|
<area-manage v-if="areaVisible" @diaHide="diaHide" @submitOk="submitOk" @deleteOk="deleteOk" @updateOk="updateOk"></area-manage>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<div class="tag-doc-tab">
|
<div class="tag-doc-tab">
|
||||||
<a-spin :spinning="spinning" tip="Loading...">
|
<a-spin :spinning="spinning">
|
||||||
<a-tabs default-active-key="1" @change="callbackTab">
|
<a-tabs default-active-key="1" @change="callbackTab">
|
||||||
<a-tab-pane key="1" :tab="$t('DocumentLibrary')">
|
<a-tab-pane key="1" :tab="$t('DocumentLibrary')">
|
||||||
<tabTable v-if="spinning==false" :tableData="tableData" :columns="taglabColumns" :parm="queryParam" :selectedRowKey="selectedRowKey" @visibleEd="visibleEd" @visibleDelete="visibleDelete" @queryParams="queryParams" @selecteds="selecteds" :total="total"></tabTable>
|
<tabTable v-if="spinning==false" :tableData="tableData" :columns="taglabColumns" :parm="queryParam" :selectedRowKey="selectedRowKey" @visibleEd="visibleEd" @visibleDelete="visibleDelete" @queryParams="queryParams" @selecteds="selecteds" :total="total"></tabTable>
|
||||||
@@ -153,7 +155,9 @@
|
|||||||
type:'input',
|
type:'input',
|
||||||
ids:[],
|
ids:[],
|
||||||
disableSubmit:false,
|
disableSubmit:false,
|
||||||
selectedRowKey:[]
|
selectedRowKey:[],
|
||||||
|
spinningDrawer:false
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -208,9 +212,9 @@
|
|||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
isModel:1
|
isModel:1
|
||||||
}
|
}
|
||||||
console.log('params',params)
|
// console.log('params',params)
|
||||||
if(val==1){
|
if(val==1){
|
||||||
console.log('1')
|
// console.log('1')
|
||||||
params.isModel=1
|
params.isModel=1
|
||||||
}else if(val==0){
|
}else if(val==0){
|
||||||
params.isModel=0
|
params.isModel=0
|
||||||
@@ -267,11 +271,14 @@
|
|||||||
let params={
|
let params={
|
||||||
id:id,
|
id:id,
|
||||||
}
|
}
|
||||||
|
this.spinningDrawer=true
|
||||||
getAction(`tag/onlCgformTag/queryById`,params).then(res=>{
|
getAction(`tag/onlCgformTag/queryById`,params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
this.editData=res.result
|
this.editData=res.result
|
||||||
this.editFlag=true
|
this.editFlag=true
|
||||||
}
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.spinningDrawer=false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
|
|||||||
Reference in New Issue
Block a user