Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | data: query |
| | | }) |
| | | } |
| | | // ä¿®æ¹æ ·ååå· |
| | | export function updateSampleModel(query) { |
| | | return request({ |
| | | url: '/insOrder/updateSampleModel', |
| | | method: 'post', |
| | | data: query |
| | | }) |
| | | } |
| | |
| | | data: query, |
| | | }); |
| | | } |
| | | //æ¥è¯¢é¢è¦å表 |
| | | export function selectDeviationWarningPage(query) { |
| | | return request({ |
| | | url: "/insProductDeviationWarning/selectDeviationWarningPage", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | //æ¥è¯¢é¢è¦å表 |
| | | export function selectDeviationWarning(query) { |
| | | return request({ |
| | | url: "/insProductDeviationWarning/selectDeviationWarning", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | |
| | | <!-- 设å¤å·¥å
·æç» --> |
| | | <template> |
| | | <div class="role_manage"> |
| | | <div class="search"> |
| | | <div class="search" v-show="!showData"> |
| | | <div> |
| | | <el-form :model="queryParams" ref="queryParams" size="small" :inline="true"> |
| | | <el-form-item label="ç¶æ" prop="deviceStatus" class="form-item"> |
| | |
| | | labelPosition: 'right', |
| | | dialogVisible: false, |
| | | dialogVisible2: false, |
| | | addPower: false, |
| | | showData: false, // æ°éé
ç½®é¡µé¢ |
| | | tableList: [], |
| | | addDia: true, |
| | | addPower: true, |
| | | //设å¤ç±»åå表 |
| | | equipmentList: [], |
| | | // è´è´£äººå表 |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border |
| | | :show-close="false" :visible.sync="bsm3Dia" |
| | | title="åºé´å¼å¡«å" width="800px"> |
| | | <el-table :data="editTable" height="80vh" style="width: 100%"> |
| | | <el-table :data="editTable" height="80vh" style="width: 100%" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border> |
| | | <!-- inspectionItemList --> |
| | | <el-table-column label="æ£éªé¡¹" prop="inspectionItemList" width="180"> |
| | | </el-table-column> |
| | |
| | | size="small"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="æ£éªæ å" min-width="100" prop="standardMethodListId"> |
| | | <el-table-column align="center" label="æ£éªæ å" min-width="100" prop="standardMethodName"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.standardMethodListId" clearable disabled placeholder="ä¸å¡«ååç³»ç»èªå¨çæ" |
| | | <el-input v-model="scope.row.standardMethodName" clearable disabled placeholder="ä¸å¡«ååç³»ç»èªå¨çæ" |
| | | size="small"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | @closePrintDialog="closePrintDialog"></print-dialog> |
| | | <!--æ·»å éæ¼æ£éªé¡¹å¼¹æ¡--> |
| | | <add-inspection-dia v-if="addInspectionDia" ref="addInspectionDia"></add-inspection-dia> |
| | | <!-- <Inspection v-if="state>0" :key="InspectionKey" :inspectorList="inspectorList" :orderId="orderId"--> |
| | | <!-- :sonLaboratory="sonLaboratory" :state="state"--> |
| | | <!-- :typeSource="typeSource" @goback="goback" @refreshView="refreshView"/>--> |
| | | <!--ä¿®æ¹æ ·ååå·å¼¹æ¡--> |
| | | <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :visible.sync="dialogVisible" title="ä¿®æ¹æ ·ååå·" width="80%"> |
| | | <el-table ref="sampleTable" :data="sampleList" border highlight-current-row |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" |
| | | max-height="400px" tooltip-effect="dark"> |
| | | <el-table-column align="center" label="åºå·" type="index" width="65"></el-table-column> |
| | | <el-table-column align="center" label="æ ·ååç§°" min-width="100" prop="sample"> </el-table-column> |
| | | <el-table-column align="center" label="æ ·åç¼å·" min-width="100" prop="sampleCode"></el-table-column> |
| | | <el-table-column align="center" label="æ ·ååå·" min-width="60" prop="model"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.model" clearable placeholder="ä¸å¡«ååç³»ç»èªå¨çæ" |
| | | size="small"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="æ£éªæ å" min-width="100" prop="standardMethodName"></el-table-column> |
| | | </el-table> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">å æ¶</el-button> |
| | | <el-button :loading="submitListLoad" type="primary" @click="submitList">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import AddInspectionDia from "@/views/business/productOrder/components/addInspectionDia.vue"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import { |
| | | checkUpdate, delInsOrder, |
| | | checkUpdate, delInsOrder, getSampleByOrderId, |
| | | rawAllInsOrderExport, |
| | | selectInsOrderParameter, selectNoProducts, selectOrderManDay, |
| | | updateInspected, |
| | | updateOrderEntrustCode, updateStatus, upInsOrder, upPlanUser2 |
| | | updateOrderEntrustCode, updateSampleModel, updateStatus, upInsOrder, upPlanUser2 |
| | | } from "@/api/business/productOrder"; |
| | | import { selectUserCondition } from "@/api/performance/class"; |
| | | import { downFile, getFileList, selectSampleAndProductByOrderId } from "@/api/business/rawMaterialOrder"; |
| | |
| | | dataType: "link", |
| | | linkMethod: "selectAllByOne", |
| | | }, |
| | | { label: 'æ ·ååå·', prop: 'sampleModel' }, |
| | | { |
| | | label: "æ ·ååå·", |
| | | prop: "sampleModel", |
| | | width: "160px", |
| | | dataType: "link", |
| | | linkMethod: "editSampleModel", |
| | | }, |
| | | { label: 'æ ·åæ°é', prop: 'sampleNum' }, |
| | | { label: 'æ£éªäºº', prop: 'testingName' }, |
| | | { |
| | |
| | | multipleSelection: [], |
| | | sonLaboratoryList: [], |
| | | printDialog: false, |
| | | addInspectionDia: false |
| | | addInspectionDia: false, |
| | | dialogVisible: false, |
| | | submitListLoad: false, |
| | | sampleList: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.dataDialogVisible = false; |
| | | this.upLoad = false; |
| | | }, |
| | | // 详æ
|
| | | // ç¹å»æ ·ååç§° |
| | | selectAllByOne(row) { |
| | | this.$router.push({ |
| | | path: "/productOrder/add", query: { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // ä¿®æ¹æ ·ååå· |
| | | editSampleModel (row) { |
| | | if (this.tabIndex !== 1) { |
| | | return |
| | | } |
| | | this.dialogVisible = true |
| | | this.getDataList(row) |
| | | }, |
| | | getDataList(row) { |
| | | this.dialogVisible = true |
| | | getSampleByOrderId({insOrderId: row.id}).then(res => { |
| | | this.sampleList = res.data |
| | | }) |
| | | }, |
| | | // æäº¤æ ·ååå·ä¿®æ¹ |
| | | submitList () { |
| | | this.submitListLoad = true |
| | | updateSampleModel(this.sampleList).then(res => { |
| | | this.submitListLoad = false |
| | | this.dialogVisible = false |
| | | this.$message.success('ä¿®æ¹æå') |
| | | this.refreshTable() |
| | | }).catch(err => { |
| | | this.submitListLoad = false |
| | | }) |
| | | }, |
| | | // æ°æ®æ¥ç |
| | | handleDataLook(row) { |
| | | this.dataDialogVisible = true; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div> |
| | | <lims-table :tableData="tableData" :column="column" |
| | | :height="'calc(100vh - 500px)'" @pagination="pagination" |
| | | :rowClick="rowClick" |
| | | :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <div> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <div class="inspection-card"> |
| | | <div class="title">æ£éªé¡¹åå·®é¢è¦æ°æ®è¯¦æ
</div> |
| | | <Echarts ref="chart" |
| | | :chartStyle="chartStyle" |
| | | :grid="grid" |
| | | :options="echartsOptions" |
| | | :series="echartsSeries" |
| | | :tooltip="tooltip" |
| | | :xAxis="xAxis" |
| | | :yAxis="yAxis" |
| | | style="height: 40vh;"></Echarts> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <el-dialog :visible.sync="viewDia" title="æ¥ç详æ
" width="1100px"> |
| | | <lims-table :tableData="tableData1" :column="column1" |
| | | height="570" |
| | | :tableLoading="tableLoading1"></lims-table> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {selectDeviationWarning, selectDeviationWarningPage} from "@/api/statisticalCharts/dataAnalysis"; |
| | | import Echarts from "@/components/echarts/echarts.vue"; |
| | | |
| | | export default { |
| | | name: '', |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: {Echarts, limsTable}, |
| | | data() { |
| | | // è¿éåæ¾æ°æ® |
| | | return { |
| | | viewDia: false, |
| | | queryParams: {}, |
| | | tableData: [], |
| | | tableLoading: false, |
| | | column: [ |
| | | { label: 'æ ·åç¼å·', prop: 'sampleCode',width: 150 }, |
| | | { label: 'æ ·ååç§°', prop: 'sampleName',width: 150 }, |
| | | { label: 'åå·', prop: 'sampleModel' }, |
| | | { label: 'ä¾åºååç§°', prop: 'supplierName',width: 150 }, |
| | | { label: 'æ£éªé¡¹åç§°', prop: 'inspectionItemName',width: 150 }, |
| | | { label: 'ä¾åºååç§°', prop: 'supplierName',width: 150 }, |
| | | { |
| | | label: "åå·®å¼", |
| | | prop: "deviationValue", |
| | | width: 150, |
| | | dataType: "tag", |
| | | formatType: (params) => { |
| | | return 'danger' |
| | | }, |
| | | }, |
| | | { label: 'æ£æµæ¶é´', prop: 'detectionTime',width: 160 }, |
| | | { |
| | | dataType: 'action', |
| | | label: 'æä½', |
| | | operation: [ |
| | | { |
| | | name: 'æ¥ç', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openDia(row); |
| | | }, |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | | page: { |
| | | total: 0, |
| | | size: 20, |
| | | current: 1 |
| | | }, |
| | | tableData1: [], |
| | | tableLoading1: false, |
| | | column1: [ |
| | | { label: 'æ ·åç¼å·', prop: 'sampleCode'}, |
| | | { label: 'ä¾åºååç§°', prop: 'supplierName'}, |
| | | { label: 'ä¾åºååç§°', prop: 'supplierName'}, |
| | | { |
| | | label: "æ£æµå¼", |
| | | prop: "testValue", |
| | | width: 150, |
| | | dataType: "tag", |
| | | formatType: (params) => { |
| | | if (this.tableData1.find((m) => m.testValue == params).isIssue == 1) { |
| | | return 'danger' |
| | | } else { |
| | | return 'success' |
| | | } |
| | | }, |
| | | }, |
| | | { label: 'æ£æµæ¶é´', prop: 'detectionTime',width: 160 }, |
| | | ], |
| | | chartStyle: { |
| | | width: '100%', |
| | | height: '96%' // 设置å¾è¡¨å®¹å¨çé«åº¦ |
| | | }, |
| | | grid: { |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true |
| | | }, |
| | | tooltip: {}, |
| | | echartsOptions: {}, |
| | | echartsSeries: [ |
| | | { |
| | | name: 'åå·®å¼', |
| | | type: 'line', |
| | | smooth: true, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value; |
| | | } |
| | | }, |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | formatter: function (value) { |
| | | return value.value; |
| | | }, |
| | | distance: 14 |
| | | }, |
| | | data: [], |
| | | markArea: {}, |
| | | markPoint: {} |
| | | }, |
| | | ], |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | data: [], |
| | | boundaryGap: false, |
| | | axisLabel: { |
| | | interval: 0, // å¼ºå¶æ¾ç¤ºæææ ç¾ |
| | | rotate: 0, // ä¸æè½¬ï¼å¯ä»¥æ ¹æ®éè¦è°æ´ï¼ |
| | | formatter: function (value) { |
| | | // æ¯éä¸å®é¿åº¦æ·»å æ¢è¡ç¬¦ |
| | | const maxLength = 9; // æ¯æ®µæå¤§åç¬¦æ° |
| | | let result = ''; |
| | | for (let i = 0; i < value.length; i += maxLength) { |
| | | result += value.substring(i, i + maxLength) + '\n'; |
| | | } |
| | | return result.trim(); // 廿æ«å°¾å¤ä½çæ¢è¡ç¬¦ |
| | | }, |
| | | margin: 10, // æ ç¾ä¸è½´çº¿çè·ç¦» |
| | | }, |
| | | } |
| | | ], |
| | | yAxis: [{ |
| | | type: 'value', |
| | | axisLabel: { |
| | | formatter: '{value}' |
| | | } |
| | | }], |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.refreshTable() |
| | | }, |
| | | // æ¹æ³éå |
| | | methods: { |
| | | // æ¥è¯¢åè¡¨ä¿¡æ¯ |
| | | refreshTable() { |
| | | this.tableLoading = true |
| | | selectDeviationWarningPage({ ...this.page}).then(res => { |
| | | this.tableLoading = false |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | | }) |
| | | }, |
| | | // æ¥è¯¢æçº¿å¾ä¿¡æ¯ |
| | | rowClick (row) { |
| | | selectDeviationWarning({deviationWarningId: row.deviationWarningId}).then(res => { |
| | | console.log('res---', res) |
| | | if (res.data === null) { |
| | | this.$message.warning('ææ æ°æ®') |
| | | return |
| | | } |
| | | let lineData = [] |
| | | let xAxis = [] |
| | | let markAreas = []; // åå¨ markArea çæ°ç» |
| | | let markPoints = []; |
| | | res.data.forEach((item, index) => { |
| | | lineData.push(item.testValue) |
| | | xAxis.push(item.sampleCode) |
| | | // 妿 isIssue 为 1ï¼å卿¤ç´¢å¼å¤æ·»å ä¸ä¸ª markArea |
| | | if (item.isIssue == 1) { |
| | | const startColumn = index > 0 ? xAxis[index - 1] : xAxis[index]; // èµ·ç¹ï¼åä¸åæå½åå |
| | | const endColumn = xAxis[index]; // ç»ç¹ï¼å½åå |
| | | |
| | | markAreas.push([ |
| | | { |
| | | xAxis: startColumn, // ä»åä¸åå¼å§ |
| | | }, |
| | | { |
| | | xAxis: endColumn, // å°å½ååç»æ |
| | | } |
| | | ]); |
| | | markPoints.push({ |
| | | name: 'é®é¢ç¹', |
| | | coord: [item.sampleCode, item.testValue], |
| | | value: item.testValue, |
| | | itemStyle: { |
| | | color: 'rgba(255, 173, 177, 0.8)' |
| | | }, |
| | | label: { |
| | | show: true, |
| | | formatter: function(params) { |
| | | return params.value; // èªå®ä¹æ ç¾å
容 |
| | | }, |
| | | color: 'black', // æ ç¾æåé¢è² |
| | | fontSize: 12, |
| | | distance: 5, // è°æ´æ ç¾ä¸æ°æ³¡çè·ç¦» |
| | | padding: [0,0], |
| | | backgroundColor: 'rgba(255, 173, 177, 0.8)', // æ ç¾èæ¯è²åéæåº¦ |
| | | borderRadius: 4 |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | this.xAxis[0].data = xAxis |
| | | this.echartsSeries[0].data = lineData |
| | | // æ´æ° markArea é
ç½® |
| | | this.echartsSeries[0].markArea = { |
| | | itemStyle: { |
| | | color: 'rgba(255, 173, 177, 0.4)' // è®¾ç½®èæ¯é¢è² |
| | | }, |
| | | data: markAreas // 卿çæç markArea æ°æ® |
| | | }; |
| | | this.echartsSeries[0].markPoint = { |
| | | data: markPoints |
| | | }; |
| | | }) |
| | | }, |
| | | // éç½® |
| | | refresh() { |
| | | // this.resetForm('entity') |
| | | this.refreshTable() |
| | | }, |
| | | // å页忢 |
| | | pagination(page) { |
| | | this.page.size = page.limit |
| | | this.refreshTable() |
| | | }, |
| | | openDia (row) { |
| | | this.viewDia = true |
| | | this.tableLoading1 = true |
| | | selectDeviationWarning({deviationWarningId: row.deviationWarningId}).then(res => { |
| | | this.tableLoading1 = false |
| | | this.tableData1 = res.data |
| | | }).catch(() => { |
| | | this.tableLoading1 = false |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .inspection-card{ |
| | | width: 100%; |
| | | margin-top: 10px; |
| | | } |
| | | </style> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" v-if="editForm.inspectionItemType == 1"> |
| | | <el-form-item label="设å¤ç»å®ï¼" prop="deviceId"> |
| | | <el-select v-model="editForm.deviceId" clearable placeholder="è¯·éæ©" size="small" style="width: 100%" multiple> |
| | | <el-option v-for="item in equipOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ£éªå¼ç±»åï¼" prop="inspectionValueType"> |
| | | <el-select v-model="editForm.inspectionValueType" clearable placeholder="è¯·éæ©" size="small" style="width: 100%"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ç¹æ®æ è¯ï¼" prop="bsm"> |
| | | <el-select v-model="editForm.bsm" clearable placeholder="è¯·éæ©" size="small" style="width: 100%"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="åå§è®°å½æ¨¡æ¿ï¼" prop="templateId"> |
| | | <el-select v-model="editForm.templateId" clearable placeholder="è¯·éæ©" size="small" style="width: 100%"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ£éªé¡¹åç±»ï¼" prop="inspectionItemClass"> |
| | | <el-input v-model="editForm.inspectionItemClass" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ£éªé¡¹åç±»ENï¼" prop="inspectionItemClassEn"> |
| | | <el-input v-model="editForm.inspectionItemClassEn" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="è¯éªæ¹æ³ï¼" prop="method"> |
| | | <el-select v-model="editForm.method" clearable multiple placeholder="è¯·éæ©" size="small" style="width: 100%"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ¡ä»¶ï¼" prop="radiusList"> |
| | | <el-select v-model="editForm.radiusList" allow-create default-first-option filterable multiple |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ¶è´¹æ å(å
/次)ï¼" prop="rates"> |
| | | <el-input v-model="editForm.rates" clearable size="small"></el-input> |
| | |
| | | upItemParameter |
| | | } from "@/api/structural/capability"; |
| | | import {selectStandardMethods} from "@/api/structural/standardMethod"; |
| | | import {search} from "@/api/business/inspectionTask"; |
| | | |
| | | export default { |
| | | name: "EditForm", |
| | |
| | | method: '', // è¯éªæ¹æ³ |
| | | radiusList: [], // æ¡ä»¶ |
| | | rates: '', // æ¡ä»¶ |
| | | deviceId: [], // è®¾å¤ |
| | | }, |
| | | sampleList: [], // æ£éªå¯¹è±¡ä¸ææ¡ |
| | | laboratoryList: [], // åºæä¸ææ¡ |
| | |
| | | { required: true, message: 'è¯·éæ©åå§è®°å½æ¨¡æ¿', trigger: 'change' } |
| | | ] |
| | | }, |
| | | operationType: '' |
| | | operationType: '', |
| | | equipOptions: [] |
| | | } |
| | | }, |
| | | // æ¹æ³éå |
| | |
| | | openDia (type, row) { |
| | | this.operationType = type |
| | | this.editFormDia = true |
| | | this.getEquipOptions() // è·åææè®¾å¤ |
| | | this.obtainItemParameterList() // åºæç±»å |
| | | this.getStandardTemplate() // åå§è®°å½æ¨¡æ¿ä¸ææ¡ |
| | | this.getSelectStandardMethods() // è¯éªæ¹æ³ |
| | |
| | | } else { |
| | | this.editForm = this.HaveJson(row) |
| | | this.editForm.sample = JSON.parse(this.editForm.sample) |
| | | this.editForm.radiusList = JSON.parse(this.editForm.radiusList) |
| | | this.editForm.radiusList = this.editForm.radiusList && JSON.parse(this.editForm.radiusList) |
| | | this.editForm.method = JSON.parse(this.editForm.method) |
| | | this.$set(this.editForm, 'deviceId', this.editForm.deviceIds && this.editForm.deviceIds.split(",")) |
| | | } |
| | | }, |
| | | // æäº¤ç¼è¾ |
| | |
| | | obj.radiusList = JSON.stringify(obj.radiusList) |
| | | } else { |
| | | obj.radiusList = null |
| | | } |
| | | if (obj.deviceId?.length > 0) { |
| | | obj.deviceIds = obj.deviceId.join(',') |
| | | } else { |
| | | obj.deviceIds = null |
| | | } |
| | | if(obj.id){ |
| | | // ä¿®æ¹ |
| | |
| | | this.templateIdList = data |
| | | }) |
| | | }, |
| | | // è·åææè®¾å¤ |
| | | getEquipOptions() { |
| | | this.equipOptions = []; |
| | | search({ status: 0 }).then((res) => { |
| | | if (res.code === 200 && res.data) { |
| | | this.equipOptions = res.data.map((m) => { |
| | | m.value = m.managementNumber; |
| | | m.label = m.deviceName; |
| | | return m; |
| | | }); |
| | | } |
| | | }).catch((error) => { |
| | | console.error(error); |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | </script> |