|
@@ -42,41 +42,48 @@
|
|
|
<el-input v-model="cooperator_product_name" style="width:200px"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-button class="model_add_button " round type="primary" @click="paneNext1()">下一步</el-button>
|
|
|
- <el-button class="model_add_button " round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="primary" @click="paneNext1()">下一步</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="合作方产品字段信息" name="second">
|
|
|
- <el-table :data="cooperatorProductField" style="width: 100%;">
|
|
|
- <el-table-column align="center" label="字段类型" width="150">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.type}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table :data="cooperatorFields" style="width: 100%;" ref="cooperatorFields" @row-click="singleElection" highlight-current-row>
|
|
|
+ <el-table-column label="" width="65">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-radio class="radio" v-model="templateSelection" :label="scope.$index"> </el-radio>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="字段编号" width="150">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.fieldNo}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column align="center" label="字段类型" width="160">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.type}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="字段名称(中文)" width="150">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.nameZH}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column align="center" label="字段编号" width="160">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.fieldNo}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="字段名称(英文)" width="150">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.name}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column align="center" label="字段名称(中文)" width="160">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.name}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- </el-table>
|
|
|
+ <el-table-column align="center" label="字段名称(英文)" width="160">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.nameZH}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+
|
|
|
+ </el-table>
|
|
|
|
|
|
- <el-button class="model_add_button " round type="primary" @click="paneNext2()">下一步</el-button>
|
|
|
- <el-button class="model_add_button " round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="primary" @click="paneNext2()">下一步</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="合作方产品模型信息" name="third">
|
|
@@ -90,8 +97,8 @@
|
|
|
</select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-button class="model_add_button " round type="primary" @click="submit()">完成</el-button>
|
|
|
- <el-button class="model_add_button " round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="primary" @click="submit()">完成</el-button>
|
|
|
+ <el-button class="model_add_button " size="small" round type="danger" style="margin-left: 50px" @click="paneClose1()">关闭</el-button>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
@@ -112,7 +119,7 @@
|
|
|
|
|
|
import {
|
|
|
getList,
|
|
|
- modelDefineList, findCooperatorFieldByNum, findCooperatorProductByNum, findCooperatorProductFieldByNum, cooperatorProductApply
|
|
|
+ modelDefineList, findCooperatorFieldByNum, findCooperatorProductByNum, findCooperatorProductFieldByNum, cooperatorProductApply,findCooperatorFieldsByName
|
|
|
} from '@/api/index.js'
|
|
|
import store from "@/store";
|
|
|
import request from '@/utils/request.js'
|
|
@@ -150,7 +157,10 @@ export default {
|
|
|
activeName2 : "first",
|
|
|
cooperatorProductField : [],
|
|
|
modelDefineList : [],
|
|
|
- modelNo : ""
|
|
|
+ modelNo : "",
|
|
|
+ cooperatorFields : [],
|
|
|
+ templateSelection: '',
|
|
|
+ templateRadio: null,
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
@@ -171,7 +181,8 @@ export default {
|
|
|
{
|
|
|
this.cooperatorProduct=res.data.cooperator_product;
|
|
|
}
|
|
|
- )
|
|
|
+ ),
|
|
|
+ this.getTableData();
|
|
|
},
|
|
|
beforeUpdate() {},
|
|
|
updated() {},
|
|
@@ -181,6 +192,19 @@ export default {
|
|
|
handleClick() {},
|
|
|
handleCurrentChange() {},
|
|
|
handleSizeChange() {},
|
|
|
+ async getTableData(){
|
|
|
+ try {
|
|
|
+
|
|
|
+ const { data } = await findCooperatorFieldsByName(this.$route.query.cooperatorName);
|
|
|
+ this.cooperatorFields = data.cooperator_fields_by_name;
|
|
|
+ } catch (error) {
|
|
|
+ console.error(error);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ singleElection(row) {
|
|
|
+ this.templateSelection = this.cooperatorFields.indexOf(row);
|
|
|
+ this.templateRadio = row.fieldNo;
|
|
|
+ },
|
|
|
gotolink1()
|
|
|
{
|
|
|
this.$router.replace('/cooperatorInfo');
|