|
@@ -28,6 +28,7 @@
|
|
:on-progress="uploadProgress"
|
|
:on-progress="uploadProgress"
|
|
:on-success="uploadSuccess"
|
|
:on-success="uploadSuccess"
|
|
:on-error="uploadError"
|
|
:on-error="uploadError"
|
|
|
|
+ :on-remove="handleRemove"
|
|
:file-list="fileList"
|
|
:file-list="fileList"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
:multiple="false"
|
|
:multiple="false"
|
|
@@ -114,7 +115,7 @@ export default {
|
|
return {
|
|
return {
|
|
rootOrgId: null,
|
|
rootOrgId: null,
|
|
loginTypes: LOGIN_TYPE,
|
|
loginTypes: LOGIN_TYPE,
|
|
- propertyGroupId: "studentClientConfig",
|
|
|
|
|
|
+ propertyGroupId: "",
|
|
preventCheatingConfigs: PREVENT_CHEATING_CONFIG,
|
|
preventCheatingConfigs: PREVENT_CHEATING_CONFIG,
|
|
ruleForm: {
|
|
ruleForm: {
|
|
relatedPropertyGroupIdList: [],
|
|
relatedPropertyGroupIdList: [],
|
|
@@ -147,7 +148,7 @@ export default {
|
|
{ min: 1, max: 50, message: "长度在 1 到 50 个字符", trigger: "blur" }
|
|
{ min: 1, max: 50, message: "长度在 1 到 50 个字符", trigger: "blur" }
|
|
],
|
|
],
|
|
LOGO_FILE_URL: [
|
|
LOGO_FILE_URL: [
|
|
- { required: true, message: "请选择学校logo", trigger: "blur" }
|
|
|
|
|
|
+ { required: true, message: "请选择学校logo", trigger: "change" }
|
|
],
|
|
],
|
|
loginType: [
|
|
loginType: [
|
|
{
|
|
{
|
|
@@ -207,7 +208,7 @@ export default {
|
|
initForm() {
|
|
initForm() {
|
|
this.ruleForm.orgId = this.user.rootOrgId;
|
|
this.ruleForm.orgId = this.user.rootOrgId;
|
|
this.ruleForm.STUDENT_CLIENT_DEFAULT_SIZE = "1400*900";
|
|
this.ruleForm.STUDENT_CLIENT_DEFAULT_SIZE = "1400*900";
|
|
- this.ruleForm.relatedPropertyGroupIdList = [this.propertyGroupId];
|
|
|
|
|
|
+ this.ruleForm.relatedPropertyGroupIdList = ["studentClientConfig"];
|
|
var url =
|
|
var url =
|
|
CORE_API +
|
|
CORE_API +
|
|
"/org/getOrgPropertiesByGroupWithoutCache/" +
|
|
"/org/getOrgPropertiesByGroupWithoutCache/" +
|
|
@@ -372,14 +373,12 @@ export default {
|
|
},
|
|
},
|
|
handleRemove(file, fileList) {
|
|
handleRemove(file, fileList) {
|
|
console.log(file, fileList);
|
|
console.log(file, fileList);
|
|
- },
|
|
|
|
- handlePreview(file) {
|
|
|
|
- console.log(file);
|
|
|
|
|
|
+ this.removeFile();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.rootOrgId = this.user.rootOrgId;
|
|
this.rootOrgId = this.user.rootOrgId;
|
|
- this.propertyGroupId = "studentClientConfig";
|
|
|
|
|
|
+ this.propertyGroupId = "studentClientConfig4Edit";
|
|
this.uploadAction = CORE_API + "/org/importLogo/" + this.rootOrgId;
|
|
this.uploadAction = CORE_API + "/org/importLogo/" + this.rootOrgId;
|
|
this.uploadHeaders = {
|
|
this.uploadHeaders = {
|
|
key: this.user.key,
|
|
key: this.user.key,
|