| | |
| | | 沈飞: 172.19.128.73 |
| | | |
| | | 本机: 127.0.0.1 |
| | | |
| | | 风华:10.103.1.7 |
| | | |
| | | 风华2:10.16.120.13 |
| | | 430:166.0.1.10 |
| | | |
| | |
| | | <!--<span>账户设置</span>--> |
| | | <!--</router-link>--> |
| | | <!--</a-menu-item>--> |
| | | <a-menu-item key="3" @click="systemSetting"> |
| | | <a-icon type="tool"/> |
| | | <span>系统设置</span> |
| | | </a-menu-item> |
| | | <!--<a-menu-item key="3" @click="systemSetting">--> |
| | | <!--<a-icon type="tool"/>--> |
| | | <!--<span>系统设置</span>--> |
| | | <!--</a-menu-item>--> |
| | | <a-menu-item key="4" @click="updatePassword"> |
| | | <a-icon type="setting"/> |
| | | <span>密码修改</span> |
| | |
| | | frozenBatch({ids: ids, status: status}).then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="部门分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled"> |
| | | <a-form-model-item v-if="isDepartType == 0" label="部门分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled"> |
| | | <j-select-equipment-depart :disabled="disableSubmit" v-model="model.selectedDeparts" :multi="false" @back="backDepartInfo" :backDepart="true" :treeOpera="true"></j-select-equipment-depart> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item v-if="isDepartType == 0" label="车间分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!productionDisabled" ref="selectedProduction" prop="selectedProduction"> |
| | | <!--<j-select-equipment-production v-decorator="['selectedProduction',{rules:[{required:true,message:'请选择车间!'}]}]" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production>--> |
| | | |
| | | |
| | | |
| | | <j-select-equipment-production :disabled="disableSubmit" v-model="model.selectedProduction" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production> |
| | | </a-form-model-item> |
| | | <a-form-model-item v-if="isDepartType == -1" label="设备类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-select :disabled="disableSubmit" :readOnly="disableSubmit" placeholder="请选择设备类型" |
| | | :triggerChange="true" |
| | |
| | | </a-select-option> |
| | | </a-select> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="车间分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!productionDisabled" ref="selectedProduction" prop="selectedProduction"> |
| | | <!--<j-select-equipment-production v-decorator="['selectedProduction',{rules:[{required:true,message:'请选择车间!'}]}]" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production>--> |
| | | |
| | | |
| | | |
| | | <j-select-equipment-production :disabled="disableSubmit" v-model="model.selectedProduction" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production> |
| | | </a-form-model-item> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | |
| | | obj.then((res)=>{ |
| | | if(res.success){ |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | x: 'left', |
| | | y: 'bottom', |
| | | x: '85%', |
| | | y: '50%', |
| | | data: ['开机时间', '关机时间'] |
| | | }, |
| | | calculable: true, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | color: function (params) { |
| | | let colorList = ['#849db8', '#6496e9']; |
| | | let colorList = [ '#6496e9','#849db8']; |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | label: { |
| | |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | x: 'left', |
| | | y: 'bottom', |
| | | x: '85%', |
| | | y: '50%', |
| | | data: ['运行时间', '待机时间'] |
| | | }, |
| | | calculable: true, |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("添加成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | |
| | | putAction(this.url.add, formData).then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success(res.message) |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | <template> |
| | | <div class="comparative_Bar" style="width: 100%;height: 700px;display: flex;flex-direction: column;overflow: scroll"> |
| | | <div class="comparative_Bar" style="width: 100%;height: 900px;display: flex;flex-direction: column;overflow: scroll"> |
| | | <div id="compAnalBar1" style="flex: 1;"></div> |
| | | <div id="compAnalBar2" style="flex: 1;"></div> |
| | | </div> |
| | |
| | | textStyle: { |
| | | color: '#90979c' |
| | | }, |
| | | color: ['#6496e9', '#4fe1c5'], |
| | | data: ['开机率', '利用率'] |
| | | }, |
| | | toolbox: { |
| | |
| | | name: '开机率', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | barWidth: 25, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#4169E1' |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#6496e9","#6bded3"], |
| | | // ["#849db8","#b4b8cc"], |
| | | // ["#4fe1c5","#4ecee1"], |
| | | // // ["#9978fa","#88a1fa"], |
| | | // ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | | return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | offset:0, |
| | | color:'#6496e9' |
| | | }, |
| | | { |
| | | offset:1, |
| | | color:"#6bded3" |
| | | }],false) |
| | | }, |
| | | barBorderRadius: [5, 5, 0, 0], |
| | | } |
| | | }, |
| | | data: [0], |
| | | barCategoryGap: '20%', |
| | | barGap : '-10%', |
| | | // barCategoryGap: '20%', |
| | | // barGap : '-10%', |
| | | markPoint : { |
| | | data : [ |
| | | {type : 'max', name: '最大值',symbolSize:70}, |
| | |
| | | name: '利用率', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | barCategoryGap: '20%', |
| | | barGap : '-10%', |
| | | barWidth: 25, |
| | | // barCategoryGap: '20%', |
| | | // barGap : '-10%', |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#00ee00' |
| | | color: function(params) { |
| | | let colorList = [ |
| | | // ["#6496e9","#6bded3"], |
| | | // ["#849db8","#b4b8cc"], |
| | | ["#4fe1c5","#4ecee1"], |
| | | // ["#9978fa","#88a1fa"], |
| | | // ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | | return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | offset:0, |
| | | color:"#4fe1c5" |
| | | }, |
| | | { |
| | | offset:1, |
| | | color:"#4ecee1" |
| | | }],false) |
| | | }, |
| | | barBorderRadius: [5, 5, 0, 0], |
| | | } |
| | | }, |
| | | data: [0], |
| | |
| | | } |
| | | ] |
| | | }; |
| | | // let compAnalBarOption2 = { |
| | | // tooltip: { |
| | | // trigger: 'axis', |
| | | // axisPointer: { |
| | | // type: "shadow", |
| | | // textStyle: { |
| | | // color: "#fff" |
| | | // } |
| | | // |
| | | // } |
| | | // }, |
| | | // legend: { |
| | | // x: '4%', |
| | | // top: '11%', |
| | | // textStyle: { |
| | | // color: '#90979c' |
| | | // }, |
| | | // data: ['开机时间', '关机时间'], |
| | | // color:['#6496e9','#b4b8cc'] |
| | | // }, |
| | | // toolbox: { |
| | | // show : true, |
| | | // feature : { |
| | | // mark : {show: true}, |
| | | // magicType : {show: true, type: ['line', 'bar']}, |
| | | // restore : {show: true}, |
| | | // saveAsImage : {show: true,name:'设备运行时间对比分析图'} |
| | | // } |
| | | // }, |
| | | // calculable: true, |
| | | // grid: { |
| | | // borderWidth: 0, |
| | | // top: 110, |
| | | // bottom: 95, |
| | | // textStyle: { |
| | | // color: "#fff" |
| | | // } |
| | | // }, |
| | | // xAxis: [ |
| | | // { |
| | | // type: 'category', |
| | | // splitLine: { |
| | | // "show": false |
| | | // }, |
| | | // axisTick: { |
| | | // "show": false |
| | | // }, |
| | | // splitArea: { |
| | | // show: false |
| | | // }, |
| | | // boundaryGap : true, |
| | | // axisLabel : { |
| | | // interval : 0, |
| | | // rotate : 0, |
| | | // show: true, |
| | | // wigth:20, |
| | | // splitNumber: 8, |
| | | // textStyle: { |
| | | // fontFamily: "微软雅黑", |
| | | // fontSize: 12 |
| | | // } |
| | | // }, |
| | | // data : [0] |
| | | // } |
| | | // ], |
| | | // yAxis: [ |
| | | // { |
| | | // type: 'value', |
| | | // splitLine: { |
| | | // show: false |
| | | // }, |
| | | // axisLine: { |
| | | // lineStyle: { |
| | | // color: '#90979c' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: false |
| | | // }, |
| | | // axisLabel: { |
| | | // interval: 0 |
| | | // |
| | | // }, |
| | | // splitArea: { |
| | | // show: false |
| | | // } |
| | | // } |
| | | // ], |
| | | // dataZoom: [{ |
| | | // show: true, |
| | | // height: 30, |
| | | // xAxisIndex: [0], |
| | | // bottom: 30, |
| | | // start: 0, |
| | | // end: 100, |
| | | // handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z', |
| | | // handleSize: '110%', |
| | | // handleStyle: { |
| | | // color: "#d3dee5" |
| | | // }, |
| | | // textStyle: { |
| | | // color: "#fff" |
| | | // }, |
| | | // borderColor: "#90979c" |
| | | // }, { |
| | | // type: "inside", |
| | | // show: true, |
| | | // height: 15, |
| | | // start: 1, |
| | | // end: 35 |
| | | // }], |
| | | // series: [ |
| | | // { |
| | | // name: '开机时间', |
| | | // type: 'bar', |
| | | // //barWidth: 30, |
| | | // barWidth: 25, |
| | | // // stack: 'sum', |
| | | // // barCategoryGap: '20%', |
| | | // itemStyle: { |
| | | // normal: { |
| | | // color: function(params) { |
| | | // let colorList = [ |
| | | // ["#6496e9","#6bded3"], |
| | | // // ["#849db8","#b4b8cc"], |
| | | // // ["#4fe1c5","#4ecee1"], |
| | | // // // ["#9978fa","#88a1fa"], |
| | | // // ["#ffbb65","#fdc68b"], |
| | | // ]; |
| | | // // return colorList[params.dataIndex]; |
| | | // let colorItem = colorList[params.dataIndex]; |
| | | // return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | // offset:0, |
| | | // color:'#6496e9' |
| | | // }, |
| | | // { |
| | | // offset:1, |
| | | // color:"#6bded3" |
| | | // }],false) |
| | | // }, |
| | | // barBorderRadius: [5, 5, 0, 0], |
| | | // } |
| | | // }, |
| | | // data: [0] |
| | | // }, |
| | | // { |
| | | // name: '关机时间', |
| | | // type: 'bar', |
| | | // //barWidth: 30, |
| | | // barWidth: 25, |
| | | // // stack: 'sum', |
| | | // // barCategoryGap: '20%', |
| | | // itemStyle: { |
| | | // normal: { |
| | | // color: function(params) { |
| | | // let colorList = [ |
| | | // // ["#6496e9","#6bded3"], |
| | | // ["#849db8","#b4b8cc"], |
| | | // // ["#4fe1c5","#4ecee1"], |
| | | // // // ["#9978fa","#88a1fa"], |
| | | // // ["#ffbb65","#fdc68b"], |
| | | // ]; |
| | | // // return colorList[params.dataIndex]; |
| | | // let colorItem = colorList[params.dataIndex]; |
| | | // return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | // offset:0, |
| | | // color:'#849db8' |
| | | // }, |
| | | // { |
| | | // offset:1, |
| | | // color:"#b4b8cc" |
| | | // }],false) |
| | | // }, |
| | | // barBorderRadius: [5, 5, 0, 0], |
| | | // } |
| | | // }, |
| | | // data: [0] |
| | | // } |
| | | // ] |
| | | // }; |
| | | let compAnalBarOption2 = { |
| | | tooltip: { |
| | | trigger: 'axis', |
| | |
| | | textStyle: { |
| | | color: '#90979c' |
| | | }, |
| | | color:['#6496e9','#b4b8cc'], |
| | | data: ['开机时间', '关机时间'] |
| | | }, |
| | | toolbox: { |
| | |
| | | mark : {show: true}, |
| | | magicType : {show: true, type: ['line', 'bar']}, |
| | | restore : {show: true}, |
| | | saveAsImage : {show: true,name:'设备运行时间对比分析图'} |
| | | saveAsImage : {show: true,name:'设备运行效率对比分析图'} |
| | | } |
| | | }, |
| | | calculable: true, |
| | |
| | | name: '开机时间', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | stack: 'sum', |
| | | barCategoryGap: '20%', |
| | | barWidth: 25, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#4169E1' |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#6496e9","#6bded3"], |
| | | // ["#849db8","#b4b8cc"], |
| | | // ["#4fe1c5","#4ecee1"], |
| | | // // ["#9978fa","#88a1fa"], |
| | | // ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | | return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | offset:0, |
| | | color:'#6496e9' |
| | | }, |
| | | { |
| | | offset:1, |
| | | color:"#6bded3" |
| | | }],false) |
| | | }, |
| | | barBorderRadius: [5, 5, 0, 0], |
| | | } |
| | | }, |
| | | data: [0] |
| | | data: [0], |
| | | // barCategoryGap: '20%', |
| | | // barGap : '-10%', |
| | | markPoint : { |
| | | data : [ |
| | | {type : 'max', name: '最大值',symbolSize:70}, |
| | | {type : 'min', name: '最小值',symbolSize:70} |
| | | ] |
| | | }, |
| | | markLine : { |
| | | data : [ |
| | | {type : 'average', name: '平均值'} |
| | | ] |
| | | } |
| | | }, |
| | | { |
| | | name: '关机时间', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | stack: 'sum', |
| | | barCategoryGap: '20%', |
| | | barWidth: 25, |
| | | // barCategoryGap: '20%', |
| | | // barGap : '-10%', |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#A8A8A8' |
| | | color: function(params) { |
| | | let colorList = [ |
| | | // ["#6496e9","#6bded3"], |
| | | ["#849db8","#b4b8cc"], |
| | | // ["#4fe1c5","#4ecee1"], |
| | | // ["#9978fa","#88a1fa"], |
| | | // ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | | return new echarts.graphic.LinearGradient(0,0,0,1,[{ |
| | | offset:0, |
| | | color:"#849db8" |
| | | }, |
| | | { |
| | | offset:1, |
| | | color:"#b4b8cc" |
| | | }],false) |
| | | }, |
| | | barBorderRadius: [5, 5, 0, 0], |
| | | } |
| | | }, |
| | | data: [0] |
| | | data: [0], |
| | | markPoint : { |
| | | data : [ |
| | | {type : 'max', name: '最大值',symbolSize:70}, |
| | | {type : 'min', name: '最小值',symbolSize:70} |
| | | ] |
| | | }, |
| | | markLine : { |
| | | data : [ |
| | | {type : 'average', name: '平均值'} |
| | | ] |
| | | } |
| | | } |
| | | ] |
| | | }; |
| | | |
| | | if(this.OpenCloseList != null){ |
| | | this.equipmentList = [] |
| | | this.openRate =[] |
| | |
| | | this.closeLong = [] |
| | | for(var i = 0;i<this.OpenCloseList.length;i++){ |
| | | this.equipmentList.push(this.OpenCloseList[i].equipmentId) |
| | | this.openRate.push(this.OpenCloseList[i].openRate) |
| | | this.utilizationRate.push(this.OpenCloseList[i].utilizationRate) |
| | | this.openRate.push((this.OpenCloseList[i].openRate*100).toFixed(2)) |
| | | // (this.openRate * 100).toFixed(2) |
| | | this.utilizationRate.push((this.OpenCloseList[i].utilizationRate*100).toFixed(2)) |
| | | this.openLong.push(this.OpenCloseList[i].openLong) |
| | | this.closeLong.push(this.OpenCloseList[i].closeLong) |
| | | } |
| | |
| | | deleteAction(that.url.deleteBatch, { ids: ids }).then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success(res.message) |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600) |
| | | const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | | const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60) |
| | | return hour + '时' + min + '分' + sec + '秒' |
| | | if(min == '00') { |
| | | if(sec == '00'){ |
| | | return hour + '小时' |
| | | }else{ |
| | | return hour + '小时'+ sec + '秒' |
| | | } |
| | | |
| | | }else{ |
| | | if(sec == '00') { |
| | | return hour + '小时' + min + '分' |
| | | }else{ |
| | | return hour + '小时' + min + '分' + sec + '秒' |
| | | } |
| | | } |
| | | // if(sec == '00'){ |
| | | // return hour + '小时' + min + '分' |
| | | // } |
| | | // if(min == '00' && sec == '00'){ |
| | | // return hour + '小时' |
| | | // } |
| | | // return hour + '小时' + min + '分' + sec + '秒' |
| | | |
| | | }else if(60<ss && ss<3600){ |
| | | const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | |
| | | const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600) |
| | | const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | | const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60) |
| | | return hour + '时' + min + '分' + sec + '秒' |
| | | if(min == '00') { |
| | | if(sec == '00'){ |
| | | return hour + '小时' |
| | | }else{ |
| | | return hour + '小时'+ sec + '秒' |
| | | } |
| | | |
| | | }else{ |
| | | if(sec == '00') { |
| | | return hour + '小时' + min + '分' |
| | | }else{ |
| | | return hour + '小时' + min + '分' + sec + '秒' |
| | | } |
| | | } |
| | | // if(sec == '00'){ |
| | | // return hour + '小时' + min + '分' |
| | | // } |
| | | // if(min == '00' && sec == '00'){ |
| | | // return hour + '小时' |
| | | // } |
| | | // return hour + '小时' + min + '分' + sec + '秒' |
| | | |
| | | }else if(60<ss && ss<3600){ |
| | | const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | |
| | | const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600) |
| | | const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | | const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60) |
| | | return hour + '时' + min + '分' + sec + '秒' |
| | | if(min == '00') { |
| | | if(sec == '00'){ |
| | | return hour + '小时' |
| | | }else{ |
| | | return hour + '小时'+ sec + '秒' |
| | | } |
| | | |
| | | }else{ |
| | | if(sec == '00') { |
| | | return hour + '小时' + min + '分' |
| | | }else{ |
| | | return hour + '小时' + min + '分' + sec + '秒' |
| | | } |
| | | } |
| | | // if(sec == '00'){ |
| | | // return hour + '小时' + min + '分' |
| | | // } |
| | | // if(min == '00' && sec == '00'){ |
| | | // return hour + '小时' |
| | | // } |
| | | // return hour + '小时' + min + '分' + sec + '秒' |
| | | |
| | | }else if(60<ss && ss<3600){ |
| | | const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60) |
| | |
| | | series: [ |
| | | { |
| | | name: '利用率', |
| | | type: 'bar', |
| | | type: 'line', |
| | | barWidth: 50, |
| | | itemStyle: { |
| | | normal: { |
| | |
| | | series: [ |
| | | { |
| | | name: '利用率', |
| | | type: 'bar', |
| | | type: 'line', |
| | | barWidth: 50, |
| | | itemStyle: { |
| | | normal: { |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("添加成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(that.selectedRowKeys.length) |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("添加成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("添加成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | |
| | | if (res.success) { |
| | | |
| | | // that.$message.success("修改成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"修改成功" |
| | | }); |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("修改成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"修改成功" |
| | | }); |
| | |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | // that.$message.success("添加成功") |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | |
| | | series: [ |
| | | { |
| | | name: '利用率', |
| | | type: 'bar', |
| | | type: 'line', |
| | | data: this.YData, |
| | | markPoint: { |
| | | data: [ |
| | |
| | | series: [ |
| | | { |
| | | name: '利用率', |
| | | type: 'bar', |
| | | type: 'line', |
| | | data: this.YData, |
| | | markPoint: { |
| | | data: [ |
| | |
| | | <a-row :gutter="24"> |
| | | |
| | | <a-col :md="6" :sm="10"> |
| | | <a-form-model-item label="任务类名" prop="jobClassName"> |
| | | <a-input placeholder="请输入任务类名" v-model="queryParam.jobClassName"></a-input> |
| | | <a-form-model-item label="任务名称" prop="jobClassName"> |
| | | <a-input placeholder="请输入任务名称" v-model="queryParam.jobName"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="10"> |
| | |
| | | onOk: function(){ |
| | | getAction(that.url.pause,{id:record.id}).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loadData(); |
| | | that.onClearSelected(); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | onOk: function(){ |
| | | getAction(that.url.resume,{id:record.id}).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loadData(); |
| | | that.onClearSelected(); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | onOk: function(){ |
| | | getAction(that.url.execute,{id:record.id}).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loadData(); |
| | | that.onClearSelected(); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | import UserRecycleBinModal from './modules/UserRecycleBinModal' |
| | | import JSuperQuery from '@/components/jeecg/JSuperQuery' |
| | | import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton' |
| | | import {mapActions} from 'vuex' |
| | | |
| | | export default { |
| | | name: "UserList", |
| | |
| | | scopedSlots: {customRender: 'action'}, |
| | | align: "center", |
| | | width: 80 |
| | | } |
| | | }, |
| | | |
| | | |
| | | ], |
| | | isDepartType:'', |
| | | superQueryFieldList: [ |
| | | { type: 'input', value: 'username', text: '用户账号', }, |
| | | { type: 'input', value: 'realname', text: '用户姓名', }, |
| | |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | created() { |
| | | this.queryTreeData() |
| | | }, |
| | | methods: { |
| | | ...mapActions(['QueryDepartTree']), |
| | | queryTreeData() { |
| | | this.QueryDepartTree().then(res => { |
| | | if (res.success) { |
| | | this.isDepartType = res.result[0].value |
| | | if(this.isDepartType == -1){ |
| | | this.columns=[ |
| | | { |
| | | title: '用户账号', |
| | | align: "center", |
| | | dataIndex: 'username', |
| | | width: 120, |
| | | sorter: true |
| | | }, |
| | | { |
| | | title: '用户姓名', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'realname', |
| | | }, |
| | | { |
| | | title: '头像', |
| | | align: "center", |
| | | width: 80, |
| | | dataIndex: 'avatar', |
| | | scopedSlots: {customRender: "avatarslot"} |
| | | }, |
| | | |
| | | // { |
| | | // title: '性别', |
| | | // align: "center", |
| | | // width: 80, |
| | | // dataIndex: 'sex_dictText', |
| | | // sorter: true |
| | | // }, |
| | | // { |
| | | // title: '生日', |
| | | // align: "center", |
| | | // width: 100, |
| | | // dataIndex: 'birthday' |
| | | // }, |
| | | // { |
| | | // title: '手机号码', |
| | | // align: "center", |
| | | // width: 100, |
| | | // dataIndex: 'phone' |
| | | // }, |
| | | { |
| | | title: '车间', |
| | | align: "center", |
| | | width: 240, |
| | | dataIndex: 'productionName' |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | width: 80, |
| | | dataIndex: 'status_dictText' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: "center", |
| | | width: 80 |
| | | }, |
| | | |
| | | |
| | | ] |
| | | }else{ |
| | | this.columns= [ |
| | | { |
| | | title: '用户账号', |
| | | align: "center", |
| | | dataIndex: 'username', |
| | | width: 120, |
| | | sorter: true |
| | | }, |
| | | { |
| | | title: '用户姓名', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'realname', |
| | | }, |
| | | { |
| | | title: '头像', |
| | | align: "center", |
| | | width: 80, |
| | | dataIndex: 'avatar', |
| | | scopedSlots: {customRender: "avatarslot"} |
| | | }, |
| | | |
| | | // { |
| | | // title: '性别', |
| | | // align: "center", |
| | | // width: 80, |
| | | // dataIndex: 'sex_dictText', |
| | | // sorter: true |
| | | // }, |
| | | // { |
| | | // title: '生日', |
| | | // align: "center", |
| | | // width: 100, |
| | | // dataIndex: 'birthday' |
| | | // }, |
| | | // { |
| | | // title: '手机号码', |
| | | // align: "center", |
| | | // width: 100, |
| | | // dataIndex: 'phone' |
| | | // }, |
| | | { |
| | | title: '部门', |
| | | align: "center", |
| | | width: 240, |
| | | dataIndex: 'orgCodeTxt' |
| | | }, |
| | | { |
| | | title: '车间', |
| | | align: "center", |
| | | width: 240, |
| | | dataIndex: 'productionName' |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | width: 80, |
| | | dataIndex: 'status_dictText' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: "center", |
| | | width: 80 |
| | | } |
| | | |
| | | |
| | | ] |
| | | } |
| | | |
| | | } else { |
| | | // this.$message.warn(res.message) |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() =>{ |
| | | }) |
| | | }, |
| | | getAvatarView: function (avatar) { |
| | | return getFileAccessHttpUrl(avatar) |
| | | }, |
| | |
| | | |
| | | postAction(this.url.removeEquipmentForDepart,qs.stringify({departId:this.departId,equipmentId:equipmentId})).then((res)=>{ |
| | | if (res.success) { |
| | | this.$message.warning(res.message) |
| | | // this.$message.warning(res.message) |
| | | this.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | |
| | | this.loadData(this.departId); |
| | | }else{ |
| | | // this.$message.warning(res.message) |
| | |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(that.selectedRowKeys.length) |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | title: '执行时间(毫秒)', |
| | | align: 'center', |
| | | dataIndex: 'executionTime', |
| | | customRender:(t,r,index) =>{ |
| | | var milliseconds = parseInt(t) |
| | | let hours = Math.floor(milliseconds / 3600000); |
| | | milliseconds = milliseconds % 3600000; |
| | | let minutes = Math.floor(milliseconds / 60000); |
| | | milliseconds = milliseconds % 60000; |
| | | let seconds = Math.floor(milliseconds / 1000); |
| | | milliseconds = milliseconds % 1000; |
| | | if(hours == 0){ |
| | | if(minutes == 0){ |
| | | if(seconds == 0) { |
| | | return `${milliseconds}毫秒` |
| | | }else{ |
| | | return `${seconds}秒 ${milliseconds}毫秒` |
| | | } |
| | | }else{ |
| | | return `${minutes}分钟 ${seconds}秒 ${milliseconds}毫秒`; |
| | | } |
| | | }else{ |
| | | return `${hours}小时 ${minutes}分钟 ${seconds}秒 ${milliseconds}毫秒`; |
| | | } |
| | | |
| | | } |
| | | |
| | | }, |
| | | { |
| | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="任务类名" prop="jobClassName" hasFeedback > |
| | | <a-input placeholder="请输入任务类名" v-model="model.jobClassName" /> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="任务名称" prop="jobName" hasFeedback > |
| | | <a-input placeholder="请输入任务名称" v-model="model.jobName" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="Cron表达式" prop="cronExpression"> |
| | | <!-- <j-cron v-model="model.cronExpression"/>--> |
| | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="参数" prop="parameter" > |
| | | <a-textarea placeholder="请输入参数" :rows="5" v-model="model.parameter" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="描述" prop="description"> |
| | | <a-textarea placeholder="请输入描述" :rows="3" v-model="model.description" /> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="说明" prop="description"> |
| | | <a-textarea placeholder="请输入说明" :rows="3" v-model="model.description" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="状态" prop="status"> |
| | | <j-dict-select-tag type="radioButton" v-model="model.status" dictCode="quartz_status"/> |
| | |
| | | </a-form-model-item> |
| | | |
| | | <!--部门分配--> |
| | | <a-form-model-item label="部门分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled"> |
| | | <a-form-model-item v-if="isDepartType== 0" label="部门分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled"> |
| | | <j-select-depart v-model="model.selecteddeparts" :multi="true" @back="backDepartInfo" :backDepart="true" :treeOpera="true">></j-select-depart> |
| | | </a-form-model-item> |
| | | |
| | |
| | | import { disabledAuthFilter } from "@/utils/authFilter" |
| | | import { duplicateCheck } from '@/api/api' |
| | | import JSelectProduction from '../../../components/jeecgbiz/JSelectProduction' |
| | | import {mapActions} from 'vuex' |
| | | |
| | | export default { |
| | | name: "UserModal", |
| | |
| | | tenantsOptions: [], |
| | | rolesOptions:[], |
| | | nextDepartOptions:[], |
| | | nextProductionOptions:[] |
| | | nextProductionOptions:[], |
| | | isDepartType:'', |
| | | |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.headers = {"X-Access-Token":token} |
| | | this.initRoleList() |
| | | this.initTenantList() |
| | | this.queryTreeData() |
| | | }, |
| | | computed:{ |
| | | uploadAction:function () { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapActions(['QueryDepartTree']), |
| | | queryTreeData() { |
| | | this.QueryDepartTree().then(res => { |
| | | if (res.success) { |
| | | this.isDepartType = res.result[0].value |
| | | } else { |
| | | // this.$message.warn(res.message) |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() =>{ |
| | | }) |
| | | }, |
| | | add () { |
| | | this.refresh(); |
| | | this.edit({activitiSync:'1',userIdentity:1}); |