<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                注意修改字段名和請求方法地址 html ``` <el-table-column prop="on_sale" label="是否銷售" sortable="custom" :resizable="false" min-width="120"> <template slot-scope="{row}"> <el-switch v-model="row.on_sale" @change="editStatus(row)" :active-value="1" :inactive-value="2"/> </template> </el-table-column> ``` js ``` editStatus(row) { const loading = this.$loading({lock: true}); let params = Object.assign({}, row); this.$http.post('/product/status', params).then(res => { loading.close(); if (res.data.code === 0) { this.$message({type: 'success', message: res.data.msg}); } else { row.status = !row.status ? 2 : 1; this.$message.error(res.data.msg); } }).catch(e => { loading.close(); this.$message.error(e.message); }); }, ``` service ``` public function status() { $data = request()->param(); // 記錄ID $id = getter($data, "id", 0); if (!$id) { return message('記錄ID不能為空', false); } // 狀態 $status = getter($data, "on_sale", 0); if (!$status) { return message('記錄狀態不能為空', false); } $error = ''; $item = [ 'id' => $id, 'on_sale' => $status ]; $rowId = $this->model->edit($item, $error); if (!$rowId) { return message($error, false); } return message(); } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看