Compare commits
5 Commits
3eeded056f
...
projects/m
| Author | SHA1 | Date | |
|---|---|---|---|
| ceeb853783 | |||
| 6ed21030f5 | |||
| 73feff0d8b | |||
| d49a698136 | |||
| 6e774dfc5d |
2
.env.dev
2
.env.dev
@@ -18,7 +18,7 @@ VUE_APP_BASE_API = 'http://mes2.kszny.picaiba.com'
|
||||
|
||||
|
||||
# 积木报表指向地址
|
||||
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
|
||||
VUE_APP_JIMU_API = 'http://mes2.kszny.picaiba.com'
|
||||
|
||||
# 路由懒加载
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
|
||||
@@ -89,6 +89,7 @@ export const DICT_TYPE = {
|
||||
|
||||
// ============== ENERGY - 能源模块 =============
|
||||
ENERGY_UNIT: 'energy_unit',
|
||||
ENERGY_TYPE: 'energy_type',
|
||||
EQU_ALARM_LEVEL: 'equ_alarm_level',
|
||||
MONITOR_INDEX_TYPE: 'monitor_index_type',
|
||||
OBJECT_TYPE: 'object_type',
|
||||
|
||||
@@ -92,7 +92,8 @@ export default {
|
||||
type: 'select',
|
||||
label: '能源类型',
|
||||
selectOptions: [],
|
||||
param: 'energyTypeId'
|
||||
param: 'energyTypeId',
|
||||
clearable: false
|
||||
},
|
||||
{
|
||||
type: 'select',
|
||||
@@ -162,7 +163,6 @@ export default {
|
||||
window.addEventListener('resize', () => {
|
||||
this.tableH = this.tableHeight(260)
|
||||
})
|
||||
this.getList();
|
||||
this.getTypeList()
|
||||
// 获取对象树形结构
|
||||
this.getObjTree()
|
||||
@@ -171,7 +171,10 @@ export default {
|
||||
getTypeList() {
|
||||
getEnergyTypeListAll().then((res) => {
|
||||
this.formConfig[0].selectOptions = res.data || []
|
||||
this.formConfig[0].defaultSelect = res.data[0].id
|
||||
this.queryParams.energyTypeId = res.data[0].id
|
||||
this.energyTypeList = res.data || []
|
||||
this.getList();
|
||||
})
|
||||
},
|
||||
buttonClick(val) {
|
||||
|
||||
@@ -82,6 +82,7 @@ export default {
|
||||
init(param) {
|
||||
this.form.connectId = param.connectId
|
||||
getEnergyTypeListAll().then((res) => {
|
||||
console.log(res)
|
||||
this.energyListType = res.data || []
|
||||
})
|
||||
if (param.id) {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
@cancel="handleCancel"
|
||||
@confirm="handleConfirm"
|
||||
:before-close="handleCancel"
|
||||
width='30%'
|
||||
width='50%'
|
||||
>
|
||||
<energy-plc-connect-add ref="energyPlcConnect" :objList="objList" @successSubmit="successSubmit" />
|
||||
</base-dialog>
|
||||
@@ -60,7 +60,8 @@ const tableProps = [
|
||||
},
|
||||
{
|
||||
prop: 'objCode',
|
||||
label: '对象编码'
|
||||
label: '对象编码',
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
prop: 'plcTableName',
|
||||
@@ -69,7 +70,8 @@ const tableProps = [
|
||||
{
|
||||
prop: 'plcTableCode',
|
||||
label: '关联表编码',
|
||||
showOverflowtooltip: true
|
||||
showOverflowtooltip: true,
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
prop: 'cnName',
|
||||
|
||||
@@ -60,7 +60,8 @@ export default {
|
||||
name: '',
|
||||
code: '',
|
||||
type: '',
|
||||
energyTypeId: ''
|
||||
energyTypeId: '',
|
||||
remark: ''
|
||||
},
|
||||
plcList: [],
|
||||
objList: [],
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
type="text"
|
||||
class="tableInnerButton"
|
||||
@click="showInnerTable(injectData)"
|
||||
>详情</el-button
|
||||
>价格详情</el-button
|
||||
>
|
||||
</el-popover>
|
||||
</template>
|
||||
|
||||
@@ -3,7 +3,14 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="能源类型" prop="name">
|
||||
<el-input v-model="form.name"></el-input>
|
||||
<el-select v-model="form.name" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in getDictDatas(DICT_TYPE.ENERGY_TYPE)"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.label">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -213,10 +220,6 @@ export default {
|
||||
// 增加
|
||||
emitButtonClick1() {
|
||||
let n = this.tableData1.length
|
||||
if (n >=3) {
|
||||
this.$modal.msgWarning('最多可添加3档计价')
|
||||
return false
|
||||
}
|
||||
let obj = {}
|
||||
obj.startTime = n === 0 ? '' : this.tableData1[n-1].endTime
|
||||
obj.endTime = ''
|
||||
@@ -225,10 +228,6 @@ export default {
|
||||
},
|
||||
emitButtonClick2() {
|
||||
let n = this.tableData2.length
|
||||
if (n >=3) {
|
||||
this.$modal.msgWarning('最多可添加3档计价')
|
||||
return false
|
||||
}
|
||||
let obj = {}
|
||||
obj.startUsed = n === 0 ? 0 : this.tableData2[n-1].endUsed
|
||||
obj.endUsed = 0
|
||||
|
||||
@@ -80,10 +80,14 @@ export default {
|
||||
return {
|
||||
formConfig: [
|
||||
{
|
||||
type: 'input',
|
||||
type: 'select',
|
||||
label: '能源类型',
|
||||
selectOptions: this.getDictDatas(this.DICT_TYPE.ENERGY_TYPE),
|
||||
placeholder: '能源类型',
|
||||
param: 'name'
|
||||
labelField: 'label',
|
||||
valueField: 'label',
|
||||
param: 'name',
|
||||
flilterable: true
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
|
||||
@@ -219,6 +219,7 @@ export default {
|
||||
getTypeList() {
|
||||
getEnergyTypeListAll().then((res) => {
|
||||
this.energyTypeList = res.data || []
|
||||
this.queryParams.energyTypeId = res.data[0].id
|
||||
})
|
||||
},
|
||||
// 范围选择器
|
||||
|
||||
@@ -205,6 +205,7 @@ export default {
|
||||
getTypeList() {
|
||||
getEnergyTypeListAll().then((res) => {
|
||||
this.energyTypeList = res.data || [];
|
||||
this.queryParams.energyTypeId = res.data[0].id
|
||||
});
|
||||
},
|
||||
getObjTree() {
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<base-table
|
||||
:page="1"
|
||||
:limit="5000"
|
||||
:table-props="tableProps"
|
||||
:table-data="tableData"
|
||||
:max-height="tableH"
|
||||
@@ -43,7 +45,7 @@ const tableProps = [
|
||||
},
|
||||
{
|
||||
prop: 'workTime',
|
||||
label: '工作时长'
|
||||
label: '工作时长(h)'
|
||||
}
|
||||
]
|
||||
export default {
|
||||
|
||||
@@ -62,7 +62,8 @@ export default {
|
||||
selectOptions: [],
|
||||
param: 'workOrderId',
|
||||
clearable: false,
|
||||
filterable: true
|
||||
filterable: true,
|
||||
required: true
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
|
||||
@@ -38,6 +38,7 @@ import { groupTeamSchedulingPage, groupClassesListAll } from '@/api/monitoring/t
|
||||
import { parseTime } from '@/utils/ruoyi'
|
||||
import TeamProductionDetail from './components/teamProductionDetail'
|
||||
import tableHeightMixin from '@/mixins/tableHeightMixin';
|
||||
import moment from 'moment'
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'createTime',
|
||||
@@ -53,14 +54,12 @@ const tableProps = [
|
||||
{
|
||||
prop: 'startTime',
|
||||
label: '上班时间',
|
||||
filter: parseTime,
|
||||
minWidth: 160
|
||||
filter: (val) => moment(val).format('HH:mm')
|
||||
},
|
||||
{
|
||||
prop: 'endTime',
|
||||
label: '下班时间',
|
||||
filter: parseTime,
|
||||
minWidth: 160
|
||||
filter: (val) => moment(val).format('HH:mm')
|
||||
},
|
||||
{
|
||||
prop: 'classesName',
|
||||
@@ -70,7 +69,8 @@ const tableProps = [
|
||||
{
|
||||
prop: 'teamName',
|
||||
label: '班组名称',
|
||||
showOverflowtooltip: true
|
||||
showOverflowtooltip: true,
|
||||
minWidth: 100
|
||||
}
|
||||
]
|
||||
export default {
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
"
|
||||
@click="handleClick({ data: scope.row, type: 'bind' })"
|
||||
v-hasPermi="['base:order-manage:bindWorkOrder']">
|
||||
绑定工单
|
||||
下发工单
|
||||
</el-button>
|
||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-button
|
||||
|
||||
@@ -83,13 +83,7 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改菜单对话框 -->
|
||||
<el-dialog :visible.sync="open" width="800px" append-to-body class="dialog">
|
||||
<template #title>
|
||||
<slot name="title">
|
||||
<div class="titleStyle">{{ title }}</div>
|
||||
</slot>
|
||||
</template>
|
||||
<slot />
|
||||
<base-dialog :dialogVisible="open" :dialogTitle="title" width="800px" class="dialog" :before-close='cancel'>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
@@ -163,7 +157,7 @@
|
||||
<el-button class="btnTextStyle" @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" class="btnTextStyle" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -57,13 +57,7 @@
|
||||
@pagination="getList"/>
|
||||
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<el-dialog :visible.sync="open" width="800px" append-to-body class="dialog">
|
||||
<template #title>
|
||||
<slot name="title">
|
||||
<div class="titleStyle">{{ title }}</div>
|
||||
</slot>
|
||||
</template>
|
||||
<slot />
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" :before-close="cancel" width="800px" class="dialog">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
|
||||
<el-form-item label="字典类型">
|
||||
<el-input v-model="form.dictType" :disabled="true" />
|
||||
@@ -98,7 +92,7 @@
|
||||
<el-button class="btnTextStyle" @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" class="btnTextStyle" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -132,7 +126,7 @@ export default {
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: undefined
|
||||
|
||||
@@ -60,13 +60,7 @@
|
||||
@pagination="getList"/>
|
||||
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<el-dialog :visible.sync="open" width="800px" append-to-body class="dialog">
|
||||
<template #title>
|
||||
<slot name="title">
|
||||
<div class="titleStyle">{{ title }}</div>
|
||||
</slot>
|
||||
</template>
|
||||
<slot />
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" :before-close="cancel" width="800px" class="dialog">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="字典名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入字典名称" />
|
||||
@@ -87,7 +81,7 @@
|
||||
<el-button class="btnTextStyle" @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" class="btnTextStyle" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -118,7 +112,7 @@ export default {
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
name: undefined,
|
||||
type: undefined,
|
||||
status: undefined,
|
||||
|
||||
@@ -88,13 +88,7 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改菜单对话框 -->
|
||||
<el-dialog :visible.sync="open" width="800px" append-to-body class="dialog">
|
||||
<template #title>
|
||||
<slot name="title">
|
||||
<div class="titleStyle">{{ title }}</div>
|
||||
</slot>
|
||||
</template>
|
||||
<slot />
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" width="800px" class="dialog" :before-close="cancel">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
@@ -276,7 +270,7 @@
|
||||
<el-button class="btnTextStyle" @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" class="btnTextStyle" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -54,13 +54,7 @@
|
||||
@pagination="getList"/>
|
||||
|
||||
<!-- 添加或修改岗位对话框 -->
|
||||
<el-dialog :visible.sync="open" width="800px" append-to-body class="dialog">
|
||||
<template #title>
|
||||
<slot name="title">
|
||||
<div class="titleStyle">{{ title }}</div>
|
||||
</slot>
|
||||
</template>
|
||||
<slot />
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" width="800px" class="dialog" :before-close="cancel">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="岗位名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入岗位名称" />
|
||||
@@ -85,7 +79,7 @@
|
||||
<el-button class="btnTextStyle" @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" class="btnTextStyle" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -116,7 +110,7 @@ export default {
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
code: undefined,
|
||||
name: undefined,
|
||||
status: undefined
|
||||
|
||||
@@ -151,7 +151,6 @@ export default {
|
||||
? {
|
||||
type: 'dataAuth',
|
||||
btnName: '数据权限',
|
||||
// showTip: "新增工单",
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('system:role:update')
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</el-row>
|
||||
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" width="50%">
|
||||
<base-dialog :dialogTitle="title" :dialogVisible="open" width="50%" :before-close="cancel">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
@@ -180,6 +180,7 @@
|
||||
<base-dialog
|
||||
:dialogTitle="upload.title"
|
||||
:dialogVisible="upload.open"
|
||||
:before-close="cancelImport"
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
@@ -219,7 +220,7 @@
|
||||
</base-dialog>
|
||||
|
||||
<!-- 分配角色 -->
|
||||
<base-dialog dialogTitle="分配角色" :dialogVisible="openRole" width="500px">
|
||||
<base-dialog dialogTitle="分配角色" :dialogVisible="openRole" width="500px" :before-close='cancelRole'>
|
||||
<el-form :model="form" label-width="80px">
|
||||
<el-form-item label="用户名称">
|
||||
<el-input v-model="form.username" :disabled="true" />
|
||||
@@ -628,6 +629,9 @@ export default {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
cancelImport() {
|
||||
this.upload.open = false;
|
||||
},
|
||||
// 取消按钮(角色权限)
|
||||
cancelRole() {
|
||||
this.openRole = false;
|
||||
|
||||
Reference in New Issue
Block a user