'修改图片参数转换处理'
This commit is contained in:
@ -57,11 +57,10 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="授课教员" :prop="`pxkcList[${index}].skjy`" style="width: 100%;" :rules="rules.skjy">
|
||||
<el-input v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;"></el-input>
|
||||
<!-- <el-select v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;">
|
||||
<el-option label="张三" value="张三"></el-option>
|
||||
<el-option label="李四" value="李四"></el-option>
|
||||
</el-select> -->
|
||||
<!-- <el-input v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;"></el-input> -->
|
||||
<el-select v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;">
|
||||
<el-option v-for="items in cyryList" :key="items.id" :label="items?.xm" :value="items.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@ -102,6 +101,7 @@ import SelectPersonnelDialog from "./selectPersonnelDialog.vue";
|
||||
const { proxy } = getCurrentInstance()
|
||||
const visible = ref(false)
|
||||
const showDialog = ref(false)
|
||||
const cyryList = ref([])
|
||||
const formData = ref({
|
||||
pxkcList: [{
|
||||
pxkcxm: '', //课程名称
|
||||
@ -173,6 +173,7 @@ const delItem = (item,index) => {
|
||||
}
|
||||
|
||||
const init = () => {
|
||||
getCyryList()
|
||||
showDialog.value = true
|
||||
}
|
||||
|
||||
@ -197,6 +198,18 @@ const handleChange = (val) => {
|
||||
pageData.tableData = [...pageData.tableData, ...val]?.filter((i, index, arr) => arr?.findIndex(s => i?.id === s?.id) === index)
|
||||
}
|
||||
|
||||
// 获取授课教员
|
||||
const getCyryList = async () => {
|
||||
const res = await qcckPost({
|
||||
pxgsid: "",
|
||||
gw: '04'
|
||||
}, `/mosty-base//baxx/cyry/list`)
|
||||
|
||||
if (res) {
|
||||
cyryList.value = res
|
||||
}
|
||||
}
|
||||
|
||||
const save = () => {
|
||||
if (pageData.tableData.length === 0) return proxy.$message.warning('请选择培训保安人员')
|
||||
const ryidList = pageData.tableData?.map(i => i?.id)
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<el-descriptions column="3" border label-width="180px">
|
||||
<el-descriptions-item label="单位名称(营业执照登记名称)">{{ formData.dwmc }}</el-descriptions-item>
|
||||
<el-descriptions-item label="统一社会信用代码">{{ formData.xydm }}</el-descriptions-item>
|
||||
<el-descriptions-item label="娱乐场所图片" :rowspan="4">
|
||||
<el-descriptions-item label="单位图片" :rowspan="4">
|
||||
<div class="imgWrapper">
|
||||
<Upload v-model="formData.cszp" />
|
||||
</div>
|
||||
Reference in New Issue
Block a user