diff --git a/vue/package.json b/vue/package.json
index 450ac5d4..4873dfd0 100644
--- a/vue/package.json
+++ b/vue/package.json
@@ -50,7 +50,7 @@
"jsencrypt": "3.2.1",
"mqtt": "^4.3.3",
"nprogress": "0.2.0",
- "quill": "1.3.7",
+ "quill": "^1.3.7",
"screenfull": "5.0.2",
"sortablejs": "1.10.2",
"vue": "2.6.12",
diff --git a/vue/src/api/iot/news.js b/vue/src/api/iot/news.js
new file mode 100644
index 00000000..a89013ca
--- /dev/null
+++ b/vue/src/api/iot/news.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询新闻资讯列表
+export function listNews(query) {
+ return request({
+ url: '/iot/news/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询新闻资讯详细
+export function getNews(newsId) {
+ return request({
+ url: '/iot/news/' + newsId,
+ method: 'get'
+ })
+}
+
+// 新增新闻资讯
+export function addNews(data) {
+ return request({
+ url: '/iot/news',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改新闻资讯
+export function updateNews(data) {
+ return request({
+ url: '/iot/news',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除新闻资讯
+export function delNews(newsId) {
+ return request({
+ url: '/iot/news/' + newsId,
+ method: 'delete'
+ })
+}
diff --git a/vue/src/api/iot/newsCategory.js b/vue/src/api/iot/newsCategory.js
new file mode 100644
index 00000000..988b0441
--- /dev/null
+++ b/vue/src/api/iot/newsCategory.js
@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询新闻分类列表
+export function listNewsCategory(query) {
+ return request({
+ url: '/iot/newsCategory/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询产品简短分类列表
+export function listShortNewsCategory() {
+ return request({
+ url: '/iot/newsCategory/newsCategoryShortList',
+ method: 'get',
+ })
+}
+
+// 查询新闻分类详细
+export function getNewsCategory(categoryId) {
+ return request({
+ url: '/iot/newsCategory/' + categoryId,
+ method: 'get'
+ })
+}
+
+// 新增新闻分类
+export function addNewsCategory(data) {
+ return request({
+ url: '/iot/newsCategory',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改新闻分类
+export function updateNewsCategory(data) {
+ return request({
+ url: '/iot/newsCategory',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除新闻分类
+export function delNewsCategory(categoryId) {
+ return request({
+ url: '/iot/newsCategory/' + categoryId,
+ method: 'delete'
+ })
+}
diff --git a/vue/src/components/Editor/index.vue b/vue/src/components/Editor/index.vue
index 6bb5a18d..37706ad0 100644
--- a/vue/src/components/Editor/index.vue
+++ b/vue/src/components/Editor/index.vue
@@ -1,20 +1,9 @@
-
diff --git a/vue/src/main.js b/vue/src/main.js
index 4f562bae..bea744e8 100644
--- a/vue/src/main.js
+++ b/vue/src/main.js
@@ -37,8 +37,6 @@ import VueMeta from 'vue-meta'
import DictData from '@/components/DictData'
// Echart
import echarts from 'echarts'
-// mqtt组件
-import mqttClient from './views/iot/device/mqtt-client.vue'
// 一键复制粘贴板组件
import VueClipboard from 'vue-clipboard2'
@@ -61,7 +59,6 @@ Vue.component('RightToolbar', RightToolbar)
Vue.component('Editor', Editor)
Vue.component('FileUpload', FileUpload)
Vue.component('ImageUpload', ImageUpload)
-Vue.component('mqtt-client',mqttClient)
Vue.use(VueClipboard)
Vue.use(directive)
Vue.use(plugins)
diff --git a/vue/src/views/iot/device/index.vue b/vue/src/views/iot/device/index.vue
index b246f9ff..033b9cb4 100644
--- a/vue/src/views/iot/device/index.vue
+++ b/vue/src/views/iot/device/index.vue
@@ -178,13 +178,14 @@
-
+
+
+
diff --git a/vue/src/views/iot/newsCategory/index.vue b/vue/src/views/iot/newsCategory/index.vue
new file mode 100644
index 00000000..3a3a6c4a
--- /dev/null
+++ b/vue/src/views/iot/newsCategory/index.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vue/src/views/iot/product/product-authorize.vue b/vue/src/views/iot/product/product-authorize.vue
index 1f6c233d..181205d6 100644
--- a/vue/src/views/iot/product/product-authorize.vue
+++ b/vue/src/views/iot/product/product-authorize.vue
@@ -18,7 +18,7 @@
- 新增授权码
+ 生成授权码
修改
@@ -94,7 +94,7 @@
width: 300px;
}
.createNum input{
- width: 130px;
+ width: 260px;
}
@@ -223,7 +223,7 @@ export default {
},
/** 批量新增按钮操作 */
handleAdd() {
- this.$prompt('输入新增授权码数量', '提示', {
+ this.$prompt('', '输入新增授权码数量', {
customClass: 'createNum',
confirmButtonText: '确定',
cancelButtonText: '取消',
diff --git a/vue/src/views/iot/product/product-edit.vue b/vue/src/views/iot/product/product-edit.vue
index 223ec9b9..5d574636 100644
--- a/vue/src/views/iot/product/product-edit.vue
+++ b/vue/src/views/iot/product/product-edit.vue
@@ -296,10 +296,8 @@ export default {
},
// 授权码状态修改
changeIsAuthorize() {
- let text = this.form.isAuthorize === "1" ? "启用" : "停用";
- let _this = this;
- this.$modal.confirm('确认要[' + text + ']' + this.form.productName + '授权码吗?').then(function () {
- _this.submitForm();
+ let text = this.form.isAuthorize == "1" ? "启用" : "停用";
+ this.$modal.confirm('确认要' + text + '授权码吗?').then(function () {
}).catch(() => {
this.form.isAuthorize = 0;
});
diff --git a/vue/src/views/system/notice/index.vue b/vue/src/views/system/notice/index.vue
index 22b2ad5e..764516ac 100644
--- a/vue/src/views/system/notice/index.vue
+++ b/vue/src/views/system/notice/index.vue
@@ -1,314 +1,252 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
-
-
- 修改
- 删除
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{dict.label}}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/vue/vue.config.js b/vue/vue.config.js
index faba3cb1..70d3a19f 100644
--- a/vue/vue.config.js
+++ b/vue/vue.config.js
@@ -40,7 +40,7 @@ module.exports = {
}
},
['/api/v4']: {
- target: `http://localhost:8081`,
+ target: `http://wumei.live:8081`,
changeOrigin: true,
// logLevel: 'debug',
},