diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 1134152..fda42b3 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -239,5 +239,9 @@ export enum DICT_TYPE {
IOT_PRODUCT_FUNCTION_TYPE = 'iot_product_function_type', // IOT 产品功能类型
IOT_DATA_TYPE = 'iot_data_type', // IOT 数据类型
IOT_UNIT_TYPE = 'iot_unit_type', // IOT 单位类型
- IOT_RW_TYPE = 'iot_rw_type' // IOT 读写类型
+ IOT_RW_TYPE = 'iot_rw_type', // IOT 读写类型
+
+ // ========== PORTAL - 门户网站模块 ==========
+ PORTAL_NEWS_TYPE = 'portal_news_type' // IOT 联网方式
+
}
diff --git a/src/views/portal/city/CityForm.vue b/src/views/portal/city/CityForm.vue
deleted file mode 100644
index 94d1cd8..0000000
--- a/src/views/portal/city/CityForm.vue
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/city/index.vue b/src/views/portal/city/index.vue
deleted file mode 100644
index f258f87..0000000
--- a/src/views/portal/city/index.vue
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/jobcategory/JobCategoryForm.vue b/src/views/portal/jobcategory/JobCategoryForm.vue
deleted file mode 100644
index 84c148b..0000000
--- a/src/views/portal/jobcategory/JobCategoryForm.vue
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/jobcategory/index.vue b/src/views/portal/jobcategory/index.vue
deleted file mode 100644
index d37a271..0000000
--- a/src/views/portal/jobcategory/index.vue
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/jobpost/JobPostForm.vue b/src/views/portal/jobpost/JobPostForm.vue
index e689eeb..bdebebb 100644
--- a/src/views/portal/jobpost/JobPostForm.vue
+++ b/src/views/portal/jobpost/JobPostForm.vue
@@ -16,11 +16,26 @@
-
-
+
+
-
-
+
+
+
+
\ No newline at end of file
+
diff --git a/src/views/portal/jobpost/index.vue b/src/views/portal/jobpost/index.vue
index ae41d51..2154340 100644
--- a/src/views/portal/jobpost/index.vue
+++ b/src/views/portal/jobpost/index.vue
@@ -26,23 +26,15 @@
class="!w-240px"
/>
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
-
-
+
+
+
+ {{ findFullPathById(scope.row.cityId,areaList) }}
+
+
+
+
([]) // 列表的数据
@@ -188,6 +200,14 @@ const getList = async () => {
}
}
+/** 查询列表 */
+const initSelectData = async () => {
+ // 加载岗位列表
+ postList.value = await PostApi.getSimplePostList()
+ // 获得地区列表
+ areaList.value = await AreaApi.getAreaTree();
+}
+
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.pageNo = 1
@@ -234,8 +254,29 @@ const handleExport = async () => {
}
}
+/**
+ * table中显示位置、城市标签
+ * @param targetId
+ * @param list
+ * @param path
+ */
+const findFullPathById = (targetId: number, list: any[], path: string[] = []): string | null => {
+ for (const node of list) {
+ if (node.id === targetId) {
+ return [...path, node.name].join("/");
+ }
+ if (node.children?.length) {
+ const result = findFullPathById(targetId, node.children, [...path, node.name]);
+ if (result) return result;
+ }
+ }
+ return null;
+};
+
+
/** 初始化 **/
onMounted(() => {
getList()
+ initSelectData();
})
-
\ No newline at end of file
+
diff --git a/src/views/portal/news/NewsForm.vue b/src/views/portal/news/NewsForm.vue
index b3f0e6b..3ae94b0 100644
--- a/src/views/portal/news/NewsForm.vue
+++ b/src/views/portal/news/NewsForm.vue
@@ -20,10 +20,17 @@
-
+
-
-
+
+
+
+
\ No newline at end of file
+
diff --git a/src/views/portal/news/index.vue b/src/views/portal/news/index.vue
index d754179..7bfe92a 100644
--- a/src/views/portal/news/index.vue
+++ b/src/views/portal/news/index.vue
@@ -26,32 +26,15 @@
class="!w-240px"
/>
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
搜索
重置
@@ -108,7 +80,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
{
await getList()
} catch {}
}
+/** 商品图预览 */
+const imagePreview = (imgUrl: string) => {
+ createImageViewer({
+ urlList: [imgUrl]
+ })
+}
/** 导出按钮操作 */
const handleExport = async () => {
@@ -249,4 +245,4 @@ const handleExport = async () => {
onMounted(() => {
getList()
})
-
\ No newline at end of file
+
diff --git a/src/views/portal/newstype/NewsTypeForm.vue b/src/views/portal/newstype/NewsTypeForm.vue
deleted file mode 100644
index d3c610d..0000000
--- a/src/views/portal/newstype/NewsTypeForm.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/newstype/index.vue b/src/views/portal/newstype/index.vue
deleted file mode 100644
index a6dedb3..0000000
--- a/src/views/portal/newstype/index.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/user/UserForm.vue b/src/views/portal/user/UserForm.vue
deleted file mode 100644
index aa1b2dc..0000000
--- a/src/views/portal/user/UserForm.vue
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/src/views/portal/user/index.vue b/src/views/portal/user/index.vue
deleted file mode 100644
index 38fd84b..0000000
--- a/src/views/portal/user/index.vue
+++ /dev/null
@@ -1,209 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file