From f0d8e8569462ed5ce06f6d83b0bf3ca83d28b95f Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期三, 19 六月 2024 13:59:09 +0800 Subject: [PATCH] 处理 --- src/views/infomanger/banner/index.vue | 21 +++++-- src/views/infomanger/enforcement/component/details.vue | 89 +++++++++++++++++++++++++++++ src/views/infomanger/complating/component/index.vue | 31 ++++++++++ src/views/index/index.vue | 6 + 4 files changed, 140 insertions(+), 7 deletions(-) diff --git a/src/views/index/index.vue b/src/views/index/index.vue index f8a8d13..45b5352 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -1,3 +1,7 @@ <template> - <div>棣栭〉</div> + <div class="app-container"> + <el-row> + + </el-row> + </div> </template> \ No newline at end of file diff --git a/src/views/infomanger/banner/index.vue b/src/views/infomanger/banner/index.vue index 100c33a..ca34cb6 100644 --- a/src/views/infomanger/banner/index.vue +++ b/src/views/infomanger/banner/index.vue @@ -7,7 +7,7 @@ v-for="(item, index) in form.questionList" :key="index" > - <div class="close-icon"> + <div class="close-icon" @click="removeList(index)"> <el-icon><Close /></el-icon> </div> <el-row> @@ -38,13 +38,13 @@ placeholder="璇疯緭鍏�" v-model="item.questionType" > - <el-radio value="1">閫夋嫨</el-radio> - <el-radio value="2">鎵撳垎</el-radio> + <el-radio :value="1">閫夋嫨</el-radio> + <el-radio :value="2">鎵撳垎</el-radio> </el-radio-group> </el-form-item> </el-col> </el-row> - <el-row v-if="item.questionType === '1'"> + <el-row v-if="item.questionType === 1"> <el-col :span="24"> <el-form-item label="鏈閫夐」" style="width: 100%;" :prop="item.answerList"> <div @@ -82,9 +82,10 @@ <script lang="ts" setup> import { listEvaluate, saveEvaluate } from '@/api/system/company/company' -import { ElMessage} from 'element-plus' +import { ElMessage, ElMessageBox} from 'element-plus' const tableData = ref([]) const addNewRef = ref() +const { proxy } = getCurrentInstance() const form: any = ref({ questionList: [] }) @@ -99,7 +100,7 @@ }) function getListEvaluate() { listEvaluate().then((val) => { - tableData.value = val.data.questionList + form.value.questionList = val.data.questionList }) } function addContent() { @@ -126,6 +127,14 @@ }) form.value.questionList[index].answerList[childIndex].isScore = 1 } +function removeList(index) { + // ElMessageBox.confirm('纭绉婚櫎璇ヨ瘎浠烽」锛�', 'Error', { + // confirmButtonText: 'OK', + // cancelButtonText: 'Cancel', + // type: 'erro', + // }) + +} getListEvaluate() </script> diff --git a/src/views/infomanger/complating/component/index.vue b/src/views/infomanger/complating/component/index.vue new file mode 100644 index 0000000..3ad8d9f --- /dev/null +++ b/src/views/infomanger/complating/component/index.vue @@ -0,0 +1,31 @@ +<template> + <el-dialog title="鎵ф硶璇︽儏" width="1000px" v-model="dialogVisible" @close="closeDialog"> + <el-form> + <el-form-item label="鎶曡瘔鍐呭"> + + </el-form-item> + <el-form-item label="鍔炵粨"> + <el-radio-group> + <el-radio>椹冲洖</el-radio> + <el-radio>鍔炵粨</el-radio> + </el-radio-group> + </el-form-item> + <el-form-item label="椹冲洖鍘熷洜"> + <el-input type="textarea" placeholder="璇疯緭鍏�"></el-input> + </el-form-item> + </el-form> + <template #footer> + <el-button @click="closeDialog">鍏� 闂�</el-button> + </template> + </el-dialog> +</template> + +<script setup lang="ts"> + const dialogVisible = ref(false) + function openDialog() { + dialogVisible.value = true + } + function closeDialog() { + dialogVisible.value = false + } +</script> \ No newline at end of file diff --git a/src/views/infomanger/enforcement/component/details.vue b/src/views/infomanger/enforcement/component/details.vue new file mode 100644 index 0000000..d4778c2 --- /dev/null +++ b/src/views/infomanger/enforcement/component/details.vue @@ -0,0 +1,89 @@ +<template> + <el-dialog title="鎵ф硶璇︽儏" width="1000px" v-model="dialogVisible" @close="closeDialog"> + <div> + <div class="title">鎵ф硶淇℃伅</div> + <div> + <el-row> + <el-col :span="12"> + <div class="label">鎵ф硶绫诲瀷</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶閮ㄩ棬</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">浼佷笟</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶浜哄憳</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">闅忚浜哄憳</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鐢宠鏃堕棿</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶鏃堕棿</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鐘舵��</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="24"> + <div class="label">鎵ф硶鍐呭</div> <div class="value">1.鐏伨闅愭偅鏁存敼鎯呭喌浠ュ強闃茶寖鎺柦鐨勮惤瀹炴儏鍐点�� + +2.瀹夊叏鐤忔暎閫氶亾銆佺枏鏁f寚绀烘爣蹇椼�佸簲鎬ョ収鏄庡拰瀹夊叏鍑哄彛鎯呭喌銆� + +3.娑堥槻杞﹂�氶亾銆佹秷闃叉按婧愭儏鍐点��</div> + </el-col> + </el-row> + </div> + <div class="title">鎵ф硶璁板綍</div> + <div> + <el-row> + <el-col :span="12"> + <div class="label">鎵ф硶涓婚</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鏄惁閫氱煡浼佷笟</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="24"> + <div class="label">鎵ф硶杩囩▼</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶缁撴灉</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + </el-row> + </div> + <div class="title">鎵ф硶璇勪环</div> + <div> + <el-row> + <el-col :span="12"> + <div class="label">鎵ф硶涓撲笟鎬�</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶鍚堢悊鎬�</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="24"> + <div class="label">鎵ф硶璁ょ湡绋嬪害</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + <el-col :span="12"> + <div class="label">鎵ф硶缁撴灉婊℃剰搴�</div> <div class="value">鍙告硶妫�鏌�</div> + </el-col> + </el-row> + </div> + </div> + <template #footer> + <el-button @click="closeDialog">鍏� 闂�</el-button> + </template> + </el-dialog> +</template> + +<script setup lang="ts"> + const dialogVisible = ref(false) + function openDialog() { + dialogVisible.value = true + } + function closeDialog() { + dialogVisible.value = false + } +</script> \ No newline at end of file -- Gitblit v1.9.1