快乐的昕的电脑
2025-11-22 000b6f0f6bdfe580f2366649211ea5870c00e106
调试
已修改1个文件
14 ■■■■■ 文件已修改
pages/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index.vue
@@ -205,7 +205,11 @@
                                    <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">工单状态</uni-th>
                                    <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">报工人</uni-th>
                                </uni-tr>
                                <uni-tr v-for="(item, index) in tableData" :key="index">
                                <uni-tr v-for="(item, index) in tableData"
                                        :key="index"
                                        :class="{'row-selected': selectedIndexs.includes(index)}"
                                        @click="onRowClick(index)"
                                        style="cursor: pointer;">
                                    <uni-td align="center">
                                        <input class="form-input" disabled="true" type="text" v-model="item.procName" /><!--工序-->
                                    </uni-td>
@@ -338,6 +342,9 @@
            this.refresh();
        },
        methods: {
            onRowClick(index) {
                this.selectedIndexs = [index]; // 单选
            },
            checkForUpdate() {
                this.$post({
                    url: "/DevMachine/getAppUpgradeInfo",
@@ -742,6 +749,11 @@
</script>
<style lang="scss">
    .row-selected {
        background-color: #e0f3ff !important;
    }
    .font {
        background-color: #666666;
        height: 30px;