update

parent a438a94d
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<div class="row"> <div class="row">
<div class="col-auto text-h6 text-weight-regular flex q-ml-md"> <div class="col-auto text-h6 text-weight-regular flex q-ml-md">
{{ $t('managingUnitAdd.titleAdd') {{ $t('managingUnitAdd.titleAdd')
}}<span style="color: red" class="q-ml-xs">*</span> }}
</div> </div>
<q-space></q-space> <q-space></q-space>
<div class="col-auto"> <div class="col-auto">
...@@ -858,7 +858,6 @@ export default defineComponent({ ...@@ -858,7 +858,6 @@ export default defineComponent({
const addNewArtist = () => { const addNewArtist = () => {
const newArtistList = [...props.artistList]; const newArtistList = [...props.artistList];
newArtistList.push({ newArtistList.push({
contractFrom: `${contractTimeFrom.value} 00:00:00`, contractFrom: `${contractTimeFrom.value} 00:00:00`,
contractTo: `${contractTimeTo.value} 00:00:00`, contractTo: `${contractTimeTo.value} 00:00:00`,
......
...@@ -483,14 +483,10 @@ export default defineComponent({ ...@@ -483,14 +483,10 @@ export default defineComponent({
//add //add
const addNewUnit = async () => { const addNewUnit = async () => {
let hasError = false; let hasError = false;
if (unitArtistList.value.length !== 0) {
hasError = true;
check_artistList.value = true;
}
if (hasError === false) { if (hasError === false) {
console.log(unitField,'unitField.value')
const data = { const data = {
name: unitName.value, name: unitName.value,
code: unitCode.value, code: unitCode.value,
...@@ -503,9 +499,6 @@ export default defineComponent({ ...@@ -503,9 +499,6 @@ export default defineComponent({
userName: unitUserName.value, userName: unitUserName.value,
password: unitPassword.value, password: unitPassword.value,
contracts: unitArtistList.value, contracts: unitArtistList.value,
}; };
const response = (await api({ const response = (await api({
url: API_PATHS.artistOwnerAdd, url: API_PATHS.artistOwnerAdd,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment