根据客户反馈需求进行了界面修改已完成,暂未对接接口,等待后端修改完成后对接接口。
This commit is contained in:
@@ -27,4 +27,13 @@ export function getMaintenanceList(query) {
|
||||
url: `${API_BASE_URL}/maintenance`,
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除人员
|
||||
export function deleteUser(ItemId) {
|
||||
return service({
|
||||
method: "delete",
|
||||
url: `${API_BASE_URL}/${ItemId}`,
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
+1
-1
@@ -11,7 +11,7 @@ const errorCode = {
|
||||
|
||||
// const url = "https://repair.cpolar.top"; // 开发地址
|
||||
// const url = "https://xcx.cqcxj.cn"; // 正式地址
|
||||
const url = "https://cqjql.scdswj.cn:9443"; // 临时地址
|
||||
const url = "https://cqjql.scdswj.cn:9443"; // 临时地址n
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: url,
|
||||
|
||||
@@ -88,7 +88,7 @@ export const menuListItem = [
|
||||
icon: "Menu",
|
||||
},
|
||||
{
|
||||
title: "勘察工程师",
|
||||
title: "勘测工程师",
|
||||
url: "/reconnaissanceScheduling",
|
||||
icon: "Menu",
|
||||
},
|
||||
|
||||
@@ -139,7 +139,7 @@ const routerList = [
|
||||
component: () => import("../views/users/reconnaissance.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
name: "勘察工程师",
|
||||
name: "勘测工程师",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -206,7 +206,7 @@ const routerList = [
|
||||
component: () => import("../views/scheduling/reconnaissance.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
name: "勘察人员排班",
|
||||
name: "勘测人员排班",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,22 +1,48 @@
|
||||
<template>
|
||||
<el-card class="mt10">
|
||||
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="合计" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="已通过" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="待审核" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="已驳回" :value="268500" />
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<el-card class="mt10">
|
||||
|
||||
<el-form :inline="true" :model="formSearch" class="demo-form-inline">
|
||||
<el-form-item label="微信昵称">
|
||||
<el-form-item label="姓名">
|
||||
<el-input
|
||||
v-model="searchWechatNickname"
|
||||
v-model="formSearch.nickName"
|
||||
style="max-width: 300px"
|
||||
placeholder="模糊查询微信昵称"
|
||||
placeholder="模糊查询姓名"
|
||||
class="input-with-select"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="手机号">
|
||||
<el-input
|
||||
v-model="searchWechatNickname"
|
||||
style="max-width: 300px"
|
||||
placeholder="模糊查询手机号"
|
||||
class="input-with-select"
|
||||
<!-- <el-form-item label="手机号">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="searchWechatNickname"-->
|
||||
<!-- style="max-width: 300px"-->
|
||||
<!-- placeholder="模糊查询手机号"-->
|
||||
<!-- class="input-with-select"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="时间">
|
||||
<el-date-picker
|
||||
v-model="formSearch.date"
|
||||
type="dates"
|
||||
placeholder="请选择时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
@@ -24,8 +50,13 @@
|
||||
<el-button type="primary" @click="onSearchSubmit">搜索</el-button>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item style="float: right">
|
||||
<el-button type="warning">导出</el-button>
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
|
||||
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="tableData"
|
||||
@@ -141,6 +172,7 @@ const formSearch = ref({
|
||||
amount: ''
|
||||
});
|
||||
|
||||
|
||||
const initData = () => {
|
||||
// 加载示例数据
|
||||
// tableData.value = exampleData.value;
|
||||
@@ -253,19 +285,8 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mt-4 {
|
||||
float: right;
|
||||
text-align: right;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-with-select {
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.expand-title {
|
||||
padding: 10px;
|
||||
color: #919399;
|
||||
font-weight: 600;
|
||||
.el-col {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,22 +1,49 @@
|
||||
<template>
|
||||
|
||||
<el-card class="mt10">
|
||||
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="合计" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="已通过" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="待审核" :value="268500" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-statistic title="已驳回" :value="268500" />
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<el-card class="mt10">
|
||||
|
||||
<el-form :inline="true" :model="formSearch" class="demo-form-inline">
|
||||
<el-form-item label="微信昵称">
|
||||
<el-form-item label="姓名">
|
||||
<el-input
|
||||
v-model="searchWechatNickname"
|
||||
v-model="formSearch.nickName"
|
||||
style="max-width: 300px"
|
||||
placeholder="模糊查询微信昵称"
|
||||
placeholder="模糊查询姓名"
|
||||
class="input-with-select"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="手机号">
|
||||
<el-input
|
||||
v-model="searchWechatNickname"
|
||||
style="max-width: 300px"
|
||||
placeholder="模糊查询手机号"
|
||||
class="input-with-select"
|
||||
<!-- <el-form-item label="手机号">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="searchWechatNickname"-->
|
||||
<!-- style="max-width: 300px"-->
|
||||
<!-- placeholder="模糊查询手机号"-->
|
||||
<!-- class="input-with-select"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="时间">
|
||||
<el-date-picker
|
||||
v-model="formSearch.date"
|
||||
type="dates"
|
||||
placeholder="请选择时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
@@ -24,6 +51,9 @@
|
||||
<el-button type="primary" @click="onSearchSubmit">搜索</el-button>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item style="float: right">
|
||||
<el-button type="warning">导出</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
|
||||
@@ -39,13 +39,21 @@
|
||||
|
||||
<el-form-item label="用户昵称">
|
||||
<el-input
|
||||
v-model="searchName"
|
||||
v-model="formSearch.nickName"
|
||||
style="max-width: 300px"
|
||||
placeholder="用户昵称"
|
||||
class="input-with-select"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="时间">
|
||||
<el-date-picker
|
||||
v-model="formSearch.month"
|
||||
type="month"
|
||||
placeholder="请选择时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="onSearchSubmit">搜索</el-button>
|
||||
</el-form-item>
|
||||
@@ -323,9 +331,11 @@ const queryData = ref({
|
||||
|
||||
const formSearch = ref({
|
||||
goodsName:'',
|
||||
nickName: '',
|
||||
status: ' ',
|
||||
id: '',
|
||||
amount: ''
|
||||
amount: '',
|
||||
month: '',
|
||||
});
|
||||
|
||||
const detailData = ref();
|
||||
|
||||
@@ -76,6 +76,25 @@
|
||||
sortable
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-popconfirm
|
||||
confirm-button-text="确认"
|
||||
cancel-button-text="取消"
|
||||
:icon="InfoFilled"
|
||||
icon-color="#626AEF"
|
||||
title="确定要删除该维修人员吗?"
|
||||
@confirm="deleteItem(scope.row)"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button type="danger">删除</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
size="small"
|
||||
@@ -100,7 +119,9 @@ import {
|
||||
import {nextTick, onMounted, reactive, ref} from 'vue'
|
||||
|
||||
import {options} from './options.js'
|
||||
import {getUserList} from "../../api/modules/user";
|
||||
import {deleteUser, getUserList} from "../../api/modules/user";
|
||||
import {delGoods} from "../../api/modules/goods";
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
const tableData = ref([])
|
||||
const dataList = ref([])
|
||||
@@ -139,6 +160,25 @@ const handleCurrentChange = (val) => {
|
||||
initData(queryData.value)
|
||||
}
|
||||
|
||||
|
||||
// 删除项
|
||||
const deleteItem = (env) => {
|
||||
|
||||
let ItemId = env.id; // 项目ID
|
||||
|
||||
// 删除
|
||||
deleteUser(ItemId).then((res) =>{
|
||||
|
||||
ElMessage({
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
});
|
||||
|
||||
initData(); // 重新加载数据
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 搜索事件
|
||||
const searchEvnt = ()=> {
|
||||
console.log('点击搜索');
|
||||
|
||||
@@ -87,6 +87,26 @@
|
||||
sortable
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-popconfirm
|
||||
confirm-button-text="确认"
|
||||
cancel-button-text="取消"
|
||||
:icon="InfoFilled"
|
||||
icon-color="#626AEF"
|
||||
title="确定要删除该勘测人员吗?"
|
||||
@confirm="deleteItem(scope.row)"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button type="danger">删除</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<el-pagination
|
||||
size="small"
|
||||
@@ -111,7 +131,8 @@ import {
|
||||
import {nextTick, onMounted, reactive, ref} from 'vue'
|
||||
|
||||
import {options} from './options.js'
|
||||
import {getUserList} from "../../api/modules/user";
|
||||
import {deleteUser, getUserList} from "../../api/modules/user";
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
const tableData = ref([])
|
||||
const dataList = ref([])
|
||||
@@ -149,6 +170,25 @@ const handleCurrentChange = (val) => {
|
||||
initData(queryData.value)
|
||||
}
|
||||
|
||||
|
||||
// 删除项
|
||||
const deleteItem = (env) => {
|
||||
|
||||
let ItemId = env.id; // 项目ID
|
||||
|
||||
// 删除
|
||||
deleteUser(ItemId).then((res) =>{
|
||||
|
||||
ElMessage({
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
});
|
||||
|
||||
initData(); // 重新加载数据
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 搜索事件
|
||||
const searchEvnt = ()=> {
|
||||
console.log('点击搜索');
|
||||
|
||||
Reference in New Issue
Block a user