Commit d2655297 authored by 刘殿昕's avatar 刘殿昕

所属组织写死,个人组织不可改

parent 46a19233
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</el-form-item> </el-form-item>
<el-form-item class="info_item"> <el-form-item class="info_item">
<p>组织机构:</p> <p>组织机构:</p>
<el-input v-model="user_data.organization"></el-input> <el-input v-model="user_data.organization" :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="info_item info_item_right_btn"> <el-form-item class="info_item info_item_right_btn">
<p>当前用户类型:</p> <p>当前用户类型:</p>
......
...@@ -302,14 +302,7 @@ ...@@ -302,14 +302,7 @@
</el-form-item> </el-form-item>
<el-form-item prop="origin"> <el-form-item prop="origin">
<p class="formname">所属组织:</p> <p class="formname">所属组织:</p>
<el-select v-model="form.origin" placeholder="请选择" class="form_in"> <el-input v-model="form.origin" class="form_in" :disabled="true"></el-input>
<el-option
v-for="item in optionsOrganization"
:key="item.department_id"
:label="item.department_name"
:value="item.department_id"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<p class="formname">服务封面:</p> <p class="formname">服务封面:</p>
...@@ -521,7 +514,6 @@ export default { ...@@ -521,7 +514,6 @@ export default {
}, },
cover: [], cover: [],
optionsArea: [], optionsArea: [],
optionsOrganization: [],
datasSj: [], datasSj: [],
datasZh: [], datasZh: [],
datasQqcs: [], datasQqcs: [],
...@@ -685,6 +677,7 @@ export default { ...@@ -685,6 +677,7 @@ export default {
this.request_fields = requestData; this.request_fields = requestData;
this.response_fields = responseData; this.response_fields = responseData;
this.jcxxtx = true; this.jcxxtx = true;
this.getOrganization();
} else if (this.requestRules != 0) { } else if (this.requestRules != 0) {
this.$message.error("请完善请求参数信息中的字段名称"); this.$message.error("请完善请求参数信息中的字段名称");
} else if (this.responseRules != 0) { } else if (this.responseRules != 0) {
...@@ -718,6 +711,18 @@ export default { ...@@ -718,6 +711,18 @@ export default {
this.datasFhcs = this.response_fields; this.datasFhcs = this.response_fields;
this.jcxxtx = false; this.jcxxtx = false;
}, },
getOrganization() {
let query = {
id: this.$store.state.userInfo.user_id
};
this.$api.user.getUserDetail(query).then(request => {
if (request.data.success == 1) {
this.form.origin = request.data.data.department;
} else {
console.log(response.data.errMsg);
}
});
},
registe() { registe() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
...@@ -795,15 +800,6 @@ export default { ...@@ -795,15 +800,6 @@ export default {
this.resSuccess = false; this.resSuccess = false;
}, },
changeZhfwQqt() {}, changeZhfwQqt() {},
getOrg() {
this.$api.authority.getOrganizationList().then(response => {
if (response.data.success == 1) {
this.optionsOrganization = response.data.data;
} else {
console.log(response.data.errMsg);
}
});
},
getArea() { getArea() {
this.$api.workbench.getServiceAreaList().then(response => { this.$api.workbench.getServiceAreaList().then(response => {
if (response.data.success == 1) { if (response.data.success == 1) {
...@@ -815,7 +811,6 @@ export default { ...@@ -815,7 +811,6 @@ export default {
} }
}, },
mounted() { mounted() {
this.getOrg();
this.getArea(); this.getArea();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment