diff --git a/jero-web/src/views/documentManage/collection/index.vue b/jero-web/src/views/documentManage/collection/index.vue index 21feda519..5c09a4e35 100644 --- a/jero-web/src/views/documentManage/collection/index.vue +++ b/jero-web/src/views/documentManage/collection/index.vue @@ -4,6 +4,7 @@
+
@@ -42,6 +43,7 @@ +
diff --git a/jero-web/src/views/documentManage/tags/tabs/TagContent.vue b/jero-web/src/views/documentManage/tags/tabs/TagContent.vue index 2eda7c419..a33437abd 100644 --- a/jero-web/src/views/documentManage/tags/tabs/TagContent.vue +++ b/jero-web/src/views/documentManage/tags/tabs/TagContent.vue @@ -1,93 +1,101 @@ @@ -97,137 +105,136 @@ // import tabTable from './tabTable' import DicList from '../dialog/DicList' import Vue from 'vue' - import { UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types" + import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types' + export default { name: 'tagContent', - components:{ + components: { // tabTable, DicList }, - data(){ - return{ + data() { + return { title: this.$t('add'), - total:0, - queryParams:{ - pageNo:1, - pageSize:10 + total: 0, + queryParams: { + pageNo: 1, + pageSize: 10 }, - ids:[], - loading:false, + ids: [], + loading: false, selectedRowKeys: [], - contentVisible:false, - tableData:[], + contentVisible: false, + tableData: [], columns: [ { title: this.$t('LabelName'), dataIndex: 'dictName', key: 'dictName', - align: "center", + align: 'center', ellipsis: true, - width: 100, + width: 100 }, { title: this.$t('LabelType'), - align: "center", + align: 'center', width: 100, - dataIndex: 'attributeTypeName', + dataIndex: 'attributeTypeName' }, { title: this.$t('describe'), - align: "center", + align: 'center', dataIndex: 'description', ellipsis: true, - width:300 + width: 300 }, { title: this.$t('operation'), dataIndex: 'action', - scopedSlots: {customRender: 'action'}, - align: "center", + scopedSlots: { customRender: 'action' }, + align: 'center', width: 170 } ], - labelCol: { span:6 }, + labelCol: { span: 6 }, wrapperCol: { span: 16 }, - form:{}, - rules:{ - dictName:[{ required: true, message: this.$t('PleaseEnterLabelName'), trigger: 'change' }, - { min:1, max: 100, message: this.$t('cantExeed')+'100'+this.$t('characters'), trigger: 'blur' },], - attributeType:[ - { required: true, message: this.$t('PleaseSelectLabelType'), trigger: 'blur' }, + form: {}, + rules: { + dictName: [{ required: true, message: this.$t('PleaseEnterLabelName'), trigger: 'change' }, + { min: 1, max: 100, message: this.$t('cantExeed') + '100' + this.$t('characters'), trigger: 'blur' }], + attributeType: [ + { required: true, message: this.$t('PleaseSelectLabelType'), trigger: 'blur' } ], - description:[ - { min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' }, + description: [ + { min: 1, max: 200, message: this.$t('cantExeed') + '200' + this.$t('characters'), trigger: 'blur' } ] }, // typeVisible:{}, - dicVisible:false, - dictVal:'list', + dicVisible: false, + dictVal: 'list', record: {}, - isEdit:1, - flag:false, //表单提交标识 + isEdit: 1, + flag: false //表单提交标识 } }, - computed:{ - - }, + computed: {}, mounted() { - this.loadData(); + this.loadData() }, - methods:{ + methods: { //获取列表数据 - loadData(param){ - this.loading=true - let params={ + loadData(param) { + this.loading = true + let params = { ...this.queryParams, - isTagDict:1, + isTagDict: 1 } // sys/dict/tagDictPage // sys/dict/page - postAction(`sys/dict/tagDictPage`,params).then(res=>{ - if(res.success){ - this.total=res.result.total - this.tableData=[...res.result.records] + postAction(`sys/dict/tagDictPage`, params).then(res => { + if (res.success) { + this.total = res.result.total + this.tableData = [...res.result.records] } - }).finally(()=>{ - this.loading=false + }).finally(() => { + this.loading = false }) }, //查询 - searchQuery(){ - this.queryParams.pageNo=1 + searchQuery() { + this.queryParams.pageNo = 1 this.loadData() }, - searchReset(){ - this.queryParams={ - pageNo:1, + searchReset() { + this.queryParams = { + pageNo: 1, pageSize: 10 } this.loadData() }, - handleAdd(){ - this.title=this.$t('add') - this.isEdit=1 - this.contentVisible=true - this.form={} + handleAdd() { + this.title = this.$t('add') + this.isEdit = 1 + this.contentVisible = true + this.form = {} }, - hideModal(){ - let params={ - ...this.form, + hideModal() { + let params = { + ...this.form } - this.$refs.ruleForm.validate((valid)=>{ + this.$refs.ruleForm.validate((valid) => { // console.log('valide',valide) - if(valid){ + if (valid) { - if(!this.flag){ - this.flag=true - if(this.isEdit==1){ + if (!this.flag) { + this.flag = true + if (this.isEdit == 1) { - params.id='' - params.isTagDict=1 - params.isReadOnly=0 - postAction(`sys/dict/add`,params).then(res=> { + 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 @@ -244,26 +251,26 @@ } } - }).finally(()=>{ - this.flag=false - }) - }else if(this.isEdit==0){ - this.$delete(params,'isReadOnly') - this.$delete(params,'isTagDict') - // console.log('editparams',params) - putAction(`sys/dict/edit`,params).then(res=>{ - if(res.success){ - this.$message.success( this.$t('OperationSuccessful')) - this.reFresh() - this.loadData() - this.contentVisible=false - this.form={} - }else{ - this.$message.warning(this.$t('operationFailed')) - } - }).finally(()=>{ - this.flag=false - }) + }).finally(() => { + this.flag = false + }) + } else if (this.isEdit == 0) { + this.$delete(params, 'isReadOnly') + this.$delete(params, 'isTagDict') + // console.log('editparams',params) + putAction(`sys/dict/edit`, params).then(res => { + if (res.success) { + this.$message.success(this.$t('OperationSuccessful')) + this.reFresh() + this.loadData() + this.contentVisible = false + this.form = {} + } else { + this.$message.warning(this.$t('operationFailed')) + } + }).finally(() => { + this.flag = false + }) } } } @@ -271,7 +278,7 @@ }, //刷新缓存 - reFresh(){ + reFresh() { getAction('sys/dict/refleshCache').then((res) => { if (res.success) { //重新加载缓存 @@ -286,17 +293,17 @@ console.log('刷新失败', e) }) }, - cancelModel(){ - this.contentVisible=false - this.form={} + cancelModel() { + this.contentVisible = false + this.form = {} }, - onCellChange(){ + onCellChange() { }, //删除 - onDelete(val){ - let param={ - id:val.id + onDelete(val) { + let param = { + id: val.id } this.$confirm({ title: this.$t('ConfirmDelete'), @@ -307,12 +314,12 @@ if (res.success) { this.$message.success(this.$t('OperationSuccessful')) this.reFresh() - if(this.tableData&&this.tableData.length==1&&this.queryParams.pageNo!=1){ - 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')); + } else { + this.$message.warning(this.$t('operationFailed')) } }) } @@ -320,16 +327,16 @@ }, onSelectChange(selectedRowKeys) { // console.log('selectedRowKeys changed: ', selectedRowKeys); - this.selectedRowKeys = selectedRowKeys; - this.ids = this.selectedRowKeys; - console.log('selRows',selectedRowKeys) + this.selectedRowKeys = selectedRowKeys + this.ids = this.selectedRowKeys + console.log('selRows', selectedRowKeys) }, //批量删除 - batDelete(){ - let params={ - ids:this.ids.join(',') + batDelete() { + let params = { + ids: this.ids.join(',') } - if(this.ids&&this.ids.length>0){ + if (this.ids && this.ids.length > 0) { this.$confirm({ title: this.$t('ConfirmDelete'), content: '', @@ -339,46 +346,45 @@ if (res.success) { this.$message.success(this.$t('OperationSuccessful')) this.reFresh() - this.selectedRowKeys=[] - if(this.ids.length==this.tableData.length&&this.queryParams.pageNo!=1){ - this.queryParams.pageNo=this.queryParams.pageNo-1 + this.selectedRowKeys = [] + if (this.ids.length == this.tableData.length && this.queryParams.pageNo != 1) { + this.queryParams.pageNo = this.queryParams.pageNo - 1 } this.loadData() - // postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal - // `,{}).then(res=>{ - // }) - }else{ + // postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal + // `,{}).then(res=>{ + // }) + } else { this.$message.warning(this.$t('operationFailed')) } }) } }) - } - else{ + } else { this.$message.warning(this.$t('selectLeastOne')) } }, //编辑 - actionEdit(val){ - this.title=this.$t('edit') - this.isEdit=0 - this.form={...val} - this.contentVisible=true + actionEdit(val) { + this.title = this.$t('edit') + this.isEdit = 0 + this.form = { ...val } + this.contentVisible = true }, //字典配置 - handleDicPop(record){ - this.record=record - if(record.attributeType=='1'){ + handleDicPop(record) { + this.record = record + if (record.attributeType == '1') { // console.log('attribu',record.attributeType,record.attributeType=='1') // this.typeVisible[record.id]=false - this.dictVal='list' - this.dicVisible=true + this.dictVal = 'list' + this.dicVisible = true - }else if(record.attributeType=='2'){ + } else if (record.attributeType == '2') { // this.typeVisible[record.id]=false - this.dictVal='tree' - this.dicVisible=true + this.dictVal = 'tree' + this.dicVisible = true } }, afterDicVisibleChange(val) { @@ -387,69 +393,107 @@ }, //字典列表关闭 onDicClose() { - this.dicVisible = false; + this.dicVisible = false }, //点击页数 - onChangePage(page,pageSize){ - console.log('page',page) + onChangePage(page, pageSize) { + console.log('page', page) this.queryParams.pageNo = page this.loadData() }, //一页显示条数 - SizeChange(page,pageSize){ + SizeChange(page, pageSize) { this.queryParams.pageSize = pageSize - this.queryParams.pageNo=1 + this.queryParams.pageNo = 1 this.loadData() - }, + } } } - + \ No newline at end of file diff --git a/jero-web/src/views/documentManage/tags/tabs/TagItem.vue b/jero-web/src/views/documentManage/tags/tabs/TagItem.vue index fcd00fd36..de4062fdb 100644 --- a/jero-web/src/views/documentManage/tags/tabs/TagItem.vue +++ b/jero-web/src/views/documentManage/tags/tabs/TagItem.vue @@ -1,256 +1,279 @@ \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index 2abd5697d..bcac01a40 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -1,34 +1,36 @@