| | |
| | | |
| | | //车é´ç®¡ç |
| | | const queryProductionTreeList = (params)=>getAction("/mdc/mdcProduction/queryTreeList",params); |
| | | const queryProductionTreeListByMdc = (params)=>getAction("/mdc/mdcProduction/queryTreeListByMdc",params); |
| | | const queryById = (params)=>getAction("/mdc/mdcProduction/queryIdTree",params); |
| | | const deleteByProduction = (params)=>deleteAction("/mdc/mdcProduction/delete",params); |
| | | |
| | |
| | | //å è½½æçéåä¿¡æ¯ |
| | | const getUserNoticeInfo= (params)=>getAction("/sys/sysAnnouncementSend/getMyAnnouncementSend",params); |
| | | const getTransitURL = url => `/sys/common/transitRESTful?url=${encodeURIComponent(url)}` |
| | | //ç³»ç»é
ç½®åæ°å¼è·å |
| | | const getSystemConfigValue = (params)=>getAction("/system/sysParams/query/by/settingKey",params); |
| | | // ä¸è½¬HTTPè¯·æ± |
| | | export const transitRESTful = { |
| | | get: (url, parameter) => getAction(getTransitURL(url), parameter), |
| | |
| | | getUserNoticeInfo, |
| | | getDictItemsFromCache, |
| | | queryProductionTreeList, |
| | | queryProductionTreeListByMdc, |
| | | deleteByProduction, |
| | | queryById, |
| | | addEquipment, |
| | | editEquipment, |
| | | getSystemConfigValue |
| | | editEquipment |
| | | } |
| | | |
| | | |
| | |
| | | </a-col> |
| | | |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="设å¤çº§å«"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©è®¾å¤çº§å«" dictCode="device_level" v-model="queryParam.deviceLevel" |
| | | allow-clear/> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="设å¤ç§ç±»"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©è®¾å¤ç§ç±»" dictCode="device_category" v-model="queryParam.deviceCategory" |
| | | allow-clear/> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="4" :sm="4"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | </a-col> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.$set(this.dictOptions, 'equipmentTypeStates', [{text:'æ¯',value:'Y'},{text:'å¦',value:'N'}]) |
| | | this.$set(this.dictOptions, 'equipmentTypeStates', [{text:'å¯ç¨',value:'Y'},{text:'å
³é',value:'N'}]) |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'equipmentTypeName',text:'设å¤ç±»ååç§°',dictCode:''}) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="åæ°ç¼ç "> |
| | | <j-input placeholder="请è¾å
¥åæ°ç¼ç " v-model="queryParam.code"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="åæ°åç§°"> |
| | | <j-input placeholder="请è¾å
¥åæ°åç§°" v-model="queryParam.name"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="åæ°ç±»å"> |
| | | <a-select v-model="queryParam.type" placeholder="è¯·éæ©åæ°ç±»å"> |
| | | <a-select-option :key=true>å
¬å¼</a-select-option> |
| | | <a-select-option :key=false>åºæ¬åæ°</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <mdcParameter-modal ref="modalForm" @ok="modalFormOk"></mdcParameter-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import MdcParameterModal from './modules/mdcParameter/MdcParameterModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: "MdcParameterList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | MdcParameterModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'mdcç®æ³å
¬å¼ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'åæ°ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'code' |
| | | }, |
| | | { |
| | | title: 'åæ°åç§°', |
| | | align:"center", |
| | | dataIndex: 'name' |
| | | }, |
| | | { |
| | | title: 'åæ°æè¿°', |
| | | align:"center", |
| | | dataIndex: 'description' |
| | | }, |
| | | { |
| | | title: 'åæ°å¼', |
| | | align:"center", |
| | | dataIndex: 'value' |
| | | }, |
| | | { |
| | | title: 'åæ°ç±»å', |
| | | align:"center", |
| | | dataIndex: 'type', |
| | | customRender: (text) => { |
| | | return text ? 'å
¬å¼' : 'åºæ¬åæ°'; |
| | | } |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mdc/mdcParameter/list", |
| | | delete: "/mdc/mdcParameter/delete", |
| | | deleteBatch: "/mdc/mdcParameter/deleteBatch", |
| | | exportXlsUrl: "mdc/mdcParameter/exportXls", |
| | | importExcelUrl: "mdc/mdcParameter/importExcel", |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设å¤çº§å«"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©è®¾å¤çº§å«" dictCode="device_level" v-model="model.deviceLevel" |
| | | :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设å¤ç§ç±»"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©è®¾å¤ç§ç±»" dictCode="device_category" v-model="model.deviceCategory" |
| | | :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æåº"> |
| | | <a-input :disabled="disableSubmit" :readOnly="disableSubmit" placeholder="请è¾å
¥æåº" |
| | | v-model="model.sortNo" style="width: 100%"/> |
| | |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label="é
éå°ç»" prop="teamCode"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©é
éå°ç»" dictCode="mdc_staff_team" v-model="model.teamCode" |
| | | :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label="设å¤å¾ç"> |
| | | <j-image-upload v-model="model.equipmentImage" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24" v-if="systemType"> |
| | | <a-col :span='24'> |
| | | <a-form-model-item label="ç³»ç»ç±»å" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-radio-group name="radioGroup" v-model="systemValue" :disabled="disableSubmit"> |
| | | <a-radio value="1">DNC</a-radio> |
| | | <a-radio value="2">MDC</a-radio> |
| | | <a-radio value="3">éç¨</a-radio> |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span='12'> |
| | | <a-form-model-item v-if="isDepartType == 0" label="ç³»ç»çæ¬å·"> |
| | | <a-input :disabled="disableSubmit" :readOnly="disableSubmit" allow-clear placeholder="请è¾å
¥ç³»ç»çæ¬å·" |
| | | v-model="model.systemVersion"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | driveType: '', |
| | | systemType: '', |
| | | deviceLevel: '', |
| | | deviceCategory: '', |
| | | deviceTypeDnc: '', |
| | | deviceTypeMdc: '' |
| | | deviceCategory: '' |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | sm: { span: 19 } |
| | | }, |
| | | confirmLoading: false, |
| | | systemType: false, |
| | | systemValue: '3', |
| | | url: { |
| | | userWithDepart: '/mdc/mdcEquipment/equipmentDepartList', // å¼å
¥ä¸ºæå®ç¨æ·æ¥çé¨é¨ä¿¡æ¯éè¦çurl |
| | | //å¼å
¥ä¸ºæå®ç¨æ·æ¥ç车é´ä¿¡æ¯éè¦çurl |
| | |
| | | created() { |
| | | this.queryGroup() |
| | | this.queryTreeData() |
| | | this.getAppPlatformName() |
| | | }, |
| | | methods: { |
| | | ...mapActions(['QueryDepartTree']), |
| | |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | getAppPlatformName() { |
| | | getAction(`/system/sysParams/query/by/settingKey?settingKey=system_type`).then(res => { |
| | | if (res.success) { |
| | | this.systemType = res.result.settingValue === '0' |
| | | } |
| | | }) |
| | | }, |
| | |
| | | //æ ¹æ®å±å¹å®½åº¦èªéåºæ½å±å®½åº¦ |
| | | this.resetScreenSize() |
| | | |
| | | if (record.systemValue != null) { |
| | | this.systemValue = record.systemValue |
| | | } else { |
| | | this.systemValue = '3' |
| | | } |
| | | that.model = Object.assign({}, record) |
| | | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(that.model, 'selectedDeparts', 'selectedProduction', 'equipmentId', 'equipmentName', 'equipmentModel', 'equipmentType', 'equipmentIp', 'dataPort', |
| | | 'driveType', 'sortNo', 'remark', 'systemVersion', 'devicePower', 'controlSystem', 'saveTableName', 'systemValue')) |
| | | 'driveType', 'sortNo', 'remark', 'systemVersion', 'devicePower', 'controlSystem', 'saveTableName')) |
| | | }) |
| | | if (record.hasOwnProperty('id')) { |
| | | that.getUserDeparts(record.id) |
| | |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | if (this.systemValue == null) { |
| | | this.$message.warning('è¯·éæ©ç³»ç»ç±»å!') |
| | | return false |
| | | } |
| | | let obj |
| | | if (!this.model.id) { |
| | | this.model.id = this.userId |
| | | this.model.systemValue = this.systemValue |
| | | obj = addEquipment(this.model) |
| | | } else { |
| | | this.model.systemValue = this.systemValue |
| | | obj = editEquipment(this.model, { |
| | | id: this.model.id |
| | | }) |
| | |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="æ¥æ"> |
| | | <a-date-picker value-format="YYYY-MM-DD" style="width: 100%" v-model="queryParam.theDate"/> |
| | | <a-form-item label="åæºæ¥æ"> |
| | | <a-date-picker placeholder="è¯·éæ©åæºæ¥æ" value-format="YYYY-MM-DD" style="width: 100%" |
| | | v-model="queryParam.theDate" :allow-clear="false"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="2" :sm="2" :xs="2"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-col :md="4" :sm="4" :xs="4"> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button @click="searchReset" icon="reload">éç½®</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | </div> |
| | | |
| | | <div style="overflow: hidden;width: 100%;flex: 1" id="DeviceList"> |
| | |
| | | </template> |
| | | |
| | | <template slot="action" slot-scope="text, record"> |
| | | <a @click="handleReport(record)">䏿¥</a> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import moment from 'moment' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentStandbyShutdownModal |
| | | from '@views/mdc/base/modules/EquipmentStandbyShutDown/EquipmentStandbyShutdownModal.vue' |
| | | import moment from 'moment' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentStandbyShutdownModal |
| | | from '@views/mdc/base/modules/EquipmentStandbyShutDown/EquipmentStandbyShutdownModal.vue' |
| | | |
| | | export default { |
| | | name: 'EquipmentStandbyShutdownList', |
| | | components: { EquipmentStandbyShutdownModal }, |
| | | mixins: [JeecgListMixin], |
| | | data() { |
| | | return { |
| | | disableMixinCreated: true, |
| | | scrollY: 465, |
| | | queryParam: { |
| | | theDate: moment().subtract('days', 1).format('YYYY-MM-DD') |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | export default { |
| | | name: 'EquipmentStandbyShutdownList', |
| | | components: { EquipmentStandbyShutdownModal }, |
| | | mixins: [JeecgListMixin], |
| | | data() { |
| | | return { |
| | | disableMixinCreated: true, |
| | | scrollY: 465, |
| | | queryParam: { |
| | | theDate: moment().subtract('days', 1).format('YYYY-MM-DD') |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'åæºç±»å', |
| | | align: 'center', |
| | | dataIndex: 'downtimeType', |
| | | scopedSlots: { customRender: 'downtimeType' }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'åæºåå ', |
| | | align: 'center', |
| | | dataIndex: 'downtimeDescription', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'åæºæ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'theDate', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'åæºæ¶é¿(min)', |
| | | align: 'center', |
| | | dataIndex: 'downLong', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | } |
| | | }, |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'åæºç±»å', |
| | | align: 'center', |
| | | dataIndex: 'downtimeType', |
| | | scopedSlots: { customRender: 'downtimeType' }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'åæºåå ', |
| | | align: 'center', |
| | | dataIndex: 'downtimeDescription', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'startDate', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'endDate', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | ], |
| | | url: { |
| | | list: '/mdc/mdcDowntime/list', |
| | | delete: '/mdc/mdcDowntime/delete' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mdc/mdcDowntime/list', |
| | | delete: '/mdc/mdcDowntime/delete' |
| | | } |
| | | } |
| | | }, |
| | | props: { node: {}, Type: '' }, |
| | | created() { |
| | | this.queryParam.typeTree = '1' |
| | | this.loadData() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.handleWindowResize) |
| | | this.handleWindowResize() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.handleWindowResize) |
| | | }, |
| | | watch: { |
| | | Type(valmath) { |
| | | this.queryParam.typeTree = valmath |
| | | }, |
| | | node(val) { //çå¬currSelected ååï¼å°åååçæ°å¼ä¼ éç» getCurrSelected äºä»¶ |
| | | if (JSON.stringify(val) != '{}') { |
| | | if (val.equipmentId != null) { |
| | | this.queryParam.equipmentId = val.equipmentId |
| | | this.queryParam.parentId = '' |
| | | } else { |
| | | this.queryParam.parentId = val.key |
| | | this.queryParam.equipmentId = '' |
| | | props: { node: {}, Type: '' }, |
| | | created() { |
| | | this.queryParam.typeTree = '1' |
| | | this.loadData() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.handleWindowResize) |
| | | this.handleWindowResize() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.handleWindowResize) |
| | | }, |
| | | watch: { |
| | | Type(valmath) { |
| | | this.queryParam.typeTree = valmath |
| | | }, |
| | | node(val) { //çå¬currSelected ååï¼å°åååçæ°å¼ä¼ éç» getCurrSelected äºä»¶ |
| | | if (JSON.stringify(val) != '{}') { |
| | | if (val.equipmentId != null) { |
| | | this.queryParam.equipmentId = val.equipmentId |
| | | this.queryParam.parentId = '' |
| | | } else { |
| | | this.queryParam.parentId = val.key |
| | | this.queryParam.equipmentId = '' |
| | | } |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | searchReset() { |
| | | this.queryParam = { theDate: moment().subtract('days', 1).format('YYYY-MM-DD') } |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | handleReport(record) { |
| | | this.$refs.modalForm.edit(record) |
| | | this.$refs.modalForm.title = '䏿¥' |
| | | }, |
| | | }, |
| | | |
| | | handleWindowResize() { |
| | | const boxHeight = +window.getComputedStyle(document.getElementById('DeviceList')).height.slice(0, -2) |
| | | const tableHeadHeight = +window.getComputedStyle(document.querySelector('.ant-table-thead th')).height.slice(0, -2) |
| | | this.scrollY = boxHeight - tableHeadHeight - 50 |
| | | handleWindowResize() { |
| | | const boxHeight = +window.getComputedStyle(document.getElementById('DeviceList')).height.slice(0, -2) |
| | | const tableHeadHeight = +window.getComputedStyle(document.querySelector('.ant-table-thead th')).height.slice(0, -2) |
| | | this.scrollY = boxHeight - tableHeadHeight - 50 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .page-container { |
| | | overflow: hidden; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | @media screen and (min-width: 1920px) { |
| | | .page-container { |
| | | height: 812px !important; |
| | | overflow: hidden; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | } |
| | | |
| | | @media screen and (min-width: 1680px) and (max-width: 1920px) { |
| | | .page-container { |
| | | height: 812px !important; |
| | | @media screen and (min-width: 1920px) { |
| | | .page-container { |
| | | height: 812px !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media screen and (min-width: 1400px) and (max-width: 1680px) { |
| | | .page-container { |
| | | height: 664px !important; |
| | | @media screen and (min-width: 1680px) and (max-width: 1920px) { |
| | | .page-container { |
| | | height: 812px !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media screen and (min-width: 1280px) and (max-width: 1400px) { |
| | | .page-container { |
| | | height: 565px !important; |
| | | @media screen and (min-width: 1400px) and (max-width: 1680px) { |
| | | .page-container { |
| | | height: 664px !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media screen and (max-width: 1280px) { |
| | | .page-container { |
| | | height: 565px !important; |
| | | @media screen and (min-width: 1280px) and (max-width: 1400px) { |
| | | .page-container { |
| | | height: 565px !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media screen and (max-width: 1280px) { |
| | | .page-container { |
| | | height: 565px !important; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <a-modal :title="title" :width="500" :visible="visible" :confirmLoading="confirmLoading" @ok="handleOk" |
| | | <a-modal :title="title" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleOk" |
| | | @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :form="form" :model="model" :rules="validatorRules" :labelCol="labelColLong" |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="设å¤ç»" prop="equipmentIds"> |
| | | <a-input-search readOnly v-model="model.equipmentIds" @search="deviceSearch" enter-button |
| | | placeholder="è¯·éæ©è®¾å¤" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="åæºç±»å" prop="downtimeType"> |
| | |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item v-if="title === 'ç¼è¾'" label="åæºæ¥æ" prop="theDate"> |
| | | <a-date-picker :disabled="true" v-model="model.theDate" placeholder="è¯·éæ©åæºæ¥æ" |
| | | value-format="YYYY-MM-DD" |
| | | style="width: 100%" /> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-item v-if="title === 'æ°å¢'" label="åæºæ¥æ" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <div class="mainBox"> |
| | | <Calendar |
| | | v-on:choseDay="clickDay" |
| | | :markDate="shiData" |
| | | :agoDayHide="value" |
| | | ></Calendar> |
| | | </div> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="åæºæ¶é¿(min)" prop="downLong"> |
| | | <a-input-number v-model="model.downLong" :min="1" :max="1440" :step="1" :precision="0" |
| | | placeholder="请è¾å
¥åæºæ¶é¿(min)" |
| | | style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="夿³¨"> |
| | | <a-textarea v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨"/> |
| | | <a-textarea v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <select-device-drawer ref="selectDeviceDrawer" @selectFinished="selectOK" :title="'éæ©è®¾å¤'" /> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import Calendar from 'vue-calendar-component' |
| | | import { getAction, postAction } from '@api/manage' |
| | | import SelectDeviceDrawer from '../../../../system/modules/SelectDeviceDrawer' |
| | | |
| | | export default { |
| | | name: 'EquipmentStandbyShutdownModal', |
| | | components: {}, |
| | | components: { SelectDeviceDrawer, Calendar }, |
| | | props: {}, |
| | | data() { |
| | | return { |
| | | title: '', |
| | | visible: false, |
| | | value: '', |
| | | model: {}, |
| | | equipmentList: [], |
| | | downtimeDescriptionList: [], |
| | | labelColLong: { |
| | | xs: { |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 5 |
| | | } |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 } |
| | | }, |
| | | wrapperColLong: { |
| | | xs: { |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 17 |
| | | } |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | spinning: false, |
| | | disableSelectDevice: false, |
| | | validatorRules: { |
| | | equipmentIds: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤', trigger: 'change' } |
| | | ], |
| | | downtimeType: [ |
| | | { |
| | | required: true, message: 'è¯·éæ©åæºç±»å' |
| | | } |
| | | { required: true, message: 'è¯·éæ©åæºç±»å' } |
| | | ], |
| | | reasonId: [ |
| | | { |
| | | required: true, message: 'è¯·éæ©åæºåå ' |
| | | } |
| | | { required: true, message: 'è¯·éæ©åæºåå ' } |
| | | ], |
| | | theDate: [ |
| | | { required: true, message: 'è¯·éæ©åæºæ¥æ' } |
| | | ], |
| | | downLong: [ |
| | | { required: true, message: '请è¾å
¥åæºæ¶é¿(min)' } |
| | | ] |
| | | }, |
| | | url: { |
| | | add: '/mdc/mdcDowntime/add', |
| | | edit: '/mdc/mdcDowntime/edit', |
| | | getDowntimeDescriptionListByDowntimeType: '/mdc/mdcDowntimeReason/downtimeReasonList' |
| | | } |
| | | }, |
| | | shiData: [], |
| | | sendDte: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.resetSelect() |
| | | this.edit({ |
| | | downtimeType: 0 |
| | | }) |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.model = Object.assign({}, record, { equipmentIds: record.equipmentId }) |
| | | this.getDowntimeDescriptionListByApi() |
| | | if (this.model.downtimeType === null) { |
| | | delete this.model.downtimeType |
| | |
| | | getDowntimeDescriptionListByApi() { |
| | | const that = this |
| | | this.downtimeDescriptionList = [] |
| | | this.spinning = true |
| | | getAction(this.url.getDowntimeDescriptionListByDowntimeType, { downtimeType: this.model.downtimeType }) |
| | | .then(res => { |
| | | if (res.success) that.downtimeDescriptionList = res.result |
| | | }) |
| | | .finally(() => { |
| | | that.spinning = false |
| | | }) |
| | | }, |
| | | |
| | |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | postAction(this.url.edit, that.model) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('ok', res.result) |
| | | that.handleCancel() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | that.confirmLoading = that.spinning = true |
| | | let url |
| | | if (!that.model.id) { |
| | | url = that.url.add |
| | | } else { |
| | | url = that.url.edit |
| | | } |
| | | that.model.dateList = this.sendDte |
| | | if (that.model.dateList && that.model.dateList.length > 0) { |
| | | postAction(url, that.model) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('ok') |
| | | that.handleCancel() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = that.spinning = false |
| | | }) |
| | | } else { |
| | | that.confirmLoading = false |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: 'è¯·éæ©çææ¶é´!' |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = false |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | deviceSearch() { |
| | | this.$refs.selectDeviceDrawer.visible = true |
| | | this.$refs.selectDeviceDrawer.selectedRowKeys = [] |
| | | this.$refs.selectDeviceDrawer.selectedRows = [] |
| | | this.$refs.selectDeviceDrawer.checkedKeys = this.model.equipmentIds ? this.model.equipmentIds.split(',') : [] |
| | | }, |
| | | |
| | | /** |
| | | * 鿩已æè®¾å¤åç¹å»ç¡®å®æ¶è§¦å |
| | | * @param data 已鿩çè®¾å¤ |
| | | */ |
| | | selectOK(data) { |
| | | this.$set(this.model, 'equipmentIds', data.join(',')) |
| | | if (this.model.equipmentIds) this.$refs.form.clearValidate('equipmentIds') |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.visible = false |
| | | this.removeValidate() |
| | | }, |
| | | |
| | | // å
³éå¼¹çªæ¶æ¸
æ¥è¡¨åæ ¡éª |
| | | removeValidate() { |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | }, |
| | | resetSelect() {//éç½®éä¸çæ¥æ |
| | | this.selectDate = [] |
| | | this.shiData = [] |
| | | this.sendDte = [] |
| | | }, |
| | | fun(obj) { |
| | | console.log(obj) |
| | | if (obj) { |
| | | if (obj = obj.split('/')) { |
| | | var timShi = obj[1] |
| | | var timFen = obj[2] |
| | | if (timShi < 10) { |
| | | timShi = '0' + timShi |
| | | } |
| | | if (timFen < 10) { |
| | | timFen = '0' + timFen |
| | | } |
| | | var dd = (obj[0] + timShi + timFen) |
| | | return dd |
| | | } |
| | | } |
| | | }, |
| | | clickDay(today) {//é䏿¥æ |
| | | let existDate = this.selectDate |
| | | let isExist = true |
| | | for (var i = 0; i < existDate.length; i++) { |
| | | if (existDate[i].date === today) { |
| | | this.selectDate.splice(i, 1) |
| | | this.shiData.splice(i, 1) |
| | | this.sendDte.splice(i, 1) |
| | | isExist = false |
| | | } |
| | | } |
| | | if (isExist) {//å½åæ¥æåå¨ç§»é¤ |
| | | let tempDate = { date: today, className: 'mark1' } |
| | | // let ddd = this.fun(today) |
| | | let ddd = today |
| | | let ccc = this.fun(today) |
| | | this.selectDate.push(tempDate) |
| | | this.shiData.push(ddd) |
| | | this.sendDte.push(ccc) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-modal-close { |
| | | color: #1191b0; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | /deep/ .ant-modal-close-x { |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | |
| | | /deep/ .mark1 { |
| | | color: white !important; |
| | | background-color: #1890ff !important; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all { |
| | | background-color: #ffffff; |
| | | border: 1px silver solid; |
| | | -webkit-border-radius: 5px; |
| | | -moz-border-radius: 5px; |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_jiantou1 { |
| | | border-top: 2px solid #000000; |
| | | border-left: 2px solid #000000; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_jiantou2 { |
| | | border-top: 2px solid #000000; |
| | | border-right: 2px solid #000000; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_top_changge li { |
| | | color: black; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item { |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_top_tag { |
| | | color: #000000; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_item_date { |
| | | color: #000000; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_item_date:hover { |
| | | color: #1890ff; |
| | | border: 1px solid #1890ff; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_other_dayhide { |
| | | color: #bfbfbf !important; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_want_dayhide { |
| | | color: #bfbfbf !important; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_chose_day { |
| | | background: #ffffff; |
| | | color: #000000; |
| | | } |
| | | |
| | | /deep/ .mainBox .wh_content_all .wh_content_item .wh_isMark { |
| | | color: #ffffff; |
| | | background-color: blue; |
| | | } |
| | | |
| | | </style> |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="800" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="code" label="åæ°ç¼ç "> |
| | | <a-input placeholder="请è¾å
¥åæ°ç¼ç " v-model="model.code" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name" label="åæ°åç§°"> |
| | | <a-input placeholder="请è¾å
¥åæ°åç§°" v-model="model.name" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type" label="åæ°ç±»å"> |
| | | <a-radio-group v-model="model.type" placeholder="è¯·éæ©åæ°ç±»å"> |
| | | <a-radio :value=true>å
¬å¼</a-radio> |
| | | <a-radio :value=false>åºæ¬åæ°</a-radio> |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="value" label="åæ°å¼" v-if="model.type"> |
| | | <a-input placeholder="请è¾å
¥åæ°å¼" v-model="model.value" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description" label="åæ°æè¿°"> |
| | | <a-input placeholder="请è¾å
¥åæ°æè¿°" v-model="model.description" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark" label="夿³¨"> |
| | | <a-textarea placeholder="请è¾å
¥å¤æ³¨" v-model="model.remark" /> |
| | | </a-form-model-item> |
| | | |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import moment from "moment" |
| | | |
| | | export default { |
| | | name: "MdcParameterModal", |
| | | data () { |
| | | return { |
| | | title:"æä½", |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules:{ |
| | | code:[{ required: true, message: '请è¾å
¥åæ°ç¼ç !' }], |
| | | type:[{ required: true, message: '请è¾å
¥åæ°ç±»å!' }], |
| | | }, |
| | | url: { |
| | | add: "/mdc/mdcParameter/add", |
| | | edit: "/mdc/mdcParameter/edit", |
| | | }, |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | add () { |
| | | //åå§åé»è®¤å¼ |
| | | this.edit({type:false}); |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }else{ |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |
| | |
| | | placeholder="æ "> |
| | | </a-tree-select> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="æ¯å¦MDC使ç¨"> |
| | | <lx-switch checked-children='æ¯' un-checked-children='å¦' v-model="model.mdcFlag"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="æåº"> |
| | | <a-input-number v-model="model.productionOrder"/> |
| | | </a-form-model-item> |
| | |
| | | |
| | | <a-col :md="6" :sm="12"> |
| | | <a-form-item label="è´¦å·"> |
| | | <!--<a-input placeholder="请è¾å
¥è´¦å·æ¥è¯¢" v-model="queryParam.username"></a-input>--> |
| | | <j-input placeholder="è¾å
¥è´¦å·æ¨¡ç³æ¥è¯¢" v-model="queryParam.username"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | queryParam: {}, |
| | | recycleBinVisible: false, |
| | | columns: [ |
| | | /*{ |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | },*/ |
| | | { |
| | | title: 'ç¨æ·è´¦å·', |
| | | align: "center", |
| | |
| | | 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: 80, |
| | | dataIndex: 'post_dictText' |
| | | }, |
| | | { |
| | | title: 'é¨é¨', |
| | |
| | | dataIndex: 'realname', |
| | | }, |
| | | { |
| | | title: '头å', |
| | | 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: 80, |
| | | dataIndex: 'post_dictText' |
| | | width: 100, |
| | | dataIndex: 'workNo', |
| | | }, |
| | | { |
| | | title: '车é´', |
| | |
| | | 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: 80, |
| | | dataIndex: 'post_dictText' |
| | | }, |
| | | { |
| | | title: 'é¨é¨', |
| | | align: "center", |
| | | width: 240, |
| | |
| | | width: 240, |
| | | dataIndex: 'productionName', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: 'çç»', |
| | | align: "center", |
| | | width: 240, |
| | | dataIndex: 'teamId_dictText' |
| | | }, |
| | | { |
| | | title: 'ç¶æ', |
| | |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="æ¯å¦MDC使ç¨"> |
| | | <lx-switch checked-children='æ¯' un-checked-children='å¦' v-model="model.mdcFlag"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="æåº"> |
| | | <a-input-number v-model="model.productionOrder"/> |
| | | </a-form-model-item> |
| | |
| | | this.seen = false; |
| | | this.dictDisabled = false; |
| | | this.model.parentId = depart.id; |
| | | this.model.mdcFlag = depart.mdcFlag; |
| | | }else{ |
| | | this.seen = true; |
| | | this.dictDisabled = true; |
| | |
| | | } from '@/api/manage' |
| | | import BaseTree from '@/views/mdc/common/BaseTree' |
| | | import DepartTree from '@/views/mdc/base/modules/DepartList/DepartListTree/DepartTree' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | // import { getSystemConfigValue } from '@api/api' |
| | | |
| | | export default { |
| | | name: 'SelectDeviceModal', |
| | |
| | | /> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item label="å²ä½" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <!-- <j-select-position placeholder="è¯·éæ©å²ä½" :multiple="false" v-model="model.post"/>--> |
| | | <j-dict-select-tag placeholder="è¯·éæ©å²ä½" dict-code="sys_position, name, code" v-model="model.post" /> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item |
| | | label="è§è²åé
" |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-tooltip> |
| | | </a-form-model-item> |
| | | |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="é¦é¡µæé"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!-->--> |
| | | <!--<a-radio-group--> |
| | | <!--v-model="model.userType"--> |
| | | <!--:defaultValue="0"--> |
| | | <!-->--> |
| | | <!--<a-radio :value="4">å
¬å¸çº§</a-radio>--> |
| | | <!--<a-radio :value="3">车é´çº§</a-radio>--> |
| | | <!--<a-radio :value="2">工段级</a-radio>--> |
| | | <!--<a-radio :value="1">æä½å·¥</a-radio>--> |
| | | <!--<a-radio :value="0">æ </a-radio>--> |
| | | <!--</a-radio-group>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="çç»åé
"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--prop="teamId"--> |
| | | <!-->--> |
| | | <!--<j-dict-select-tag--> |
| | | <!--v-model="model.teamId"--> |
| | | <!--:triggerChange="true"--> |
| | | <!--dictCode="mom_base_team,name,id,del_flag = 0"--> |
| | | <!--placeholder="请维æ¤çç»"--> |
| | | <!--></j-dict-select-tag>--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item--> |
| | | <!--label="ä¸å¿åé
"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--prop="areaId"--> |
| | | <!-->--> |
| | | <!--<!– <j-dict-select-tag--> |
| | | <!--v-model="model.areaId"--> |
| | | <!--:triggerChange="true"--> |
| | | <!--dictCode="mom_base_area,name,id,del_flag = 0"--> |
| | | <!--placeholder="请维æ¤ä¸å¿"--> |
| | | <!--></j-dict-select-tag> –>--> |
| | | <!--<j-multi-select-tag--> |
| | | <!--:triggerChange="true"--> |
| | | <!--v-model="model.areaId"--> |
| | | <!--dictCode="mom_base_area,name,id,del_flag = 0 and type = 1"--> |
| | | <!--placeholder="请维æ¤ä¸å¿"--> |
| | | <!-->--> |
| | | <!--</j-multi-select-tag>--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item--> |
| | | <!--label="è´è´£é¨é¨"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--v-if="departIdShow==true"--> |
| | | <!-->--> |
| | | <!--<j-multi-select-tag--> |
| | | <!--:disabled="disableSubmit"--> |
| | | <!--v-model="model.departIds"--> |
| | | <!--:options="nextDepartOptions"--> |
| | | <!--placeholder="è¯·éæ©è´è´£é¨é¨"--> |
| | | <!-->--> |
| | | <!--</j-multi-select-tag>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="头å"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!-->--> |
| | | <!--<j-image-upload--> |
| | | <!--class="avatar-uploader"--> |
| | | <!--text="ä¸ä¼ "--> |
| | | <!--v-model="model.avatar"--> |
| | | <!--></j-image-upload>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="çæ¥"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!-->--> |
| | | <!--<a-date-picker--> |
| | | <!--style="width: 100%"--> |
| | | <!--placeholder="è¯·éæ©çæ¥"--> |
| | | <!--v-model="model.birthday"--> |
| | | <!--:format="dateFormat"--> |
| | | <!--:getCalendarContainer="node => node.parentNode"--> |
| | | <!--/>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="æ§å«"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!-->--> |
| | | <!--<a-select--> |
| | | <!--v-model="model.sex"--> |
| | | <!--placeholder="è¯·éæ©æ§å«"--> |
| | | <!--:getPopupContainer="(target) => target.parentNode"--> |
| | | <!-->--> |
| | | <!--<a-select-option :value="1">ç·</a-select-option>--> |
| | | <!--<a-select-option :value="2">女</a-select-option>--> |
| | | <!--</a-select>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="é®ç®±"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--prop="email"--> |
| | | <!-->--> |
| | | <!--<a-input--> |
| | | <!--placeholder="请è¾å
¥é®ç®±"--> |
| | | <!--v-model="model.email"--> |
| | | <!--/>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="ææºå·ç "--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--prop="phone"--> |
| | | <!-->--> |
| | | <!--<a-input--> |
| | | <!--placeholder="请è¾å
¥ææºå·ç "--> |
| | | <!--v-model="model.phone"--> |
| | | <!--/>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | <!--<a-form-model-item--> |
| | | <!--label="座æº"--> |
| | | <!--:labelCol="labelCol"--> |
| | | <!--:wrapperCol="wrapperCol"--> |
| | | <!--prop="telephone"--> |
| | | <!-->--> |
| | | <!--<a-input--> |
| | | <!--placeholder="请è¾å
¥åº§æº"--> |
| | | <!--v-model="model.telephone"--> |
| | | <!--/>--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item label="工使µå¼æ" :labelCol="labelCol" :wrapperCol="wrapperCol">--> |
| | | <!--<j-dict-select-tag v-model="model.activitiSync" placeholder="è¯·éæ©æ¯å¦åæ¥å·¥ä½æµå¼æ" :type="'radio'" dictCode="activiti_sync"/>--> |
| | | <!--</a-form-model-item>--> |
| | | |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | |
| | | @fail="requestFailed" |
| | | ></login-account> |
| | | </a-tab-pane> |
| | | |
| | | <!--<a-tab-pane key="tab2" tab="ææºå·ç»å½">--> |
| | | <!--<login-phone ref="plogin" @validateFail="validateFail" @success="requestSuccess" @fail="requestFailed"></login-phone>--> |
| | | <!--</a-tab-pane>--> |
| | | </a-tabs> |
| | | |
| | | <a-form-model-item> |
| | |
| | | </a-form-model> |
| | | </div> |
| | | |
| | | <!--<two-step-captcha v-if="requiredTwoStepCaptcha" :visible="stepCaptchaVisible" @success="stepCaptchaSuccess" @cancel="stepCaptchaCancel"></two-step-captcha>--> |
| | | <login-select-tenant |
| | | ref="loginSelect" |
| | | @success="loginSelectOk" |
| | | ></login-select-tenant> |
| | | <!--<third-login ref="thirdLogin"></third-login>--> |
| | | <user-password ref="userPassword"/> |
| | | </div> |
| | | </template> |
| | |
| | | description: description, |
| | | duration: 4, |
| | | }); |
| | | //è´¦æ·å¯ç ç»å½éè¯¯åæ´æ°éªè¯ç |
| | | if(this.customActiveKey === 'tab1' && description.indexOf('å¯ç é误')>0){ |
| | | this.$refs.alogin.handleChangeCheckCode() |
| | | } |
| | | |
| | | this.loginBtn = false; |
| | | }, |
| | | loginSelectOk(){ |
| | |
| | | message: '欢è¿', |
| | | description: `${timeFix()}ï¼æ¬¢è¿åæ¥`, |
| | | }); |
| | | }, |
| | | |
| | | stepCaptchaSuccess() { |
| | | this.loginSuccess() |
| | | }, |
| | | stepCaptchaCancel() { |
| | | this.Logout().then(() => { |
| | | this.loginBtn = false |
| | | this.stepCaptchaVisible = false |
| | | }) |
| | | }, |
| | | //è·åå¯ç å å¯è§å |
| | | getEncrypte() { |
| | | var encryptedString = Vue.ls.get(ENCRYPTED_STRING) |
| | | if (encryptedString == null) { |
| | | getEncryptedString().then((data) => { |
| | | this.encryptedString = data |
| | | }) |
| | | } else { |
| | | this.encryptedString = encryptedString |
| | | } |
| | | } |
| | | |
| | | } |