From 0009a71602e7fc4e36db3f845bf495be562789d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E6=83=B3?= <826276471@qq.com>
Date: Wed, 19 Mar 2025 15:11:24 +0800
Subject: [PATCH 1/5] =?UTF-8?q?feat:=E7=9F=A5=E8=AF=86=E5=BA=93=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/apis/inputSuppliesApi/index.js | 2 ++
.../src/apis/inputSuppliesApi/knowledge.js | 7 +++++++
.../views/inputSuppliesManage/knowledgeManage/index.vue | 3 ++-
3 files changed, 11 insertions(+), 1 deletion(-)
create mode 100644 sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js
diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js
index b9ec383..aee9440 100644
--- a/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js
+++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js
@@ -1,7 +1,9 @@
import * as redBlackApi from './redAndBlank';
import * as materialApi from './material';
+import * as knowledgeApi from './common';
export default {
...materialApi,
...redBlackApi,
+ ...knowledgeApi,
};
diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js
new file mode 100644
index 0000000..af46488
--- /dev/null
+++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js
@@ -0,0 +1,7 @@
+import request from '@/utils/axios';
+
+function getQuestionList(params) {
+ return request('/knowledge/page', {
+ params,
+ });
+}
diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue
index 976db00..f798ae9 100644
--- a/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue
+++ b/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue
@@ -71,6 +71,7 @@ const option = reactive({
label: '名称',
prop: 'question',
renderForm: ({ row }) => {
+ console.log('row ---', row);
return h('span', {}, row.question);
},
span: 24,
@@ -186,7 +187,7 @@ function handleReply({ row }) {
console.log('reply', row);
curdRef.value.rowEdit(row);
}
-function handleInfo(row) {
+function handleInfo({ row }) {
console.log('info', row);
curdRef.value.rowView(row);
}
From 334e41efca6e41441e904ca76c8a5598db9d844f Mon Sep 17 00:00:00 2001
From: wangzenghua <1048523306@qq.com>
Date: Wed, 19 Mar 2025 09:09:38 +0100
Subject: [PATCH 2/5] fix
---
main/.env.production | 1 +
main/.env.test | 3 +-
main/src/utils/permission.js | 2 +-
.../src/router/modules/plantingAndBreeding.js | 12 +-
.../views/plantingAndBreeding/base/index.vue | 409 +++++++++++++++++-
.../plantingAndBreeding/environment/index.vue | 16 +-
.../epidemicDisease/index.vue | 20 +-
.../views/plantingAndBreeding/pest/index.vue | 16 +-
8 files changed, 453 insertions(+), 26 deletions(-)
diff --git a/main/.env.production b/main/.env.production
index 5aa3ea1..8bc7168 100644
--- a/main/.env.production
+++ b/main/.env.production
@@ -4,6 +4,7 @@ VITE_APP_TITLE = '数字农业产业管理平台'
VITE_APP_SUB_OS = '//192.168.18.99:88/sub-operation-service/'
VITE_APP_SUB_ADMIN = '//192.168.18.99:88/sub-admin/'
VITE_APP_SUB_GAS = '//192.168.18.99:88/sub-government-affairs-service/'
+VITE_APP_SUB_GSS = '//192.168.18.99:88/sub-government-screen-service/'
# 接口
VITE_APP_BASE_API = '/apis'
VITE_APP_BASE_URL = ''
diff --git a/main/.env.test b/main/.env.test
index be802d2..5b7db1a 100644
--- a/main/.env.test
+++ b/main/.env.test
@@ -4,8 +4,9 @@ VITE_APP_TITLE = '数字农业产业管理平台'
VITE_APP_SUB_OS = '//localhost:8090/sub-operation-service/'
VITE_APP_SUB_ADMIN = '//localhost:8090/sub-admin/'
VITE_APP_SUB_GAS = '//localhost:8090/sub-government-affairs-service/'
+VITE_APP_SUB_GSS = '//localhost:8090/sub-government-screen-service/'
# 接口
VITE_APP_BASE_API = '/apis'
VITE_APP_BASE_URL = ''
VITE_APP_UPLOAD_API = '/uploadApis'
-VITE_APP_UPLOAD_URL = ''
\ No newline at end of file
+VITE_APP_UPLOAD_URL = ''
diff --git a/main/src/utils/permission.js b/main/src/utils/permission.js
index 2d203b0..8880f74 100644
--- a/main/src/utils/permission.js
+++ b/main/src/utils/permission.js
@@ -14,7 +14,7 @@ import { usePermissionStore } from '@/store/modules/permission';
NProgress.configure({ showSpinner: false });
const { VITE_APP_TITLE } = import.meta.env;
-const whiteList = ['/login'];
+const whiteList = ['/login', '/sub-government-affairs-service/trace-info'];
router.beforeEach(async (to, from, next) => {
NProgress.start();
diff --git a/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js
index 4007b1b..5d82986 100644
--- a/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js
+++ b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js
@@ -33,12 +33,12 @@ export default [
component: () => import('@/views/plantingAndBreeding/epidemicDisease/index.vue'),
meta: { title: '疫病监测信息', icon: 'Document' },
},
- // {
- // path: '/sub-government-affairs-service/breeding-base-information',
- // name: 'breeding-base-information',
- // component: () => import('@/views/plantingAndBreeding/base/index.vue'),
- // meta: { title: '种养殖基地', icon: 'Document' },
- // },
+ {
+ path: '/sub-government-affairs-service/breeding-base-information',
+ name: 'breeding-base-information',
+ component: () => import('@/views/plantingAndBreeding/base/index.vue'),
+ meta: { title: '种养殖基地', icon: 'Document' },
+ },
],
},
];
diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue
index a182cd9..c1e7d06 100644
--- a/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue
+++ b/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue
@@ -1,6 +1,411 @@
- 种养殖基地信息
+
+
+
+
+
+
+
+
+
+ 批量删除
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+
+
+
diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue
index de353aa..5c6ed52 100644
--- a/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue
+++ b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue
@@ -56,16 +56,26 @@ const landTypeData = ref([
id: '0',
children: [
{ label: '耕地', id: '01', children: [], pId: '0' },
- { label: '园地', children: [], id: '02', pId: '0' },
+ { label: '林地', children: [], id: '02', pId: '0' },
+ { label: '草地', children: [], id: '03', pId: '0' },
+ { label: '农田水利用地', children: [], id: '04', pId: '0' },
+ { label: '养殖水面', children: [], id: '05', pId: '0' },
],
},
{
label: '建设用地',
id: '1',
- children: [{ label: '城乡建设用地', children: [], id: '11', pId: '10' }],
+ children: [
+ { label: '城乡住宅用地', children: [], id: '11', pId: '10' },
+ { label: '公共设施用地', children: [], id: '11', pId: '10' },
+ { label: '工矿仓储用地', children: [], id: '11', pId: '10' },
+ { label: '交通水利设施用地', children: [], id: '11', pId: '10' },
+ { label: '旅游用地', children: [], id: '11', pId: '10' },
+ { label: '军事设施用地', children: [], id: '11', pId: '10' },
+ ],
},
{
- label: '住宅用地',
+ label: '未利用地',
id: '2',
children: [],
},
diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue
index 0680446..16a8d4e 100644
--- a/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue
+++ b/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue
@@ -109,16 +109,16 @@ const UserStore = useUserStore();
const router = useRouter();
const crudRef = ref(null);
const landTypeData = ref([
- {
- label: '疫病分类',
- id: '0',
- children: [
- { label: '家禽类', id: '01', children: [], pId: '0' },
- { label: '家畜类', id: '02', children: [], pId: '0' },
- { label: '水产类', id: '03', children: [], pId: '0' },
- { label: '特种养殖类', id: '04', children: [], pId: '0' },
- ],
- },
+ // {
+ // label: '疫病分类',
+ // id: '0',
+ // children: [
+ { label: '家禽类', id: '01', children: [], pId: '0' },
+ { label: '家畜类', id: '02', children: [], pId: '0' },
+ { label: '水产类', id: '03', children: [], pId: '0' },
+ { label: '特种养殖类', id: '04', children: [], pId: '0' },
+ // ],
+ // },
]);
const state = reactive({
loading: false,
diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue
index c3c1c02..61f0829 100644
--- a/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue
+++ b/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue
@@ -53,16 +53,26 @@ const landTypeData = ref([
id: '0',
children: [
{ label: '耕地', id: '01', children: [], pId: '0' },
- { label: '园地', children: [], id: '02', pId: '0' },
+ { label: '林地', children: [], id: '02', pId: '0' },
+ { label: '草地', children: [], id: '03', pId: '0' },
+ { label: '农田水利用地', children: [], id: '04', pId: '0' },
+ { label: '养殖水面', children: [], id: '05', pId: '0' },
],
},
{
label: '建设用地',
id: '1',
- children: [{ label: '城乡建设用地', children: [], id: '11', pId: '10' }],
+ children: [
+ { label: '城乡住宅用地', children: [], id: '11', pId: '10' },
+ { label: '公共设施用地', children: [], id: '11', pId: '10' },
+ { label: '工矿仓储用地', children: [], id: '11', pId: '10' },
+ { label: '交通水利设施用地', children: [], id: '11', pId: '10' },
+ { label: '旅游用地', children: [], id: '11', pId: '10' },
+ { label: '军事设施用地', children: [], id: '11', pId: '10' },
+ ],
},
{
- label: '住宅用地',
+ label: '未利用地',
id: '2',
children: [],
},
From 2fb5713f6542664374e8a5c0305952aa478b82b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E6=83=B3?= <826276471@qq.com>
Date: Wed, 19 Mar 2025 17:21:23 +0800
Subject: [PATCH 3/5] =?UTF-8?q?feat:=E7=9F=A5=E8=AF=86=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=AE=8C?=
=?UTF-8?q?=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main/src/apis/common/index.js | 15 +++
.../components/custom-rich-editor/index.vue | 25 ++--
.../components/custom-rich-editor/upFile.js | 10 ++
.../src/apis/inputSuppliesApi/index.js | 2 +-
.../src/apis/inputSuppliesApi/knowledge.js | 11 +-
.../src/apis/inputSuppliesApi/material.js | 3 +-
.../knowledgeManage/index.vue | 119 +++++++++++-------
7 files changed, 116 insertions(+), 69 deletions(-)
create mode 100644 main/src/apis/common/index.js
create mode 100644 main/src/components/custom-rich-editor/upFile.js
diff --git a/main/src/apis/common/index.js b/main/src/apis/common/index.js
new file mode 100644
index 0000000..1890406
--- /dev/null
+++ b/main/src/apis/common/index.js
@@ -0,0 +1,15 @@
+import request from '@/utils/axios';
+
+/**
+ * @Title: 上传图片
+ */
+export function CommonUpload(data, params) {
+ return request({
+ url: `/upload`,
+ method: 'POST',
+ apisType: 'upload',
+ uploadType: 'multipart/form-data',
+ data,
+ params,
+ });
+}
diff --git a/main/src/components/custom-rich-editor/index.vue b/main/src/components/custom-rich-editor/index.vue
index 1e4bad9..6cca864 100644
--- a/main/src/components/custom-rich-editor/index.vue
+++ b/main/src/components/custom-rich-editor/index.vue
@@ -7,7 +7,7 @@
-->
-
-
+
+
@@ -28,6 +35,8 @@
import { ref, reactive, onMounted, h } from 'vue';
import CustomCard from '@/components/CustomCard.vue';
import { CRUD_OPTIONS } from '@/config';
+import inputSuppliesApi from '@/apis/inputSuppliesApi';
+import { ElMessage } from 'element-plus';
onMounted(getData);
/* --------------- data --------------- */
@@ -36,19 +45,19 @@ const curdRef = ref();
const _loading = ref(false);
const data = ref([]);
const searchCondition = ref({
- keywords: '',
+ problemName: '',
status: '',
});
const option = reactive({
...CRUD_OPTIONS,
addBtn: false,
selection: false,
- dialogWidth: 800,
+ dialogWidth: '60%',
editTitle: '回复',
column: [
{
label: '关键词',
- prop: 'keywords',
+ prop: 'problemName',
hide: true,
search: true,
editDisplay: false,
@@ -69,47 +78,46 @@ const option = reactive({
},
{
label: '名称',
- prop: 'question',
+ prop: 'problemName',
renderForm: ({ row }) => {
- console.log('row ---', row);
- return h('span', {}, row.question);
+ return h('span', {}, row.problemName);
},
span: 24,
},
{
label: '提问时间',
- prop: 'questionDate',
+ prop: 'createTime',
viewDisplay: false,
renderForm: ({ row }) => {
- return h('span', {}, row.questionDate);
+ return h('span', {}, row.createTime);
},
span: 24,
},
+ {
+ hide: true,
+ label: '回复内容',
+ prop: 'replyContent',
+ span: 24,
+ },
{
label: '专家姓名',
prop: 'expertName',
editDisplay: false,
- viewDisplay: false,
+ span: 24,
},
{
label: '回复时间',
- prop: 'replyDate',
+ prop: 'updateTime',
editDisplay: false,
- viewDisplay: false,
- },
- {
- label: '回复内容Text',
- prop: 'replyContentText',
- editDisplay: false,
- viewDisplay: false,
- },
- {
- hide: true,
- label: '回复内容',
- prop: 'replyContent',
- viewDisplay: false,
span: 24,
},
+ // {
+ // label: '回复内容Text',
+ // prop: 'replyContentText',
+ // editDisplay: false,
+ // viewDisplay: false,
+ // render: ({ row }) => row.replyContent,
+ // },
],
});
const pageData = reactive({
@@ -136,7 +144,8 @@ const richText = ref();
/* --------------- methods --------------- */
// #region
-function getData() {
+async function getData() {
+ _loading.value = true;
let params = Object.assign(
{
currentPage: pageData.currentPage,
@@ -144,19 +153,23 @@ function getData() {
},
searchCondition.value
);
- console.log('params', params);
-
- for (let i = 0; i < 13; i++) {
- data.value.push({
- id: i + Date.now(),
- question: '我是问题' + i,
- questionDate: '2022-01-01',
- expertName: '专家' + i,
- replyDate: '2022-01-01',
- replyContent: `- ${i}${i}${i}${i}${i}
333
4534
`,
- status: !(i % 2) ? '0' : '1',
- });
+ let res = await inputSuppliesApi.getQuestionList(params);
+ _loading.value = false;
+ if (res.code == 200) {
+ data.value = res.data.records;
+ pageData.total = res.data.total;
}
+ // for (let i = 0; i < 13; i++) {
+ // data.value.push({
+ // id: i + Date.now(),
+ // problemName: '我是问题' + i,
+ // createTime: '2022-01-01',
+ // expertName: '专家' + i,
+ // updateTime: '2022-01-01',
+ // replyContent: `- ${i}${i}${i}${i}${i}
333
4534
`,
+ // status: !(i % 2) ? '0' : '1',
+ // });
+ // }
}
function handleSearch(form, done) {
resetGet();
@@ -166,31 +179,45 @@ function handleSearchReset() {
resetGet();
}
function handleCurrentChange(val) {
- console.log(val);
+ pageData.currentPage = val;
+ getData();
}
function handleSizeChange(val) {
- console.log(val);
+ pageData.size = val;
+ resetGet();
}
-function handleRowUpdate(form, done, loading) {
- console.log('rich', richText.value);
- console.log('update ', form);
+async function handleRowUpdate(form, index, done, loading) {
+ let data = {
+ id: form.id,
+ replyContent: richText.value,
+ };
+ let res = await inputSuppliesApi.getQuestionReply(data);
loading();
+ if (res.code == 200) {
+ ElMessage.success('回复成功!');
+ getData();
+ done();
+ }
}
+
function handleRowSave(form, done, loading) {
loading();
}
function resetGet() {
pageData.currentPage = 1;
- getData;
+ getData();
}
function handleReply({ row }) {
- console.log('reply', row);
curdRef.value.rowEdit(row);
}
function handleInfo({ row }) {
- console.log('info', row);
+ richText.value = row.replyContent;
curdRef.value.rowView(row);
}
+function handleDialogClose(done) {
+ richText.value = '';
+ done();
+}
// #endregion
From de70cb3cf5a098c1f3d0517754b9ca53f6a830e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E6=83=B3?= <826276471@qq.com>
Date: Thu, 20 Mar 2025 10:41:33 +0800
Subject: [PATCH 4/5] =?UTF-8?q?feat:=E4=BC=81=E4=B8=9A=E7=BB=8F=E9=94=80?=
=?UTF-8?q?=E5=95=86=E6=8A=BD=E6=A3=80=E9=A1=B5=E9=9D=A2=E6=90=AD=E5=BB=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/router/modules/inputSupplies/index.js | 86 ++++----
.../enterpriseDealer/index.vue | 20 --
.../enterpriseDealerCheck/index.vue | 183 ++++++++++++++++++
3 files changed, 226 insertions(+), 63 deletions(-)
delete mode 100644 sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealer/index.vue
create mode 100644 sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealerCheck/index.vue
diff --git a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
index 40fa851..a22cf86 100644
--- a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
+++ b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
@@ -60,51 +60,51 @@ const inputSuppliesRoutes = [
},
],
},
- {
- path: '/sub-government-affairs-service/productionDealer',
- name: 'productionDealer',
- component: Views,
- meta: { title: '生产经销商管理', icon: 'Document' },
- redirect: '/sub-government-affairs-service/productionDealer/pesticideDealer',
- children: [
- {
- path: '/sub-government-affairs-service/productionDealer/pesticideDealer',
- name: 'input-supplies-pesticide-dealer',
- component: () => import('@/views/inputSuppliesManage/productionDealer/pesticideDealer/index.vue'),
- meta: { title: '农药经销商管理', icon: 'Document' },
- },
- {
- path: '/sub-government-affairs-service/productionDealer/fertilizerDealer',
- name: 'input-supplies-fertilizer-dealer',
- component: () => import('@/views/inputSuppliesManage/productionDealer/fertilizerDealer/index.vue'),
- meta: { title: '肥料经销商管理', icon: 'Document' },
- },
- {
- path: '/sub-government-affairs-service/productionDealer/ratPoisonDealer',
- name: 'input-supplies-ratPoison-dealer',
- component: () => import('@/views/inputSuppliesManage/productionDealer/ratPoisonDealer/index.vue'),
- meta: { title: '兽药经销商管理', icon: 'Document' },
- },
- {
- path: '/sub-government-affairs-service/productionDealer/farmMachineryDealer',
- name: 'input-supplies-farmMachinery-dealer',
- component: () => import('@/views/inputSuppliesManage/productionDealer/farmMachineryDealer/index.vue'),
- meta: { title: '农机经销商管理', icon: 'Document' },
- },
- {
- path: '/sub-government-affairs-service/productionDealer/seedDealer',
- name: 'input-supplies-seed-dealer',
- component: () => import('@/views/inputSuppliesManage/productionDealer/seedDealer/index.vue'),
- meta: { title: '种源经销商管理', icon: 'Document' },
- },
- ],
- },
// {
- // path: '/sub-government-affairs-service/enterpriseDealer',
- // name: 'enterpriseDealer',
- // component: () => import('@/views/inputSuppliesManage/enterpriseDealer/index.vue'),
- // meta: { title: '企业经销商抽检', icon: 'Document' },
+ // path: '/sub-government-affairs-service/productionDealer',
+ // name: 'productionDealer',
+ // component: Views,
+ // meta: { title: '生产经销商管理', icon: 'Document' },
+ // redirect: '/sub-government-affairs-service/productionDealer/pesticideDealer',
+ // children: [
+ // {
+ // path: '/sub-government-affairs-service/productionDealer/pesticideDealer',
+ // name: 'input-supplies-pesticide-dealer',
+ // component: () => import('@/views/inputSuppliesManage/productionDealer/pesticideDealer/index.vue'),
+ // meta: { title: '农药经销商管理', icon: 'Document' },
+ // },
+ // {
+ // path: '/sub-government-affairs-service/productionDealer/fertilizerDealer',
+ // name: 'input-supplies-fertilizer-dealer',
+ // component: () => import('@/views/inputSuppliesManage/productionDealer/fertilizerDealer/index.vue'),
+ // meta: { title: '肥料经销商管理', icon: 'Document' },
+ // },
+ // {
+ // path: '/sub-government-affairs-service/productionDealer/ratPoisonDealer',
+ // name: 'input-supplies-ratPoison-dealer',
+ // component: () => import('@/views/inputSuppliesManage/productionDealer/ratPoisonDealer/index.vue'),
+ // meta: { title: '兽药经销商管理', icon: 'Document' },
+ // },
+ // {
+ // path: '/sub-government-affairs-service/productionDealer/farmMachineryDealer',
+ // name: 'input-supplies-farmMachinery-dealer',
+ // component: () => import('@/views/inputSuppliesManage/productionDealer/farmMachineryDealer/index.vue'),
+ // meta: { title: '农机经销商管理', icon: 'Document' },
+ // },
+ // {
+ // path: '/sub-government-affairs-service/productionDealer/seedDealer',
+ // name: 'input-supplies-seed-dealer',
+ // component: () => import('@/views/inputSuppliesManage/productionDealer/seedDealer/index.vue'),
+ // meta: { title: '种源经销商管理', icon: 'Document' },
+ // },
+ // ],
// },
+ {
+ path: '/sub-government-affairs-service/enterpriseDealerCheck',
+ name: 'enterpriseDealerCheck',
+ component: () => import('@/views/inputSuppliesManage/enterpriseDealerCheck/index.vue'),
+ meta: { title: '企业经销商抽检', icon: 'Document' },
+ },
// {
// path: '/sub-government-affairs-service/useSupervise',
// name: 'useSupervise',
diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealer/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealer/index.vue
deleted file mode 100644
index d6492f1..0000000
--- a/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealer/index.vue
+++ /dev/null
@@ -1,20 +0,0 @@
-
- 企业经销商抽检
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealerCheck/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealerCheck/index.vue
new file mode 100644
index 0000000..02b3a49
--- /dev/null
+++ b/sub-government-affairs-service/src/views/inputSuppliesManage/enterpriseDealerCheck/index.vue
@@ -0,0 +1,183 @@
+
+
+ 企业经销商抽检
+
+ {
+ getData(1);
+ done();
+ }
+ "
+ @search-reset="() => getData(1)"
+ @current-change="getData"
+ @size-change="getData"
+ @row-save="handleRowSave"
+ @row-update="handleRowUpdate"
+ >
+
+ button
+
+
+
+
+
+
+
+
From 5e00d9ce21524a487f43b1d4f0087a865e0b24bf Mon Sep 17 00:00:00 2001
From: wangzenghua <1048523306@qq.com>
Date: Thu, 20 Mar 2025 07:26:13 +0100
Subject: [PATCH 5/5] =?UTF-8?q?feat:iframe=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main/src/components/custom-iframe/index.vue | 39 +++++++++++++++++++++
main/src/components/index.js | 2 ++
main/src/utils/validate.js | 2 +-
3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 main/src/components/custom-iframe/index.vue
diff --git a/main/src/components/custom-iframe/index.vue b/main/src/components/custom-iframe/index.vue
new file mode 100644
index 0000000..858fcd3
--- /dev/null
+++ b/main/src/components/custom-iframe/index.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/main/src/components/index.js b/main/src/components/index.js
index 9f5408d..8134b9d 100644
--- a/main/src/components/index.js
+++ b/main/src/components/index.js
@@ -1,4 +1,5 @@
import SvgIcon from './svg-icon';
+import CustomIframe from './custom-iframe';
import CustomTableOperate from './custom-table-operate';
import CustomTableTree from './custom-table-tree';
import CustomCarouselPicture from './custom-carousel-picture';
@@ -16,6 +17,7 @@ import CustomEchartPie3d from './custom-echart-pie-3d';
export {
SvgIcon,
+ CustomIframe,
CustomTableOperate,
CustomTableTree,
CustomCarouselPicture,
diff --git a/main/src/utils/validate.js b/main/src/utils/validate.js
index d2413e2..930a54c 100644
--- a/main/src/utils/validate.js
+++ b/main/src/utils/validate.js
@@ -45,7 +45,7 @@ export function isHttp(url) {
* @returns {Boolean}
*/
export function isExternal(path) {
- return /^(https?:|mailto:|tel:)/.test(path);
+ return /^(http?:|https?:|mailto:|tel:)/.test(path);
}
/**