| | |
| | | <!-- :rowSelection="rowSelection" --> |
| | | <!-- :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" --> |
| | | |
| | | <template |
| | | <!-- <template |
| | | slot="htmlSlot" |
| | | slot-scope="text" |
| | | > |
| | |
| | | > |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | </template> --> |
| | | |
| | | <span |
| | | slot="action" |
| | |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MalfunctionRepairModal from './modules/malfunctionRepair/MalfunctionRepaireModal' |
| | | import FaultDescriptionList from './FaultDescriptionList' |
| | | import FaultDescriptionList from './modules/malfunctionRepair/FaultDescriptionList' |
| | | import ApprovelModal from './modules/malfunctionRepair/ApprovelModal' |
| | | |
| | | export default { |
| | |
| | | align: "center", |
| | | dataIndex: 'faultTime' |
| | | }, |
| | | // { |
| | | // title: 'æ¯å¦åæºå¾
ä¿®', |
| | | // align: "center", |
| | | // dataIndex: 'isStop_dictText', |
| | | // }, |
| | | { |
| | | title: 'æ¯å¦åæºå¾
ä¿®', |
| | | align: "center", |
| | | dataIndex: 'isStopName', |
| | | }, |
| | | { |
| | | title: 'å建人', |
| | | align: "center", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <a-row |
| | | type="flex" |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="12" |
| | | :sm="24" |
| | | > |
| | | <div> |
| | | <a-form-item label="æ
éææä½è¿ç¨è¯¦æ
ï¼"> |
| | | <a-textarea |
| | | allow-clear |
| | | :disabled="true" |
| | | rows="4" |
| | | v-model="faultDetails" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </div> |
| | | </a-col> |
| | | </a-row> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { deleteAction, getAction, downFile, getFileAccessHttpUrl, httpAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: 'FaultDescriptionList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'æ
éæè¿°ç®¡ç页é¢', |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'æ
é详æ
', |
| | | align: "center", |
| | | dataIndex: 'faultDetails' |
| | | }, |
| | | // { |
| | | // title: 'æ
éç
§ç', |
| | | // align: "center", |
| | | // dataIndex: 'photo' |
| | | // }, |
| | | ], |
| | | url: { |
| | | list: "/eam/faultDescription/list", |
| | | }, |
| | | faultId: '', |
| | | faultDetails: '', |
| | | photo: '' |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!') |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | var params = this.getQueryParams() //æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true |
| | | getAction(this.url.list, params) |
| | | .then(res => { |
| | | if (res.success) { |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | this.dataSource = res.result.records |
| | | if (this.dataSource != null && this.dataSource != "") { |
| | | this.faultDetails = this.dataSource[0].faultDetails |
| | | this.photo = this.dataSource[0].photo |
| | | } else { |
| | | this.faultDetails = "" |
| | | this.photo = "" |
| | | } |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.ipagination.total = 0 |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | }, |
| | | watch: { |
| | | faultId() { |
| | | this.queryParam = {}; |
| | | this.queryParam.faultId = this.faultId; |
| | | this.loadData(1); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2"> |
| | | <!-- <a-form-item |
| | | <a-form-item |
| | | label="æ¯å¦åæºç»´ä¿®" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | dictCode="is_stop" |
| | | v-decorator="['isStop', validatorRules.isStop]" |
| | | /> |
| | | </a-form-item> --> |
| | | </a-form-item> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="设å¤ç¼ç " |
| | | :labelCol="labelCol" |
| | |
| | | @search="onSearchEquipmentList()" |
| | | :read-only="true" |
| | | v-decorator="['equipmentNum', validatorRules.equipmentNum]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="æ
éæ¶é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date |
| | | :disabled="disableSubmit" |
| | | style="width: 100%" |
| | | placeholder="è¯·éæ©æ
éæ¶é´" |
| | | :showTime="true" |
| | | dateFormat="YYYY-MM-DD HH:mm:ss" |
| | | v-decorator="['faultTime', validatorRules.faultTime]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="æ
éæ¶é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date |
| | | :disabled="disableSubmit" |
| | | style="width: 100%" |
| | | placeholder="è¯·éæ©æ
éæ¶é´" |
| | | :showTime="true" |
| | | dateFormat="YYYY-MM-DD HH:mm:ss" |
| | | v-decorator="['faultTime', validatorRules.faultTime]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item |
| | | label="æ
éç
§ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- <j-image-upload-self |
| | | :isMultiple="false" |
| | | v-decorator="['photo', {}]" |
| | | @ok="uploadOk" |
| | | > |
| | | </j-image-upload-self> --> |
| | | <!-- <j-image-upload |
| | | :isMultiple="false" |
| | | @ok="uploadOk" |
| | | v-decorator="['photo', {}]" |
| | | /> --> |
| | | <j-image-upload |
| | | :disabled="disableSubmit" |
| | | :isMultiple="true" |
| | |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row> --> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | |
| | | { required: true, message: '请è¾å
¥å
¥åºåç¼å·!' }, |
| | | ] |
| | | }, |
| | | // isStop: { |
| | | // rules: [ |
| | | // { required: true, message: 'è¯·éæ©æ¯å¦åæº!' }, |
| | | // ] |
| | | // }, |
| | | isStop: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©æ¯å¦åæº!' }, |
| | | ] |
| | | }, |
| | | equipmentNum: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤!' }, |