| | |
| | | return request({ |
| | | url: '/system/util/online', |
| | | method: 'get', |
| | | timeout: 30 * 1000, |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | // 大小限制(MB) |
| | | fileSize: { |
| | | type: Number, |
| | | default: 5, |
| | | default: 20, |
| | | }, |
| | | // 文件类型, 例如['png', 'jpg', 'jpeg'] |
| | | fileType: { |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog title="工单审核" :visible.sync="auditingOpen" width="1000px" append-to-body> |
| | | <el-dialog :before-close="cancelAuditing" title="工单审核" :visible.sync="auditingOpen" width="1000px" append-to-body> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="10"> |
| | | <el-form ref="auditingForm" :model="auditingForm" :rules="auditingRules" label-width="80px"> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | /** 下载按钮操作 */ |
| | | handleDownload(data) { |
| | | this.$download.resource(data) |
| | | }, |
| | | // 提交审核 |
| | | submitAuditing() { |
| | | this.$refs['auditingForm'].validate(valid => { |
| | |
| | | auditing(this.auditingForm).then(res => { |
| | | this.$emit('close', false); |
| | | this.$modal.msgSuccess('操作成功') |
| | | this.getList() |
| | | this.$emit('getList', false); |
| | | }) |
| | | } |
| | | }) |
| | |
| | | </li> |
| | | <li class="list-group-item"> |
| | | <svg-icon icon-class="tree" />所属部门 |
| | | <div class="pull-right" v-if="user.dept">{{ user.dept.deptName }} / {{ postGroup }}</div> |
| | | <!-- <div class="pull-right" v-if="user.dept">{{ user.dept.deptName }} / {{ postGroup }}</div>--> |
| | | <div class="pull-right" v-if="user.dept">{{ user.dept.deptName }}</div> |
| | | </li> |
| | | <li class="list-group-item"> |
| | | <svg-icon icon-class="peoples" />所属角色 |
| | |
| | | plain |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['work:order:audit']" |
| | | v-hasPermi="['work:order:export']" |
| | | >导出 |
| | | </el-button> |
| | | </el-col> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <WorkOrderAuditing :auditingOpen="auditingOpen" :dataForm="auditingForm" :ywConditions="ywConditions" @close="closeAuditing"/> |
| | | <WorkOrderAuditing :auditingOpen="auditingOpen" :dataForm="auditingForm" :ywConditions="ywConditions" @close="closeAuditing" @getList="getList"/> |
| | | <!-- <el-dialog title="工单审核" :visible.sync="auditingOpen" width="1000px" append-to-body>--> |
| | | <!-- <el-row :gutter="20">--> |
| | | <!-- <el-col :span="10">--> |
| | |
| | | <!-- </el-dialog>--> |
| | | |
| | | <el-dialog title="运维情况记录" :visible.sync="ywConditionOpen" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="ywConditionRules" label-width="80px"> |
| | | <el-form ref="ywConditionForm" :model="form" :rules="ywConditionRules" label-width="80px"> |
| | | <el-form-item label="工单号" prop="workOrderNo"> |
| | | <el-input v-model="ywConditionForm.workOrderNo" disabled/> |
| | | </el-form-item> |
| | |
| | | }, |
| | | // 提交运维情况 |
| | | submitYwCondition() { |
| | | this.$refs['form'].validate(valid => { |
| | | this.$refs['ywConditionForm'].validate(valid => { |
| | | if (valid) { |
| | | ywCondition(this.form).then(res => { |
| | | this.ywConditionOpen = false |
| | |
| | | <el-input v-model="form.serialNumber"/> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button @click="check" type="primary">检测</el-button> |
| | | <el-button @click="check" type="primary">检测</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div v-loading="loading" v-if="result.status"> |
| | | <div v-loading="loading"> |
| | | <div class="row"> |
| | | <div>检测结果:</div> |
| | | <div>{{ result.status }}</div> |
| | | </div> |
| | | <div style="margin-top: 100px"> |
| | | <div style="margin-top: 100px" v-if="result.status"> |
| | | <div v-if="result.img"> |
| | | <div>图片:</div> |
| | | <div> |