|
@@ -151,6 +151,65 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ v-loading="setLoading"
|
|
|
|
+ title="机构特殊设置"
|
|
|
|
+ width="500px"
|
|
|
|
+ :visible.sync="schoolSetDialog"
|
|
|
|
+ >
|
|
|
|
+ <el-form
|
|
|
|
+ ref="schoolForm"
|
|
|
|
+ :inline="true"
|
|
|
|
+ inline-message
|
|
|
|
+ :model="schoolForm"
|
|
|
|
+ :rules="rules"
|
|
|
|
+ label-position="right"
|
|
|
|
+ label-width="90px"
|
|
|
|
+ class="editSchoolForm"
|
|
|
|
+ >
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-form-item label="学校名称" label-width="120px" prop="name">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="schoolSetForm.name"
|
|
|
|
+ class="pull_length"
|
|
|
|
+ auto-complete="off"
|
|
|
|
+ placeholder="学校名称"
|
|
|
|
+ :disabled="true"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-form-item label="学校代码" label-width="120px" prop="code">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="schoolSetForm.code"
|
|
|
|
+ class="pull_length"
|
|
|
|
+ auto-complete="off"
|
|
|
|
+ placeholder="学校域名"
|
|
|
|
+ :disabled="true"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-form-item label="可用题型" prop="questionTypeArr">
|
|
|
|
+ <el-checkbox-group v-model="questionTypeArr">
|
|
|
|
+ <el-checkbox :label="1">单选</el-checkbox>
|
|
|
|
+ <el-checkbox :label="2">多选</el-checkbox>
|
|
|
|
+ <el-checkbox :label="3">判断</el-checkbox>
|
|
|
|
+ <el-checkbox :label="4">填空</el-checkbox>
|
|
|
|
+ <el-checkbox :label="5">问答</el-checkbox>
|
|
|
|
+ <el-checkbox :label="6">套题</el-checkbox>
|
|
|
|
+ <el-checkbox :label="7">听力题</el-checkbox>
|
|
|
|
+ <el-checkbox :label="8">配对题</el-checkbox>
|
|
|
|
+ </el-checkbox-group></el-form-item
|
|
|
|
+ >
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row class="d-flex justify-content-center">
|
|
|
|
+ <el-button type="primary" @click="submitSetForm">保 存</el-button>
|
|
|
|
+ <el-button @click="schoolSetDialog = false">取 消</el-button>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!-- 页面列表 -->
|
|
<!-- 页面列表 -->
|
|
<el-table
|
|
<el-table
|
|
@@ -240,6 +299,14 @@
|
|
>
|
|
>
|
|
<i class="el-icon-edit"></i> 编辑
|
|
<i class="el-icon-edit"></i> 编辑
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ @click="orgSet(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-edit"></i> 机构设置
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -281,7 +348,17 @@ export default {
|
|
enable: "true",
|
|
enable: "true",
|
|
remark: "",
|
|
remark: "",
|
|
},
|
|
},
|
|
|
|
+ questionTypeArr: [],
|
|
|
|
+ schoolSetForm: {
|
|
|
|
+ orgId: null,
|
|
|
|
+ name: "",
|
|
|
|
+ code: "",
|
|
|
|
+ properties: {
|
|
|
|
+ ROOT_ORG_QUESTION_TYPES: "",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
schoolDialog: false,
|
|
schoolDialog: false,
|
|
|
|
+ schoolSetDialog: false,
|
|
logoDialog: false,
|
|
logoDialog: false,
|
|
curSchool: {
|
|
curSchool: {
|
|
name: null,
|
|
name: null,
|
|
@@ -293,6 +370,7 @@ export default {
|
|
fileList: [],
|
|
fileList: [],
|
|
selectedOrgIds: [],
|
|
selectedOrgIds: [],
|
|
loading: true,
|
|
loading: true,
|
|
|
|
+ setLoading: true,
|
|
tableData: [],
|
|
tableData: [],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -490,6 +568,20 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ submitSetForm() {
|
|
|
|
+ this.schoolSetForm.properties.ROOT_ORG_QUESTION_TYPES = JSON.stringify(
|
|
|
|
+ this.questionTypeArr
|
|
|
|
+ );
|
|
|
|
+ let url = QUESTION_API + "/org/saveOrgProperties";
|
|
|
|
+ this.$httpWithMsg.put(url, this.schoolSetForm).then(() => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "保存成功!",
|
|
|
|
+ });
|
|
|
|
+ this.searchForm();
|
|
|
|
+ this.schoolSetDialog = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//新增
|
|
//新增
|
|
insert() {
|
|
insert() {
|
|
this.schoolForm.id = null;
|
|
this.schoolForm.id = null;
|
|
@@ -514,6 +606,26 @@ export default {
|
|
|
|
|
|
this.schoolDialog = true;
|
|
this.schoolDialog = true;
|
|
},
|
|
},
|
|
|
|
+ orgSet(row) {
|
|
|
|
+ this.setLoading = true;
|
|
|
|
+ var url = QUESTION_API + "/org/allProperties/" + row.id;
|
|
|
|
+ this.$httpWithMsg.get(url).then((response) => {
|
|
|
|
+ this.schoolSetForm.properties = response.data;
|
|
|
|
+ if (
|
|
|
|
+ this.schoolSetForm.properties &&
|
|
|
|
+ this.schoolSetForm.properties.ROOT_ORG_QUESTION_TYPES
|
|
|
|
+ ) {
|
|
|
|
+ this.questionTypeArr = JSON.parse(
|
|
|
|
+ this.schoolSetForm.properties.ROOT_ORG_QUESTION_TYPES
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ this.schoolSetForm.orgId = row.id;
|
|
|
|
+ this.schoolSetForm.name = row.name;
|
|
|
|
+ this.schoolSetForm.code = row.code;
|
|
|
|
+ this.setLoading = false;
|
|
|
|
+ });
|
|
|
|
+ this.schoolSetDialog = true;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|