From aa18dbf3efdbc15f076f4ce83cda5ad60b3c5122 Mon Sep 17 00:00:00 2001 From: zy_zr <985512818@qq.com> Date: Wed, 23 Apr 2025 14:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E8=A1=8C=E4=B8=BA=E5=92=8C?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/layout.scss | 2 +- src/components/DictTag/index.vue | 4 +- src/components/aboutTable/FormMessage.vue | 40 ++-- src/components/aboutTable/Search.vue | 6 +- src/router/index.js | 18 +- src/utils/request.js | 42 ++-- .../BehaviorLabels/components/editAddForm.vue | 110 ++++++++++ .../fourColorManage/BehaviorLabels/index.vue | 173 +++++++++++++++- .../IdentityManage/components/dialogList.vue | 192 ++++++++++++++++++ .../IdentityManage/components/editAddForm.vue | 73 ++++--- .../fourColorManage/IdentityManage/index.vue | 60 +++--- .../tagManage/components/editAddForm.vue | 2 +- 12 files changed, 589 insertions(+), 133 deletions(-) create mode 100644 src/views/backOfficeSystem/fourColorManage/BehaviorLabels/components/editAddForm.vue create mode 100644 src/views/backOfficeSystem/fourColorManage/IdentityManage/components/dialogList.vue diff --git a/src/assets/css/layout.scss b/src/assets/css/layout.scss index d77e5f6..bc46a34 100644 --- a/src/assets/css/layout.scss +++ b/src/assets/css/layout.scss @@ -99,7 +99,7 @@ header { left: 10px; background-color: #fff; z-index: 998; - color: #fff; + color: #333; padding: 20px; box-sizing: border-box; .head_box { diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 56410e3..727fb38 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -7,7 +7,7 @@ :key="item.value" :index="index" :class="item.elTagType" - >{{ item.label }} + >{{ item.label || item.zdmc }} {{ item.label }}{{ item.label || item.zdmc }} diff --git a/src/components/aboutTable/FormMessage.vue b/src/components/aboutTable/FormMessage.vue index 9b35509..02c4c5f 100644 --- a/src/components/aboutTable/FormMessage.vue +++ b/src/components/aboutTable/FormMessage.vue @@ -1,26 +1,26 @@ @@ -79,11 +76,9 @@ const searchBox = ref(); //搜索框 const type = ref('标签大类') const searchConfiger = ref([ - { label: "标签大类",prop:'sfbqdl' ,placeholder: "请输入标签大类", showType: "input"}, - { label: "标签名称",prop:'bqmc',placeholder: "请输入学校名称", showType: "input"}, - { label: "标签等级",prop:'sfbqdl' ,placeholder: "请选择标签等级", showType: "select",options:D_GS_BQ_DJ }, - { label: "标签颜色",prop:'sfbqdl' ,placeholder: "请选择标签颜色", showType: "select",options:D_GS_SSYJ }, - { label: "积分分值",prop:'bqmc',placeholder: "请输入积分分值", showType: "input",}, + { label: "标签名称",prop:'bqMc',placeholder: "请输入学校名称", showType: "input"}, + { label: "标签等级",prop:'bqDj' ,placeholder: "请选择标签等级", showType: "select",options:D_GS_BQ_DJ }, + { label: "标签颜色",prop:'bqYs' ,placeholder: "请选择标签颜色", showType: "select",options:D_GS_SSYJ }, ]); const queryFrom = ref({}); const pageData = reactive({ @@ -103,8 +98,8 @@ const pageData = reactive({ tableColumn: [ { label: "标签名称", prop: "bqMc" }, { label: "标签代码", prop: "bqDm" }, - { label: "标签类型", prop: "bqLx",howSolt:true }, - { label: "标签类别", prop: "bqLb",howSolt:true }, + { label: "标签类型", prop: "bqLx",showSolt:true }, + { label: "标签类别", prop: "bqLb",showSolt:true }, { label: "标签等级", prop: "bqDj",showSolt:true}, { label: "标签颜色", prop: "bqYs",showSolt:true}, ] @@ -118,16 +113,6 @@ onMounted(() => { const chooseListType = (val) => { type.value = val; pageData.keyCount++; - switch(val){ - case '标签大类': - let obj1 = { label: "标签大类",prop:'sfbqdl' ,placeholder: "请输入标签大类", showType: "input"} - searchConfiger.value.splice(0, 1, obj1); - break; - case '标签细类': - let obj2 = { label: "标签细类",prop:'sfbqdl' ,placeholder: "请输入标签细类", showType: "input"} - searchConfiger.value.splice(0, 1, obj2); - break; - } pageData.pageConfiger.pageCurrent = 1; getList() }; @@ -152,18 +137,19 @@ const changeSize = (val) =>{ // 获取列表 const getList = (val) =>{ - // pageData.tableConfiger.loading = true; - // let data = { ...pageData.pageConfiger,...queryFrom.value }; - // qcckPost(data,'/mosty-gsxt/tbGsxtBqgl/selectPage').then(res=>{ - // pageData.tableData = res.records || []; - // pageData.total = res.total; - // pageData.tableConfiger.loading = false; - // }).catch(()=>{ pageData.tableConfiger.loading = false; }) + pageData.tableConfiger.loading = true; + let data = { ...pageData.pageConfiger,...queryFrom.value,bqLx:'01' }; + data.bqLb = type.value == '标签大类'? '01':'02' + qcckGet(data,'/mosty-gsxt/tbGsxtBqgl/selectPage').then(res=>{ + pageData.tableData = res.records || []; + pageData.total = res.total; + pageData.tableConfiger.loading = false; + }).catch(()=>{ pageData.tableConfiger.loading = false; }) } // 删除 const delDictItem = (id) =>{ proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => { - qcckPost({},'/mosty-gsxt/tbGsxtBqgl/'+id).then(()=>{ + qcckDelete({},'/mosty-gsxt/tbGsxtBqgl/'+id).then(()=>{ proxy.$message({ type: "success", message: "删除成功" }); getList(); }) diff --git a/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue b/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue index d4b486d..4a38cdf 100644 --- a/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue +++ b/src/views/backOfficeSystem/fourColorManage/tagManage/components/editAddForm.vue @@ -14,7 +14,7 @@
- +