| | |
| | |
|
| | | // 获取民族
|
| | | getBizDict() {
|
| | | const param = {
|
| | | code: "nationType"
|
| | | }
|
| | | bizDictionary(param).then(res => {
|
| | | if (res.code == 200) {
|
| | | res.data.forEach(e => {
|
| | | this.nationTypeList.push({
|
| | | name: e.dictValue,
|
| | | value: Number(e.dictKey)
|
| | | })
|
| | | })
|
| | | return new Promise(resolve => {
|
| | | const param = {
|
| | | code: "nationType"
|
| | | }
|
| | | })
|
| | | bizDictionary(param).then(res => {
|
| | | if (res.code == 200) {
|
| | | res.data.forEach(e => {
|
| | | this.nationTypeList.push({
|
| | | name: e.dictValue,
|
| | | value: Number(e.dictKey)
|
| | | })
|
| | | })
|
| | | }
|
| | | })
|
| | | });
|
| | | },
|
| | |
|
| | | checkboxChange(n) {
|
| | |
| | | getPlaceDetail({
|
| | | placeId: this.curSelectSite.id
|
| | | }).then(detailRes => {
|
| | |
|
| | | const {
|
| | | code,
|
| | | data
|
| | |
| | | if (data.lat) {
|
| | | this.jwd = `${Number(data.lng).toFixed(6)},${Number(data.lat).toFixed(6)}`
|
| | | }
|
| | |
|
| | | this.cateId = data.poiCode;
|
| | | const placePractitioner = data?.placePractitioner || []
|
| | | // Object.keys(this.form).forEach(key => {
|
| | |
| | | let obj = this.$getIndex(this.nationTypeList, item.ethnicity,
|
| | | "value", "name")
|
| | | console.log("ethnicity==>", obj)
|
| | | this.$refs.formItemRef[index].nationValue = obj.name;
|
| | | this.$refs.formItemRef[index].nationTypeIndex = obj.index;
|
| | | if (obj) {
|
| | | this.$refs.formItemRef[index].nationValue = obj.name;
|
| | | this.$refs.formItemRef[index].nationTypeIndex = obj.index;
|
| | | }
|
| | | }
|
| | |
|
| | | if (typeof(item.gender) == 'number') {
|