正在显示
7 个修改的文件
包含
20 行增加
和
26 行删除
ailink-back202601141038.zip
已删除
100644 → 0
不能预览此文件类型
dist.zip
0 → 100644
不能预览此文件类型
| @@ -396,11 +396,11 @@ function submitForm() { | @@ -396,11 +396,11 @@ function submitForm() { | ||
| 396 | 396 | ||
| 397 | /** 删除按钮操作 */ | 397 | /** 删除按钮操作 */ |
| 398 | function handleDelete(row) { | 398 | function handleDelete(row) { |
| 399 | - const noticeIds = row.id; | 399 | + const AdIds = row.id || ids.value; |
| 400 | proxy.$modal | 400 | proxy.$modal |
| 401 | - .confirm('是否确认删除广告编号为"' + noticeIds + '"的数据项?') | 401 | + .confirm('是否确认删除广告编号为"' + AdIds + '"的数据项?') |
| 402 | .then(function () { | 402 | .then(function () { |
| 403 | - return delAd(noticeIds); | 403 | + return delAd(AdIds); |
| 404 | }) | 404 | }) |
| 405 | .then(() => { | 405 | .then(() => { |
| 406 | getList(); | 406 | getList(); |
| @@ -258,24 +258,16 @@ const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); | @@ -258,24 +258,16 @@ const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); | ||
| 258 | 258 | ||
| 259 | const codeList = ref([ | 259 | const codeList = ref([ |
| 260 | { | 260 | { |
| 261 | - label: "top", | ||
| 262 | - value: "top", | 261 | + label: "顶部轮播", |
| 262 | + value: "swiper", | ||
| 263 | }, | 263 | }, |
| 264 | { | 264 | { |
| 265 | - label: "center", | ||
| 266 | - value: "center", | 265 | + label: "banner", |
| 266 | + value: "banner", | ||
| 267 | }, | 267 | }, |
| 268 | { | 268 | { |
| 269 | - label: "bottom", | ||
| 270 | - value: "bottom", | ||
| 271 | - }, | ||
| 272 | - { | ||
| 273 | - label: "left", | ||
| 274 | - value: "left", | ||
| 275 | - }, | ||
| 276 | - { | ||
| 277 | - label: "right", | ||
| 278 | - value: "right", | 269 | + label: "信息流", |
| 270 | + value: "info", | ||
| 279 | }, | 271 | }, |
| 280 | ]); | 272 | ]); |
| 281 | 273 |
| @@ -263,7 +263,7 @@ | @@ -263,7 +263,7 @@ | ||
| 263 | <el-form-item label="应用图标" prop="image"> | 263 | <el-form-item label="应用图标" prop="image"> |
| 264 | <el-upload | 264 | <el-upload |
| 265 | class="avatar-uploader" | 265 | class="avatar-uploader" |
| 266 | - action="/dev-api/dh/app/upload" | 266 | + :action="`${baseUrl}/dh/app/upload`" |
| 267 | :headers="{ | 267 | :headers="{ |
| 268 | Authorization: 'Bearer ' + getToken(), | 268 | Authorization: 'Bearer ' + getToken(), |
| 269 | }" | 269 | }" |
| @@ -309,6 +309,8 @@ import { getToken } from "@/utils/auth"; | @@ -309,6 +309,8 @@ import { getToken } from "@/utils/auth"; | ||
| 309 | const { proxy } = getCurrentInstance(); | 309 | const { proxy } = getCurrentInstance(); |
| 310 | const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); | 310 | const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); |
| 311 | const imageUrl = ref(""); | 311 | const imageUrl = ref(""); |
| 312 | +const baseUrl = import.meta.env.VITE_APP_BASE_API; | ||
| 313 | + | ||
| 312 | const props = { | 314 | const props = { |
| 313 | multiple: true, | 315 | multiple: true, |
| 314 | emitPath: false, | 316 | emitPath: false, |
| @@ -450,7 +452,7 @@ function handleUpdate(row) { | @@ -450,7 +452,7 @@ function handleUpdate(row) { | ||
| 450 | reset(); | 452 | reset(); |
| 451 | form.value = proxy.deepClone(row); | 453 | form.value = proxy.deepClone(row); |
| 452 | form.value.typeIds = row.types?.map((item) => item.id); | 454 | form.value.typeIds = row.types?.map((item) => item.id); |
| 453 | - imageUrl.value = "/dev-api" + row.image; | 455 | + imageUrl.value = baseUrl + row.image; |
| 454 | open.value = true; | 456 | open.value = true; |
| 455 | title.value = "修改广告"; | 457 | title.value = "修改广告"; |
| 456 | } | 458 | } |
| @@ -16,13 +16,13 @@ | @@ -16,13 +16,13 @@ | ||
| 16 | <el-form-item label="站点名称" prop="webname"> | 16 | <el-form-item label="站点名称" prop="webname"> |
| 17 | <el-input v-model="basicForm.webname" placeholder="请输入站点名称" /> | 17 | <el-input v-model="basicForm.webname" placeholder="请输入站点名称" /> |
| 18 | </el-form-item> | 18 | </el-form-item> |
| 19 | - <el-form-item label="网站首页" prop="webtitle"> | ||
| 20 | - <el-input v-model="basicForm.webtitle" placeholder="请输入网站首页" /> | 19 | + <el-form-item label="网站标题" prop="webtitle"> |
| 20 | + <el-input v-model="basicForm.webtitle" placeholder="请输入网站标题" /> | ||
| 21 | </el-form-item> | 21 | </el-form-item> |
| 22 | - <el-form-item label="网站域名" prop="webkeywords"> | 22 | + <el-form-item label="网站关键词" prop="webkeywords"> |
| 23 | <el-input | 23 | <el-input |
| 24 | v-model="basicForm.webkeywords" | 24 | v-model="basicForm.webkeywords" |
| 25 | - placeholder="请输入网站域名" | 25 | + placeholder="请输入网站关键词" |
| 26 | /> | 26 | /> |
| 27 | </el-form-item> | 27 | </el-form-item> |
| 28 | <el-form-item label="网站简介" prop="webdescription"> | 28 | <el-form-item label="网站简介" prop="webdescription"> |
| @@ -74,7 +74,7 @@ const basicForm = ref({ | @@ -74,7 +74,7 @@ const basicForm = ref({ | ||
| 74 | const rules = { | 74 | const rules = { |
| 75 | webname: [ | 75 | webname: [ |
| 76 | { required: true, message: "请输入站点名称", trigger: "blur" }, | 76 | { required: true, message: "请输入站点名称", trigger: "blur" }, |
| 77 | - { min: 2, max: 20, message: "长度在 2 到 20 个字符", trigger: "blur" }, | 77 | + { min: 2, max: 50, message: "长度在 2 到 50 个字符", trigger: "blur" }, |
| 78 | ], | 78 | ], |
| 79 | webtitle: [ | 79 | webtitle: [ |
| 80 | { required: true, message: "请输入网站首页", trigger: "blur" }, | 80 | { required: true, message: "请输入网站首页", trigger: "blur" }, |
| @@ -2,8 +2,8 @@ import { defineConfig, loadEnv } from 'vite' | @@ -2,8 +2,8 @@ import { defineConfig, loadEnv } from 'vite' | ||
| 2 | import path from 'path' | 2 | import path from 'path' |
| 3 | import createVitePlugins from './vite/plugins' | 3 | import createVitePlugins from './vite/plugins' |
| 4 | 4 | ||
| 5 | -// const baseUrl = 'http://htai.aiboxgo.com/' // 后端接口 | ||
| 6 | -const baseUrl = 'http://192.168.2.15:35273/' // 后端接口 | 5 | +const baseUrl = 'http://htai.aiboxgo.com/' // 后端接口 |
| 6 | +// const baseUrl = 'http://192.168.2.15:35273/' // 后端接口 | ||
| 7 | 7 | ||
| 8 | // https://vitejs.dev/config/ | 8 | // https://vitejs.dev/config/ |
| 9 | export default defineConfig(({ mode, command }) => { | 9 | export default defineConfig(({ mode, command }) => { |
-
请 注册 或 登录 后发表评论