|
@@ -46,10 +46,15 @@
|
|
>禁用</el-button
|
|
>禁用</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <!-- <div>
|
|
<el-button type="primary" icon="icon icon-plus-white" @click="insert"
|
|
<el-button type="primary" icon="icon icon-plus-white" @click="insert"
|
|
>新增</el-button
|
|
>新增</el-button
|
|
>
|
|
>
|
|
|
|
+ </div> -->
|
|
|
|
+ <div>
|
|
|
|
+ <el-button type="primary" icon="icon icon-plus-white" @click="syncOrg"
|
|
|
|
+ >同步</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -434,6 +439,15 @@ export default {
|
|
resetForm() {
|
|
resetForm() {
|
|
this.$refs.schoolForm.resetFields();
|
|
this.$refs.schoolForm.resetFields();
|
|
},
|
|
},
|
|
|
|
+ syncOrg() {
|
|
|
|
+ var url = QUESTION_API + "/org/sync";
|
|
|
|
+ this.$httpWithMsg.put(url, this.schoolForm).then(() => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "操作成功",
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//提交
|
|
//提交
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs.schoolForm.validate((valid) => {
|
|
this.$refs.schoolForm.validate((valid) => {
|