|
|
|
|
@ -138,7 +138,7 @@ var GLDevicesDialog = function GLDevicesDialog(_ref) {
|
|
|
|
|
type: 'DeviceType',
|
|
|
|
|
category: form.getFieldValue('category')
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
setDeviceType(res);
|
|
|
|
|
setDeviceType(res === null || res === void 0 ? void 0 : res.data);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
@ -387,6 +387,7 @@ var GLDevicesDialog = function GLDevicesDialog(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var InfoList = function InfoList(_ref) {
|
|
|
|
|
objectDestructuringEmpty_default()(_ref);
|
|
|
|
|
@ -490,14 +491,19 @@ var InfoList = function InfoList(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
//实验室
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
type: 'KdClassroom'
|
|
|
|
|
//实验室房间
|
|
|
|
|
(0,laboratory/* classroom_rooms_query */.jd)({
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10000,
|
|
|
|
|
classroom_id: ''
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
setKdClassroom([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res)));
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
var _res$data;
|
|
|
|
|
setKdClassroom([{
|
|
|
|
|
id: '',
|
|
|
|
|
title: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list)));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//设备标签
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
@ -506,7 +512,7 @@ var InfoList = function InfoList(_ref) {
|
|
|
|
|
setDevicTag([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res)));
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
});
|
|
|
|
|
//设备类型
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
@ -515,7 +521,7 @@ var InfoList = function InfoList(_ref) {
|
|
|
|
|
setDeviceType([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res)));
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -790,7 +796,7 @@ var InfoList = function InfoList(_ref) {
|
|
|
|
|
},
|
|
|
|
|
options: kdClassroom,
|
|
|
|
|
fieldNames: {
|
|
|
|
|
label: 'name',
|
|
|
|
|
label: 'title',
|
|
|
|
|
value: 'id'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
@ -1076,6 +1082,7 @@ var col = __webpack_require__(43604);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Scrap_InfoList = function InfoList(_ref) {
|
|
|
|
|
objectDestructuringEmpty_default()(_ref);
|
|
|
|
|
// 标签弹窗
|
|
|
|
|
@ -1170,37 +1177,37 @@ var Scrap_InfoList = function InfoList(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
type: 'KdClassroom'
|
|
|
|
|
//实验室房间
|
|
|
|
|
(0,laboratory/* classroom_rooms_query */.jd)({
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10000,
|
|
|
|
|
classroom_id: ''
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
var _res$data;
|
|
|
|
|
setKdClassroom([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
title: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list)));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//设备标签
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
type: 'DeviceTag'
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
setDevicTag([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
}
|
|
|
|
|
setDevicTag([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
});
|
|
|
|
|
//设备类型
|
|
|
|
|
(0,onlinedevice/* device_tags_device_type */.eX)({
|
|
|
|
|
type: 'DeviceType'
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
setDeviceType([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
}
|
|
|
|
|
setDeviceType([{
|
|
|
|
|
id: '',
|
|
|
|
|
name: '全部'
|
|
|
|
|
}].concat(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -1319,10 +1326,18 @@ var Scrap_InfoList = function InfoList(_ref) {
|
|
|
|
|
key: 'scrapped_descraptionz'
|
|
|
|
|
}, {
|
|
|
|
|
title: '操作',
|
|
|
|
|
width: 150,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: "flex"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "baofei_info",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#165dff",
|
|
|
|
|
marginRight: '10px',
|
|
|
|
|
cursor: "pointer"
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
(0,onlinedevice/* scrapped_data_info */.Ot)(record.id).then(function (res) {
|
|
|
|
|
setscrappeddata(res);
|
|
|
|
|
@ -1331,7 +1346,10 @@ var Scrap_InfoList = function InfoList(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: "\u62A5\u5E9F\u8BE6\u60C5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "yuyue_info",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#165dff",
|
|
|
|
|
cursor: "pointer"
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push({
|
|
|
|
|
pathname: "/equipment/information/deviceDetails/".concat(record.id, "/", false)
|
|
|
|
|
@ -1370,7 +1388,7 @@ var Scrap_InfoList = function InfoList(_ref) {
|
|
|
|
|
return queryData(true, form.getFieldsValue());
|
|
|
|
|
},
|
|
|
|
|
fieldNames: {
|
|
|
|
|
label: 'name',
|
|
|
|
|
label: 'title',
|
|
|
|
|
value: 'id'
|
|
|
|
|
}
|
|
|
|
|
})
|