diff --git a/src/api/modules/upload.js b/src/api/modules/upload.js
new file mode 100644
index 0000000..09bd181
--- /dev/null
+++ b/src/api/modules/upload.js
@@ -0,0 +1,11 @@
+import service from "../request.js";
+const API_BASE_URL = '/file';
+
+// 上传文件
+export function addFile(formData) {
+ return service({
+ method: "post",
+ url: `${API_BASE_URL}`,
+ data: formData
+ });
+}
\ No newline at end of file
diff --git a/src/api/request.js b/src/api/request.js
index 52d3ccb..82aa9b8 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -30,6 +30,10 @@ service.interceptors.request.use(
config.headers["Content-Type"] = "application/json";
}
+ if (config.url === "/file") {
+ config.headers["Content-Type"] = "multipart/form-data";
+ }
+
let params = config.params;
let newData = {};
for (let key in params) {
diff --git a/src/views/goods/index.vue b/src/views/goods/index.vue
index 58e724c..113c9df 100644
--- a/src/views/goods/index.vue
+++ b/src/views/goods/index.vue
@@ -1,296 +1,407 @@
-
-
-
+
+
+
+
+
+ 创建服务
+
+
+ 编辑服务
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+ {{ formatPrice(scope.row.price) }}
+
+
+
+
+
+
+
+
+
+
-
-
+ 查看
+ 编辑
-
+ 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/goods/options.js b/src/views/goods/options.js
index e58c9a4..5d6d428 100644
--- a/src/views/goods/options.js
+++ b/src/views/goods/options.js
@@ -1,10 +1,5 @@
export const options = [
- {
- label: '标题图片',
- props: 'carouselImage',
- width: '200',
- align: 'left'
- },
+
{
label: '服务名称',
props: 'goodsName',
@@ -16,9 +11,15 @@ export const options = [
props: 'price',
width: '150',
align: 'left'
+ },
+ {
+ label: '标题图片',
+ props: 'carouselImage',
+ width: '200',
+ align: 'left'
},
{
- label: '服务说明',
+ label: '服务详情',
props: 'details',
width: 'auto',
align: 'left',
@@ -27,7 +28,7 @@ export const options = [
{
label: '操作',
props: 'actions',
- width: '150',
+ width: '300',
align: 'center',
fixed: 'right',
}
diff --git a/src/views/scheduling/maintain.vue b/src/views/scheduling/maintain.vue
index 457b7d0..0538989 100644
--- a/src/views/scheduling/maintain.vue
+++ b/src/views/scheduling/maintain.vue
@@ -123,7 +123,7 @@
{
tableData.value = columnData.value;
+ // 获取用户列表
+ getUserList(queryData.value).then((res) => {
+
+ console.log('用户', res.data);
+ });
// orderLists(queryData.value).then((res) => {
// console.log(res.data.data)
// // total.value = res.data.data.total
diff --git a/src/views/users/maintain.vue b/src/views/users/maintain.vue
index 68b47e5..b80591d 100644
--- a/src/views/users/maintain.vue
+++ b/src/views/users/maintain.vue
@@ -166,6 +166,12 @@ const initData = () => {
tableData.value = columnData.value;
+ // 获取维修工程师列表
+ getUserList(queryData.value).then((res) => {
+
+ console.log('用户', res.data);
+ });
+
// orderLists(queryData.value).then((res) => {
// console.log(res.data.data)
// // total.value = res.data.data.total
diff --git a/src/views/users/reconnaissance.vue b/src/views/users/reconnaissance.vue
index 6c3a6f3..67077bb 100644
--- a/src/views/users/reconnaissance.vue
+++ b/src/views/users/reconnaissance.vue
@@ -141,19 +141,15 @@ import {
} from '@element-plus/icons-vue'
import {nextTick, onMounted, reactive, ref} from 'vue'
-// 示例数据
-// import {options} from './options.js'
-import {getApplyList, reject, approve} from "../../api/modules/postApply";
+import {options} from './options.js'
+import {getUserList} from "../../api/modules/user";
const tableData = ref([])
const dataList = ref([])
const table = ref()
const tabclickIndex = ref()
const isExpand = ref(false)
-
-// 示例数据
-// const exampleData = ref(JSON.parse(JSON.stringify(options)))
-
+const columnData = ref(JSON.parse(JSON.stringify(options)))
const disabled = ref(false)
const dialogVisible = ref(false)
const total = ref(0)
@@ -168,14 +164,19 @@ const queryData = ref({
const initData = () => {
- // 加载示例数据
- // tableData.value = exampleData.value;
+ tableData.value = columnData.value;
- getApplyList(queryData.value).then((res) => {
- console.log(res.data.data)
- total.value = res.data.total
- tableData.value = res.data
- })
+ // 获取勘察工程师列表
+ getUserList(queryData.value).then((res) => {
+
+ console.log('用户', res.data);
+ });
+
+ // orderLists(queryData.value).then((res) => {
+ // console.log(res.data.data)
+ // // total.value = res.data.data.total
+ // tableData.value = res.data.data
+ // })
}
const itemEditHanld = (item) => {
item.itemEdit = !item.itemEdit