|
@@ -19,14 +19,14 @@
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
label="应用类型"
|
|
label="应用类型"
|
|
- v-model="dataForm.applicationType"
|
|
|
|
|
|
+ v-model="dataForm.deployDeviceId"
|
|
@change="getDataListByType(dataForm.applicationType)"
|
|
@change="getDataListByType(dataForm.applicationType)"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="data in applicationTypeOptions"
|
|
|
|
- :key="data"
|
|
|
|
- :label="data"
|
|
|
|
- :value="data"
|
|
|
|
|
|
+ v-for="data in deployDevices"
|
|
|
|
+ :key="data.edgenodesId"
|
|
|
|
+ :label="data.edgenodesName"
|
|
|
|
+ :value="data.edgenodesId"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -81,6 +81,14 @@
|
|
label="应用状态"
|
|
label="应用状态"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="deployDeviceName"
|
|
|
|
+ header-align="center"
|
|
|
|
+ align="center"
|
|
|
|
+ label="部署设备"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
prop="parentProjectName"
|
|
prop="parentProjectName"
|
|
header-align="center"
|
|
header-align="center"
|
|
@@ -182,8 +190,11 @@ export default {
|
|
applicationViewVisible: false,
|
|
applicationViewVisible: false,
|
|
filterVal: "",
|
|
filterVal: "",
|
|
applicationTypeOptions: [
|
|
applicationTypeOptions: [
|
|
-
|
|
|
|
|
|
+
|
|
],
|
|
],
|
|
|
|
+ deployDevices:[
|
|
|
|
+
|
|
|
|
+ ]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -198,24 +209,40 @@ export default {
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
getDataList() {
|
|
getDataList() {
|
|
this.dataListLoading = true;
|
|
this.dataListLoading = true;
|
|
- this.$http({
|
|
|
|
|
|
+ /* this.$http({
|
|
url: this.$http.adornUrl("/category/select"),
|
|
url: this.$http.adornUrl("/category/select"),
|
|
method: "get",
|
|
method: "get",
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
this.applicationTypeOptions = this.unique(data.list);
|
|
this.applicationTypeOptions = this.unique(data.list);
|
|
- });
|
|
|
|
|
|
+ }); */
|
|
|
|
+ // 获取所有边缘结点
|
|
|
|
+ this.$http({
|
|
|
|
+ url: this.$http.adornUrl('/generator/edgenodes/list'),
|
|
|
|
+ method: 'get',
|
|
|
|
+ params: this.$http.adornParams({
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }).then(({data}) => {
|
|
|
|
+ this.deployDevices=data.page.list;
|
|
|
|
+ var center={edgenodesId:0,edgenodesName:"中心云"};
|
|
|
|
+ this.deployDevices.push(center);
|
|
|
|
+ })
|
|
this.$http({
|
|
this.$http({
|
|
url: this.$http.adornUrl("/generator/applications/list"),
|
|
url: this.$http.adornUrl("/generator/applications/list"),
|
|
method: "get",
|
|
method: "get",
|
|
params: this.$http.adornParams({
|
|
params: this.$http.adornParams({
|
|
page: this.pageIndex,
|
|
page: this.pageIndex,
|
|
limit: this.pageSize,
|
|
limit: this.pageSize,
|
|
- applicationType: this.dataForm.applicationType,
|
|
|
|
|
|
+ deployDeviceId: this.dataForm.deployDeviceId,
|
|
applicationName: this.dataForm.applicationName,
|
|
applicationName: this.dataForm.applicationName,
|
|
}),
|
|
}),
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
if (data && data.code === 0) {
|
|
if (data && data.code === 0) {
|
|
- this.dataList = data.page.list;
|
|
|
|
|
|
+ this.dataList = data.page.list.map((element) => {
|
|
|
|
+ element["state"] = 0;
|
|
|
|
+ element["loadingText"] = "启动";
|
|
|
|
+ return element;
|
|
|
|
+ });
|
|
this.totalPage = data.page.totalCount;
|
|
this.totalPage = data.page.totalCount;
|
|
} else {
|
|
} else {
|
|
this.dataList = [];
|
|
this.dataList = [];
|