webpackJsonp([64],{
|
|
|
|
/***/ "FJRY":
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/defineProperty.js
|
|
var defineProperty = __webpack_require__("bOdI");
|
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/keys.js
|
|
var keys = __webpack_require__("fZjL");
|
|
var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
|
|
var stringify = __webpack_require__("mvHQ");
|
|
var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/regenerator/index.js
|
|
var regenerator = __webpack_require__("Xxa5");
|
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__("exGp");
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
|
// EXTERNAL MODULE: ./src/api/index.js + 5 modules
|
|
var api = __webpack_require__("gyMJ");
|
|
|
|
// EXTERNAL MODULE: ./src/utils/index.js
|
|
var utils = __webpack_require__("0xDb");
|
|
|
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
var util = __webpack_require__("oFuF");
|
|
|
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
var moment = __webpack_require__("PJh5");
|
|
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/linkman/linkperson.vue
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var linkperson = (defineProperty_default()({
|
|
name: "alarmRecord",
|
|
data: function data() {
|
|
return {
|
|
balanceData: 0,
|
|
props: {
|
|
multiple: true,
|
|
emitPath: false
|
|
},
|
|
modeList: [{
|
|
name: '短信',
|
|
id: 'toSms'
|
|
}, {
|
|
name: '公众号',
|
|
id: 'toWechat'
|
|
}, {
|
|
name: '电话',
|
|
id: 'toVoice'
|
|
}],
|
|
pageTotal: 0,
|
|
rules: {
|
|
region: [{
|
|
required: true,
|
|
message: '请选择所属单位',
|
|
trigger: 'blur'
|
|
}],
|
|
phone: [{
|
|
required: true,
|
|
message: '请输入电话',
|
|
trigger: 'blur'
|
|
}],
|
|
name: [{
|
|
required: true,
|
|
message: '请输入名称',
|
|
trigger: 'blur'
|
|
}]
|
|
},
|
|
dialogVisible2: false,
|
|
titleText: '设备未处理报警记录(IMEI:860709056256857)',
|
|
textarea: '', //批量处理备注
|
|
dialogVisible: false,
|
|
dialogVisible1: false,
|
|
input: '',
|
|
content: '切换单个/多个查询模式',
|
|
selected: true,
|
|
advancedQueryStatus: false,
|
|
advancedQueryText: '高级查询',
|
|
formInline: {
|
|
phone: '',
|
|
name: '',
|
|
toSms: false,
|
|
toVoice: false,
|
|
toWechat: false,
|
|
enterpriseId: ''
|
|
},
|
|
atAlertList: [{
|
|
value: 1,
|
|
label: '撬锁报警'
|
|
}, {
|
|
value: 2,
|
|
label: '强行开门报警'
|
|
}, {
|
|
value: 7,
|
|
label: '低电量报警'
|
|
}, {
|
|
value: 9,
|
|
label: '胁迫开锁报警'
|
|
}],
|
|
tableData: [],
|
|
rowStyle: {
|
|
background: '#f8f9fa',
|
|
fontSize: '12px'
|
|
},
|
|
multipleSelection: [],
|
|
enterpriselist: [],
|
|
formRoom: {
|
|
name: '',
|
|
phone: '',
|
|
region: '',
|
|
toWechat: false,
|
|
toVoice: false,
|
|
toSms: false,
|
|
enterpriseId: '',
|
|
atAlert: [],
|
|
balance: 0
|
|
},
|
|
form1: {
|
|
address: '',
|
|
province: '',
|
|
city: '',
|
|
latitude: 0, // 纬度
|
|
longitude: 0, // 经度
|
|
district: ''
|
|
},
|
|
currentPage: 1,
|
|
currentPage1: 1,
|
|
pageSize: 10,
|
|
pageTotal1: 0,
|
|
batch: true,
|
|
zNodes: [],
|
|
modifyRow: '',
|
|
modifyStatus: false,
|
|
deviceList: [],
|
|
devicerow: '',
|
|
userInfo: {
|
|
type: ''
|
|
},
|
|
quotaForm: { balance: 0 },
|
|
oldQuta: { balance: 0 }
|
|
};
|
|
},
|
|
|
|
components: {
|
|
// Map
|
|
},
|
|
computed: {},
|
|
created: function created() {
|
|
var _this = this;
|
|
|
|
return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_this.userInfo = JSON.parse(localStorage.getItem('info'));
|
|
_context.next = 3;
|
|
return _this.getEnterprise();
|
|
|
|
case 3:
|
|
_context.next = 5;
|
|
return _this.getUserlist();
|
|
|
|
case 5:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, _this);
|
|
}))();
|
|
},
|
|
mounted: function mounted() {},
|
|
|
|
methods: {
|
|
// 获取余额
|
|
getUserlist: function getUserlist() {
|
|
var _this2 = this;
|
|
|
|
var data = {
|
|
q: stringify_default()({
|
|
id: this.userInfo.id
|
|
})
|
|
};
|
|
Object(api["d" /* httpGet */])(data, this.$api.getUserList).then(function (res) {
|
|
if (res.code == 200) {
|
|
if (res.data.total > 0) {
|
|
_this2.balanceData = (res.data.list[0].balance / 100).toFixed(2);
|
|
} else {
|
|
_this2.balanceData = 0;
|
|
}
|
|
} else {
|
|
_this2.$message.error(res.message);
|
|
}
|
|
});
|
|
},
|
|
|
|
// 分配额度
|
|
allocationQuota: function allocationQuota(index, row) {
|
|
this.dialogVisible2 = true;
|
|
var data = JSON.parse(stringify_default()(row));
|
|
if (typeof row.balance == 'number') {
|
|
data.balance = (data.balance / 100).toFixed(2);
|
|
row.balance = (row.balance / 100).toFixed(2);
|
|
}
|
|
data.distribution = 0;
|
|
this.quotaForm = data;
|
|
this.oldQuta = row;
|
|
},
|
|
modifyQuotaMethods: function modifyQuotaMethods() {
|
|
var _this3 = this;
|
|
|
|
if (Number(this.quotaForm.distribution) != 0) {
|
|
var pushData = {
|
|
alarmUserId: this.quotaForm.id,
|
|
recharge: Number(this.quotaForm.distribution) * 100
|
|
};
|
|
Object(api["g" /* httpPost */])(pushData, this.$api.rechargeAlarmBalance).then(function (res1) {
|
|
if (res1.code == 200) {
|
|
_this3.$message.success("分配成功");
|
|
_this3.dialogVisible2 = false;
|
|
_this3.getlist();
|
|
_this3.getUserlist();
|
|
} else {
|
|
_this3.dialogVisible2 = false;
|
|
if (res1.message == 'Insufficient balance') {
|
|
_this3.$message.error("余额不足");
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
this.dialogVisible2 = false;
|
|
}
|
|
},
|
|
checkNodeRecordTop: function checkNodeRecordTop(e) {
|
|
this.formInline.enterpriseId = e[e.length - 1];
|
|
},
|
|
checkNodeRecord: function checkNodeRecord(e) {
|
|
this.formRoom.enterpriseId = e[e.length - 1];
|
|
},
|
|
InputFun: function InputFun(e) {
|
|
if (e == 'toSms') {
|
|
this.formInline['toSms'] = true;
|
|
this.formInline['toVoice'] = false;
|
|
this.formInline['toWechat'] = false;
|
|
} else if (e == 'toVoice') {
|
|
this.formInline['toSms'] = false;
|
|
this.formInline['toVoice'] = true;
|
|
this.formInline['toWechat'] = false;
|
|
} else if (e == 'toWechat') {
|
|
this.formInline['toSms'] = false;
|
|
this.formInline['toVoice'] = false;
|
|
this.formInline['toWechat'] = true;
|
|
}
|
|
},
|
|
modifswitch: function modifswitch(index, row) {
|
|
var _this4 = this;
|
|
|
|
this.$confirm('是否确认修改?', '提示').then(function (_) {
|
|
var data = [{
|
|
// list: [{
|
|
id: row.id,
|
|
phone: row.phone,
|
|
enterpriseId: row.enterpriseId,
|
|
name: row.name,
|
|
toSms: row.toSms || false,
|
|
toVoice: row.toVoice || false,
|
|
toWechat: row.toWechat || false
|
|
// }]
|
|
}];
|
|
if (row.name == "") {
|
|
_this4.$message.error("名称不能为空");
|
|
} else if (row.phone == "") {
|
|
_this4.$message.error("手机号不能为空");
|
|
} else {
|
|
Object(api["g" /* httpPost */])(data, _this4.$api.editAlarmUser).then(function (res) {
|
|
if (res.success) {
|
|
_this4.$message.success("修改成功");
|
|
_this4.getlist();
|
|
} else {
|
|
_this4.$message.error("修改失败");
|
|
}
|
|
});
|
|
}
|
|
}).catch(function (_) {
|
|
_this4.getlist();
|
|
});
|
|
},
|
|
deleteAlarm: function deleteAlarm(index, row) {
|
|
var _this5 = this;
|
|
|
|
var data = {
|
|
ids: [row.id]
|
|
};
|
|
Object(api["g" /* httpPost */])(data, this.$api.deleteAlarmUser).then(function (res) {
|
|
if (res.success) {
|
|
_this5.$message.success("删除成功");
|
|
_this5.getlist();
|
|
} else {
|
|
_this5.$message.error("删除失败");
|
|
}
|
|
});
|
|
},
|
|
reset: function reset() {
|
|
var formInline = {
|
|
region: '',
|
|
name: '',
|
|
phone: '',
|
|
mode: ''
|
|
};
|
|
this.formInline = formInline;
|
|
},
|
|
|
|
// 修改房源
|
|
modifyRoom: function modifyRoom(index, row) {
|
|
var formRoom = {
|
|
name: row.name,
|
|
phone: row.phone,
|
|
region: row.enterpriseId,
|
|
enterpriseId: row.enterpriseId,
|
|
toSms: row.toSms,
|
|
toVoice: row.toVoice,
|
|
toWechat: row.toWechat,
|
|
balance: row.balance / 100,
|
|
atAlert: JSON.parse(row.atAlert)
|
|
};
|
|
this.formRoom = formRoom;
|
|
this.modifyRow = row;
|
|
this.dialogVisible = true;
|
|
this.modifyStatus = true;
|
|
},
|
|
updateRoom: function updateRoom() {
|
|
var _this6 = this;
|
|
|
|
var formRoom = this.formRoom;
|
|
var data = [{
|
|
// list: [{
|
|
id: this.modifyRow.id,
|
|
phone: formRoom.phone,
|
|
enterpriseId: formRoom.region,
|
|
name: formRoom.name,
|
|
toSms: formRoom.toSms,
|
|
toVoice: formRoom.toVoice,
|
|
toWechat: formRoom.toWechat
|
|
// }]
|
|
}];
|
|
if (formRoom.name == "") {
|
|
this.$message.error("名称不能为空");
|
|
} else if (formRoom.phone == "") {
|
|
this.$message.error("手机号不能为空");
|
|
} else {
|
|
Object(api["g" /* httpPost */])(data, this.$api.editAlarmUser).then(function (res) {
|
|
if (res.success) {
|
|
_this6.$message.success("修改成功");
|
|
_this6.dialogVisible = false;
|
|
_this6.getlist();
|
|
} else {
|
|
_this6.$message.error("修改失败");
|
|
}
|
|
});
|
|
}
|
|
},
|
|
|
|
// 创建人员
|
|
saveEdit: function saveEdit() {
|
|
var _this7 = this;
|
|
|
|
var formRoom = this.formRoom;
|
|
if (formRoom.name == "") {
|
|
this.$message.error("姓名不能为空");
|
|
} else if (formRoom.phone == "") {
|
|
this.$message.error("手机号不能为空");
|
|
} else {
|
|
var data = {
|
|
phone: formRoom.phone,
|
|
enterpriseId: formRoom.enterpriseId,
|
|
name: formRoom.name,
|
|
toSms: formRoom.toSms || false,
|
|
toVoice: formRoom.toVoice || false,
|
|
toWechat: formRoom.toWechat || false,
|
|
atAlert: stringify_default()(formRoom.atAlert)
|
|
};
|
|
Object(api["g" /* httpPost */])(data, this.$api.lockAddAlarmUser).then(function (res) {
|
|
if (res.success) {
|
|
_this7.dialogVisible = false;
|
|
_this7.getlist();
|
|
_this7.$message.success("创建成功");
|
|
} else {
|
|
_this7.$message.error("创建失败");
|
|
}
|
|
});
|
|
}
|
|
},
|
|
yz: function yz(obj) {
|
|
var str = {};
|
|
keys_default()(obj).forEach(function (key) {
|
|
if (obj[key] != '' && key != 'mode') {
|
|
str[key] = obj[key];
|
|
}
|
|
});
|
|
return str;
|
|
},
|
|
|
|
// 获取列表
|
|
getlist: function getlist() {
|
|
var _this8 = this;
|
|
|
|
var q = this.yz(this.formInline);
|
|
var data = {
|
|
q: stringify_default()(q),
|
|
orderBy: "create_time desc",
|
|
pageNum: this.currentPage,
|
|
pageSize: this.pageSize
|
|
};
|
|
Object(api["d" /* httpGet */])(data, this.$api.lockAlarmUsers).then(function (res) {
|
|
if (res.data.list.length > 0) {
|
|
var list = res.data.list;
|
|
list.map(function (li) {
|
|
var name = util["a" /* default */].findIndexArray(_this8.enterpriselist, li.enterpriseId, []);
|
|
var path = '';
|
|
if (name) {
|
|
path = name.join('/');
|
|
li.enterpriseName = path;
|
|
}
|
|
});
|
|
_this8.tableData = list;
|
|
console.log(_this8.tableData);
|
|
_this8.pageTotal = res.data.total;
|
|
} else {
|
|
_this8.tableData = [];
|
|
_this8.pageTotal = 0;
|
|
}
|
|
});
|
|
},
|
|
updateLocation: function updateLocation(orgAddr, lon, lat, province, city, district) {
|
|
this.form1 = {
|
|
address: orgAddr,
|
|
province: province,
|
|
city: city,
|
|
latitude: lat, // 纬度
|
|
longitude: lon, // 经度
|
|
district: district
|
|
};
|
|
},
|
|
|
|
// 获取单位
|
|
getEnterprise: function getEnterprise() {
|
|
var _this9 = this;
|
|
|
|
var data = {
|
|
q: stringify_default()({
|
|
name: this.formInline.name
|
|
})
|
|
};
|
|
Object(api["d" /* httpGet */])(data, this.$api.getEnterprise).then(function (res) {
|
|
if (res.success) {
|
|
res.data.list.map(function (li) {
|
|
li['pid'] = li.parentId;
|
|
li['label'] = li.name;
|
|
li['value'] = li.id;
|
|
});
|
|
var array = util["a" /* default */].uniqueArray(res.data.list, "id");
|
|
var roomlistZNodes = Object(utils["q" /* ztreeToElementTree2 */])(array, []);
|
|
_this9.enterpriselist = roomlistZNodes;
|
|
_this9.getlist();
|
|
} else {
|
|
_this9.$message.error("获取失败");
|
|
}
|
|
});
|
|
},
|
|
|
|
// 未处理记录打开
|
|
recordFun: function recordFun() {
|
|
this.dialogVisible1 = true;
|
|
},
|
|
|
|
// 未处理记录处理关闭
|
|
handleClose1: function handleClose1(done) {
|
|
done();
|
|
},
|
|
|
|
// 批量处理关闭
|
|
handleClose: function handleClose(done) {
|
|
done();
|
|
this.modifyStatus = false;
|
|
},
|
|
|
|
// 批量处理
|
|
batchProcessing: function batchProcessing() {
|
|
this.dialogVisible = true;
|
|
this.formRoom = {
|
|
name: '',
|
|
address: '',
|
|
floorNum: '',
|
|
region: ''
|
|
};
|
|
this.modifyStatus = false;
|
|
},
|
|
|
|
// 分页
|
|
handleSizeChange: function handleSizeChange(val) {
|
|
this.pageSize = val;
|
|
this.getlist();
|
|
console.log("\u6BCF\u9875 " + val + " \u6761");
|
|
},
|
|
handleCurrentChange: function handleCurrentChange(val) {
|
|
this.currentPage = val;
|
|
this.getlist();
|
|
console.log("\u5F53\u524D\u9875: " + val);
|
|
},
|
|
|
|
// 表头样式
|
|
rowClass: function rowClass(_ref) {
|
|
var row = _ref.row,
|
|
rowIndex = _ref.rowIndex;
|
|
|
|
return "background:#f8f9fa;color:#333;font-blod:none;font-size:12px;";
|
|
},
|
|
|
|
// 表格勾选
|
|
handleSelectionChange: function handleSelectionChange(val) {
|
|
if (val.length > 0) {
|
|
this.batch = false;
|
|
} else {
|
|
this.batch = true;
|
|
}
|
|
},
|
|
|
|
// 高级查询显示
|
|
advancedQueryFun: function advancedQueryFun() {
|
|
if (this.advancedQueryStatus) {
|
|
this.advancedQueryText = "高级查询";
|
|
this.advancedQueryStatus = false;
|
|
} else {
|
|
this.advancedQueryText = "同用查询";
|
|
this.advancedQueryStatus = true;
|
|
}
|
|
},
|
|
|
|
// 批量处理备注监控
|
|
textareaFun: function textareaFun(e) {
|
|
this.textarea = e;
|
|
},
|
|
|
|
// 单个/多个查询切换
|
|
switchFun: function switchFun() {
|
|
this.selected = !this.selected;
|
|
}
|
|
}
|
|
}, "mounted", function mounted() {}));
|
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-5f41d027","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/linkman/linkperson.vue
|
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"container"}},[_c('div',{staticClass:"alarmrecord"},[_c('el-card',{staticClass:"box-card"},[_c('el-row',{},[_c('div',{staticClass:"search"},[_c('el-form',{staticClass:"demo-form-inline",attrs:{"inline":true,"model":_vm.formInline}},[(_vm.userInfo.type==0)?_c('el-form-item',{attrs:{"label":""}},[_c('selectoption')],1):_vm._e(),_vm._v(" "),_c('el-form-item',{attrs:{"label":"单位名称:"}},[_c('el-cascader',{ref:"cascaderone",attrs:{"options":_vm.enterpriselist,"size":"small","placeholder":"请选择所属单位","props":{ checkStrictly: true },"clearable":""},on:{"change":_vm.checkNodeRecordTop},model:{value:(_vm.formInline.enterpriseId),callback:function ($$v) {_vm.$set(_vm.formInline, "enterpriseId", $$v)},expression:"formInline.enterpriseId"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"姓名:"}},[_c('el-input',{attrs:{"placeholder":"请输入联系人姓名","size":"small","clearable":true},model:{value:(_vm.formInline.name),callback:function ($$v) {_vm.$set(_vm.formInline, "name", $$v)},expression:"formInline.name"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"电话:"}},[_c('el-input',{attrs:{"type":"number","maxlength":"11","placeholder":"请输入联系人电话","size":"small","clearable":true},model:{value:(_vm.formInline.phone),callback:function ($$v) {_vm.$set(_vm.formInline, "phone", $$v)},expression:"formInline.phone"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"通知方式:"}},[_c('el-select',{staticClass:"w200",attrs:{"clearable":"","size":"small","placeholder":"请选择通知方式"},on:{"input":function($event){return _vm.InputFun($event)}},model:{value:(_vm.formInline.mode),callback:function ($$v) {_vm.$set(_vm.formInline, "mode", $$v)},expression:"formInline.mode"}},_vm._l((_vm.modeList),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.id}})}),1)],1),_vm._v(" "),_c('el-form-item',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.reset}},[_vm._v("重置")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.getlist}},[_vm._v("查询")])],1)],1)],1)]),_vm._v(" "),_c('el-row',{staticClass:"marginTop"},[_c('div',{staticClass:"tablecell"},[_c('el-row',{staticClass:"floatRight"},[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.batchProcessing}},[_vm._v("新增")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":true,"tooltip-effect":"dark","header-cell-style":_vm.rowClass,"row-key":"id","default-expand-all":true,"tree-props":{children: 'children', hasChildren: 'hasChildren'},"cell-style":{fontSize:'12px'},"stripe":"","height":"590"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"姓名","width":"120"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"enterpriseName","label":"所属单位","show-overflow-tooltip":""}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"phone","label":"电话","show-overflow-tooltip":""}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"通知方式","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-switch',{attrs:{"inactive-text":"短信"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(scope.row.toSms),callback:function ($$v) {_vm.$set(scope.row, "toSms", $$v)},expression:"scope.row.toSms"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"公众号"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(scope.row.toWechat),callback:function ($$v) {_vm.$set(scope.row, "toWechat", $$v)},expression:"scope.row.toWechat"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"电话"},on:{"change":function($event){return _vm.modifswitch(scope.$index, scope.row)}},model:{value:(scope.row.toVoice),callback:function ($$v) {_vm.$set(scope.row, "toVoice", $$v)},expression:"scope.row.toVoice"}})]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"快捷操作","width":"340"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.modifyRoom(scope.$index, scope.row)}}},[_vm._v("\n 编辑")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.allocationQuota(scope.$index, scope.row)}}},[_vm._v("\n 分配额度")]),_vm._v(" "),_c('el-button',{attrs:{"type":"danger","size":"mini"},on:{"click":function($event){return _vm.deleteAlarm(scope.$index, scope.row)}}},[_vm._v("\n 删除")])]}}])})],1)],1),_vm._v(" "),_c('div',{staticClass:"page"},[_c('el-pagination',{attrs:{"current-page":_vm.currentPage,"page-sizes":[10, 20, 30, 100],"page-size":_vm.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)])],1),_vm._v(" "),_c('el-dialog',{staticStyle:{"overflow":"hidden"},attrs:{"title":"分配额度","visible":_vm.dialogVisible2,"width":"30%","before-close":_vm.handleClose},on:{"update:visible":function($event){_vm.dialogVisible2=$event}}},[_c('el-form',{ref:"form",attrs:{"model":_vm.quotaForm,"label-width":"120px","inline":true,"rules":_vm.rules}},[_c('el-form-item',{attrs:{"label":"可分配额度","prop":"phone"}},[_c('el-input',{staticClass:"w200",attrs:{"type":"number","clearable":true,"disabled":""},model:{value:(_vm.balanceData),callback:function ($$v) {_vm.balanceData=$$v},expression:"balanceData"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"现有额度","prop":"phone"}},[_c('el-input',{staticClass:"w200",attrs:{"type":"number","clearable":true,"disabled":""},model:{value:(_vm.quotaForm.balance),callback:function ($$v) {_vm.$set(_vm.quotaForm, "balance", $$v)},expression:"quotaForm.balance"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"分配额度","prop":"phone"}},[_c('el-input',{staticClass:"w200",attrs:{"type":"number","clearable":true},model:{value:(_vm.quotaForm.distribution),callback:function ($$v) {_vm.$set(_vm.quotaForm, "distribution", $$v)},expression:"quotaForm.distribution"}})],1)],1),_vm._v(" "),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogVisible2 = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.modifyQuotaMethods}},[_vm._v("提交")])],1)],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"添加","visible":_vm.dialogVisible,"width":"30%","before-close":_vm.handleClose},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:"form",attrs:{"model":_vm.formRoom,"label-width":"120px","inline":true,"rules":_vm.rules}},[_c('el-form-item',{attrs:{"label":"姓名","prop":"name"}},[_c('el-input',{staticClass:"w200",attrs:{"clearable":true},model:{value:(_vm.formRoom.name),callback:function ($$v) {_vm.$set(_vm.formRoom, "name", $$v)},expression:"formRoom.name"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"接警电话","prop":"phone"}},[_c('el-input',{staticClass:"w200",attrs:{"clearable":true},model:{value:(_vm.formRoom.phone),callback:function ($$v) {_vm.$set(_vm.formRoom, "phone", $$v)},expression:"formRoom.phone"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"接收类型"}},[_c('el-select',{attrs:{"multiple":"","collapse-tags":"","placeholder":"请选择"},model:{value:(_vm.formRoom.atAlert),callback:function ($$v) {_vm.$set(_vm.formRoom, "atAlert", $$v)},expression:"formRoom.atAlert"}},_vm._l((_vm.atAlertList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"所属单位","prop":"region"}},[_c('el-cascader',{ref:"cascader",attrs:{"options":_vm.enterpriselist,"placeholder":"请选择所属单位","props":{ checkStrictly: true },"clearable":""},on:{"change":_vm.checkNodeRecord},model:{value:(_vm.formRoom.region),callback:function ($$v) {_vm.$set(_vm.formRoom, "region", $$v)},expression:"formRoom.region"}})],1),_vm._v(" "),_c('el-form-item',{attrs:{"label":"通知方式:"}},[_c('el-switch',{attrs:{"inactive-text":"短信"},model:{value:(_vm.formRoom.toSms),callback:function ($$v) {_vm.$set(_vm.formRoom, "toSms", $$v)},expression:"formRoom.toSms"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"公众号"},model:{value:(_vm.formRoom.toWechat),callback:function ($$v) {_vm.$set(_vm.formRoom, "toWechat", $$v)},expression:"formRoom.toWechat"}}),_vm._v(" "),_c('el-switch',{attrs:{"inactive-text":"电话"},model:{value:(_vm.formRoom.toVoice),callback:function ($$v) {_vm.$set(_vm.formRoom, "toVoice", $$v)},expression:"formRoom.toVoice"}})],1)],1),_vm._v(" "),(_vm.modifyStatus)?_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.updateRoom}},[_vm._v("修改")])],1):_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.saveEdit}},[_vm._v("提交")])],1)],1)],1)])}
|
|
var staticRenderFns = []
|
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
/* harmony default export */ var linkman_linkperson = (esExports);
|
|
// CONCATENATED MODULE: ./src/views/linkman/linkperson.vue
|
|
function injectStyle (ssrContext) {
|
|
__webpack_require__("wbyr")
|
|
}
|
|
var normalizeComponent = __webpack_require__("VU/8")
|
|
/* script */
|
|
|
|
|
|
/* template */
|
|
|
|
/* template functional */
|
|
var __vue_template_functional__ = false
|
|
/* styles */
|
|
var __vue_styles__ = injectStyle
|
|
/* scopeId */
|
|
var __vue_scopeId__ = "data-v-5f41d027"
|
|
/* moduleIdentifier (server only) */
|
|
var __vue_module_identifier__ = null
|
|
var Component = normalizeComponent(
|
|
linkperson,
|
|
linkman_linkperson,
|
|
__vue_template_functional__,
|
|
__vue_styles__,
|
|
__vue_scopeId__,
|
|
__vue_module_identifier__
|
|
)
|
|
|
|
/* harmony default export */ var views_linkman_linkperson = __webpack_exports__["default"] = (Component.exports);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "wbyr":
|
|
/***/ (function(module, exports) {
|
|
|
|
// removed by extract-text-webpack-plugin
|
|
|
|
/***/ })
|
|
|
|
});
|