Commit 03b7ca74 authored by dupengyu's avatar dupengyu

设置参数

parent ee0839c9
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<el-form-item label="方向" prop="direction"> <el-form-item label="方向" prop="direction">
<el-select <el-select
v-model="leakyCableForm.direction" v-model="leakyCableForm.direction"
placeholder="菜单状态" placeholder="方向"
clearable clearable
> >
<el-option <el-option
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
curInfo: { curInfo: {
immediate: true, immediate: true,
handler(newV) { handler(newV) {
newV.direction = String(newV.direction);
this.leakyCableForm = formInit(newV); this.leakyCableForm = formInit(newV);
}, },
}, },
...@@ -261,6 +262,10 @@ export default { ...@@ -261,6 +262,10 @@ export default {
}, },
mounted() { mounted() {
this.getAllWay(); this.getAllWay();
this.changerailWay();
this.changesite();
this.changefsu();
this.changesite();
}, },
methods: { methods: {
// 编辑的确认 // 编辑的确认
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<el-form-item label="方向" prop="direction"> <el-form-item label="方向" prop="direction">
<el-select <el-select
v-model="leakyCableForm.direction" v-model="leakyCableForm.direction"
placeholder="菜单状态" placeholder="方向"
clearable clearable
> >
<el-option <el-option
...@@ -170,6 +170,7 @@ export default { ...@@ -170,6 +170,7 @@ export default {
curInfo: { curInfo: {
immediate: true, immediate: true,
handler(newV) { handler(newV) {
newV.direction = String(newV.direction);
this.leakyCableForm = formInit(newV); this.leakyCableForm = formInit(newV);
}, },
}, },
...@@ -253,6 +254,9 @@ export default { ...@@ -253,6 +254,9 @@ export default {
}, },
mounted() { mounted() {
this.getAllWay(); this.getAllWay();
this.changerailWay();
this.changesite();
this.changefsu();
}, },
methods: { methods: {
// 编辑的确认 // 编辑的确认
......
...@@ -245,6 +245,7 @@ export default { ...@@ -245,6 +245,7 @@ export default {
methods: { methods: {
toEdit(row) { toEdit(row) {
this.visible = true; this.visible = true;
console.log(row);
this.curInfo = row; this.curInfo = row;
}, },
update(data) { update(data) {
......
...@@ -270,8 +270,8 @@ export default { ...@@ -270,8 +270,8 @@ export default {
let res = await selectParam({ equipId: row.id }); let res = await selectParam({ equipId: row.id });
if (res && res.paramsJson) { if (res && res.paramsJson) {
this.paramsJson = JSON.parse(res.paramsJson); this.paramsJson = JSON.parse(res.paramsJson);
this.openSetting = true;
} }
this.openSetting = true;
}, },
async handleSetting(row) { async handleSetting(row) {
this.rowData = row; this.rowData = row;
......
...@@ -9,8 +9,8 @@ function resolve(dir) { ...@@ -9,8 +9,8 @@ function resolve(dir) {
const name = defaultSettings.title || '漏缆故障定位监测系统' // page title const name = defaultSettings.title || '漏缆故障定位监测系统' // page title
const port = process.env.port || process.env.npm_config_port || 8890 // dev port const port = process.env.port || process.env.npm_config_port || 8890 // dev port
// const href = 'http://101.126.159.207' // const href = 'http://101.126.159.207'
const href = 'http://127.0.0.1' // const href = 'http://127.0.0.1'
// const href = 'http://192.168.0.115' const href = 'http://192.168.0.114'
const rewriteDefaultConfig = { const rewriteDefaultConfig = {
changeOrigin: true, changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment