fix: getColumnLabel posNo
This commit is contained in:
parent
7543a40967
commit
d457a7694e
8 changed files with 65 additions and 98 deletions
|
|
@ -4,7 +4,7 @@ import { useQuasar, type QTableProps } from "quasar";
|
|||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
import { getColumnLabel } from "@/utils/function";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
|
@ -81,15 +81,6 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "actFullName",
|
||||
align: "left",
|
||||
label: "รักษาการแทน",
|
||||
field: "actFullName",
|
||||
sortable: true,
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
|
||||
function onSearchData() {
|
||||
|
|
@ -107,10 +98,6 @@ function getSearch() {
|
|||
}
|
||||
|
||||
async function getData() {
|
||||
// const url =
|
||||
// props.type == "COMMANDER"
|
||||
// ? config.API.workflowCommanderOperate
|
||||
// : config.API.workflowCommanderSign;
|
||||
showLoader();
|
||||
await http
|
||||
.put(config.API.workflowCommanderOperate, {
|
||||
|
|
@ -324,7 +311,9 @@ watch(
|
|||
:key="col.name"
|
||||
:props="props"
|
||||
>
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
<span class="text-weight-medium">{{
|
||||
getColumnLabel(col, isAct)
|
||||
}}</span>
|
||||
</q-th>
|
||||
</q-tr>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue