src/views/infomanger/banner/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/infomanger/companymanger/components/judge.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/infomanger/companymanger/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/infomanger/banner/index.vue
@@ -1,7 +1,7 @@ <template> <div class="app-container"> <div class="form-content"> <el-form inline :model="form.questionList" label-width="75px" :rules="rules"> <el-form inline :model="form.questionList" ref="formRef" label-width="75px" :rules="rules"> <div class="border" v-for="(item, index) in form.questionList" @@ -83,7 +83,7 @@ </el-form> <div class="center mt20 fixed"> <el-button type="primary" @click="addContent">添加评价项</el-button> <el-button @click="save" type="primary" >保存内容</el-button> <el-button @click="save()" type="primary" >保存内容</el-button> </div> </div> </div> @@ -94,15 +94,16 @@ import { ElMessage, ElMessageBox} from 'element-plus' const tableData = ref([]) const addNewRef = ref() const formRef = ref() const form: any = ref({ questionList: [] }) const rules = ref({ questionName: [ { required: true, message: '请输入问题', trigger: 'blur' required: true, message: '请输入问题', trigger: 'blur' } ] }) @@ -119,7 +120,7 @@ answerList: [] }) } function addOptions(index: number, name){ function addOptions(index: number, name: any){ if(!form.value.questionList[index].answerList) { form.value.questionList[index].answerList = [] } @@ -128,9 +129,15 @@ }) } function save(item?: string) { saveEvaluate({questionList: form.value.questionList}).then(val => { ElMessage.success(item||'保存成功') formRef.value.validate((valid) => { console.log(valid) if(valid) { // saveEvaluate({questionList: form.value.questionList}).then(val => { // ElMessage.success(item||'保存成功') // }) } }) } function changeValue(event, index, childIndex) { // form.value.questionList[index].isScore = event.target. src/views/infomanger/companymanger/components/judge.vue
@@ -32,27 +32,32 @@ import { ElMessage } from 'element-plus' const dialogVisible = ref(false) const info = ref({}) const form = ref({}) const emit:any = defineEmits() const form: any = reactive({ checkStatus: '' }) const cloaseDialog = () => { dialogVisible.value = false } const openDialog = (row) => { const openDialog = (row: { companyId?: any }) => { info.value = row form.value['id'] = row.companyId form.value['checkType'] = 1 form['id'] = row.companyId form['checkType'] = 1 form['checkReason'] = '' dialogVisible.value = true } function checkOrder() { if(!form.value.checkStatus) { if(!form['checkStatus']) { ElMessage.error('请填写审核状态') return } if(form.value.checkStatus == -1 && !form.value.checkReason) { if(form['checkStatus'] == -1 && !form.checkReason) { ElMessage.error('请填写审核说明') return } httpCheck(form.value).then(res => { form.value = res.data httpCheck(form).then(res => { cloaseDialog() emit('upload') }) } defineExpose({ src/views/infomanger/companymanger/index.vue
@@ -129,7 +129,7 @@ </el-dialog> <exportExcelCom ref="exporttem" @resList="resList"></exportExcelCom> <exportRecord ref="exportRecordCom" :recordRow="recordRow" @uploadList="getList"></exportRecord> <judgeCom ref="judgeComRef"></judgeCom> <judgeCom ref="judgeComRef" @upload="getList"></judgeCom> <createQrcode ref="createQrcodeRef"></createQrcode> </div> </template>