|
@@ -9,7 +9,7 @@
|
|
|
@click="onBranchOperation('create')"
|
|
|
v-permission="'organization/add'"
|
|
|
type="primary"
|
|
|
- style="margin-bottom:20px"
|
|
|
+ style="margin-bottom: 20px"
|
|
|
>
|
|
|
新建
|
|
|
</el-button>
|
|
@@ -45,6 +45,12 @@
|
|
|
type="text"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ @click="showCode(scope.row)"
|
|
|
+ v-permission="'organization/update'"
|
|
|
+ type="text"
|
|
|
+ >注册二维码</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -162,7 +168,7 @@
|
|
|
placeholder="选择成立时间"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-alert
|
|
|
+ <!-- <el-alert
|
|
|
style="margin: 20px 0"
|
|
|
title="分部人员配置"
|
|
|
:closable="false"
|
|
@@ -238,7 +244,7 @@
|
|
|
}}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="branchStatus = false">取 消</el-button>
|
|
@@ -247,10 +253,12 @@
|
|
|
>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
+import qrCode from "@/components/QrCode/index";
|
|
|
import {
|
|
|
branchQueryPage,
|
|
|
areaQueryChild,
|
|
@@ -258,10 +266,11 @@ import {
|
|
|
branchUpdate,
|
|
|
getParentArea,
|
|
|
} from "@/api/specialSetting";
|
|
|
+import { vaildStudentUrl } from "@/utils/validate";
|
|
|
import { queryEmployByOrganId } from "@/api/systemManage";
|
|
|
export default {
|
|
|
name: "branchSetting",
|
|
|
- components: { pagination },
|
|
|
+ components: { pagination, qrCode },
|
|
|
data() {
|
|
|
return {
|
|
|
tableList: [],
|
|
@@ -293,7 +302,7 @@ export default {
|
|
|
organManager: [],
|
|
|
educationId: [],
|
|
|
repairId: [],
|
|
|
- joinTeacherId:[]
|
|
|
+ joinTeacherId: [],
|
|
|
},
|
|
|
rules: {
|
|
|
name: [{ required: true, message: "请输入分部名称", trigger: "blur" }],
|
|
@@ -309,6 +318,9 @@ export default {
|
|
|
{ required: true, message: "请选择学年制", trigger: "change" },
|
|
|
],
|
|
|
},
|
|
|
+ codeStatus: false,
|
|
|
+ qrCodeUrl: null,
|
|
|
+ codeTitle: "注册二维码",
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -322,11 +334,11 @@ export default {
|
|
|
this.form.areaId = this.form.city;
|
|
|
let obj = {
|
|
|
...this.form,
|
|
|
- organManager:this.form.organManager.join(','),
|
|
|
- educationId:this.form.educationId.join(','),
|
|
|
- repairId:this.form.repairId.join(','),
|
|
|
- joinTeacherId:this.form.joinTeacherId.join(',')
|
|
|
- }
|
|
|
+ organManager: this.form.organManager.join(","),
|
|
|
+ educationId: this.form.educationId.join(","),
|
|
|
+ repairId: this.form.repairId.join(","),
|
|
|
+ joinTeacherId: this.form.joinTeacherId.join(","),
|
|
|
+ };
|
|
|
|
|
|
if (this.formActionTitle == "create") {
|
|
|
if (this.form.id) {
|
|
@@ -399,7 +411,12 @@ export default {
|
|
|
// 修改分部信息
|
|
|
// employeeFindEmployeeByRole
|
|
|
try {
|
|
|
- const res = await queryEmployByOrganId({ organId: row.id, rows: 9999, demissionflag:false,lockFlag:false});
|
|
|
+ const res = await queryEmployByOrganId({
|
|
|
+ organId: row.id,
|
|
|
+ rows: 9999,
|
|
|
+ demissionflag: false,
|
|
|
+ lockFlag: false,
|
|
|
+ });
|
|
|
this.$set(this, "employeeList", res.data.rows);
|
|
|
} catch (e) {
|
|
|
console.log(e);
|
|
@@ -418,19 +435,29 @@ export default {
|
|
|
address: row.address,
|
|
|
registerDate: row.registerDate,
|
|
|
gradeType: row.gradeType == 1 ? "FIVE_PLUS" : "SIX_PLUS",
|
|
|
- organManager:row.organManager?row.organManager.split(','):[],
|
|
|
- repairId:row.repairId?row.repairId.split(','):[],
|
|
|
- joinTeacherId:row.joinTeacherId?row.joinTeacherId.split(','):[],
|
|
|
- educationId:row.educationId?row.educationId.split(','):[],
|
|
|
+ organManager: row.organManager
|
|
|
+ ? row.organManager.split(",")
|
|
|
+ : [],
|
|
|
+ repairId: row.repairId ? row.repairId.split(",") : [],
|
|
|
+ joinTeacherId: row.joinTeacherId
|
|
|
+ ? row.joinTeacherId.split(",")
|
|
|
+ : [],
|
|
|
+ educationId: row.educationId ? row.educationId.split(",") : [],
|
|
|
};
|
|
|
});
|
|
|
- this.branchStatus = true;
|
|
|
+ this.branchStatus = true;
|
|
|
}
|
|
|
});
|
|
|
- }else{
|
|
|
- this.branchStatus = true;
|
|
|
+ } else {
|
|
|
+ this.branchStatus = true;
|
|
|
}
|
|
|
},
|
|
|
+ showCode(row) {
|
|
|
+ this.qrCodeUrl =
|
|
|
+ vaildStudentUrl() + "/project/register/index.html?organId=" + row.id;
|
|
|
+ this.codeStatus = true;
|
|
|
+ // qrCodeUrl:null,
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|