|
@@ -78,6 +78,8 @@
|
|
@click="deleteRow(row, index)"
|
|
@click="deleteRow(row, index)"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button link type="primary" v-if="row.upgradeVersion==='1'" icon="el-icon-notification" @click="changeLog(row)"
|
|
|
|
+ >修改记录</el-button>
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
icon="el-icon-copy-document"
|
|
icon="el-icon-copy-document"
|
|
@@ -167,6 +169,15 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ v-model="dialog1.visible"
|
|
|
|
+ :title="dialog1.title"
|
|
|
|
+ width="900px"
|
|
|
|
+ @close="dialog1.visible=false"
|
|
|
|
+ :destroy-on-close="true"
|
|
|
|
+ >
|
|
|
|
+ <RouteChangeLog :targetRouteId="routeDeatil.id" />
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
@@ -176,6 +187,7 @@ import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
import { useDictionaryStore } from "@/store";
|
|
import { useDictionaryStore } from "@/store";
|
|
import { copyRoute, editRouteWith } from "@/api/craft/route/index";
|
|
import { copyRoute, editRouteWith } from "@/api/craft/route/index";
|
|
import { getUserList } from "@/api/system/user/index";
|
|
import { getUserList } from "@/api/system/user/index";
|
|
|
|
+import RouteChangeLog from "@/views/base/craftManagement/route/components/routeChangeLog.vue";
|
|
// 数据字典相关
|
|
// 数据字典相关
|
|
const { dicts } = useDictionaryStore();
|
|
const { dicts } = useDictionaryStore();
|
|
const sureCancelProductManager = () => {
|
|
const sureCancelProductManager = () => {
|
|
@@ -183,6 +195,10 @@ const sureCancelProductManager = () => {
|
|
dataList();
|
|
dataList();
|
|
form.value = {};
|
|
form.value = {};
|
|
};
|
|
};
|
|
|
|
+const dialog1 = ref({
|
|
|
|
+ title: "修改记录",
|
|
|
|
+ visible: false,
|
|
|
|
+});
|
|
// 传入一个url,后面不带/
|
|
// 传入一个url,后面不带/
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
useCrud({
|
|
useCrud({
|
|
@@ -242,7 +258,13 @@ const uploadFinished = () => {
|
|
page.currentPage = 1;
|
|
page.currentPage = 1;
|
|
dataList();
|
|
dataList();
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+const routeDeatil = ref({});
|
|
|
|
+const changeLog = (row) => {
|
|
|
|
+ console.log(row);
|
|
|
|
+ routeDeatil.value = row;
|
|
|
|
+ console.log(routeDeatil.value);
|
|
|
|
+ dialog1.value.visible = true;
|
|
|
|
+}
|
|
const doEdit = (row, index) => {
|
|
const doEdit = (row, index) => {
|
|
row.prodtName1 = row.prodtName;
|
|
row.prodtName1 = row.prodtName;
|
|
crudRef.value && crudRef.value.rowEdit(row, index);
|
|
crudRef.value && crudRef.value.rowEdit(row, index);
|