|
@@ -6,9 +6,10 @@
|
|
|
<div class="pb_content">
|
|
|
<div class="leftInfo">
|
|
|
<div class="leftInfoCon">
|
|
|
- <div style="position: relative;width: 80px;height: 80px;">
|
|
|
- <img style="width: 100%;height: 100%;object-fit: cover;border-radius: 50%;" :src="ruleForm.headportrait" alt="">
|
|
|
- <img style="position: absolute;right: 0;bottom: 0;" src="../../../../assets/icon/liyuan/lpot.svg" alt="">
|
|
|
+ <div v-loading="uploadImageLoading" style="position: relative;width: 80px;height: 80px;">
|
|
|
+ <img style="width: 100%;height: 100%;object-fit: cover;border-radius: 50%;"
|
|
|
+ :src="ruleForm.headportrait ? ruleForm.headportrait :require('../../../../assets/icon/liyuan/toux.png')" alt="">
|
|
|
+ <img @click="uploadFile" style="position: absolute;right: 0;bottom: 0;cursor: pointer;" src="../../../../assets/icon/liyuan/lpot.svg" alt="">
|
|
|
</div>
|
|
|
<div>{{ruleForm.name}}</div>
|
|
|
<div style="display: flex;flex-direction: column;gap: 10px;">
|
|
@@ -29,7 +30,8 @@
|
|
|
align-items: center;
|
|
|
gap: 6px;
|
|
|
"
|
|
|
- ><img src="../../../../assets/icon/liyuan/tele.svg" alt="">{{ ruleForm.phone ? ruleForm.phone :'暂无' }}
|
|
|
+
|
|
|
+ ><img src="../../../../assets/icon/liyuan/tele.svg" alt="">{{ !ruleForm.phone ? '暂无' : ruleForm.phone }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -42,7 +44,7 @@
|
|
|
line-height: 100%;
|
|
|
text-align: center;
|
|
|
">基础信息</span>
|
|
|
- <img src="../../../../assets/icon/liyuan/edit.svg" @click="editInfo" style="cursor: pointer;" alt="">
|
|
|
+ <img :src=" editType ? require('../../../../assets/icon/liyuan/edit.svg') : require('../../../../assets/icon/liyuan/bz.svg')" @click="editInfo" style="cursor: pointer;" alt="">
|
|
|
</div>
|
|
|
|
|
|
<el-form
|
|
@@ -55,7 +57,7 @@
|
|
|
<el-input
|
|
|
v-model="ruleForm.name"
|
|
|
style="width: 300px"
|
|
|
- :disabled="type"
|
|
|
+ :disabled="editType"
|
|
|
placeholder="请输入姓名"
|
|
|
></el-input>
|
|
|
|
|
@@ -65,7 +67,7 @@
|
|
|
<el-select
|
|
|
v-model="ruleForm.sex"
|
|
|
clearable
|
|
|
- :disabled="type"
|
|
|
+ :disabled="editType"
|
|
|
>
|
|
|
<el-option label="男" value="男"></el-option>
|
|
|
<el-option label="女" value="女"></el-option>
|
|
@@ -77,7 +79,7 @@
|
|
|
v-model="ruleForm.org"
|
|
|
clearable
|
|
|
placeholder="暂无组织"
|
|
|
- :disabled="type"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in orgJuri"
|
|
@@ -89,12 +91,12 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="教研室" v-if="ruleForm.type == '老师'">
|
|
|
+ <el-form-item label="教研室">
|
|
|
<el-select
|
|
|
v-model="ccName"
|
|
|
clearable
|
|
|
placeholder="暂无教研室"
|
|
|
- :disabled="type"
|
|
|
+ disabled
|
|
|
>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -104,45 +106,63 @@
|
|
|
v-model="ruleForm.sBySchool"
|
|
|
clearable
|
|
|
placeholder="请选择学校"
|
|
|
- :disabled="type"
|
|
|
+ disabled
|
|
|
>
|
|
|
-
|
|
|
<el-option :value="ruleForm.sBySchool"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="职务" prop="type">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.type"
|
|
|
- clearable
|
|
|
- placeholder="请选择身份"
|
|
|
- :disabled="type"
|
|
|
- >
|
|
|
- <el-option :value="ruleForm.type"> </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item label="司龄" prop="type">
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.type"
|
|
|
- clearable
|
|
|
- placeholder="请选择身份"
|
|
|
- :disabled="type"
|
|
|
- >
|
|
|
- <el-option :value="ruleForm.type"> </el-option>
|
|
|
+ <!-- <div class="info_span" v-for="item in teaType" :key="item.id" :class="{ 'error-text': !item.value.length, 'error-border': !item.value.length }">
|
|
|
+ <span>
|
|
|
+ {{ item.name + ":" }}
|
|
|
+ </span>
|
|
|
+ <el-select v-model="item.value" multiple :placeholder="'请选择'+item.name" @change="Ochange">
|
|
|
+ <el-option v-for="i in item.child" :key="i.id" :label="i.name" :value="i.id">
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </div> -->
|
|
|
+ <template v-for="item in teaType">
|
|
|
+ <el-form-item v-if="['2a1379bd-54a0-11ef-b873-005056b86db5','2d255541-54a0-11ef-b873-005056b86db5'].indexOf(item.id) != -1" :key="item.id" :label="item.name">
|
|
|
+ <el-select
|
|
|
+ v-model="item.value"
|
|
|
+ multiple
|
|
|
+ placeholder="请选择"
|
|
|
+ :disabled="editType"
|
|
|
+ @change="Ochange"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="ind in item.child"
|
|
|
+ :key="ind.id"
|
|
|
+ :label="ind.name"
|
|
|
+ :value="ind.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
|
|
|
<el-form-item label="简介" prop="type">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
resize="none"
|
|
|
rows="6"
|
|
|
+ v-model="ruleForm.intro"
|
|
|
placeholder="简介"
|
|
|
- :disabled="type"
|
|
|
+ :disabled="editType"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <div class="diaBtn" v-if="!editType" style="display: flex;justify-content: flex-end;">
|
|
|
+ <div style="color: #000;" @click="feaClo()">取消</div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ background: #fff;
|
|
|
+ "
|
|
|
+ :style="{border: editType ? '1px #9747FF solid':'1px #0663fe solid',
|
|
|
+ color: editType ? '#9747FF' : '#0663fe'}"
|
|
|
+ @click="setJsonL()"
|
|
|
+ >保存</div
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -158,94 +178,149 @@ export default {
|
|
|
backPage
|
|
|
},
|
|
|
data() {
|
|
|
- var validatePass = (rule, value, callback) => {
|
|
|
- if (value == "") {
|
|
|
- return;
|
|
|
- }
|
|
|
- var reg =
|
|
|
- /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/;
|
|
|
- if (!reg.test(value)) {
|
|
|
- callback(new Error("请输入正确的邮箱"));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- };
|
|
|
- var validatePass1 = (rule, value, callback) => {
|
|
|
- var reg = /^1\d{10}$/;
|
|
|
- if (!reg.test(value)) {
|
|
|
- callback(new Error("请输入正确的手机号码"));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- };
|
|
|
return {
|
|
|
- type: true,
|
|
|
+ uploadImageLoading:false,
|
|
|
+ options:[],
|
|
|
+ teaType:[],
|
|
|
+ schoolJuri:[],
|
|
|
+ editType: true,
|
|
|
+ ruleFormCopy:'',
|
|
|
ruleForm: {
|
|
|
name: "",
|
|
|
- type: "",
|
|
|
+ type: "", //身份。教师还是学生还是管理员
|
|
|
sex: "男",
|
|
|
- intro: "",
|
|
|
- // mail: "",
|
|
|
- phone: "",
|
|
|
- sBySchool: "",
|
|
|
- org: "",
|
|
|
- headportrait: "",
|
|
|
+ intro: "", //简介
|
|
|
+ phone: "", //手机号
|
|
|
+ sBySchool: "", //学校
|
|
|
+ org: "", //组织
|
|
|
+ headportrait: "", //头像
|
|
|
},
|
|
|
ccName: "",
|
|
|
- opassword: "",
|
|
|
- password: "",
|
|
|
- password1: "",
|
|
|
- isLook: false,
|
|
|
- eyeOff: require("../../../../assets/icon/eyeOff.png"),
|
|
|
- eye: require("../../../../assets/icon/eye.png"),
|
|
|
- tx: require("../../../../assets/avatar.png"),
|
|
|
- userinfo: "",
|
|
|
- schoolJuri: [],
|
|
|
+
|
|
|
orgJuri: [],
|
|
|
userid: this.$route.query.userid,
|
|
|
- rules: {
|
|
|
- pass: [{ validator: validatePass, trigger: "blur" }],
|
|
|
- name: [{ required: true, message: "请输入你的名字", trigger: "blur" }],
|
|
|
- mail: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "请输入你的邮箱",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
- phone: [
|
|
|
- // { required: true, message: "请输入你的手机号码", trigger: "blur" },
|
|
|
-
|
|
|
- {
|
|
|
- validator: validatePass1,
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ oid: this.$route.query.oid,
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
- editInfo(){
|
|
|
- this.type = !this.type
|
|
|
+ feaClo(){
|
|
|
+ this.editType = true
|
|
|
+ this.ruleForm = JSON.parse(JSON.stringify(this.ruleFormCopy))
|
|
|
},
|
|
|
- getSchool() {
|
|
|
- this.isLoading = true;
|
|
|
- let params = {
|
|
|
- page: this.page,
|
|
|
- };
|
|
|
+ uploadFile(accept = "image/*") {
|
|
|
+ return new Promise((resolve) => {
|
|
|
+ const input = document.createElement("input");
|
|
|
+ input.type = "file";
|
|
|
+ input.accept = accept;
|
|
|
+ input.onchange = (event) => {
|
|
|
+ const file = event.target.files[0];
|
|
|
+ if (file) {
|
|
|
+ let credentials = {
|
|
|
+ accessKeyId: "AKIATLPEDU37QV5CHLMH",
|
|
|
+ secretAccessKey: "Q2SQw37HfolS7yeaR1Ndpy9Jl4E2YZKUuuy2muZR",
|
|
|
+ }; //秘钥形式的登录上传
|
|
|
+ window.AWS.config.update(credentials);
|
|
|
+ window.AWS.config.region = "cn-northwest-1"; //设置区域
|
|
|
+ let bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
|
|
|
+ this.uploadImageLoading = true
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ Key:
|
|
|
+ file.name.split(".")[0] +
|
|
|
+ new Date().getTime() +
|
|
|
+ "." +
|
|
|
+ file.name.split(".")[file.name.split(".").length - 1],
|
|
|
+ ContentType: file.type,
|
|
|
+ Body: file,
|
|
|
+ "Access-Control-Allow-Credentials": "*",
|
|
|
+ ACL: "public-read",
|
|
|
+ }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
|
|
|
+ let options = {
|
|
|
+ partSize: 2048 * 1024 * 1024,
|
|
|
+ queueSize: 2,
|
|
|
+ leavePartsOnError: true,
|
|
|
+ };
|
|
|
+
|
|
|
+ bucket
|
|
|
+ .upload(params, options)
|
|
|
+ .on("httpUploadProgress", (evt) => {
|
|
|
+ console.log(evt);
|
|
|
+ })
|
|
|
+ .send((err, data) => {
|
|
|
+ if (err) {
|
|
|
+ this.$message.error("上传失败");
|
|
|
+ this.uploadImageLoading = false
|
|
|
+
|
|
|
+ // return resolve("");
|
|
|
+ } else {
|
|
|
+ this.ruleForm.headportrait = data.Location
|
|
|
+ this.uploadImageLoading = false
|
|
|
+ this.setJsonL()
|
|
|
+ return resolve();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ resolve("");
|
|
|
+ this.uploadImageLoading = false
|
|
|
+
|
|
|
+ console.log("没上传成功");
|
|
|
+ }
|
|
|
+ };
|
|
|
+ input.click();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ setJsonL(){
|
|
|
+ if (!this.ruleForm.name.trim()) return this.$message.error('请输入姓名')
|
|
|
+ let con = this.teaType.filter(e=> e.id == '2a1379bd-54a0-11ef-b873-005056b86db5')
|
|
|
+ if (con[0].value.length == 0) return this.$message.error('请选择职务')
|
|
|
+ let con1 = this.teaType.filter(e=> e.id == '2d255541-54a0-11ef-b873-005056b86db5')
|
|
|
+ if (con1[0].value.length == 0) return this.$message.error('请选择司龄')
|
|
|
+
|
|
|
+
|
|
|
+ let allC = []
|
|
|
+ this.teaType.forEach(e=>{
|
|
|
+ allC = [...allC,...e.value]
|
|
|
+ })
|
|
|
+ console.log('allC',allC);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ let params = [{
|
|
|
+ userid: this.userid,
|
|
|
+ h: this.ruleForm.headportrait ? this.ruleForm.headportrait : '',
|
|
|
+ username: this.ruleForm.name,
|
|
|
+ sex:this.ruleForm.sex == '男' ? 0 : 1,
|
|
|
+ cclassid: allC.join(','),
|
|
|
+ intro: this.ruleForm.intro,
|
|
|
+
|
|
|
+ }];
|
|
|
+ // this.editType = true
|
|
|
+
|
|
|
+ console.log('params',params);
|
|
|
+ // return
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectOrg", params)
|
|
|
+ .post(this.$store.state.api + "updateliyuanUser", params)
|
|
|
.then((res) => {
|
|
|
- this.isLoading = false;
|
|
|
- this.schoolJuri = res.data[0];
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.editType = true
|
|
|
+
|
|
|
+ this.getData()
|
|
|
+ // this.$emit("update:dialogVisibleInfo", false);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- this.isLoading = false;
|
|
|
+ this.$message.error("网络不佳");
|
|
|
console.error(err);
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
- changeEye() {
|
|
|
- this.isLook = !this.isLook;
|
|
|
+ editInfo(){
|
|
|
+ this.editType = !this.editType
|
|
|
+ if (this.editType == true) {
|
|
|
+ this.ruleForm = JSON.parse(JSON.stringify(this.ruleFormCopy))
|
|
|
+ }
|
|
|
},
|
|
|
getOrg() {
|
|
|
this.isLoading = true;
|
|
@@ -260,57 +335,51 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- submitForm(formName) {
|
|
|
- this.$refs[formName];
|
|
|
- let params = [
|
|
|
- {
|
|
|
- userid: this.userid,
|
|
|
- username: this.ruleForm.name,
|
|
|
- type: this.ruleForm.type == "老师" ? 1 : 2,
|
|
|
- oid: this.ruleForm.sBySchool,
|
|
|
- phone: this.ruleForm.phone,
|
|
|
- // intro: this.ruleForm.intro,
|
|
|
- intro: "",
|
|
|
- sex: this.ruleForm.sex == "男" ? "0" : "1",
|
|
|
- },
|
|
|
- ];
|
|
|
- this.ajax
|
|
|
- .post(this.$store.state.api + "updatePblMessage2", params)
|
|
|
- .then((res) => {
|
|
|
- this.$message({
|
|
|
- message: "修改成功",
|
|
|
- type: "success",
|
|
|
+//获取分类类名
|
|
|
+ getTypeInfo() {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let params = {
|
|
|
+ oid: this.oid
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectPerInfoAllTea", params)
|
|
|
+ .then((res) => {
|
|
|
+
|
|
|
+ this.teaType = res.data[0];
|
|
|
+
|
|
|
+ let typeInfo = res.data[1];
|
|
|
+
|
|
|
+ this.teaType.forEach((e) => {
|
|
|
+ e.child = [];
|
|
|
+ e.value = [];
|
|
|
+ typeInfo.forEach((i) => {
|
|
|
+ if (e.id == i.parentid) {
|
|
|
+ e.child.push({ id: i.id, name: i.name })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ this.options = res.data[2];
|
|
|
+ resolve(1)
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ reject(1)
|
|
|
+ console.error(err);
|
|
|
});
|
|
|
- window.topU.postMessage({ close: "1" }, "*");
|
|
|
- this.getUser();
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- this.$message.error("修改失败");
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
- getUser() {
|
|
|
- let params = { uid: this.userid };
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api + "getUser", params)
|
|
|
- .then((res) => {
|
|
|
- this.userinfo = res.data[0][0];
|
|
|
- // this.$cookies.set("userInfo", this.userinfo, -1);
|
|
|
- this.$cookies.set("teacherInfo", res.data[0][0], -1);
|
|
|
- this.$store.commit("update", ["userInfo", this.userinfo]);
|
|
|
- console.log(res.data[0][0]);
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
+
|
|
|
},
|
|
|
- getDetail() {
|
|
|
- let params = { uid: this.userid };
|
|
|
+ async getData() {
|
|
|
+
|
|
|
+ await this.getTypeInfo()
|
|
|
+ let params = {
|
|
|
+ uid: this.userid,
|
|
|
+ };
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "getUser", params)
|
|
|
+ .get(this.$store.state.api + "selectTestUser", params)
|
|
|
.then((res) => {
|
|
|
- if (res.data[0][0]) {
|
|
|
- res.data[0][0].sex = res.data[0][0].sex ? "女" : "男";
|
|
|
+
|
|
|
+ res.data[0][0].sex = res.data[0][0].sex ? "女" : "男";
|
|
|
this.ruleForm = res.data[0][0];
|
|
|
this.ruleForm.org = res.data[0][0].org
|
|
|
? res.data[0][0].org.split(",")[0]
|
|
@@ -321,14 +390,43 @@ export default {
|
|
|
: res.data[0][0].type == 2
|
|
|
? "学生"
|
|
|
: "管理员";
|
|
|
+ this.ruleForm.sBySchool = res.data[0][0].organizationname
|
|
|
+
|
|
|
+
|
|
|
this.getCcName(res.data[0][0].organizeid);
|
|
|
- console.log(res.data[0][0]);
|
|
|
- }
|
|
|
+
|
|
|
+ this.teaType.forEach(e =>{
|
|
|
+ let array2 = []
|
|
|
+ for (var i = 0; i < e.child.length; i++) {
|
|
|
+ array2.push(e.child[i].id)
|
|
|
+ }
|
|
|
+ e.value = this.arrayToArray(this.ruleForm.cclassid.split(','), array2)
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ this.ruleFormCopy = JSON.parse(JSON.stringify(this.ruleForm))
|
|
|
+ console.log('this.ruleForm',JSON.parse(JSON.stringify(this.ruleForm)));
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ arrayToArray(arrayo, arrayt) {
|
|
|
+ let array1 = arrayo;
|
|
|
+ let array2 = arrayt;
|
|
|
+
|
|
|
+ let commonElements = [];
|
|
|
+
|
|
|
+ for (let i = 0; i < array1.length; i++) {
|
|
|
+ for (let j = 0; j < array2.length; j++) {
|
|
|
+ if (array1[i] === array2[j]) {
|
|
|
+ commonElements.push(array1[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return commonElements;
|
|
|
+ },
|
|
|
+
|
|
|
getCcName(oid) {
|
|
|
let params = { oid: oid };
|
|
|
this.ajax
|
|
@@ -353,44 +451,15 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- updatePassword() {
|
|
|
- const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d]{8,16}$/;
|
|
|
- if (!reg.test(this.password)) {
|
|
|
- this.$message.error("密码长度为8-16位,且包含大小写字母");
|
|
|
- return;
|
|
|
- } else if (this.password != this.password1) {
|
|
|
- this.$message.error("两次新密码不相同");
|
|
|
- return;
|
|
|
- }
|
|
|
- let params = [
|
|
|
- {
|
|
|
- userid: this.userid,
|
|
|
- opassword: this.opassword,
|
|
|
- password: this.password,
|
|
|
- },
|
|
|
- ];
|
|
|
- this.ajax
|
|
|
- .post(this.$store.state.api + "updatePassword", params)
|
|
|
- .then((res) => {
|
|
|
- if (res.data[0] && res.data[0].success == 1) {
|
|
|
- this.$message.success("修改成功");
|
|
|
- this.opassword = "";
|
|
|
- this.password = "";
|
|
|
- this.password1 = "";
|
|
|
- } else {
|
|
|
- this.$message.error("修改失败,原密码不正确");
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- this.$message.error("修改失败");
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
+ Ochange() {
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
- this.getSchool();
|
|
|
this.getOrg();
|
|
|
- this.getDetail();
|
|
|
+ // this.getSchool()
|
|
|
+ this.getData()
|
|
|
+ // this.getDetail();
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -459,4 +528,28 @@ export default {
|
|
|
.rightCon >>> .el-form-item__label{
|
|
|
color: #000 !important;
|
|
|
}
|
|
|
+.diaBtn {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ gap: 10px;
|
|
|
+ /* height: 40px; */
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px 0px 0 !important;
|
|
|
+ box-sizing: border-box;
|
|
|
+ /* min-height: 60px; */
|
|
|
+}
|
|
|
+.diaBtn > div {
|
|
|
+ background: #e7e7e7;
|
|
|
+ border-radius: 25px;
|
|
|
+ height: 24px;
|
|
|
+ width: 56px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|