diff --git a/Dockerfile b/Dockerfile index d1d3ceb8..020d9543 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx +FROM nginx:1.20.0 COPY nginx.conf /etc/nginx/nginx.conf COPY dist/ /usr/share/nginx/html/ COPY replace.sh / diff --git a/src/assets/common.css b/src/assets/common.css index e2e8b709..c84b7ec8 100644 --- a/src/assets/common.css +++ b/src/assets/common.css @@ -287,19 +287,26 @@ body, .remote-tab { border: 1px solid #EBEEF5 !important; - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); } -.remote-tab .el-tabs__item{ +.remote-tab .el-tabs__item { border-bottom: 1px solid #EBEEF5 !important; padding: 0 15px; + color: #606266 !important; } -.remote-tab .el-tabs__content{ +.remote-tab .el-tabs__item.is-active { + border-bottom: 1px solid #EBEEF5 !important; + padding: 0 15px; + color: #409EFF !important; +} + +.remote-tab .el-tabs__content { padding: 15px; border-left: 1px solid #EBEEF5; } -.remote-tab .el-tabs__header{ - margin-right: 0px!important; +.remote-tab .el-tabs__header { + margin-right: 0px !important; } \ No newline at end of file diff --git a/src/assets/img/HTC.jpg b/src/assets/img/HTC.jpg new file mode 100644 index 00000000..384c8edf Binary files /dev/null and b/src/assets/img/HTC.jpg differ diff --git a/src/assets/img/Lenovo.jpg b/src/assets/img/Lenovo.jpg new file mode 100644 index 00000000..2791b01e Binary files /dev/null and b/src/assets/img/Lenovo.jpg differ diff --git a/src/components/ElementSelect.vue b/src/components/ElementSelect.vue index 7dcf9501..7e9cbd2b 100644 --- a/src/components/ElementSelect.vue +++ b/src/components/ElementSelect.vue @@ -15,6 +15,21 @@ const pageData = ref({ }); const pageSize = ref(10); const currentPage = ref(0) +const findByName = (name) => { + props.step.elements[props.index] = null + axios.get("/controller/elements/list", { + params: { + name, + projectId: props.projectId, + type: props.type, + page: 1, + pageSize: pageSize.value, + } + }).then(resp => { + pageData.value = resp.data + currentPage.value = pageData.value['number'] + 1 + }) +} const findByProjectIdAndEleType = (event, pageNum, pSize) => { if (event) { props.step.elements[props.index] = null @@ -46,12 +61,17 @@ onMounted(() => { :prop="'elements['+index+']'" > { >
- {{ selObj.text }} + {{ status === 'DEBUGGING' ? user + " " + selObj.text : selObj.text }} \ No newline at end of file diff --git a/src/views/Devices.vue b/src/views/Devices.vue index b40f2c26..51b22887 100644 --- a/src/views/Devices.vue +++ b/src/views/Devices.vue @@ -52,7 +52,9 @@ const manufacturer = ref([ "Yulong", "LGE", "Sony", - "GIONEE" + "GIONEE", + "Lenovo", + "HTC" ]); const statusList = ref([ { @@ -295,9 +297,12 @@ const getAllAgents = () => { agentList.value = resp.data }) } -const savePwd = (device) => { +const saveDetail = (device) => { axios - .put("/controller/devices/savePwd", {id: device.id, password: device.password}).then((resp) => { + .put("/controller/devices/saveDetail", { + id: device.id, password: device.password, + nickName: device.nickName + }).then((resp) => { if (resp['code'] === 2000) { ElMessage.success({ message: resp['message'], @@ -370,7 +375,18 @@ const updateImg = (id, imgUrl) => { } }); } +const getFilterOption = () => { + axios + .get("/controller/devices/getFilterOption") + .then((resp) => { + if (resp['code'] === 2000) { + cpus.value =resp['data'].cpu + sizes.value =resp['data'].size + } + }); +} onMounted(() => { + getFilterOption(); findAll(); getAllAgents(); }) @@ -470,7 +486,7 @@ onMounted(() => { :src="getImg(man)" /> @@ -562,11 +578,11 @@ onMounted(() => { > @@ -597,6 +613,14 @@ onMounted(() => { label-width="70px" style="margin: 0 0 15px 10px" > + +
{{ + device.model.length > 25 + ? device.model.substring(0, 17) + "..." + : device.model + }} +
+
{{ device.name }}
@@ -609,7 +633,7 @@ onMounted(() => { :src="getImg(device.manufacturer)" /> @@ -629,9 +653,6 @@ onMounted(() => {
{{ device.version }}
- -
{{ device.size }}
-
{{ findAgentById(device.agentId) }}
@@ -667,6 +688,26 @@ onMounted(() => { > + + + + + {{ device.name }} @@ -695,7 +736,7 @@ onMounted(() => {