diff --git a/src/pages/index/about_us/company_profile/components/AddCompanyProfileDialog.vue b/src/pages/index/about_us/company_profile/components/AddCompanyProfileDialog.vue
index c73e6cf..43a3a1b 100644
--- a/src/pages/index/about_us/company_profile/components/AddCompanyProfileDialog.vue
+++ b/src/pages/index/about_us/company_profile/components/AddCompanyProfileDialog.vue
@@ -16,6 +16,14 @@
+
+
+
+
+ {{ formData.company_profile_color }}
+
+
+
@@ -40,7 +48,15 @@ import { addCompanyProfile } from "~/service/company_profile";
import { useLoginStore } from "~/store";
// --业务参数
-
+const predefineColors = ref([
+ '#ff4500',
+ '#ff8c00',
+ '#ffd700',
+ '#90ee90',
+ '#00ced1',
+ '#1e90ff',
+ '#c71585',
+])
// --业务方法
@@ -95,6 +111,12 @@ const rules = reactive({
message: '简介排序不能为空'
}
],
+ company_profile_color: [
+ {
+ required: true,
+ message: '简介背景色不能为空'
+ }
+ ],
});
diff --git a/src/pages/index/about_us/company_profile/components/DetailCompanyProfileDialog.vue b/src/pages/index/about_us/company_profile/components/DetailCompanyProfileDialog.vue
index db43239..d39c1f3 100644
--- a/src/pages/index/about_us/company_profile/components/DetailCompanyProfileDialog.vue
+++ b/src/pages/index/about_us/company_profile/components/DetailCompanyProfileDialog.vue
@@ -16,6 +16,14 @@
+
+
+
+
+ {{ formData.company_profile_color }}
+
+
+
@@ -33,6 +41,15 @@ import { isEmptyObject } from "~/utils/index";
// --业务参数
+const predefineColors = ref([
+ '#ff4500',
+ '#ff8c00',
+ '#ffd700',
+ '#90ee90',
+ '#00ced1',
+ '#1e90ff',
+ '#c71585',
+])
diff --git a/src/pages/index/about_us/company_profile/components/EditCompanyProfileDialog.vue b/src/pages/index/about_us/company_profile/components/EditCompanyProfileDialog.vue
index 778af7d..e7d7f91 100644
--- a/src/pages/index/about_us/company_profile/components/EditCompanyProfileDialog.vue
+++ b/src/pages/index/about_us/company_profile/components/EditCompanyProfileDialog.vue
@@ -16,6 +16,14 @@
+
+
+
+
+ {{ formData.company_profile_color }}
+
+
+
@@ -39,6 +47,15 @@ import { editCompanyProfile } from "~/service/company_profile";
import { useLoginStore } from "~/store";
// --业务参数
+const predefineColors = ref([
+ '#ff4500',
+ '#ff8c00',
+ '#ffd700',
+ '#90ee90',
+ '#00ced1',
+ '#1e90ff',
+ '#c71585',
+])
@@ -106,6 +123,12 @@ const rules = reactive({
message: '简介排序不能为空'
}
],
+ company_profile_color: [
+ {
+ required: true,
+ message: '简介背景色不能为空'
+ }
+ ],
});
@@ -118,7 +141,7 @@ const handleEditClick = async (formEl) => {
return;
}
isBtnLod.value = true;
- const { code ,msg} = await editCompanyProfile(formData.value);
+ const { code, msg } = await editCompanyProfile(formData.value);
if (code == 0) {
closeDialog();
props.done();
diff --git a/src/pages/index/about_us/company_profile/index.vue b/src/pages/index/about_us/company_profile/index.vue
index fce1731..ab6f0a2 100644
--- a/src/pages/index/about_us/company_profile/index.vue
+++ b/src/pages/index/about_us/company_profile/index.vue
@@ -48,6 +48,11 @@
:hide-on-click-modal="true" fit="contain" class="el-avatar">
暂无图片
+
+
+
+ {{ scope.row.company_profile_color }}
+
@@ -116,6 +121,16 @@ const headers = {
...store.headers,
};
+const predefineColors = ref([
+ '#ff4500',
+ '#ff8c00',
+ '#ffd700',
+ '#90ee90',
+ '#00ced1',
+ '#1e90ff',
+ '#c71585',
+])
+
// 查询参数
const params = reactive({
company_profile_content: '',
@@ -135,7 +150,12 @@ const column = [
{
prop: "company_profile_content",
label: '简介内容',
- width: '550',
+ width: '500',
+ },
+ {
+ prop: "company_profile_color",
+ label: '背景色',
+ width: '150',
},
{
prop: "company_profile_order",
@@ -224,6 +244,18 @@ async function handleEditOrder(data) {
}
}
+// 背景色
+async function hanleChangeColor(data) {
+ loading.value = true
+ const { code, msg } = await editCompanyProfile(data);
+ if (code == 0) {
+ loading.value = false
+ tableRef.value.reload()
+ ElMessage.success(msg);
+ } else {
+ ElMessage.error(msg);
+ }
+}
diff --git a/src/pages/index/about_us/teaching_envir/teaching_envir_list/index.vue b/src/pages/index/about_us/teaching_envir/teaching_envir_list/index.vue
index a9b5507..b23eaac 100644
--- a/src/pages/index/about_us/teaching_envir/teaching_envir_list/index.vue
+++ b/src/pages/index/about_us/teaching_envir/teaching_envir_list/index.vue
@@ -9,7 +9,7 @@
+ placeholder="请选择环境类型" clearable v-model="params.teaching_envir_type_guid">
{{ data.teaching_envir_type_name }}
({{ data.children.length }})
@@ -146,6 +146,11 @@ const column = [
fixed: true,
type: "selection",
},
+ {
+ prop: "teaching_envir_type_name",
+ label: "教学环境类型",
+ width: "150",
+ },
{
prop: "teaching_envir_img",
label: "教学环境图片",
@@ -159,12 +164,8 @@ const column = [
{
prop: "teaching_envir_intro",
label: "教学环境简介",
- width: "150",
- },
- {
- prop: "teaching_envir_type_name",
- label: "教学环境类型",
- width: "150",
+ width: "300",
+ showOverflowTooltip: true,
},
{
label: "操作",