zs 1 ماه پیش
والد
کامیت
a6271526a1
5فایلهای تغییر یافته به همراه0 افزوده شده و 103 حذف شده
  1. 0 13
      src/views/center/match.vue
  2. 0 74
      src/views/center/parts/extOne.vue
  3. 0 1
      src/views/center/password.vue
  4. 0 1
      src/views/center/sign.vue
  5. 0 14
      src/views/center/supply.vue

+ 0 - 13
src/views/center/match.vue

@@ -268,18 +268,6 @@
         <el-col :span="24" v-if="dialog.type == '5'">
           <preliminary :matchForm="form"></preliminary>
         </el-col>
-        <el-col :span="24" v-if="dialog.type == '6'">
-          <extOne :matchForm="form" :type="1" @toClose="toClose"></extOne>
-        </el-col>
-        <el-col :span="24" v-if="dialog.type == '7'">
-          <extOne :matchForm="form" :type="2" @toClose="toClose"></extOne>
-        </el-col>
-        <el-col :span="24" v-if="dialog.type == '8'">
-          <extOne :matchForm="form" :type="3" @toClose="toClose"></extOne>
-        </el-col>
-        <el-col :span="24" v-if="dialog.type == '9'">
-          <extOne :matchForm="form" :type="4" @toClose="toClose"></extOne>
-        </el-col>
       </el-row>
     </el-dialog>
     <el-dialog v-model="dialogVisible" title="报名信息填写" width="800" :destroy-on-close="false" @close="toInvestClose">
@@ -324,7 +312,6 @@ import moment from 'moment'
 import sign from './parts/sign.vue'
 import score from './parts/score.vue'
 import preliminary from './parts/preliminaryMatch.vue'
-import extOne from './parts/extOne.vue'
 import { Search } from '@element-plus/icons-vue'
 import { cloneDeep, get } from 'lodash-es'
 const $checkRes = inject('$checkRes')

+ 0 - 74
src/views/center/parts/extOne.vue

@@ -1,74 +0,0 @@
-<template>
-  <div class="index">
-    <div v-if="type == '1'">
-      <el-form ref="ruleFormRef" :model="form" :rules="rules" label-width="auto" class="form" label-position="left">
-        <el-form-item label="初审开始时间" prop="start_time">
-          <el-date-picker format="YYYY-MM-DD" value-format="YYYY-MM-DD" v-model="form.start_time" type="date" placeholder="请选择初审开始时间" style="width: 100%" />
-        </el-form-item>
-        <el-col :span="24" class="button">
-          <el-button type="primary" @click="submitForm(ruleFormRef)">保存</el-button>
-        </el-col>
-      </el-form>
-    </div>
-    <div v-if="type == '2'">决赛准备</div>
-    <div v-if="type == '3'">决赛开始</div>
-    <div v-if="type == '4'">决赛结束</div>
-  </div>
-</template>
-<script setup>
-import { cloneDeep } from 'lodash-es'
-const $checkRes = inject('$checkRes')
-const id = ref('')
-const props = defineProps({
-  matchForm: { type: Object },
-  type: { type: String }
-})
-const match = computed({
-  get() {
-    return props.matchForm
-  }
-})
-const emits = defineEmits(['toClose'])
-// 接口
-import { MatchExtStore } from '@/store/api/platform/matchExt'
-const store = MatchExtStore()
-
-const form = ref({})
-// 表单
-const ruleFormRef = ref()
-const rules = reactive({
-  start_time: [{ required: true, message: '请选择初审开始时间', trigger: 'blur' }]
-})
-// 保存
-const submitForm = async (formEl) => {
-  if (!formEl) return
-  await formEl.validate(async (valid, fields) => {
-    if (valid) {
-      const data = cloneDeep(form.value)
-      data.id = id.value
-      const res = await store.firstStep(data)
-      if ($checkRes(res, true)) {
-        emits('toClose')
-      } else ElMessage.error(res.message)
-    } else {
-      console.log('error submit!', fields)
-    }
-  })
-}
-watch(
-  match,
-  async (item) => {
-    id.value = item.id
-  },
-  {
-    immediate: true //初始化立即执行
-  }
-)
-</script>
-<style scoped lang="scss">
-.index {
-  .button {
-    text-align: center;
-  }
-}
-</style>

+ 0 - 1
src/views/center/password.vue

@@ -37,7 +37,6 @@ import { cloneDeep } from 'lodash-es'
 import { UserStore } from '@/store/user'
 const userStore = UserStore()
 const user = computed(() => userStore.user)
-
 import { LoginStore } from '@/store/api/login'
 const store = LoginStore()
 const router = useRouter()

+ 0 - 1
src/views/center/sign.vue

@@ -130,7 +130,6 @@ const search = async (query = { skip, limit }) => {
     skip: query.skip,
     limit: query.limit,
     user: user.value.id
-    // ...searchForm.value
   }
   const res = await store.sign(info)
   if (res.errcode == '0') {

+ 0 - 14
src/views/center/supply.vue

@@ -405,29 +405,15 @@ const toClose = () => {
   width.value = '50%'
   dialog.value = { show: false }
 }
-// 全选
-const handleCheckAllChange = (val) => {
-  checkedExport.value = val ? formFields.value : []
-  isIndeterminate.value = false
-}
-// 选择
-const checkedExportChange = (value) => {
-  let checkedCount = value.length
-  checkAll.value = checkedCount === formFields.value.length
-  isIndeterminate.value = checkedCount > 0 && checkedCount < formFields.value.length
-}
 // 导入数据
 const toExpert = () => {
   dialog.value = { type: '4', show: true, title: '导入数据' }
 }
-// 导出数据转到组件
-
 // 下载导入模板
 const toTemplate = () => {
   importActive.value = importActive.value + 1
   window.open('/产学研用供给模板.xlsx')
 }
-
 // 上传Excel
 const onSuccess = async (response) => {
   importActive.value = importActive.value + 1