| | |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="loading" |
| | | :permission="permissionList" |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | |
| | | <el-button icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.search" |
| | | type="primary" @click="searchHandler">查 询 |
| | | </el-button> |
| | | <advanced-query :options="options" :visible.sync="findvisible" |
| | |
| | | <el-button icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.delBtn" |
| | | type="danger" @click="deleteHandler">删 除 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.editBtn" |
| | | type="success" @click="editHandler">修 改 |
| | | </el-button> |
| | | <el-button icon="el-icon-refresh-right" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.breakBtn" |
| | | type="primary" @click="onLoad">刷 新 |
| | | </el-button> |
| | | </template> |
| | |
| | | |
| | | <script> |
| | | import {getList, add, editSave, deleteData} from "@/api/code/codeMatch"; |
| | | |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | name: "Match", |
| | | data() { |
| | |
| | | created() { |
| | | this.onLoad() |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["permission"]), |
| | | permissionList(){ |
| | | return{ |
| | | search:this.vaildData(this.permission.match.math_search,false), |
| | | delBtn:this.vaildData(this.permission.match.math_delete,false), |
| | | addBtn:this.vaildData(this.permission.match.math_add,false), |
| | | editBtn:this.vaildData(this.permission.match.math_edit,false), |
| | | breakBtn:this.vaildData(this.permission.match.math_break,false), |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | searchHandler() { |
| | | this.findvisible = true; |
| | |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.plCodeKeyattrrepeat_delete" |
| | | v-if="permissionList.delBtn" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | // addBtn: this.vaildData(this.permission.plCodeKeyattrrepeat_add, false), |
| | | // viewBtn: this.vaildData(this.permission.plCodeKeyattrrepeat_view, false), |
| | | // delBtn: this.vaildData(this.permission.plCodeKeyattrrepeat_delete, false), |
| | | // editBtn: this.vaildData(this.permission.plCodeKeyattrrepeat_edit, false) |
| | | addBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_add, false), |
| | | viewBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_view, false), |
| | | delBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_delete, false), |
| | | editBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_edit, false), |
| | | searchBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_search, false), |
| | | emptyBtn: this.vaildData(this.permission.codeKeyAttrRepeat.plCodeKeyattrrepeat_search, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud ref="crud" v-model="form" :cell-style="cellStyle" :data="data" :option="option" :page.sync="page" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @row-click="rowClick"> |
| | | <template slot="menu" slot-scope="{row,index}"> |
| | | <el-button v-if="permission.info.info_edit" :disabled="row.usedFlag === 'true' ? false :true" |
| | | <el-button v-if="permissionList.edit" :disabled="row.usedFlag === 'true' ? false :true" |
| | | icon="el-icon-edit" size="small" |
| | | type="text" |
| | | @click="updateSave(row,index)">编辑 |
| | | </el-button> |
| | | <el-button v-if="permission.info.info_delete" icon="el-icon-delete" size="small" type="text" |
| | | <el-button v-if="permissionList.delete" icon="el-icon-delete" size="small" type="text" |
| | | @click="deleteSave(row,index)">删除 |
| | | </el-button> |
| | | <span v-if="permission.info.info_enable"> |
| | | <span v-if="permissionList.enable"> |
| | | |
| | | <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" |
| | | type="text" @click="ENABLE(row,index)">启用 |
| | | </el-button> |
| | | </span> |
| | | <span v-if="permission.info.info_stop"> |
| | | <span v-if="permissionList.stop"> |
| | | <el-button v-if="row.usedFlag !== 'false' && row.usedFlag !== ''" icon="el-icon-finished" |
| | | size="small" |
| | | type="text" @click="DISABLE(row, index)">停用 |
| | |
| | | </span> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="permission.info.info_add" icon="el-icon-plus" size="small" type="primary" @click="addSave"> |
| | | <el-button v-if="permissionList.add" icon="el-icon-plus" size="small" type="primary" |
| | | @click="addSave"> |
| | | 新 增 |
| | | </el-button> |
| | | <el-button v-if="permission.info.info_sync" icon="el-icon-share" size="small" @click="PUSH">同 步 |
| | | <el-button v-if="permissionList.sync" icon="el-icon-share" size="small" @click="PUSH">同 步 |
| | | </el-button> |
| | | <el-button v-if="permission.info.info_query" icon="el-icon-search" size="small" @click="openAdvancedQuery">查 |
| | | <el-button v-if="permissionList.query" icon="el-icon-search" size="small" |
| | | @click="openAdvancedQuery">查 |
| | | 询 |
| | | </el-button> |
| | | </template> |
| | |
| | | export default { |
| | | name: "info", |
| | | components: {infoForm}, |
| | | |
| | | data() { |
| | | return { |
| | | //接口类型下拉 |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | |
| | | permissionList(){ |
| | | return{ |
| | | sync:this.vaildData(this.permission.info.info_sync,false), |
| | | add:this.vaildData(this.permission.info.info_add,false), |
| | | query:this.vaildData(this.permission.info.info_query,false), |
| | | edit:this.vaildData(this.permission.info.info_edit,false), |
| | | delete:this.vaildData(this.permission.info.info_delete,false), |
| | | enable:this.vaildData(this.permission.info.info_enable,false), |
| | | stop:this.vaildData(this.permission.info.info_stop,false), |
| | | } |
| | | }, |
| | | oids() { |
| | | let oids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-refresh-right" |
| | | v-if="permission.task.task_sendPush" |
| | | v-if="permissionList.sendPush" |
| | | @click="handleSend" >手动推送 |
| | | </el-button> |
| | | <div style="float: right;margin-left: 10px"> |
| | |
| | | calcHeight: 0, |
| | | columnBtn:false, |
| | | tip: false, |
| | | addBtn:false, |
| | | searchShow: false, |
| | | searchShowBtn:false, |
| | | // searchMenuSpan: 6, |
| | |
| | | ...mapGetters([ "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: false, |
| | | viewBtn: false, |
| | | delBtn: false, |
| | | editBtn: false |
| | | sendPush: this.vaildData(this.permission.task.task_sendPush, false), |
| | | }; |
| | | }, |
| | | oids() { |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" :permission="permissionList" |
| | | ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset" |
| | | @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList" |
| | | @selection-change="selectionChange" @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">集团申请状态 |
| | | <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus" v-if="permissionList.status">集团申请状态 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <script> |
| | | import { getList, queryApplyStat } from '@/api/integration/application.js' |
| | | import { dateFormat } from '@/util/date.js' |
| | | import {mapGetters} from 'vuex' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | searchParam: {}, |
| | | stateParam: {}, |
| | | option: { |
| | | height: "auto", |
| | | tip:false, |
| | | index: true, |
| | | border: true, |
| | | addBtn: false, |
| | | columnBtn: false, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '申请单号', |
| | | prop: 'id', |
| | | width: 300, |
| | | fixed: true, |
| | | search: true, |
| | | }, { |
| | | label: '集团码', |
| | | width: 200, |
| | | prop: 'groupCode', |
| | | search: true, |
| | | }, { |
| | | label: '操作类型', |
| | | width: 200, |
| | | prop: 'operationType', |
| | | type: 'select', |
| | | search: true, |
| | | dicData: [{ |
| | | label: '申请', |
| | | value: 1 |
| | | }, { |
| | | label: '更改', |
| | | value: 2 |
| | | }] |
| | | }, { |
| | | label: '申请单数据信息', |
| | | width: 300, |
| | | prop: 'description' |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | width: 200, |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '更改时间', |
| | | width: 200, |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | | prop: 'code' |
| | | }, |
| | | { |
| | | label: '返回信息', |
| | | width: 300, |
| | | prop: 'content' |
| | | }, |
| | | { |
| | | label: '消息信息', |
| | | width: 300, |
| | | prop: 'msg' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["permission"]), |
| | | permissionList(){ |
| | | return{ |
| | | searchBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false), |
| | | emptyBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false), |
| | | status:this.vaildData(this.permission.applicationForm.applicationForm_status,false) |
| | | } |
| | | }, |
| | | option(){ |
| | | return{ |
| | | height: "auto", |
| | | tip:false, |
| | | index: true, |
| | | border: true, |
| | | addBtn: false, |
| | | columnBtn: false, |
| | | searchBtn:this.permissionList.searchBtn, |
| | | emptyBtn:this.permissionList.emptyBtn, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '申请单号', |
| | | prop: 'id', |
| | | width: 300, |
| | | fixed: true, |
| | | search: true, |
| | | }, { |
| | | label: '集团码', |
| | | width: 200, |
| | | prop: 'groupCode', |
| | | search: true, |
| | | }, { |
| | | label: '操作类型', |
| | | width: 200, |
| | | prop: 'operationType', |
| | | type: 'select', |
| | | search: true, |
| | | dicData: [{ |
| | | label: '申请', |
| | | value: 1 |
| | | }, { |
| | | label: '更改', |
| | | value: 2 |
| | | }] |
| | | }, { |
| | | label: '申请单数据信息', |
| | | width: 300, |
| | | prop: 'description' |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | width: 200, |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '更改时间', |
| | | width: 200, |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | | prop: 'code' |
| | | }, |
| | | { |
| | | label: '返回信息', |
| | | width: 300, |
| | | prop: 'content' |
| | | }, |
| | | { |
| | | label: '消息信息', |
| | | width: 300, |
| | | prop: 'msg' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | async handleStatus() { |
| | | const { oids } = this.stateParam |
| | |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | let name = this.props.label |
| | | let key = this.props.key |
| | | let data = this.data.map(item => { |
| | | let objitem = { disabled: false, ...item } |
| | | if (this.disabledData.length !== 0) { |
| | | this.disabledData.forEach(element => { |
| | | if (objitem[name] === element) objitem.disabled = true |
| | | }); |
| | | } |
| | | return objitem |
| | | }) |
| | | if(this.data){ |
| | | let data = this.data.map(item => { |
| | | let objitem = { disabled: false, ...item } |
| | | if (this.disabledData.length !== 0) { |
| | | this.disabledData.forEach(element => { |
| | | if (objitem[name] === element) objitem.disabled = true |
| | | }); |
| | | } |
| | | return objitem |
| | | }) |
| | | return |
| | | } |
| | | return data.map(item => { |
| | | let pinYin = pinyin.getFullChars(item[this.props.label]) |
| | | let renPing = pinyin.getCamelChars(item[this.props.label]) |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" :data="data" :option="option" :page.sync="page" :search.sync="search" :table-loading="loading" |
| | | <avue-crud ref="crud" :data="data" :option="option" :page.sync="page" :permission="permissionList" :search.sync="search" |
| | | :table-loading="loading" |
| | | @on-load="getDataList" @row-save="handleSave" @row-del="handleDelete" @row-update="handleEdit" |
| | | @refresh-change="handleRefresh" @size-change="handleSizePage" @current-change="handleCurrentPage" |
| | | @selection-change="selectionChange" @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <!-- <el-button icon="el-icon-search" size="small" type="primary" @click="handleStatus">查 询 |
| | | </el-button> --> |
| | | <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds" v-if="this.permission.systemInfo.systemInfo_remove">删 除 |
| | | <el-button v-if="permissionList.delBtn" icon="el-icon-delete" size="small" type="danger" |
| | | @click="handleDeleteByIds">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot="search" slot-scope="{row,size}"> |
| | |
| | | :size="size" clearable style="width:300px;margin-left: 10px;" |
| | | @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> |
| | | </template> |
| | | <template #menu="{row,index,size}" v-if="this.permission.systemInfo.systemInfo_empower"> |
| | | <template v-if="permissionList.empower" #menu="{row,index,size}"> |
| | | <el-button icon="el-icon-menu" size="small" type="text" @click="classifyHandler(row)">分类授权</el-button> |
| | | </template> |
| | | |
| | |
| | | batchAddSave |
| | | } from '@/api/integration/sysInfo.js' |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | option(){ |
| | | return{ |
| | | height: "auto", |
| | | tip: false, |
| | | border: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | index: true, |
| | | searchMenuSpan: 8, |
| | | addBtn:this.permission.systemInfo.systemInfo_add, |
| | | editBtn:this.permission.systemInfo.systemInfo_edit, |
| | | delBtn:this.permission.systemInfo.systemInfo_remove, |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | defaultSort: { |
| | | prop: 'id,name', |
| | | order: 'descending' |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.systemInfo.systemInfo_add, false), |
| | | editBtn: this.vaildData(this.permission.systemInfo.systemInfo_edit, false), |
| | | delBtn: this.vaildData(this.permission.systemInfo.systemInfo_remove, false), |
| | | empower: this.vaildData(this.permission.systemInfo.systemInfo_empower, false), |
| | | } |
| | | }, |
| | | option() { |
| | | return { |
| | | height: "auto", |
| | | tip: false, |
| | | border: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | index: true, |
| | | searchMenuSpan: 8, |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | defaultSort: { |
| | | prop: 'id,name', |
| | | order: 'descending' |
| | | }, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统编号不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统名称不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统编号不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统名称不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, |
| | | { |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | type: 'textarea' |
| | | } |
| | | ] |
| | | { |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | type: 'textarea' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //重置 |
| | | resetting(){ |
| | | resetting() { |
| | | this.$refs.tree.setCheckedKeys([]) |
| | | // console.log(this.ParentList) |
| | | }, |
| | | empower() { |
| | | batchAddSave(this.checkAll.oid, this.checkAll.id, this.ParentList).then(res => { |
| | | // console.log(res.data) |
| | | if(res.data.code === 200){ |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg) |
| | | this.dialogVisible=false; |
| | | this.dialogVisible = false; |
| | | } |
| | | }) |
| | | }, |
| | |
| | | sysInfoTree({systemOid: row.oid, systemId: row.id}).then(res => { |
| | | let List = []; |
| | | let value = 0; |
| | | let NumberList= []; |
| | | let NumberList = []; |
| | | |
| | | function traverse(obj, parent) { |
| | | //重新构建一次选中当前row的数据 |
| | | const record = { |
| | | label: obj.text, |
| | | oid: obj.oid, |
| | | attributes:{ |
| | | attributes: { |
| | | classifyId: obj.attributes.classifyId, |
| | | classifyOid: obj.attributes.classifyOid, |
| | | selected:obj.attributes.selected |
| | | selected: obj.attributes.selected |
| | | }, |
| | | classParentOid: obj.parentId, |
| | | value: value, |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | for (let item of res.data) { |
| | | traverse(item, null); |
| | | } |