Commit c51d933d by 前端

修复bug

1 parent c261bf95
......@@ -155,6 +155,7 @@
class="el_link"
:underline="false"
@click="addFence(row)"
v-if="row.enableStatus == 1"
>编辑</el-link
>
<el-link
......@@ -205,7 +206,7 @@ export default {
},
data() {
return {
searchForm: {},
searchForm: {poiType:''},
tableData: [],
pageTotal: 0,
pageSize: 10,
......@@ -329,7 +330,7 @@ export default {
removeFence(row) {
let _this = this;
showModal({
message: `确认删除${row.poiName}的${row.poiTypeStr}POI信息吗?`,
message: `确认删除【${row.poiName}】的【${row.poiTypeStr}】POI信息吗?`,
showCancelButton: true,
type: "warning",
success: function () {
......
......@@ -167,6 +167,7 @@ export default {
},
// 监听文件上传成功
onSuccess(response, file, fileList) {
let _this = this;
this.aloading = false;
if (response.code != 200) {
showToast({
......@@ -181,6 +182,9 @@ export default {
this.showResult = true;
// this.getList(); 刷新表格
this.$emit("successData", true);
setTimeout(function(){
_this.closeDialog();
},1500)
},
// 确认上传文件
saveFile() {
......
......@@ -433,6 +433,8 @@
<el-input
v-model="item.sn"
:disabled="item.disabled"
onkeyup="value = value.replace(/[^a-zA-Z0-9]/g,'')"
maxlength="20"
></el-input>
</el-form-item>
<el-form-item label="设备型号:" class="is-required">
......@@ -441,10 +443,14 @@
disabled
></el-input>
</el-form-item>
<div
class="icon_box"
v-if="dialogType == 'create' || (item.activeFlag == 1 && hasPermission('VEHICLE_LIST_ADD_BUTTON'))"
v-if="
dialogType == 'create' ||
(item.activeFlag == 1 &&
hasPermission('VEHICLE_LIST_ADD_BUTTON'))
"
>
<i
v-show="!isViewMode && index != 0"
......@@ -468,9 +474,7 @@
>编辑</auth-button
>
<el-button
v-show="
dialogType != 'create' && !item.edit
"
v-show="dialogType != 'create' && !item.edit"
class="btn"
@click="editDevince(item, index)"
>取消</el-button
......@@ -2263,10 +2267,10 @@ export default {
// 编辑页面是否展示新增设备按钮
showAddDeviceButton() {
let list = this.snForm.deviceInfoDtos||[];
let list = this.snForm.deviceInfoDtos || [];
let idx = list.findIndex((k) => k.special || k.activeFlag == 1);
let _first = true;
if(!_first){
if (!_first) {
return false;
}
if (idx >= 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!