Commit 555054e4 authored by Kimber's avatar Kimber
parents 70918384 d43f63d5
...@@ -8,31 +8,27 @@ export default { ...@@ -8,31 +8,27 @@ export default {
}) })
}, },
// 新增 // 新增
add: (notice) => { add: (param) => {
return request({ return request({
url: 'api/notice/add', url: 'api/kdFile',
method: 'post', method: 'post',
data: notice data: param
}) })
}, },
// 标记已读(查询权限) // 标记已读(查询权限)
read: (responseId) => { mod: (param) => {
return request({ return request({
url: 'api/notice/read', url: 'api/kdFile',
method: 'post', method: 'put',
data: { data: param
id: responseId
}
}) })
}, },
// 删除 // 删除
del: (notice) => { del: (ids) => {
return request({ return request({
url: 'api/notice/del', url: 'api/kdFile',
method: 'post', method: 'delete',
data: { data: ids
id: notice.id
}
}) })
} }
} }
\ No newline at end of file
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
}).then((res)=>{ }).then((res)=>{
this.companyList = res.body || [] this.companyList = res.body || []
this.currentCompany = this.companyList[0].id this.currentCompany = this.companyList[0].id
localStorage.setItem('currGlobalCompId', this.currentCompany)
}) })
}, },
...@@ -204,6 +205,7 @@ export default { ...@@ -204,6 +205,7 @@ export default {
duration: 3000 // 消息显示的时间,单位为 ms duration: 3000 // 消息显示的时间,单位为 ms
}); });
setTimeout(() => { setTimeout(() => {
localStorage.setItem('currGlobalCompId', value)
window.location.reload() window.location.reload()
}, 500); }, 500);
}) })
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<el-option v-for="mine in mineList" :key="mine.index" :label="mine.name" :value="mine.index" /> <el-option v-for="mine in mineList" :key="mine.index" :label="mine.name" :value="mine.index" />
</el-select> </el-select>
<el-input clearable size="small" placeholder="设备名称" style="width: 200px;" class="filter-item" /> <el-input clearable size="small" placeholder="设备名称" style="width: 200px;" class="filter-item" />
<el-select v-model="value" placeholder="监测类型" style="width: 200px;" class="filter-item"> <el-select v-model="value" placeholder="监测类型" style="width: 200px;" class="filter-item">
<el-option label="选择类型" value="1" /> <el-option label="选择类型" value="1" />
</el-select> </el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="$message('等待硬件对接中')">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="$message('等待硬件对接中')">搜索</el-button>
<el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left">重置</el-button> <el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left">重置</el-button>
......
This diff is collapsed.
This diff is collapsed.
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