添加国检危废品箱管理

This commit is contained in:
hzz 2023-10-10 17:03:31 +08:00
parent 8d4436f6e7
commit d972ce5f21
4 changed files with 34 additions and 8 deletions

View File

@ -17,4 +17,13 @@ export function getSmsRecord(query) {
method: 'get', method: 'get',
params: query params: query
}) })
}
// 查询短信发送记录
export function getSmsRecordFromAliyun() {
return request({
url: 'screen/guoJian/getSmsRecordFromAliyun',
method: 'get',
})
} }

View File

@ -111,7 +111,7 @@ let typeList = [
let deviceList = ref([]) let deviceList = ref([])
const loading = ref(false); const loading = ref(false);
const showSearch = ref(false); const showSearch = ref(true);
const ids = ref([]); const ids = ref([]);
const single = ref(true); const single = ref(true);
const multiple = ref(true); const multiple = ref(true);

View File

@ -113,7 +113,7 @@ const { queryParams, form } = toRefs(data);
let deviceList = ref([]) let deviceList = ref([])
const loading = ref(false); const loading = ref(false);
const showSearch = ref(false); const showSearch = ref(true);
const ids = ref([]); const ids = ref([]);
const single = ref(true); const single = ref(true);
const multiple = ref(true); const multiple = ref(true);

View File

@ -29,7 +29,7 @@
<el-button type="danger" plain icon="Delete" :disabled="multiple" v-hasPermi="['big:device:del']" <el-button type="danger" plain icon="Delete" :disabled="multiple" v-hasPermi="['big:device:del']"
@click="handleDelete">删除</el-button> @click="handleDelete">删除</el-button>
</el-col> --> </el-col> -->
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @queryTable="refreshList"></right-toolbar>
</el-row> </el-row>
<!-- <!--
@ -46,11 +46,20 @@
<!-- <el-table-column type="selection" width="55" align="center" /> --> <!-- <el-table-column type="selection" width="55" align="center" /> -->
<el-table-column label="序号" type="index" width="80" /> <el-table-column label="序号" type="index" width="80" />
<!-- <el-table-column label="部门id" prop="id" width="120" /> --> <!-- <el-table-column label="部门id" prop="id" width="120" /> -->
<el-table-column label="时间" prop="ts" width="200" align="center" :show-overflow-tooltip="true" /> <el-table-column label="手机号" prop="phoneNum" align="center" :show-overflow-tooltip="true" />
<el-table-column label="发送时间" prop="ts" width="200" align="center" :show-overflow-tooltip="true" />
<el-table-column label="报警类型" prop="alarmType" align="center" :show-overflow-tooltip="true" /> <el-table-column label="报警类型" prop="alarmType" align="center" :show-overflow-tooltip="true" />
<el-table-column label="报警值" prop="data" align="center" :show-overflow-tooltip="true" /> <el-table-column label="报警值" prop="data" align="center" :show-overflow-tooltip="true" />
<el-table-column label="报警内容" prop="content" align="center" :show-overflow-tooltip="true" /> <!-- <el-table-column label="报警内容" prop="content" align="center" :show-overflow-tooltip="true" /> -->
<el-table-column label="手机号" prop="phoneNum" align="center" :show-overflow-tooltip="true" /> <el-table-column label="接收时间" prop="receiveDate" align="center" :show-overflow-tooltip="true" />
<el-table-column label="发送状态" prop="status" align="center" :show-overflow-tooltip="true" />
<el-table-column label="失败原因" prop="reason" align="center" :show-overflow-tooltip="true" />
<el-table-column label="是否已处理" prop="ishandle" align="center" :show-overflow-tooltip="true" >
<template #default="{ row }">
<el-tag v-if="row.ishandle == 0" type="danger">未处理</el-tag>
<el-tag v-if="row.ishandle == 1" type="success">已处理</el-tag>
</template>
</el-table-column>
</el-table> </el-table>
@ -65,7 +74,7 @@
<script setup> <script setup>
import { ref, reactive, toRefs, getCurrentInstance, onMounted } from 'vue' import { ref, reactive, toRefs, getCurrentInstance, onMounted } from 'vue'
import { Picture as IconPicture } from '@element-plus/icons-vue' import { Picture as IconPicture } from '@element-plus/icons-vue'
import { getSmsRecord } from '@/api/guojian/index' import { getSmsRecord,getSmsRecordFromAliyun } from '@/api/guojian/index'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
@ -88,7 +97,7 @@ const { queryParams, form } = toRefs(data);
let deviceList = ref([]) let deviceList = ref([])
const loading = ref(false); const loading = ref(false);
const showSearch = ref(false); const showSearch = ref(true);
const ids = ref([]); const ids = ref([]);
const single = ref(true); const single = ref(true);
const multiple = ref(true); const multiple = ref(true);
@ -111,6 +120,14 @@ function getList() {
} }
function refreshList() {
getSmsRecordFromAliyun().then(res => {
if (res.code == 200) {
getList();
}
});
}
/** 搜索按钮操作 */ /** 搜索按钮操作 */
function handleQuery() { function handleQuery() {
getList(); getList();