| | |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | eventList:{ |
| | | type:Array |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | eventFlag:{}, |
| | | TreeValueForm:'', |
| | | updateIndex: 0, |
| | | form: {}, |
| | |
| | | slotColumnList: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | | mounted() { |
| | | this.handleResize(); |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | computed: { |
| | | localTrendsSpan() { |
| | | if (this.trendsSpan) { |
| | |
| | | methods: { |
| | | // 渲染表单模板 |
| | | templateRender(formItemList,TreeValue) { |
| | | if (this.eventList) { |
| | | this.eventFlag= this.eventList.some(item => { |
| | | if (item.classifyInvokeEditFlag === 'true') { |
| | | console.log('even', item); |
| | | this.eventObject = item; |
| | | return true; |
| | | } |
| | | }); |
| | | // console.log('add',add) |
| | | } |
| | | // 无需分组数据 |
| | | let column = []; |
| | | let group = []; |
| | |
| | | let value='' |
| | | formItemList.forEach((formItem) => { |
| | | formItem = this.resetFormConfig(formItem); |
| | | console.log(formItem) |
| | | // console.log('formItem.dicData.value',formItem.dicData) |
| | | if (formItem.type === "line") { |
| | | group.push({ |
| | |
| | | format: formItem.dateFormate, |
| | | keyAttr: formItem.keyAttr, |
| | | value: (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || |
| | | (formItem.secType == "codedatesec"?formItem.codeDateValue: null) || ( TreeValue&& formItem.secType == "codelevelsec" ? TreeValue : null), |
| | | (formItem.secType == "codedatesec"?formItem.codeDateValue: null) || ( TreeValue&& formItem.secType == "codelevelsec" ? TreeValue : null) , |
| | | placeholder: formItem.inputTip, |
| | | comboxKey: formItem.comboxKey, |
| | | tip: formItem.tooltips, |
| | |
| | | :type="type" |
| | | :TreeValue="TreeValue" |
| | | :rowOid="rowOid" |
| | | :eventList="eventList" |
| | | :templateOid="templateOid" |
| | | v-if="dialogVisible" |
| | | ref="FormTemplate" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | eventList:[], |
| | | //码值的第二种只读隐藏情况 |
| | | codeValueApplyStatus:'', |
| | | loading: false, |
| | |
| | | this.$refs.FormTemplate.templateRender( |
| | | res.data.formDefineVO.items |
| | | ); |
| | | this.eventList=res.data.templateVO.attributes |
| | | // this.$refs.FormTemplate.$emit('eventList', res.data.templateVO.attributes); |
| | | if (Object.keys(this.setForm).length > 0) { |
| | | this.$refs.FormTemplate.form = this.setForm; |
| | | } |
| | |
| | | }, |
| | | Treedata: { |
| | | type: Array |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | <el-option label="数据查询" value="queryData"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 集成任务 是否推送成功 集成数据 是否分解任务--> |
| | | <!-- 集成任务 是否推送成功 |
| | | 集成数据 是否分解任务--> |
| | | <el-form-item v-if="((status.type == 'task' || status.type == 'data')&& status.stateTaskDataFlag)" size="small"> |
| | | <el-select v-model="formInline.stateTask" placeholder="请选择状态"> |
| | | <el-option label="是" value="true"></el-option> |
| | |
| | | // 报表设计器地址(cloud端口为8108,boot端口为80) |
| | | reportUrl: 'http://localhost:8108/ureport', |
| | | // 单点登录系统认证(ubcs-auth服务的地) |
| | | ssoUrl:'', |
| | | // 单点登录回调地址(Saber服务的地址) |
| | | redirectUri: 'http://localhost:1888', |
| | | } |
| | |
| | | </h4> |
| | | <userLogin v-if="activeName==='user'"></userLogin> |
| | | <thirdLogin v-else-if="activeName==='third'"></thirdLogin> |
| | | |
| | | <div class="login-menu"> |
| | | <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> |
| | | <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>--> |
| | | <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> |
| | | <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | crudOption:{...optionRule}, |
| | | ruleForm: {}, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | // 编码规则快速查询 |
| | | // 编码规则快速查询searchChange |
| | | searchChange(params, done) { |
| | | this.page.currentPage = 1; |
| | | // 多个conditionMap这样传参,快速查询默认采用模糊查询 |
| | |
| | | } |
| | | this.query = requestData; |
| | | this.onLoad(this.page, this.query); |
| | | // console.log( this.findObject(this.optionRule.column,'id')) |
| | | // console.log(this.crudOption.column[0]) |
| | | // this.crudOption.column && this.crudOption.column.length > 0 |
| | | // ? (this.crudOption.column[0].value = '') |
| | | // : null; |
| | | done(); |
| | | }, |
| | | /** 编码规则当前选中行变化的时候触发*/ |
| | |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)">编辑</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave(row,index)">删除</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" type="primary" icon="el-icon-plus" @click="addSave">新 增 |
| | | </el-button> |
| | | <el-button size="small" plain type="primary" icon="el-icon-zoom-in" @click="applyRangeOpen">查看使用范围 |
| | |
| | | <template> |
| | | <div> |
| | | <el-row :gutter="20"> |
| | | <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="4" v-for="item in listMyTask"> |
| | | <div class="box" :style="item.style" @click="goto(item)"> |
| | | {{item.name}} |
| | | <div><avue-count-up class="value" :end="item.count"></avue-count-up></div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <avue-data-box :option="option" :animation="true"></avue-data-box> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | data(){ |
| | | return { |
| | | countByServer:true, |
| | | listMyTask:[] |
| | | // listMyTask:[] |
| | | option: { |
| | | span:6, |
| | | data: [ |
| | | { |
| | | click: this.handleItemAClick, |
| | | title: '物品主数据', |
| | | count: 0, |
| | | icon: 'iconfont iconicon_doc', |
| | | color: 'rgb(49, 180, 141)', |
| | | uiUrl: "/MasterData/items?id=wupin@name=物品主数据", |
| | | countUrl:'priceIndexController/countNeedConfirmPlan' |
| | | }, |
| | | { |
| | | click: this.handleItemBClick, |
| | | title: '人员主数据', |
| | | count: 0, |
| | | icon: 'iconfont iconicon_dispose', |
| | | color: 'rgb(56, 161, 242)', |
| | | uiUrl:'/MasterData/items?id=renyuan@@name=人员主数据', |
| | | countUrl:'priceIndexController/countPricingPlan' |
| | | }, |
| | | { |
| | | click: this.handleItemCClick, |
| | | title: '主题库定义', |
| | | count: 0, |
| | | icon: 'el-icon-setting', |
| | | color: 'rgb(117, 56, 199)', |
| | | uiUrl:'/modeling/classifyTree', |
| | | countUrl:'priceIndexController/countNeedFeedbackPlan' |
| | | }, |
| | | { |
| | | click: this.handleItemDClick, |
| | | title: '供应商主数据', |
| | | count: 0, |
| | | icon: 'iconfont iconicon_work', |
| | | color: 'rgb(255, 102, 51)', |
| | | uiUrl:'/MasterData/items?id=gongyingshang@@name=供应商主数据', |
| | | countUrl:'priceIndexController/countMyUnCreatePricePlan' |
| | | }, |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getList(); |
| | | }, |
| | | computed(){ |
| | | |
| | | }, |
| | | methods: { |
| | | handleItemAClick() { |
| | | this.$router.push({ path: "/MasterData/items?id=wupin@name=物品主数据"} ); |
| | | }, |
| | | handleItemBClick() { |
| | | this.$router.push({ path: '/MasterData/items?id=renyuan@@name=人员主数据'} ); |
| | | }, |
| | | handleItemCClick() { |
| | | this.$router.push({ path: '/modeling/classifyTree'} ); |
| | | }, |
| | | handleItemDClick() { |
| | | this.$router.push({ path: '/MasterData/items?id=gongyingshang@@name=供应商主数据'} ); |
| | | }, |
| | | getList() { |
| | | let data = [{ |
| | | "backgroundColor": "#FF5722", |
| | | "btmname": "hometask", |
| | | "countUrl": "priceIndexController/countNeedConfirmPlan", |
| | | "name": "物品主数据", |
| | | "nameOid": "", |
| | | "oid": "34aebfde-eb11-4555-87eb-0a779be9aad0", |
| | | "uiUrl": "/MasterData/items?id=wupin@name=物品主数据", |
| | | }, { |
| | | "backgroundColor": "#5FB878", |
| | | "btmname": "hometask", |
| | | "countUrl": "priceIndexController/countPricingPlan", |
| | | "name": "人员主数据", |
| | | "nameOid": "2C72EA23-8AA5-E5FC-9BC1-DE4AD182EF7B", |
| | | "oid": "6256ae79-7765-4c66-afc7-f12fad350065", |
| | | "uiUrl": "/MasterData/items?id=renyuan@@name=人员主数据", |
| | | },{ |
| | | "backgroundColor": "#1E9FFF", |
| | | "btmname": "hometask", |
| | | "countUrl": "priceIndexController/countNeedFeedbackPlan", |
| | | "name": "主题库定义", |
| | | "nameOid": "2536978C-CD1B-5B56-6529-A8C3456B5260", |
| | | "oid": "3043cdf1-8479-4c2a-9eab-fc35e9f9d5a7", |
| | | "uiUrl": "/modeling/classifyTree", |
| | | }, |
| | | { |
| | | "backgroundColor": "#FF5722", |
| | | "btmname": "hometask", |
| | | "countUrl": "priceIndexController/countMyUnCreatePricePlan", |
| | | "name": "供应商主数据", |
| | | "nameOid": "", |
| | | "oid": "529634e7-1854-4f61-b911-a91e3c406757", |
| | | "uiUrl": "/MasterData/items?id=gongyingshang@@name=供应商主数据", |
| | | }] |
| | | this.listMyTask = data.map(record => { |
| | | record.style=record.style || '' |
| | | if(record.backgroundColor!=''){ |
| | | record.style = 'background-color:'+record.backgroundColor; |
| | | } |
| | | record.count=record.count || 0; |
| | | if(!this.countByServer){ |
| | | //是前端查询 |
| | | getList(record.countUrl,{}).then(res=>{ |
| | | if(res.data.data.success){ |
| | | record.count=res.data.data.obj; |
| | | }else{ |
| | | record.count=0 |
| | | Object.values(this.option.data).map(record => { |
| | | record.count = record.count || 0; |
| | | if (!this.countByServer) { |
| | | // 是前端查询 |
| | | getList(record.countUrl, {}).then(res => { |
| | | if (res.data.data.success) { |
| | | record.count = res.data.data.obj; |
| | | } else { |
| | | record.count = 0; |
| | | } |
| | | }) |
| | | |
| | | }); |
| | | } |
| | | return { |
| | | ...record |
| | | } |
| | | }) |
| | | }; |
| | | }); |
| | | }, |
| | | goto(item){ |
| | | this.$router.push({ path: item.uiUrl }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .el-col{margin-bottom: 0} |
| | | .box{ |
| | | text-align: center; |
| | | background: rgb(235, 238, 245); |
| | | color: #303133; |
| | | height: 70px; |
| | | margin: 10px 0!important; |
| | | padding: 15px 10px; |
| | | position: relative; |
| | | border-radius: 4px; |
| | | box-sizing: border-box; |
| | | font-size: 14px; |
| | | } |
| | | .value{ |
| | | font-size: 12px; |
| | | opacity: .69; |
| | | line-height: 20px; |
| | | margin-top: 5px; |
| | | display: block; |
| | | } |
| | | |
| | | </style> |