|
@@ -463,25 +463,30 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
'form.she_bei_bian_hao_' (val) {
|
|
'form.she_bei_bian_hao_' (val) {
|
|
|
if (!this.isFirstDevice) {
|
|
if (!this.isFirstDevice) {
|
|
|
- const sql = `select yuan_she_bei_bian,she_bei_ming_cheng_ from t_sbdj where find_in_set(id_, '${val}')`
|
|
|
|
|
|
|
+ const sql = `select * from t_sbdj where find_in_set(id_, '${val}')`
|
|
|
this.$common.request('sql', sql).then(res => {
|
|
this.$common.request('sql', sql).then(res => {
|
|
|
const { data = [] } = res.variables || {}
|
|
const { data = [] } = res.variables || {}
|
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|
|
|
const bianHao = item.yuan_she_bei_bian
|
|
const bianHao = item.yuan_she_bei_bian
|
|
|
const mingChneg = item.she_bei_ming_cheng_
|
|
const mingChneg = item.she_bei_ming_cheng_
|
|
|
|
|
+ const mingChnegId = item.she_bei_ming_chen
|
|
|
const t = this.subForm.find(sub => sub.deviceno1_ === bianHao)
|
|
const t = this.subForm.find(sub => sub.deviceno1_ === bianHao)
|
|
|
|
|
+
|
|
|
if (!t) {
|
|
if (!t) {
|
|
|
this.subForm.push({
|
|
this.subForm.push({
|
|
|
deviceno1_: bianHao,
|
|
deviceno1_: bianHao,
|
|
|
devicename1_: mingChneg,
|
|
devicename1_: mingChneg,
|
|
|
|
|
+ deviceid1_: mingChnegId,
|
|
|
shi_fou_qi_yong_: '1',
|
|
shi_fou_qi_yong_: '1',
|
|
|
bu_men_: this.form.bian_zhi_bu_men_,
|
|
bu_men_: this.form.bian_zhi_bu_men_,
|
|
|
jian_ce_gang_wei_: this.form.gang_wei_,
|
|
jian_ce_gang_wei_: this.form.gang_wei_,
|
|
|
jian_ce_zhou_qi_: this.form.zhou_qi_,
|
|
jian_ce_zhou_qi_: this.form.zhou_qi_,
|
|
|
kong_zhi_tiao_jia: this.form.tiao_jian_,
|
|
kong_zhi_tiao_jia: this.form.tiao_jian_,
|
|
|
fang_jian_: '',
|
|
fang_jian_: '',
|
|
|
|
|
+ fang_jian_id_: '',
|
|
|
qu_yu_: '',
|
|
qu_yu_: '',
|
|
|
deviceno2_: '',
|
|
deviceno2_: '',
|
|
|
|
|
+ deviceid2_: '',
|
|
|
jian_ce_ri_qi_: this.form.jian_ce_ri_qi_,
|
|
jian_ce_ri_qi_: this.form.jian_ce_ri_qi_,
|
|
|
ri_qi_lie_biao_: this.form.ri_qi_lie_biao_,
|
|
ri_qi_lie_biao_: this.form.ri_qi_lie_biao_,
|
|
|
zi_wai_deng_wai_j: this.$utils.guid(),
|
|
zi_wai_deng_wai_j: this.$utils.guid(),
|
|
@@ -860,8 +865,11 @@ export default {
|
|
|
bu_men_: item.bu_men_,
|
|
bu_men_: item.bu_men_,
|
|
|
devicename1_: item.devicename1_,
|
|
devicename1_: item.devicename1_,
|
|
|
deviceno1_: item.deviceno1_,
|
|
deviceno1_: item.deviceno1_,
|
|
|
|
|
+ deviceid1_: item.deviceid1_,
|
|
|
deviceno2_: item.deviceno2_,
|
|
deviceno2_: item.deviceno2_,
|
|
|
|
|
+ deviceid2_: item.deviceid2_,
|
|
|
fang_jian_: item.fang_jian_,
|
|
fang_jian_: item.fang_jian_,
|
|
|
|
|
+ fang_jian_id_: item.fang_jian_id_,
|
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
|
jian_ce_ri_qi_: item.jian_ce_ri_qi_,
|
|
jian_ce_ri_qi_: item.jian_ce_ri_qi_,
|
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|
|
@@ -887,10 +895,13 @@ export default {
|
|
|
param: {
|
|
param: {
|
|
|
qu_yu_: item.qu_yu_,
|
|
qu_yu_: item.qu_yu_,
|
|
|
fang_jian_: item.fang_jian_,
|
|
fang_jian_: item.fang_jian_,
|
|
|
|
|
+ fang_jian_id_: item.fang_jian_id_,
|
|
|
bu_men_: item.bu_men_,
|
|
bu_men_: item.bu_men_,
|
|
|
deviceno1_: item.deviceno1_,
|
|
deviceno1_: item.deviceno1_,
|
|
|
|
|
+ deviceid1_: item.deviceid1_,
|
|
|
devicename1_: item.devicename1_,
|
|
devicename1_: item.devicename1_,
|
|
|
deviceno2_: item.deviceno2_, // 监控设备
|
|
deviceno2_: item.deviceno2_, // 监控设备
|
|
|
|
|
+ deviceid2_: item.deviceid2_,
|
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
|
shi_fou_qi_yong_: item.shi_fou_qi_yong_,
|
|
shi_fou_qi_yong_: item.shi_fou_qi_yong_,
|
|
@@ -935,8 +946,11 @@ export default {
|
|
|
bu_men_: item.bu_men_,
|
|
bu_men_: item.bu_men_,
|
|
|
devicename1_: item.devicename1_,
|
|
devicename1_: item.devicename1_,
|
|
|
deviceno1_: item.deviceno1_,
|
|
deviceno1_: item.deviceno1_,
|
|
|
|
|
+ deviceid1_: item.deviceid1_,
|
|
|
deviceno2_: item.deviceno2_,
|
|
deviceno2_: item.deviceno2_,
|
|
|
|
|
+ deviceid2_: item.deviceid2_,
|
|
|
fang_jian_: item.fang_jian_,
|
|
fang_jian_: item.fang_jian_,
|
|
|
|
|
+ fang_jian_id_: item.fang_jian_id_,
|
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
jian_ce_gang_wei_: item.jian_ce_gang_wei_,
|
|
|
jian_ce_ri_qi_: item.jian_ce_ri_qi_,
|
|
jian_ce_ri_qi_: item.jian_ce_ri_qi_,
|
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|
|
jian_ce_zhou_qi_: item.jian_ce_zhou_qi_,
|