发布地图管理归属项目调整

This commit is contained in:
fan 2020-04-17 10:16:56 +08:00
parent c268ee7d3c
commit 59ac3bee94
2 changed files with 10 additions and 4 deletions

View File

@ -9,7 +9,7 @@
/>
</el-select>
<span slot="footer" class="dialog-footer">
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
<el-button type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>
</span>
</el-dialog>

View File

@ -19,8 +19,7 @@
}"
>
<el-select v-model="formModel.projectCode" :placeholder="this.$t('publish.pleaseSelectTheBelongsProject')">
<el-option label="西铁院" value="XTY" />
<el-option label="贵州装备" value="GZB" />
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
</el-form>
@ -33,6 +32,7 @@
<script>
import { setMapProject } from '@/api/jmap/map';
import { ProjectList } from '@/scripts/ProjectConfig';
export default {
name: 'SetMapProject',
data() {
@ -50,7 +50,8 @@ export default {
booleanValue: {
t: true,
f: false
}
},
options: []
};
},
methods: {
@ -59,6 +60,11 @@ export default {
this.formModel.id = row.id;
this.formModel.name = row.name;
this.formModel.cityCode = row.cityCode;
this.options = [];
ProjectList.forEach(item => {
this.options.push({label: item.label, value: item.value.toUpperCase()});
});
console.log(this.options);
},
doSave() {
this.$refs['form'].validate((valid) => {