|
@@ -12,42 +12,42 @@
|
|
<el-tag v-else type="info" @click="toUse(row, '0')">禁用</el-tag>
|
|
<el-tag v-else type="info" @click="toUse(row, '0')">禁用</el-tag>
|
|
</template>
|
|
</template>
|
|
</custom-table>
|
|
</custom-table>
|
|
- <el-dialog v-model="dialog.show" :title="dialog.title" :destroy-on-close="false" @close="toClose">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" v-if="dialog.type == '1'">
|
|
|
|
- <custom-form v-model="form" :fields="formFields" :rules="rules" @save="toSave">
|
|
|
|
- <template #file>
|
|
|
|
- <custom-upload model="file" :list="form.file" :limit="3" listType="picture-card" url="/files/web/cxyy_footplate/upload" @change="onUpload"></custom-upload>
|
|
|
|
- </template>
|
|
|
|
- <template #is_use>
|
|
|
|
- <el-radio v-for="i in isUseList" :key="i.id" :label="i.value">{{ i.label }}</el-radio>
|
|
|
|
- </template>
|
|
|
|
- <template #industry>
|
|
|
|
- <el-option v-for="i in sectorList" :key="i.id" :label="i.title" :value="i.title"></el-option>
|
|
|
|
- </template>
|
|
|
|
- <template #area>
|
|
|
|
- <el-cascader v-model="form.area" :props="{ value: 'name', label: 'name' }" :options="cityList" style="width: 100%" />
|
|
|
|
- </template>
|
|
|
|
- <template #tags>
|
|
|
|
- <el-select v-model="form.tags" multiple filterable allow-create default-first-option :reserve-keyword="false" placeholder="请选择标签" style="width: 100%">
|
|
|
|
- <el-option v-for="item in tagsList" :key="item.id" :label="item.title" :value="item.title" />
|
|
|
|
- </el-select>
|
|
|
|
- </template>
|
|
|
|
- <template #brief>
|
|
|
|
- <WangEditor v-model="form.brief" />
|
|
|
|
- </template>
|
|
|
|
- </custom-form>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" v-if="dialog.type == '2'">
|
|
|
|
- <custom-form v-model="examForm" :fields="examFormFields" :rules="examRules" @save="toExamSave">
|
|
|
|
- <template #status>
|
|
|
|
- <el-option v-for="i in statusList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
|
|
- </template>
|
|
|
|
- </custom-form>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-dialog>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog v-model="dialog.show" :title="dialog.title" :destroy-on-close="false" @close="toClose">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" v-if="dialog.type == '1'">
|
|
|
|
+ <custom-form v-model="form" :fields="formFields" :rules="rules" @save="toSave">
|
|
|
|
+ <template #file>
|
|
|
|
+ <custom-upload model="file" :list="form.file" :limit="3" listType="picture-card" url="/files/web/cxyy_footplate/upload" @change="onUpload"></custom-upload>
|
|
|
|
+ </template>
|
|
|
|
+ <template #is_use>
|
|
|
|
+ <el-radio v-for="i in isUseList" :key="i.id" :label="i.value">{{ i.label }}</el-radio>
|
|
|
|
+ </template>
|
|
|
|
+ <template #industry>
|
|
|
|
+ <el-option v-for="i in sectorList" :key="i.id" :label="i.title" :value="i.title"></el-option>
|
|
|
|
+ </template>
|
|
|
|
+ <template #area>
|
|
|
|
+ <el-cascader v-model="form.area" :props="{ value: 'name', label: 'name' }" :options="cityList" style="width: 100%" />
|
|
|
|
+ </template>
|
|
|
|
+ <template #tags>
|
|
|
|
+ <el-select v-model="form.tags" multiple filterable allow-create default-first-option :reserve-keyword="false" placeholder="请选择标签" style="width: 100%">
|
|
|
|
+ <el-option v-for="item in tagsList" :key="item.id" :label="item.title" :value="item.title" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </template>
|
|
|
|
+ <template #brief>
|
|
|
|
+ <WangEditor v-model="form.brief" />
|
|
|
|
+ </template>
|
|
|
|
+ </custom-form>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" v-if="dialog.type == '2'">
|
|
|
|
+ <custom-form v-model="examForm" :fields="examFormFields" :rules="examRules" @save="toExamSave">
|
|
|
|
+ <template #status>
|
|
|
|
+ <el-option v-for="i in statusList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
|
|
+ </template>
|
|
|
|
+ </custom-form>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -73,8 +73,8 @@ const fields = [
|
|
{ label: t('pages.footplate.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
|
|
{ label: t('pages.footplate.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
|
|
{ label: t('pages.footplate.build'), model: 'build', isSearch: true },
|
|
{ label: t('pages.footplate.build'), model: 'build', isSearch: true },
|
|
{ label: t('pages.footplate.operate'), model: 'operate', isSearch: true },
|
|
{ label: t('pages.footplate.operate'), model: 'operate', isSearch: true },
|
|
- { label: t('pages.footplate.contacts'), model: 'contacts', isSearch: true },
|
|
|
|
- { label: t('pages.footplate.phone'), model: 'phone', isSearch: true },
|
|
|
|
|
|
+ { label: t('pages.footplate.contacts'), model: 'contacts' },
|
|
|
|
+ { label: t('pages.footplate.phone'), model: 'phone' },
|
|
{ label: t('pages.footplate.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
|
|
{ label: t('pages.footplate.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
|
|
{ label: t('pages.footplate.status'), model: 'status', format: (i) => getDict(i, 'status') }
|
|
{ label: t('pages.footplate.status'), model: 'status', format: (i) => getDict(i, 'status') }
|
|
]
|
|
]
|