lisy 6 mēneši atpakaļ
vecāks
revīzija
f55e0b070d

+ 11 - 11
src/views/Level2/level2-input/index.vue

@@ -30,9 +30,9 @@
                             </el-col>
                             <el-col :span="8" v-if='form.newsType === "6"'>
                                 <el-form-item label="选择省份" prop="publishTime">
-                                    <el-select v-model="form.extraInfo.introduction" placeholder="选择省份" style="width: 240px">
+                                    <el-select v-model="introduction" placeholder="选择省份" multiple style="width: 240px">
                                         <el-option v-for="item in options" :key="item.value" :label="item.label"
-                                            :value="item.value" :disabled="item.disabled" />
+                                            :value="item.value" :disabled="item.disabled && !introduction.includes(item.value)" />
                                     </el-select>
                                 </el-form-item>
                             </el-col>
@@ -99,9 +99,10 @@ const form = ref<any>({
     newsOrigin: '',
     extraInfo: {
         accessory: [],
-        introduction:''
+        introduction: ''
     }
 });
+const introduction = ref([]);
 const rules = reactive({
     newsTitle: [{ required: true, message: '请输入标题', trigger: 'blur' }],
     newsContent: [{ required: true, message: '请输入内容', trigger: 'blur' }]
@@ -147,8 +148,7 @@ const options = ref([
 ])
 const save = debounce(async () => {
     await formRef.value.validate();
-    console.log(form.value);
-    
+    form.value.extraInfo.introduction = introduction.value.join(';;');
     const res = form.value.id ? await editNews(form.value) : await addNews(form.value);
     if (res && res.code === 200) {
         router.go(-1);
@@ -168,7 +168,8 @@ const fetchDetail = async (id) => {
     if (res && res.code === 200) {
         form.value = res.data;
         if (route.query?.newsType === '6') {
-            form.value.extraInfo.introduction = res.data.extraInfo.introduction
+            const intro = form.value.extraInfo.introduction || '';
+            introduction.value.push(...(intro.includes(';;') ? intro.split(';;') : [intro]));
         }
     }
 };
@@ -180,13 +181,12 @@ const getList = async () => {
     });
     res.rows.forEach(item => {
         options.value.forEach(element => {
-            if (element.value === item.extraInfo.introduction) {
-                element.disabled = true
+            const introParts = item.extraInfo.introduction.split(';;');
+            if (introParts.some(part => part === element.value)) {
+                element.disabled = true;
             }
         });
     })
-    console.log(options.value);
-
 };
 const disable = ref(false);
 const route = useRoute();
@@ -196,6 +196,6 @@ onMounted(() => {
         // 编辑
         fetchDetail(route.query?.id);
         getList()
-    } 
+    }
 });
 </script>

+ 1 - 1
src/views/authority/choose-list/index.vue

@@ -141,7 +141,7 @@ const resetQuery = () => {
 
 /** 编辑事项 */
 const editRow = (row) => { 
-    router.push({ path: 'choose-detail', query: { id: row.id } });
+    router.push({ path: 'lmchoosedetail', query: { id: row.id } });
 };
 // 获取专家统计数量
 const tabs = ref([]);

+ 4 - 4
src/views/authority/info/index.vue

@@ -2,7 +2,7 @@
     <div class="p-3">
         <div class="bg-fff flex1 ov-hd d-flex flex-cln" v-show="showSearch">
             <div class="pd-16 border-bottom">
-                <div class="f-s-20 c-333 f-w-7 mb-10">云药专家</div>
+                <div class="f-s-20 c-333 f-w-7 mb-10">联盟专家</div>
                 <div class="d-flex">
                     <div class="flex1 ov-hd d-flex j-ed">
                         <el-form :model="queryParams" ref="queryFormRef" :inline="true" label-width="auto">
@@ -40,7 +40,7 @@
                     <div>
                         <searchTabs v-model="queryParams.status" @change="handleQuery" :list="tabs" key-label="name" key-count="num" key-value="type"></searchTabs>
                     </div>
-                    <el-button type="primary" @click="router.push({ path: 'authority-input' })">新增专家信息</el-button>
+                    <el-button type="primary" @click="router.push({ path: 'lmauthorityinput' })">新增专家信息</el-button>
                 </div>
                 <div class="flex1 ov-hd">
                     <vxe-table :loading="loading" border :data="dataList" min-height="0" max-height="100%">
@@ -147,11 +147,11 @@ const resetQuery = () => {
 
 /** 编辑专家 */
 const editRow = (row) => {
-    router.push({ path: 'authority-input', query: { id: row.id } });
+    router.push({ path: 'lmauthorityinput', query: { id: row.id } });
 };
 /** 详情页面 */
 const gotodetailsPage =(row)=>{
-    router.push({ path: 'exportdetail', query: { id: row.id } });
+    router.push({ path: 'lmexportdetail', query: { id: row.id } });
 }
 /** 删除专家 */
 const deleteRow = async (row) => {

+ 1 - 1
src/views/authority/models/ExtractedRecord.vue

@@ -55,7 +55,7 @@ const getchoose = async () => {
     loading.value = false;
 };
 const editRow = (row) => {
-    router.push({ path: 'choose-detail', query: { id: row.expertChooseId } });
+    router.push({ path: 'lmchoosedetail', query: { id: row.expertChooseId } });
 };
 onMounted(()=>{
 getchoose()

+ 1 - 1
src/views/training/materials-input/index.vue

@@ -93,7 +93,7 @@
                                 </el-col>
                                 <el-col :span="8">
                                     <el-form-item label="视频:" prop="extraInfo.accessory">
-                                        <FileUpload v-model="form.extraInfo.accessory" :fileType="['mp4', 'MP4']" :fileSize="100" format="array"></FileUpload>
+                                        <FileUpload v-model="form.extraInfo.accessory" :fileType="['mp4', 'MP4']" :fileSize="2000" format="array"></FileUpload>
                                     </el-form-item>
                                 </el-col>
                             </el-row>

+ 2 - 2
src/views/training/materials/index.vue

@@ -33,7 +33,7 @@
                     <div>
                         <searchTabs v-model="queryParams.newsType" @change="handleQuery" :list="materials_downloads_type" key-label="label" key-value="value" :isNum="false"></searchTabs>
                     </div>
-                    <el-button type="primary" @click="router.push({ path: 'materials-input', query: { newsType: queryParams.newsType } })">新增{{ selectDictLabel(materials_downloads_type, queryParams.newsType)}}</el-button>
+                    <el-button type="primary" @click="router.push({ path: 'lmmaterialsinput', query: { newsType: queryParams.newsType } })">新增{{ selectDictLabel(materials_downloads_type, queryParams.newsType)}}</el-button>
                 </div>
                 <div class="flex1 ov-hd">
                     <vxe-table :loading="loading" border :data="dataList" min-height="0" max-height="100%">
@@ -126,7 +126,7 @@ const resetQuery = () => {
 
 /** 编辑新闻 */
 const editNews = (row) => {
-    router.push({ path: `materials-input`, query: { id: row.id, newsType: row?.newsType, newsStatus: row.newsStatus } });
+    router.push({ path: `lmmaterialsinput`, query: { id: row.id, newsType: row?.newsType, newsStatus: row.newsStatus } });
 };
 
 /** 删除新闻 */

+ 3 - 3
src/views/training/meeting/index.vue

@@ -32,7 +32,7 @@
                     <div>
                         <searchTabs v-model="queryParams.status" @change="handleQuery" :list="tabs" key-label="name" key-count="num" key-value="type"></searchTabs>
                     </div>
-                    <el-button type="primary" @click="router.push({ path: 'meeting-add' })">新增会议</el-button>
+                    <el-button type="primary" @click="router.push({ path: 'lmmeetingadd' })">新增会议</el-button>
                 </div>
                 <div class="flex1 ov-hd">
                     <vxe-table :loading="loading" border :data="dataList" min-height="0" max-height="100%">
@@ -72,7 +72,7 @@
                                 <span></span>
                                 <el-button v-if="['1', '0'].includes(row?.trainingStatus)" @click="trainingSignIn(row)" style="color: #0079fe;" text>签到二维码</el-button>
                                 <span></span>
-                                <el-button @click="router.push({ path: 'meeting-detail', query: { id: row?.id } })" style="color: #0079fe;" text>详情</el-button>
+                                <el-button @click="router.push({ path: 'lmmeetingdetail', query: { id: row?.id } })" style="color: #0079fe;" text>详情</el-button>
                                 <span></span>
                                 <el-button text type="danger" @click="deleteRow(row)">删除</el-button>
                             </template>
@@ -162,7 +162,7 @@ const trainingOff = async (row: any) => {
 };
 /** 编辑会议 */
 const editRow = (row) => {
-    router.push({ path: 'meeting-add', query: { id: row.id } });
+    router.push({ path: 'lmmeetingadd', query: { id: row.id } });
 };
 
 /** 删除会议 */