From ca294bbef3a47d80b6f3f44f85ac587a8ee430d2 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 13 七月 2023 10:15:33 +0800 Subject: [PATCH] 提交代码 --- Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordvalue.vue | 131 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 131 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordvalue.vue b/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordvalue.vue new file mode 100644 index 0000000..3c92156 --- /dev/null +++ b/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordvalue.vue @@ -0,0 +1,131 @@ +<template> + <basic-container> + <div class="headbox"> + <sapn>缁勫悎鏂瑰紡锛�</sapn> + <el-select v-model="formInline.region" placeholder="娲诲姩鍖哄煙" @change="selectchange"> + <el-option label="澶у啓瀛楁瘝" value="0"></el-option> + <el-option label="灏忓啓瀛楁瘝" value="1"></el-option> + <el-option label="鐗规畩瀛楃" value="2"></el-option> + <el-option label="鏁板瓧" value="3"></el-option> + </el-select> + </div> + <avue-crud ref="crud" v-model="form" :option="option" :data="data" @row-save="rowSave" @row-update="rowUpdate" @row-del="rowDel" :page.sync="page" > + + </avue-crud> + </basic-container> +</template> + +<script> +import {getPage} from "@/api/system/passwordvalue"; + +export default { + name: "passwords.vue", + data() { + return { + form:{}, + page: { + pageSize: 10, + currentPage: 1, + total: 100 + }, + formInline:{ + user: '', + region: '' + }, + data: [], + option:{ + headerAlign: 'center', + align: 'center', + border: true, + index: true, + rowKey:'id', + column:[ + { + label: '鍚嶇О', + prop: 'name', + align: 'left', + }, + { + label: '鎻忚堪', + prop: 'text', + } + ] + } + // option:{}, + // option1:{ + // column:[ + // { + // label:'濮撳悕', + // prop:'name', + // search:true + // } + // ] + // }, + // option2:{ + // column:[ + // { + // label:'鐢ㄦ埛鍚�', + // prop:'username', + // search:true + // }, { + // label:'瀵嗙爜', + // prop:'password', + // type:'password', + // search:true + // }, { + // label:'濮撳悕', + // prop:'name', + // search:true + // } + // ] + // }, + } + }, + + + created() { + this.onLoad() + }, + methods:{ + rowDel(row,index,done){ + done(row) + console.log(row,index,done) + console.log(done) + }, + rowSave(row,done){ + console.log(row,done) + }, + rowUpdate(row,index,done){ + done(row) + }, + //涓嬫媺鑿滃崟鍒囨崲锛屾樉绀轰笉鍚岀殑瀵嗙爜鍙栧�兼柟寮� + selectchange(){ + if(this.formInline.region=="shanghai"){ + this.option=this.option1; + }else{ + this.option=this.option2; + } + this.$refs.crud.refreshTable() + }, + onLoad(page, params = {}) { + // this.loading = true; + getPage(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { + // const data = res.data.data; + // this.page.total = data.total; + // this.data = data.records; + // this.loading = false; + // this.selectionClear(); + console.log(res) + // this.data=res.data.data.content + }); + } + } + +} +</script> + +<style lang="scss"> +.headbox{ + margin-bottom: 20px; +} +</style> -- Gitblit v1.9.3