同步设置修改

prod
anthonywj 2 years ago
parent d77bc332d4
commit 897bc78556

@ -50,7 +50,7 @@
style="margin-left: 20px" style="margin-left: 20px"
:disabled="configQuery.downstreamEnable" :disabled="configQuery.downstreamEnable"
:loading="testLoading" :loading="testLoading"
>测试连通 >连通性测试
</el-button> </el-button>
</div> </div>
</el-col> </el-col>

@ -165,7 +165,6 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:visible.sync="formVisible" :visible.sync="formVisible"
:before-close="hideForm"
width="45%" width="45%"
top="5vh" top="5vh"
> >
@ -218,7 +217,7 @@
> >
</div> </div>
</el-dialog> </el-dialog>
<!-- 库弹窗编辑页面--> <!-- 库弹窗编辑页面-->
<el-dialog <el-dialog
:title="subMap[subFromName]" :title="subMap[subFromName]"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -244,13 +243,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="库编码" prop="title" class="query-form-item"> <el-form-item label="库编码" prop="title" class="query-form-item">
<el-input <el-input
v-model="subData.code" style="width: 80%" v-model="subData.code" style="width: 80%"
auto-complete="off" auto-complete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="库名称" prop="name" class="query-form-item"> <el-form-item label="库名称" prop="name" class="query-form-item">
<el-input <el-input
v-model="subData.name" style="width: 80%" v-model="subData.name" style="width: 80%"
auto-complete="off" auto-complete="off"
@ -331,9 +330,9 @@ export default {
index: null, index: null,
formName: null, formName: null,
formMap: { formMap: {
addTop: "仓库信息-新增", addTop: "部门信息-新增",
add: "添加货位", add: "添加货位",
edit: "仓库信息-编辑" edit: "部门信息-编辑"
}, },
subMap: { subMap: {
add: "仓库信息-添加", add: "仓库信息-添加",
@ -453,10 +452,10 @@ export default {
// //
this.formVisible = false; this.formVisible = false;
this.subFormVisible = false; this.subFormVisible = false;
let Item = JSON.parse(localStorage.getItem('obj')) // let Item = JSON.parse(localStorage.getItem('obj'))
this.subData=Item; // this.subData = Item;
this.getSubList(); // this.getSubList();
return true; // return true;
}, },
// //
handleForm(node, data, formName) { handleForm(node, data, formName) {
@ -502,7 +501,7 @@ export default {
handleSubDel(row) { handleSubDel(row) {
if (row.id) { if (row.id) {
this.$confirm("确认删除该库吗?", "提示", { this.$confirm("确认删除该库吗?", "提示", {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
@ -532,14 +531,14 @@ export default {
} }
}, },
// //
forSubSubmit() { forSubSubmit() {
if (this.$isBlank(this.subData.code)) { if (this.$isBlank(this.subData.code)) {
this.$message.error("库编码不能为空!"); this.$message.error("库编码不能为空!");
return; return;
} }
if (this.$isBlank(this.subData.name)) { if (this.$isBlank(this.subData.name)) {
this.$message.error("库名称不能为空!"); this.$message.error("库名称不能为空!");
return; return;
} }

Loading…
Cancel
Save